-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get much errors durring compiling in plattform io #218
Comments
Here is the repo, what i opened for this project: |
Well, I'm afraid I cannot provide this kind of support! Please remove your src/LoraMessage.h. This hides a file with the same name provided by the library LoraSerialization. The correct board definition is provided by some magic from Then change
The first thing was that the SPI library was missing - it's built in with the Arduino IDE, but here it has to be provided explicitly. Then we have some LMIC specific stuff - parts of it more or less easy to understand (defines for the radio module and the LoRaWAN region), other parts of it... not so obvious (proudly copied from here: https://github.com/lnlp/LMIC-node/blob/main/platformio.ini). Finally we have two warnings which have to be fixed:
Good luck! |
BTW: You can safely ignore this warning: |
One more question: How can I connect to the follow gateway id (its only 500m left from my home): Gateway ID: oi-lej-gw01 And I have much authenification id's on ttn. Which one i have to use for appeui in the abp mode? deveui[] = { 0x3D, 0xD4, 0x05, 0xD0, 0x7E, 0xD5, 0xB3, 0x70 }; LITTLE-ENDIAN appeui[] = NwkSKey ??? |
Hi Martin, I don't know if you can restrict the connection to a specific gateway. AFAIK, if a node is received by multiple gateways the network handles it in the proper way (e.g. avoiding transmission of duplicate payload messages) Regarding the IDs, have a look at https://www.thethingsindustries.com/docs/reference/glossary/ or in the TTN console, select your device, go to the tab "General settings" and hover over the help in the sections "Network layer" and "Application layer". The "S" in some of the IDs stands for "secret" - you should not expose those to the rest of the world... Normally (unless to have hardware/software restrictions which prevent this, which is not the case with ESP32 and LMIC-based SW)), you should use OTAA instead of APB. You can find an explanation why on the excellent TTN website as well. Cheers |
BTW: You can at least use LoRaWAN specification 1.0.3. The regional parameters are selected automatically in this case. Not sure if a later version would also work... |
Okay, thank you so much. It works! I coulded connect with the gateway oi-lej-gw01. 13:42:52 Forward join-accept message Is the example based on abp mode, or? When i like to try the otaa mode, i have to use this example, maybe? Thanks so much! |
The ESP32 example uses. OTAA. |
I try to make the sketch work but I got an error. I use ESP32 DOIT V1 dev board and HopeRF RFM96 868mhz Radio module. I made those changes mentioned above I could compile successfully but esp32 restarts itself continously. My repo : https://github.com/kadirozdinc/esp32-LorawanLMIC Error in Serial Console :
|
Hello :)
Iam martin from germany and i try to connect my ttgo v21 boards with the the things network. Unfortunately I get a lot of errors in platform io so I don't know how to start. :(
Here are my steps so far:
MCCI Arduino Development Kit ADK 0.2.2
MCCI LoRaWAN LMIC library 4.1.1
MCCI Arduino LoRaWAN Library 0.9.2
LoRa_Serialization 3.2.1
Here a screenshot from the errors:
Here a screenshot from the secrets.h and loramessage.h:
Can you give me a small support via discord?
The text was updated successfully, but these errors were encountered: