Hi,Now the receiving section has been waiting for data, entering the interrupt, 
GPIO_SX127X_DIO0 is configured with PC1, how can I debug it now?




#defineGPIO_SX127X_DIO0    
(GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTC|GPIO_PIN1)


sx127x_write: buflen=5
sx127x_opmode_set: opmode_set 2->2
Sesx127x_lora_isr0_process: ISR0: IRQ = 0x08
sx127x_lora_isr0_process: WARNING: Interrupt not processed, opmode=2
nsx127x_isr0_process: Failed to process ISR0 -22
d sx127x_opmode_set: opmode_set 2->4
5 bytes
sx127x_lora_isr0_process: ISR0: IRQ = 0x08
sx127x_opmode_set: opmode_set 4->2
wait 5 sec ...
On 3/4/2022 01:14,Alan Carvalho de Assis<acas...@gmail.com> wrote:
Yes, that is correct.

Which pin did you use to receive interrupt (GPIO_SX127X_DIO0) ?

Try to monitor this pin to see it changes status when other device
transmit. Also you can double check if the other device is
transmitting using a RTL-SDR device.

BR,

Alan

On 3/3/22, Prelude <wgz_z...@163.com> wrote:
When I use it, one device sends a command using 'sx127x -t', and the other
receives a command using 'sx127x -r'.
Look at the apps/examples/sx127x_demo/sx127x_demo.c,Is this OK?





---- 回复的原邮件 ----
| 发件人 | 王国柱<wgz_z...@163.com> |
| 日期 | 2022年03月03日 12:17 |
| 收件人 | acas...@gmail.com<acas...@gmail.com> |
| 抄送至 | dev@nuttx.apache.org<dev@nuttx.apache.org> |
| 主题 | Re: nuttx lora sx127x device use for help |
I tested the two devices with an oscilloscope and both have signals, but
there is no communication between the two devices.
One is always sending data, and the other is waiting to receive data. Does
the communication between the two devices need to be networked first?


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
........


Reply via email to