Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ElectronicCats/Beelan-LoRaWAN
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: ElectronicCats/Beelan-LoRaWAN
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jul 20, 2022

  1. Update README.md

    sabas1080 authored Jul 20, 2022
    Copy the full SHA
    f746a17 View commit details
  2. Update library.properties

    sabas1080 authored Jul 20, 2022
    Copy the full SHA
    ac9d457 View commit details
  3. Update library.properties

    sabas1080 authored Jul 20, 2022
    Copy the full SHA
    c983018 View commit details
  4. Update library.properties

    sabas1080 authored Jul 20, 2022
    Copy the full SHA
    82d6886 View commit details

Commits on Jul 21, 2022

  1. Changes in LoRaMAC.cpp Class C

    Alejandro Amar Gil committed Jul 21, 2022
    Copy the full SHA
    6ae6fa5 View commit details

Commits on Aug 5, 2022

  1. Create Feedback-request.md

    Eric286 authored Aug 5, 2022
    Copy the full SHA
    3570b95 View commit details
  2. Add files via upload

    Eric286 authored Aug 5, 2022
    Copy the full SHA
    5f8f41d View commit details
  3. Merge pull request #134 from ElectronicCats/Eric286-ISSUE_TEMPLATE

    Eric286 issue template
    sabas1080 authored Aug 5, 2022
    Copy the full SHA
    29632ec View commit details

Commits on Sep 21, 2022

  1. Copy the full SHA
    5368b7d View commit details
  2. Merge pull request #137 from ivanmorenoj/bugfix/default_region_config…

    …file
    
    change default region on Config.h and fix subband selection for US915 and AU915
    sabas1080 authored Sep 21, 2022
    Copy the full SHA
    b1c98db View commit details
  3. Update library.properties

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Sep 21, 2022
    Copy the full SHA
    a2198f1 View commit details
  4. Update stale.yml

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Sep 21, 2022
    Copy the full SHA
    2e5f5b9 View commit details

Commits on Sep 22, 2022

  1. remove defines duplicate

    sabas1080 committed Sep 22, 2022
    Copy the full SHA
    45488e5 View commit details
  2. Merge pull request #138 from ElectronicCats/ClassCAU

    Fix Class C AU 915
    sabas1080 authored Sep 22, 2022
    Copy the full SHA
    d98c48e View commit details

Commits on Sep 29, 2022

  1. Update stale config

    xpeqex committed Sep 29, 2022
    Copy the full SHA
    f0901e8 View commit details

Commits on Oct 2, 2022

  1. Merge pull request #139 from xpeqex/master

    Update stale config
    sabas1080 authored Oct 2, 2022
    Copy the full SHA
    6a93f53 View commit details

Commits on Oct 5, 2022

  1. Update stale.yml

    xpeqex committed Oct 5, 2022
    Copy the full SHA
    0b537ba View commit details
  2. Merge pull request #140 from xpeqex/master

    Update stale.yml
    Eric286 authored Oct 5, 2022
    Copy the full SHA
    336a87d View commit details

Commits on Oct 24, 2022

  1. To fix RX Channel for as923 and as923_2

    #141
    
    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Oct 24, 2022
    Copy the full SHA
    791b98c View commit details
  2. Update lorawan-arduino-rfm.cpp

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Oct 24, 2022
    Copy the full SHA
    48362d6 View commit details

Commits on Oct 25, 2022

  1. Update library.properties

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Oct 25, 2022
    Copy the full SHA
    3344506 View commit details

Commits on Oct 31, 2022

  1. Merge pull request #142 from ElectronicCats/sabas1080-patch-1

    To fix RX Channel for as923 and as923_2
    sabas1080 authored Oct 31, 2022
    Copy the full SHA
    2774f45 View commit details

Commits on Nov 7, 2022

  1. Fixed rx delay for class A.

    Fixed rx delay for class A.
    Default RX Window is 1 second.
    Reference: https://lora-developers.semtech.com/documentation/tech-papers-and-guides/lorawan-class-a-devices/
    IoTThinks authored Nov 7, 2022
    Copy the full SHA
    219ac79 View commit details

