-
Notifications
You must be signed in to change notification settings - Fork 109
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
OTAA example aborts on Mcu.init() call on WiFi LoRa 32 V2 board #91
Comments
I have exactly the same issue. The same behaviour as jcwren describes. I reinstalled everything including the Arduinio IDE. But did not help. I am using the Arduino IDE 2.0. |
Can confirm. Currently using platformio.org as my IDE/environment and get the following output when running with the ESP32 debugger:
line 74 of |
OK, I'm now running the latest version of the library thanks to this post on the platformio forums You need to update your
You then need to edit all of the files in I'm still getting the same error, but at least I know I'm using the latest version of the library... |
OK, it's working here with your changes. You can get around the license server BS by editing Oh, and there's no reason to edit all the region files. Just add Not sure where that comment about changing
|
@jcwren perfect, thank you! Now I just need to get my keys translated from an ArduinoJSON Dict to a |
@jcwren have you got any further with this? I'm still getting a coredump:
This happens regardless of how I define the TTN DevEui/AppEui/AppKey variables, so I'm not too sure what's going on :( |
@proffalken, no issues at all right now, it's working fine both in Class A and Class C modes. My sign-on message is a little different, unless your code is printing the
If it's useful to you, I can probably carve everything not useful out of my app and reduce it down to some demo code like the OTAA.ino (although that's basically what I started from). |
Ok, thanks. My setup is fairly unique in that I'm getting the DevEUI etc from a json-based webservice and then trying to convert it from a JsonArray to the hex values expected by the library, so if yours is working fine then it's probably that conversion that's causing the issue. The Why it's so difficult to convert a JSON array like |
Still no joy with this. My current output is as follows (the Dev/App Eui and key have already been cycled since this output, but they matched the values in the TTN console at the time!)
I've added in some extra debugging so I can check the length of the bytes etc, but it seems to be when I call |
That's a pretty low level function for user code to be calling. I'd need to see the code that you're setting up to make the call, etc. And what you're trying to accomplish with it :) |
That's a fair shout. I've stripped out some of the cruft I've put in for debugging (it fails with the same error though, so that's all good I guess?! :D ) and uploaded both my code and the relevant sections of the LoRaWAN libraries to https://gist.github.com/proffalken/d7ef6f569cbbfaa2374e7aa6f20ae6a9 In essence, I have a webservice that I have written that the ESP32 device calls via WiFi on startup. The web service talks to the TTN API and returns the provisioning data in the following format: {
"dev_eui": "CC50E381ABC41242",
"app_key": "EFE07F2B338DC55D60CA984E408DE5C3",
"app_eui": "CC50E381ABC41242"
} I then convert these JSON Strings into their HEX equivalents such as I think i worded things badly in my last post - I'm calling I'm now at a point where the init() itself works, but the join fails, so I'm happy to split off into another ticket if you'd prefer? |
I'm interested in helping you getting this working, but I don't think this is the appropriate forum for a bunch of back and forth. Drop me an email at [email protected] and we'll see what we can do. My first suggestion would be a reduced test case. Strip out all the WiFi stuff, hardcode your license and EUIs, and let's see if that works. |
Thanks, appreciate it, I'll do that shortly.
Actually, it doesn't. I'm now using the code from the |
This seems to be the same issue as #90. I have a license key and replaced that into the OTAA.ino file. After programming, the ESP32 is boot looping with the following output:
If the sentence from the README.md are relevant to PlatformIO, it is COMPLETELY unclear how it would be installed.
platformio.ini:
src/OTAA.ino:
The text was updated successfully, but these errors were encountered: