cancel
Showing results for 
Search instead for 
Did you mean: 

How to send a LoRa hex value with nucleo-wl55jc1 to chirpstack via a gateway?

Tonikiller10000
Associate

So I have to send some data from a sensor to the LoRa gateaway for my job. The project is more complex, and a designated PCB will be created with an stm32wl55 ic to send lora and another stm ic to process data from some coils. So I need to be able to send any kind of data from the  nucleo-wl55jc1 development board to the gateaway board.

I followed the slide tutorial after I found this link: https://forum.digikey.com/t/add-stm32wl55-nucleo-sensor-board-to-private-lorawan-network-and-machinechat-jedi-pro-iot-platform/22130 who dirrected me to this slide:

https://academy.st.com/s/learning-plan-detail-standard?ltui__urlRecordId=a6g3W000000k9iOQAQ&ltui__urlRedirect=learning-plan-detail-standard&tabset-7a350=2
in Matherials/ STM32WL Workshop Slide Deck Rev2.pdf

After I successfully joined the server, I notticed a problem with the DevNonce value ,witch is`t yet solved after 1 week of trying, that when I reset the board, the value starts from 0 or 1 again and the server report that the value has been already used.
My next problem is that I don`t understand how to send data via LoRa. The slides show how to use the specific sensors shield, with the specific library and specific server. I need a way to transmit a simple hex value or some text over lora or another way of doing it would be to send/recive lora text/values dirrectly from an UART port, and to process the sended/recived messages on the other STM(connected to the coils) to be processed.
Can you please tell me what LmHandler, hall or other functions to use and where to put them?

Please tell me exactly where to put my code because I can`t really understand the code flow in all this.... I have the main.c, the lora_app.c and the app_lorawan.c and I don`t know where I am spuposed to insert my code, and what functions to use.

[I found this link for the ping-pong example, but that work between 2 simple endnode devices, I need to talk with an enddevice and a gateaway : https://forum.digikey.com/t/using-the-low-level-sub-ghz-radio-driver-for-the-stm32wl-series/18253]

 

1 REPLY 1
STTwo-32
ST Employee

Hello @Tonikiller10000 

I've given you a playlist that will give you an example on how to send data to a LoRaWAN network, you can study the example and understand how it works. Then configure your own one. If you want some explanations and details, you may take a look at this playlist, it is really helpful.

Best Regards.

STTwo-32

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.