Commits on Nov 11, 2022

  1. Merge pull request #145 from IoTThinks/fix-rx-delay-for-class-A

    Fixed rxDelay1 for class A.
    wero1414 authored Nov 11, 2022
    Copy the full SHA
    58e0985 View commit details
  2. update timing on delays

    wero1414 committed Nov 11, 2022
    Copy the full SHA
    6684069 View commit details

Commits on Nov 15, 2022

  1. Merge pull request #146 from ElectronicCats/fix-rx-delay-classC-RX2

    update timing on delays
    wero1414 authored Nov 15, 2022
    Copy the full SHA
    61bf524 View commit details

Commits on May 30, 2023

  1. Update README.md

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored May 30, 2023
    Copy the full SHA
    41b9506 View commit details

Commits on Jun 13, 2023

  1. Copy the full SHA
    c6173a9 View commit details

Commits on Jun 22, 2023

  1. Update API.md

    Signed-off-by: Eric Chavez <40640735+Eric286@users.noreply.github.com>
    Eric286 authored Jun 22, 2023
    Copy the full SHA
    36f2a95 View commit details
  2. Update API.md

    Signed-off-by: Eric Chavez <40640735+Eric286@users.noreply.github.com>
    Eric286 authored Jun 22, 2023
    Copy the full SHA
    775d907 View commit details

Commits on Jun 23, 2023

  1. Update API.md

    Signed-off-by: Eric Chavez <40640735+Eric286@users.noreply.github.com>
    Eric286 authored Jun 23, 2023
    Copy the full SHA
    687b65a View commit details

Commits on Jun 26, 2023

  1. Copy the full SHA
    471930c View commit details

Commits on Jun 28, 2023

  1. Update README.md

    Signed-off-by: Eric Chavez <40640735+Eric286@users.noreply.github.com>
    Eric286 authored Jun 28, 2023
    Copy the full SHA
    26dc2e4 View commit details

Commits on Jun 29, 2023

  1. Merge pull request #163 from ElectronicCats/Eric286-patch-2

    Update README.md
    sabas1080 authored Jun 29, 2023
    Copy the full SHA
    6a93e3f View commit details

Commits on Jun 30, 2023

  1. Update library.properties

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Jun 30, 2023
    Copy the full SHA
    79daae9 View commit details
  2. Delete stale.yml

    Signed-off-by: Carlos Alatorre <carlosalat01@gmail.com>
    xpeqex authored Jun 30, 2023
    Copy the full SHA
    074c073 View commit details
  3. Merge pull request #165 from xpeqex/master

    Delete stale.yml
    sabas1080 authored Jun 30, 2023
    Copy the full SHA
    7f90fc4 View commit details

Commits on Jul 21, 2023

  1. Copy the full SHA
    206ee34 View commit details
  2. Merge pull request #164 from ElectronicCats/add-renesas

    Update library.properties
    jazhe authored Jul 21, 2023
    Copy the full SHA
    76a1a3f View commit details

Commits on Jul 23, 2023

  1. Update library.properties

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Jul 23, 2023
    Copy the full SHA
    b555428 View commit details
  2. Fix Name library.properties

    Signed-off-by: Sabas <s@theinventorhouse.org>
    sabas1080 authored Jul 23, 2023
    Copy the full SHA
    82da458 View commit details
  3. Copy the full SHA
    77536c9 View commit details

Commits on Jul 26, 2023

  1. Update API.md

    Signed-off-by: Kadir Özdinç <35654378+kadirozdinc@users.noreply.github.com>
    kadirozdinc authored Jul 26, 2023
    Copy the full SHA
    eb123a6 View commit details

Commits on Jul 27, 2023

  1. init commit

    kadirozdinc committed Jul 27, 2023
    Copy the full SHA
    39db783 View commit details
  2. OTAA&ACK example added

    kadirozdinc committed Jul 27, 2023
    Copy the full SHA
    a3fdf90 View commit details
  3. Update API.md

    Signed-off-by: Kadir Özdinç <35654378+kadirozdinc@users.noreply.github.com>
    kadirozdinc authored Jul 27, 2023
    Copy the full SHA
    6a784ae View commit details

Commits on Aug 30, 2023

  1. Merge pull request #170 from capboyaryan/in_865

    Adding support for IN_865
    wero1414 authored Aug 30, 2023
    Copy the full SHA
    b69410f View commit details

