mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
646 stars 212 forks source link

India Frequency Settings in LoRaBase #883

Closed UdayChaduvula closed 2 years ago

UdayChaduvula commented 2 years ago

I have found that India lora frequency setting are missing in the LoRaBase.h file.

terrillmoore commented 2 years ago

Sorry you're having trouble.

Can you be more specific? The LMIC works well in the India region, MCCI India uses it that way all the time....

Best regards, --Terry

UdayChaduvula commented 2 years ago

Hi,

I want to create a LoRaWAN node and it should be compatible with India lora frequency (866 MHz). I am using the SX1272 module. Where can I enable India Frequency in the code? In the configuration file I found only AU and US and also in the LoRaBase file. Where can I enable LoRa frequency in the code?

On Sat, 2 Jul, 2022, 20:37 Terry Moore, @.***> wrote:

Sorry you're having trouble.

Can you be more specific? The LMIC works well in the India region, MCCI India uses it that way all the time....

Best regards, --Terry

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1172913400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFNJKL5KL4T42ZS2YSLVSBLKRANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

dhineshkumarmcci commented 2 years ago

Hi Uday,

In the configuration file I found only AU and US and also in the LoRaBase file.

Please find the permalink for India band in lorabase.h

UdayChaduvula commented 2 years ago

Hi Mcci-Catena/Arduino-Lmic,

Sorry for the issue, I have used the IBM LMIC framework library for my project, I thought it was the same. Apologies from my side.

I have found one more issue in the in lmic_project_config.h, SX272 module is missing in the file. Please find the paralink below.

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/project_config/lmic_project_config.h#L9

On Mon, Jul 4, 2022 at 2:55 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday,

In the configuration file I found only AU and US and also in the LoRaBase file.

  • Can you please point out to the file and line number?
  • Could be helpful if you can share the permalink (which redirects to particular line / set of lines in a file).

Please find the permalink for India band in lorabase.h

- https://github.com/mcci-catena/arduino-lmic/blob/master/src/lmic/lorabase.h#L377-L420

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1173578366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFLOPHCAB6EUOZDFZK3VSKUX5ANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

UdayChaduvula commented 2 years ago

Hi Mcci-Catena/Arduino-Lmic,

My LoRa board SX1272 MBED Shield is missing in the lmic_hal_boards.h file. Please find the paralink below: https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/arduino_lmic_hal_boards.h#L43

On Mon, Jul 4, 2022 at 4:39 PM Uday Chaduvula @.***> wrote:

Hi Mcci-Catena/Arduino-Lmic,

Sorry for the issue, I have used the IBM LMIC framework library for my project, I thought it was the same. Apologies from my side.

I have found one more issue in the in lmic_project_config.h, SX272 module is missing in the file. Please find the paralink below.

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/project_config/lmic_project_config.h#L9

On Mon, Jul 4, 2022 at 2:55 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday,

In the configuration file I found only AU and US and also in the LoRaBase file.

  • Can you please point out to the file and line number?
  • Could be helpful if you can share the permalink (which redirects to particular line / set of lines in a file).

Please find the permalink for India band in lorabase.h

- https://github.com/mcci-catena/arduino-lmic/blob/master/src/lmic/lorabase.h#L377-L420

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1173578366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFLOPHCAB6EUOZDFZK3VSKUX5ANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

dhineshkumarmcci commented 2 years ago

Hi Mcci-Catena/Arduino-Lmic, Sorry for the issue, I have used the IBM LMIC framework library for my project, I thought it was the same. Apologies from my side. I have found one more issue in the in lmic_project_config.h, SX272 module is missing in the file. Please find the paralink below. https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/project_config/lmic_project_config.h#L9

You can edit line 9 in the file lmic_project_config.h with sx1272 instead of sx1276.

define CFG_sx1272_radio 1

UdayChaduvula commented 2 years ago

Hi Dinesh,

I am awaiting your response.

On Mon, Jul 4, 2022 at 4:46 PM Uday Chaduvula @.***> wrote:

Hi Mcci-Catena/Arduino-Lmic,

My LoRa board SX1272 MBED Shield is missing in the lmic_hal_boards.h file. Please find the paralink below:

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/arduino_lmic_hal_boards.h#L43

On Mon, Jul 4, 2022 at 4:39 PM Uday Chaduvula @.***> wrote:

Hi Mcci-Catena/Arduino-Lmic,

Sorry for the issue, I have used the IBM LMIC framework library for my project, I thought it was the same. Apologies from my side.

I have found one more issue in the in lmic_project_config.h, SX272 module is missing in the file. Please find the paralink below.

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/project_config/lmic_project_config.h#L9

On Mon, Jul 4, 2022 at 2:55 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday,

In the configuration file I found only AU and US and also in the LoRaBase file.

  • Can you please point out to the file and line number?
  • Could be helpful if you can share the permalink (which redirects to particular line / set of lines in a file).

Please find the permalink for India band in lorabase.h

