If you configure created the initialization file, like:

boards/arm/stm32/stm32f4discovery/src/stm32_sx127x.c

And added the SPI chip to control your device, see CONFIG_LPWAN_SX127X at:

see boards/arm/stm32/stm32f4discovery/src/stm32_spi.c

Then the communication should work.

Do you have a logic analyzer to see if there is communication over SPI line?

BR,

Alan

On 3/2/22, Prelude <wgz_z...@163.com> wrote:
> That's what it used to be, but I used two boards to execute sx127x -r on one
> of the boards and sx127x -t on the other, expecting communication between
> the two boards, but it didn't work as expected . Do you need any other
> configuration?
> the first board:
> nsh> sx127x -t
> Start sx127x_demo
> LORA modulation
> Set frequency to 930000000
> Set power to 14
>
> Send 5 bytes
>
> the sencond boad:
> nsh> sx127x -r
> Start sx127x_demo
> LORA modulation
> Set frequency to 930000000
> Set power to 14
> Waiting for data
>
>
> It looks like it's stuck, and the message sent is not received.
>
>
> Is there something wrong with my configuration? Can you help me have a look?
> I've been doing it for a long time and haven't done it yet.
>

Reply via email to