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
636 stars 207 forks source link

How to configure abp/otaa for IN865 band #491

Closed asprakash closed 4 years ago

asprakash commented 4 years ago

I am using IN865 band in India and setup Node/gateway. I am not clear about the configurations we need to modify for IN865 band on the existing otaa/abp sample codes. Any kind of inputs on this IN 865 band configuration is appreciated.

TIA.

terrillmoore commented 4 years ago

Vel and Dhinesh are using this package in India in our Chennai office. We've tested with The Things Network and Actility (as well as Tata, I believe). We'll need to know:

If you're testing with TTN using an MCCI BSP, it's really easy -- just select IN865 in the Arduino UI. It gets less and less easy as you get further from that, so that's a good place to start if you can; but you basically define CFG_in865 and everything else will adapt.

asprakash commented 4 years ago

Hi. Thanks for your input.

dhineshkumarmcci commented 4 years ago

Hi Prakash, We suggest you to use our example sketch ttn-otaa.ino for your testing. You can configure to IN866 by enabling #define CFG_in866 1 and on commenting #define CFG_us915 1 in lmic_project_config.h. And this configuration should be helpful.

Comment to be removed: https://github.com/mcci-catena/arduino-lmic/blob/e961979706200243bbe772d33aa84f119e0fc4e6/project_config/lmic_project_config.h#L8 To be commented: https://github.com/mcci-catena/arduino-lmic/blob/e961979706200243bbe772d33aa84f119e0fc4e6/project_config/lmic_project_config.h#L3 Let us know how it helps.

asprakash commented 4 years ago

Hi Dinesh, Thanks for your input. I will try it out and get back to you with my feedback.

TIA.

On Wed, Nov 20, 2019 at 1:55 PM Dhinesh Kumar Pitchai < notifications@github.com> wrote:

Hi Prakash, We suggest you to use our example sketch ttn-otaa.ino https://github.com/mcci-catena/arduino-lmic/blob/master/examples/ttn-otaa/ttn-otaa.ino for your testing. You can configure to IN866 by enabling #define CFG_in866 1 and on commenting #define CFG_us915 1 in lmic_project_config.h https://github.com/mcci-catena/arduino-lmic/blob/master/project_config/lmic_project_config.h. And this configuration should be helpful. Let us know how it helps.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/491?email_source=notifications&email_token=AAHQI7JM6YMEIOKTCYXZXKDQUTX67A5CNFSM4JPEL562YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEERENQI#issuecomment-555894465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHQI7LJCOLD6NEAV7OW4A3QUTX67ANCNFSM4JPEL56Q .

terrillmoore commented 4 years ago

Hi @asprakash -- btw, I strongly recommend against the use of ABP for most projects. Without going into the details, LoRaWAN is really engineered (in my opinion) for OTAA; it works much better. I think you're on the right path to try the OTAA sketch.

asprakash commented 4 years ago

I tried OTAA as per your instructions. I received the log on Arduino. Its trying to join with the server and I can able see the join request on the Chirpstack lorawan server Not sure whether there is a problem on ardunio sketch or server side. Also attached my program. PFA.

Arduino log : Starting Packet queued 195: EV_JOINING 118934: EV_TXSTART 501544: Unknown event: 20 769518: EV_TXSTART 1152194: Unknown event: 20 1611562: EV_TXSTART ... TIA.

On Wed, Nov 20, 2019 at 7:04 PM Terry Moore notifications@github.com wrote:

Hi @asprakash https://github.com/asprakash -- btw, I strongly recommend against the use of ABP for most projects. Without going into the details, LoRaWAN is really engineered (in my opinion) for OTAA; it works much better. I think you're on the right path to try the OTAA sketch.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/491?email_source=notifications&email_token=AAHQI7PREL3EEELX4INJMQLQUU4H5A5CNFSM4JPEL562YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEER7RUY#issuecomment-556005587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHQI7KHQITKKN7ILZ3B5ELQUU4H5ANCNFSM4JPEL56Q .

dhineshkumarmcci commented 4 years ago

Hi Prakash, We like to know the BSP used at your end. So that we can try to reproduce the issue and assist you better.

We like to let you know, Github comments do not support any attachments. Please let us know about the changes made by you in the sketch.

We also suggest you to check the wiring of Adafruit Feather M0 board. Please refer below sections of Adafruit Feather M0 page:

asprakash commented 4 years ago

Hi Dinesh, Thanks for your inputs.

TIA.

On Thu, Nov 21, 2019 at 4:55 PM Dhinesh Kumar Pitchai < notifications@github.com> wrote:

Hi Prakash, We like to know the BSP used at your end. So that we can try to reproduce the issue and assist you better.

We like to let you know, Github comments do not support any attachments. Please let us know about the changes made by you in the sketch.

We also suggest you to check the wiring of Adafruit Feather M0 board. Please refer below sections of Adafruit Feather M0 page:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mcci-catena/arduino-lmic/issues/491?email_source=notifications&email_token=AAHQI7PLNKZW3GGGFHI5T4DQUZV33A5CNFSM4JPEL562YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEZ4Y4I#issuecomment-557042801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHQI7MIPVJJZBDP7SKWG5TQUZV33ANCNFSM4JPEL56Q .