- https://github.com/mcci-catena/arduino-lmic/blob/master/src/lmic/lorabase.h#L377-L420

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1173578366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFLOPHCAB6EUOZDFZK3VSKUX5ANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

dhineshkumarmcci commented 2 years ago

Hi Mcci-Catena/Arduino-Lmic, My LoRa board SX1272 MBED Shield is missing in the lmic_hal_boards.h file. Please find the paralink below: https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/arduino_lmic_hal_boards.h#L43

Please find the README link to add your board manually.

UdayChaduvula commented 2 years ago

Thanks for the update Dhinesh Kumar,

How to generate DEV EUI, APP EUI and APP KEY ? Could you please support me on this ?

On Mon, Jul 4, 2022 at 6:03 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Mcci-Catena/Arduino-Lmic, My LoRa board SX1272 MBED Shield is missing in the lmic_hal_boards.h file. Please find the paralink below: https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/arduino_lmic_hal_boards.h#L43

Please find the README link to add your board manually.

- https://github.com/mcci-catena/arduino-lmic/tree/master#manual-configuration

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1173768130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFJALFKLPH3C3QFAC2DVSLK3LANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

dhineshkumarmcci commented 2 years ago

Hi Uday, you should be able to generate DevEUI, AppEUI and AppKey from your desired network provider.

UdayChaduvula commented 2 years ago

Hi Dhanush,

Greetings of the day!

How can I change the Spreading factor in the code?

On Tue, Jul 5, 2022 at 7:12 PM Uday Chaduvula @.***> wrote:

Hi Dhanush,

I want to send the payload in ABP mode when the device receives the input in serial. How Can I do it? Could you help me in this regard?

I am able to do it in the scheduled timer which is already present in the code. Please find the Paralink below

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/examples/ttn-abp/ttn-abp.ino#L140 https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/examples/ttn-abp/ttn-abp.ino#L140

On Mon, Jul 4, 2022 at 6:49 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday, you should be able to generate DevEUI, AppEUI and AppKey from your desired network provider.

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1173813941, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFI2BCYXQERQ6JFOG7LVSLQGDANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

dhineshkumarmcci commented 2 years ago

Hi Uday, you cal use the below API to change SF.

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/lmic/lmic.c#L2751-L2754

Please find the list of Spread Factor definitions over here

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/lmic/lorabase.h#L409-L420

For example - LMIC_setDrTxpow(DR_SF12, 30);

UdayChaduvula commented 2 years ago

Hi Dinesh,

How can I assign my Own DEV ADDR in the OTAA Code, I don't want to generate it from the LoRaWan Gateway.

On Fri, Jul 15, 2022 at 4:16 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday, you cal use the below API to change SF.

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/lmic/lmic.c#L2751-L2754

Please find the list of Spread Factor definitions over here

https://github.com/mcci-catena/arduino-lmic/blob/8d378ea410887d3fb08ea2c9acce95cc4c047788/src/lmic/lorabase.h#L409-L420

For example - LMIC_setDrTxpow(DR_SF12, 30);

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1185423189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFK4JCJ22EZXZNJECILVUE6RPANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

dhineshkumarmcci commented 2 years ago

Hi Uday, please refer to the API below for more details:

https://github.com/mcci-catena/arduino-lmic/blob/4342770945ee2887c14969cec669861b387947ee/src/lmic/lmic.c#L3004-L3026

Also please do refer to the API description just above the definition.

UdayChaduvula commented 2 years ago

Hi Mcci-Catena/Arduino-Lmic,

Greetings of the day!

How can I mention the Indian region in OTAA code? Or the code automatically identifies itself from the library?

On Mon, Jul 18, 2022 at 3:14 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday, please refer to the API below for more details:

https://github.com/mcci-catena/arduino-lmic/blob/4342770945ee2887c14969cec669861b387947ee/src/lmic/lmic.c#L3004-L3026

Also please do refer to the API description just above the definition.

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1186988946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFO6MLOMOWBMZ2Q77C3VUURQXANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

UdayChaduvula commented 2 years ago

Hi,

Can anyone please respond to the trailing mail ?

On Fri, Sep 23, 2022 at 8:23 PM Uday Chaduvula @.***> wrote:

Hi Mcci-Catena/Arduino-Lmic,

Greetings of the day!

How can I mention the Indian region in OTAA code? Or the code automatically identifies itself from the library?

On Mon, Jul 18, 2022 at 3:14 PM Dhinesh Kumar Pitchai < @.***> wrote:

Hi Uday, please refer to the API below for more details:

https://github.com/mcci-catena/arduino-lmic/blob/4342770945ee2887c14969cec669861b387947ee/src/lmic/lmic.c#L3004-L3026

Also please do refer to the API description just above the definition.

— Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/883#issuecomment-1186988946, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZLEHFO6MLOMOWBMZ2Q77C3VUURQXANCNFSM52O74CKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

-- Thanks with Regards!

Uday Kumar Chaduvula Sr. Engineer - Embedded Antar IoT Pvt. Ltd Visakhapatnam

terrillmoore commented 2 years ago

Please check the instructions in the README.

image