Commits on Aug 31, 2023

  1. Copy the full SHA
    b01a42f View commit details
  2. Merge pull request #172 from kadirozdinc/master

    Some changes and feature additions
    wero1414 authored Aug 31, 2023
    Copy the full SHA
    15596e6 View commit details

Commits on Dec 3, 2023

  1. Copy the full SHA
    0a77384 View commit details
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT_EC.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: "\U0001F640 Bug report "
about: Report a bug or unexpected behavior while using the Beelan-LoRaWAN library
title: 'ElectronicCats'
labels: bug
---

**Please, before reporting any issue**
- Make sure your board it's in good condition.
- Make sure your Module it's in good condition and that it is compatible.
- Verify that it really is a library problem and not a hardware problem.
- **Avoid** to submit a GitHub issue for project troubleshooting.

Any feedback/suggestions should be discussed on the [feedback section](https://github.com/ElectronicCats/Beelan-LoRaWAN/issues):
* Just click on New Issue and select the correct category.

When reporting any issue, please try to provide all relevant information to help on its resolution.


**Describe the bug**
A clear and concise description of what the bug is.
The more detailed this is, the easier we can come up with a solution.


**To Reproduce**
Complete source code which can be used to reproduce the issue. Please try to be as generic as possible.
No extra code, extra hardware, etc.
If you think it is absolutely necessary to add this, mention in detail the connections in case it is necessary hardware and also indicate the part of code that was added and how it was added.


**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**To help us to understand your situation, we would like to ask you for the following additional information::**
- Which board are you using?
- What Operating System and version are you using (e.g. Windows 11, macOS 12.0, Linux)?
- In case you are using the Arduino IDE, What version of the Arduino IDE?
- Did it work before?, If it worked before, what were the parameters that you modify?


**Additional context**
Add any other context about the problem here that you think will help us to solve your problem.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/Feedback-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F408 Feddback or requests"
about: Suggest an idea or improvement for this project
title: 'ElectronicCats'
labels: 'enhancement'
---

**What idea or improvement for the library has occurred to you?**

**If you found an error:**

Please describe clearly and concisely the problem you are aware of.


**Have you already found a solution?**

If you found a way to fix the problem please let us know.
It would be very helpful if you put the part of the code that needs to be corrected and how it needs to be corrected.

***Thanks a lot***
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: See if your issue is solved before creating a new one.
about: Try to see if ther is an answer for yoru questions before you create a new issue.
url: https://github.com/ElectronicCats/Beelan-LoRaWAN/issues?q=is%3Aissue+is%3Aclosed
- name: ElectronicCats
about: Contact us through our website
url: https://electroniccats.com/contact/
17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

95 changes: 84 additions & 11 deletions .github/workflows/BuildLibrary.yml
Original file line number Diff line number Diff line change
@@ -29,26 +29,97 @@ jobs:
#############################################################################################################
arduino-boards-fqbn:
- arduino:avr:uno
- arduino:avr:leonardo
- arduino:avr:uno|All-US_915
- arduino:avr:leonardo|All-US_915
- arduino:samd:nano_33_iot|All-US_915
- arduino:samd:nano_33_iot
- arduino:mbed:nano33ble
- esp8266:esp8266:huzzah:eesz=4M3M,xtal=80
- arduino:mbed:nano33ble|All-US_915
- esp8266:esp8266:huzzah:eesz=4M3M,xtal=80|All-US_915
- rp2040:rp2040:generic|All-US_915
#- esp32:esp32:esp32:FlashFreq=80
#- esp32:esp32:featheresp32:FlashFreq=80|All-US_915

# Specify parameters for each board.
# Parameters can be: platform-url, examples-exclude and examples-build-properties
# With examples-exclude you may exclude specific examples for a board. Use a space separated list.
#############################################################################################################
include:
- arduino-boards-fqbn: arduino:avr:uno

- arduino-boards-fqbn: arduino:avr:leonardo

sketch-names: class_c_abp.ino,class_c_otaa_ack.ino # Comma separated list of sketch names (no path required) or patterns to use in build
build-properties:
class_c_abp:
-DDEBUG
-DEU_868
-D_CLASS_C_
class_c_otaa_ack:
-DDEBUG
-DEU_868
-D_CLASS_C_
All:
-DEU_868
-DDEBUG
- arduino-boards-fqbn: arduino:avr:uno|All-US_915
build-properties:
All:
-DUS_915
-DDEBUG
- arduino-boards-fqbn: arduino:avr:leonardo|All-US_915
build-properties:
All:
-DUS_915
-DDEBUG
- arduino-boards-fqbn: arduino:samd:nano_33_iot

- arduino-boards-fqbn: arduino:mbed:nano33ble

- arduino-boards-fqbn: esp8266:esp8266:huzzah:eesz=4M3M,xtal=80
build-properties:
class_c_abp:
-DDEBUG
-DEU_868
-D_CLASS_C_
class_c_otaa_ack:
-DDEBUG
-DEU_868
-D_CLASS_C_
All:
-DEU_868
- arduino-boards-fqbn: arduino:samd:nano_33_iot|All-US_915
build-properties:
All:
-DUS_915
-DDEBUG
- arduino-boards-fqbn: arduino:mbed:nano33ble|All-US_915
build-properties:
All:
-DUS_915
-DDEBUG
- arduino-boards-fqbn: esp8266:esp8266:huzzah:eesz=4M3M,xtal=80|All-US_915
platform-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
build-properties:
All:
-DUS_915
-DDEBUG
- arduino-boards-fqbn: rp2040:rp2040:generic|All-US_915
platform-url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
build-properties:
All:
-DUS_915
-DDEBUG
#- arduino-boards-fqbn: esp32:esp32:esp32:FlashFreq=80
# platform-url: https://github.com/espressif/arduino-esp32/releases/download/3.0.0-alpha2/package_esp32_dev_index.json
# extra-arduino-cli-args: "--warnings default"
# build-properties:
# class_c_abp:
# -DEU_868
# -D_CLASS_C_
# class_c_otaa_ack:
# -DEU_868
# -D_CLASS_C_
#All:
# -DEU_868
#- arduino-boards-fqbn: esp32:esp32:featheresp32:FlashFreq=80|All-US_915
# platform-url: https://github.com/espressif/arduino-esp32/releases/download/3.0.0-alpha2/package_esp32_dev_index.json
# extra-arduino-cli-args: "--warnings default"
# build-properties:
# All:
# -DUS_915

# Do not cancel all jobs / architectures if one job fails
fail-fast: false
@@ -65,4 +136,6 @@ jobs:
with:
arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}
platform-url: ${{ matrix.platform-url }}
examples-exclude: DetectingReaders
build-properties: ${{ toJson(matrix.build-properties) }}
extra-arduino-cli-args: ${{ matrix.extra-arduino-cli-args }}

6 changes: 4 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
@@ -308,9 +308,11 @@ void setup() {
### Send data to LoRaWAN
You need to specify the length of data you want to send and also the message type (unconfirmed or confirmed message). Set `confirm = 0` to send unconfirmed message and `confirm = 1`' to send confirmed message.

For mport, you are free to utilize values between 1-223, it is entirely up to you to choose the values your node and infrastructure software sets or checks for.

#### Syntax
```c
void sendUplink(unsigned char *data, unsigned int len, unsigned char confirm);
void sendUplink(char *data, unsigned int len, unsigned char confirm, unsigned char mport);
```
#### Example
@@ -319,7 +321,7 @@ void loop() {
// put your main code here, to run repeatedly:
char myStr[] = "Ini data LoRaku";
lora.sendUplink(myStr, strlen(myStr), 0);
lora.sendUplink(myStr, strlen(myStr), 0, 1);
...
}
57 changes: 33 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
![LibraryBuild](https://github.com/BeelanMX/Beelan-LoRaWAN/workflows/LibraryBuild/badge.svg?branch=master)

Arduino LoRaWAN library by Beelan
Arduino LoRaWAN library
====================
This repository contains the simple LoRaWAN library encapsulated to run in the generic platform, allowing using the SX1272, SX1276 transceivers and compatible modules (such as some HopeRF RFM9x modules).

This repository is all based on the library originally created by Ideetron B.V. This library is slightly
This repository is all based on the library originally created by [Ideetron B.V.](https://github.com/Ideetron) This library is slightly
modified and this [repo]( https://git.antares.id/lorawan-loraid/arduino-loraid), with the principal purpose to have an LoRaWAN MAC layer for arduino with an easy API.

<a href="https://github.com/ElectronicCats/Beelan-LoRaWAN/wiki">
<img src="https://github.com/ElectronicCats/flipper-shields/assets/44976441/6aa7f319-3256-442e-a00d-33c8126833ec" width="200" height="104" />
</a>

Features
--------
The arduino LoRaWAN library supports LoRaWAN Class A and Class C implementations operating in EU-868, AS-923, US-915 and AU-915 bands. Note that this library is fairly simple with the aim of demonstrating the LoRaWAN capabilities.
The Arduino LoRaWAN library supports LoRaWAN Class A and Class C implementations operating in EU-868, AS-923, US-915 and AU-915 bands. Notice that this library is fairly simple with the aim of demonstrating the LoRaWAN capabilities.

### What certainly works:
- Sending packets uplink, taking into account duty cycling.
- Custom frequencies and datarate settings.
- Custom frequencies and data rate settings.
- Receiving downlink packets in the RX1 window (EU-868, AS-923,US-915,AU-915).
- Over-the-air activation (OTAA / joining) (EU-868, AS-923).
- Class C operation.
@@ -25,25 +29,11 @@ The arduino LoRaWAN library supports LoRaWAN Class A and Class C implementations
- Receiving and processing MAC commands.

If you try one of these untested features and it works, be sure to let
us know (creating a github issue is probably the best way for that).

Quick Installing
----------
To install, use the Arduino Library Manager and search for "Beelan LoraWAN" and install the library.
us know (creating a Github issue is probably the best way for that, also so you can submit a pull request to improve this repository).

Manual Installing
Installing the library
----------
To install this library:

- install it using the Arduino Library manager ("Sketch" -> "Include
Library" -> "Manage Libraries..."), or
- download a zipfile from github using the "Download ZIP" button and
install it using the IDE ("Sketch" -> "Include Library" -> "Add .ZIP
Library..."
- clone this git repository into your sketchbook/libraries folder.

For more info, see https://www.arduino.cc/en/Guide/Libraries

Please refer to the wiki's [first steps](https://github.com/ElectronicCats/Beelan-LoRaWAN/wiki/2.-First-steps) section for instructions on installing the library.

Configuration
-------------
@@ -89,6 +79,7 @@ This library has been tested using:
- Electronic Cats Bast-WAN (Based on SAMR34)
- NINA B302 is NRF52840 core
- STMDuino
- RENESAS compatible boards

Connections
-----------
@@ -117,21 +108,39 @@ For example, this could look like this:

API
--------
See [API.md](API.md).
- See [API.md](API.md).

Tests
-------
- See [Test Folder](test/README.md)

## How to contribute <img src="https://electroniccats.com/wp-content/uploads/2018/01/fav.png" height="35"><img src="https://raw.githubusercontent.com/gist/ManulMax/2d20af60d709805c55fd784ca7cba4b9/raw/bcfeac7604f674ace63623106eb8bb8471d844a6/github.gif" height="30">
Contributions are welcome!

Please read the document [**Contribution Manual**](https://github.com/ElectronicCats/electroniccats-cla/blob/main/electroniccats-contribution-manual.md) which will show you how to contribute your changes to the project.

✨ Thanks to all our [contributors](https://github.com/ElectronicCats/Beelan-LoRaWAN/graphs/contributors)! ✨

See [**_Electronic Cats CLA_**](https://github.com/ElectronicCats/electroniccats-cla/blob/main/electroniccats-cla.md) for more information.

See the [**community code of conduct**](https://github.com/ElectronicCats/electroniccats-cla/blob/main/electroniccats-community-code-of-conduct.md) for a vision of the community we want to build and what we expect from it.

Maintainer
-------

Beelan invests time and resources providing this open source design, please support Beelan!
Electronic Cats invests time and resources providing this open source design, please support Electronic Cats and open-source hardware by purchasing products from Electronic Cats!
Thanks Beelan

<a href="https://github.com/sponsors/ElectronicCats">
<p align="center">
<img src="https://electroniccats.com/wp-content/uploads/2020/07/Badge_GHS.png" height="104" />
</p>
</a>

License
-------
Most source files in this repository are made available under the
MIT License. The examples which use a more liberal
[MIT License](https://github.com/ElectronicCats/Beelan-LoRaWAN/blob/master/LICENSE.txt). The examples which use a more liberal
license. Some of the AES code is available under the LGPL. Refer to each
individual source file for more details.

Loading