forrestfiller / -arduino-feather-32u4-lora

A quick test of MCCIs Arduino-LMIC fork using Adafruit's Feather 32u4 Lora board (ATmega32u4) in lieu of the larger (256k) Feather M0.
9 stars 0 forks source link

eu868 issue #1

Open avdvyver01 opened 7 years ago

avdvyver01 commented 7 years ago

Hi,

I am using your code with my Feather 32u4 Lora board. I have amended the lmic_project_config.h file as instructed (CFG_eu868 1) and I have added the 3 TTN keys. When I compile, I get the error that: LMIC_selectSubBand' was not declared in this scope. If I look in the library, it does not appear under the eu868 section. Do I just comment it out?

I did try that and then I was able to upload the code but it breaks immediately with:

Starting Packet queued 313468: EV_JOINING 365572: Unknown event

Lastly, is there a way that I can force this code to only transmit on a single channel (0) instead of hopping? My gateway is a single channel - hence the question.

Thanks a lot!

terrillmoore commented 7 years ago

Hi @avdvyver01 -- I bet Forrest is asleep and I happen to be in Germany today, so I'll reply.

Yes, just comment out LMIC_selectSubBand() -- we need a better way to handle this.

"Unknown event" is expected output with this code base -- there is an extra event in Arduino LMIC that was added by IBM, but most of the sample apps never were updated to match. This output can be ignored.

To force transmit on a single channel: you can look at what selectSubBand() does -- it enables and disables channels specifically. The lower-level channel enable/disable calls are available.

If I have two feathers, I usually use the "raw" example app to get started -- it is less complex and just shows that the LMIC radio driver is working and that your hardware is working to send data back and forth.

Good luck! --Terry

avdvyver01 commented 7 years ago

Hi Terry,

Thanks for the feedback and advice. Tried and working. Changing to EU868_F1 = 868100000 and SF7 and it looks like I am receiving all packets no my gateway!

Thanks again and much appreciated!l

terrillmoore commented 7 years ago

Awesome! Good luck!

forrestfiller commented 7 years ago

@terrillmoore impressive response time! Indeed I am just reviewing @avdvyver01 comment now. Thanks for the heavy lifting! 👍

terrillmoore commented 7 years ago

@forrestfiller happy to help.

terrillmoore commented 7 years ago

Opened https://github.com/mcci-catena/arduino-lmic/issues/13 so that we might eventually do something about the LMIC_selectSubBand() problem.

philatdunetive commented 3 years ago

Hello Team,

Just stumbled across this thread with same issue in lmic_project_config.h in Spring 2021: changing to EU from US in the Hello World example triggered the compile error. Did as advised and now seeing stuff at TTN.

Can you explain what the additional edits mean (and where) Changing to EU868_F1 = 868100000 and SF7

thanks!

Phil

terrillmoore commented 3 years ago

Hi @philatdunetive:

Can you explain what the additional edits mean (and where) (Changing to EU868_F1 = 868100000 and SF7)

Those edits are for a single-channel gateway. You should not apply them, as we really don't support single-channel gateways at this point. Changing away from OTAA and fully-functional LMIC is advanced use.