Summary
We tested LoRa wio e-5 using AT factory firmware initially and it worked fine.Now after erasing AT firmware and using STM32CubeIDE we are trying to connect wio-e5 dev kit to the things network LNS with our sensecap m2 gateway which is also connected to TTN and sending data, but our wio-e5 is not connecting to TTN application server. We followed the seeed studio’s github documentation for this. We have set our dev eui, join eui, and appkey in the macros of se-identity.h file in STM32CubeIDE according to our generated TTN application server details. LoRa wio-e5 configuration: STM32 configuration:
Package: Lorawan_endnode_main (with HAL for STM32WLE)
Mode: OTAA
Region: EU868
Low power mode: disabled
TTN end device configuration:
Frequency plan: Europe 863-870 MHz (SF9 for RX2 - recommended)
LoRaWAN version: LoRaWAN Specification 1.0.2
Regional Parameters version: RP001 Regional Parameters 1.0.2 revision B
We didn’t modify anything in the se-identity.h other than the above mentioned EUI id’s.
Logs
Wio e-5 is not joining the TTN network even after correctly following all the steps mentioned in the seeed studio’s github documentation
I didn’t use cubemx to configure the device but directly changed the macros in the se-identity.h and lora_app.h files. I got the package from the official seeed studio lorawan node repository.
I’ve tried every possible combination of configurations for the end device which includes having 1.0.3 LoRa version, nothing worked. And I can’t see anything in the gateway console too related to the end device’s join request. They are kept apart just less than 1 metre. I mean it did work with factory AT when they were kept the same distance apart.
Hi, after you said I had tried connecting it at more than 10m distance with a wall in between, but it still doesn’t join the network, and I also can’t see any join requests showing up in the gateway live data in TTN.
Is the device transmitting on the right frequencies? Looking at the join attempts it is using EU868. Is your gateway set to EU868 as well? (Setup at the gateway, not the TTN console)
As well as the wisdom of @kersing, I see you’ve linked to a branch of the Seeed code rather than main.
They provide the AT command project as well, so you can, in theory, return the Wio-E5 to it’s original state, log the serial output and share it here so we can do a compare & contrast.
From the provided log It looks like that the end-device is not properly transmitting.
The end-device stack indicates that a Tx timeout occurred.
Such timeout is triggered if the radio TxDone interrupt does not fire within specified time.
Most of time such issue is due to improper definition of the GPIOs controlling the radio device.
I do, used it all day yesterday, used it for three years since release - its still based on ST’s variant of LoRaMac-node so you can’t just hack on it like it was Arduino so no escaping the wonders of learning CubeIDE / ST HAL etc
Sorry for the delay, even after trying with the main repo files we got the same results. Anyways we got it successfully working with LoRa E5 AT command library in arduino ide using ESP32 for our application.