Closed scott1423 closed 2 years ago
Can you perhaps attach screenshots of the steps in your process?
Hi, Thanks for the reply.
Not sure what I am doing wrong :(
I have many projects written in the past using CubeMX, and IDE, not sure where I am going wrong.
Many thanks Scott
I created C:\Work, downloaded the repo as a zip-file, extracted to C:\Work
Then opened the 'Projects from filesystem' dialog:
Which makes me think the correct directory to import from is:
Which imports this project:
STM32CubeIDE is pointing out the project's name is really Seeed-LoRa-E5 even though the directory has '-master' appended. But it did import the project, which builds just fine.
Which version of STM32CubeIDE are you using?
I've updated mine to v1.8.0 but I believe v1.7.0 will work.
Here, I've renamed the folder to remove -master before importing:
and STM32CubeIDE doesn't mention the directory name now:
and this builds as expected:
Hi I cleaned out my work folder, and followed what you had above, and works now. I am also using the same version of IDE as you. I entered my app and network key, but doesnt seam to join, see below log file. Any idea why this is?
Many thanks Scott
APP_VERSION: V1.1.0 MW_LORAWAN_VERSION: V2.3.0 MW_RADIO_VERSION: V1.1.0
0s040:TX on freq 868500000 Hz at DR 0
[2022-02-13 18:52:06.732]# RECV ASCII> 1s527:MAC txDone
[2022-02-13 18:52:11.764]# RECV ASCII> 6s561:RX_1 on freq 868500000 Hz at DR 0
[2022-02-13 18:52:11.971]# RECV ASCII> 6s759:IRQ_RX_TX_TIMEOUT 6s759:MAC rxTimeOut
[2022-02-13 18:52:12.768]# RECV ASCII> 7s561:RX_2 on freq 869525000 Hz at DR 0
[2022-02-13 18:52:12.970]# RECV ASCII> 7s759:IRQ_RX_TX_TIMEOUT 7s759:MAC rxTimeOut
7s765:TX on freq 868100000 Hz at DR 0
[2022-02-13 18:52:14.455]# RECV ASCII> 9s252:MAC txDone
[2022-02-13 18:52:15.251]# RECV ASCII> 10s044:temp= 22
10s044:VDDA= 254
[2022-02-13 18:52:19.501]# RECV ASCII> 14s287:RX_1 on freq 868100000 Hz at DR 0
[2022-02-13 18:52:19.685]# RECV ASCII> 14s485:IRQ_RX_TX_TIMEOUT 14s485:MAC rxTimeOut
What do you see on your server logs for your gateway? Do you see the join requests? I see you're EU868, right?
Also, there was a change between 1.0 and 1.1 that can be really confusing:
I believe you set the Network Key in the firmware to the value of the App Key in the server (ChirpStack in this case)
Hi, Yes, I am on 868MHz. It is a bit confusing, especially as I am new to Lora :)
Looking on the End Device screen I have it set as following . Looks like I might have the IDs wrong, but cant see whare I am going wrong:
Below is my current settings , displayed on terminal screen:
I got it working :) .. As you said its the app key above. Many thanks for your help, much appreciated
Best Regards Scott
Glad I could help! Enjoy.
Glad I could help! Enjoy.
Many thanks again for all your help. Im now getting packets of data to TTN server .. I was wondering if you have managed to be able to set commands within the Lora E5? For eample, how would I set transmition channel, and change the spreading factor. If you have any idea, would you mind passing this on?
Many thanks again
Scott
The STM32WL in the LoRa-E5 is well-supported by ST firmware and documentation, so you'll want to look at the ST site. For example, though the naming of this seems odd, this manual describes the APIs to the LoRaWAN layer in section 4.6 and 4.7:
For example, to set the transmit Data Rate (which determines spreading factor), you'd use this function:
Note that when ADR is enabled, the network server may change DR as it sees fit. Also, LoRaWAN protocol automatically changes channels for Uplinks.
Many thanks for the reply , even though not an issue :) Thats great with the link, cheers. Where do I find ADR to enable it?
Best Regards Scott
Have a look at Table 34 in section 4.8:
Lots of cool functions there.
Generally, though, ADR enable/disable is done at initialization time:
that's in lora_app.c
The default state of ADR is set in CubeMX in the LoRaWAN settings
Many thanks again... Very much appreciated, again. You have been a great help.
Best Regards Scott
You're very welcome, @scott1423
Hi I have been using your project a while, and all working great. I was wondering if you can give a bit of advice? I wish to have 1 device as a server, and other nodes sending lora packets to it. Any idea the best way to go here?
Many thanks again Scott
Hi I have the latest ST Cube MX, IDE etc, and having issues with building the project.
I done the following:
Do I have to load a project in first, before loading (overwriting ) files from this page?
Many Thanks Scott