Sorry, two option in the same demo code printf(" [-r/-t/-x/-s] select app mode (default=r)\n"); printf(" r - RX\n"); printf(" t - TX\n");
Enviado do meu iPhone Em 28 de fev. de 2022, à(s) 22:43, 王国柱 <wgz_z...@163.com> escreveu: Are you talking about here, with two devices, one set to APP_MODE_RX and the other set to APP_MODE_TX? apps\examples\sx127x_demo\sx127x_demo.c int main(int argc, FAR char *argv[]) { #ifdef CONFIG_LPWAN_SX127X_RXSUPPORT struct sx127x_read_hdr_s data; #endif struct sx127x_chanscan_ioc_s chanscan; struct args_s *args; struct timespec tstart; struct timespec tnow; uint8_t buffer[TX_BUFFER_MAX]; uint8_t opmode; uint8_t i; int ret; int fd; /* Initialize buffer with data */ for (i = 0; i app_mode = APP_MODE_RX; args->modulation = APP_MODULATION_LORA; args->frequency = CONFIG_EXAMPLES_SX127X_RFFREQ; args->power = CONFIG_EXAMPLES_SX127X_TXPOWER; args->interval = CONFIG_EXAMPLES_SX127X_INTERVAL; args->time = CONFIG_EXAMPLES_SX127X_TIME; args->datalen = CONFIG_EXAMPLES_SX127X_TXDATA; On 3/1/2022 00:00,MIGUEL ALEXANDRE WISINTAINER<tcpipc...@hotmail.com><mailto:tcpipc...@hotmail.com> wrote: Looks that there are two app examples, one sender and other receiver Enviado do meu iPhone Em 28 de fev. de 2022, à(s) 12:00, 经天纬地 <wgz_z...@163.com<mailto:wgz_z...@163.com>> escreveu: Then I use two same STM32 boards to test Lora sx127x, one for receiving and one for sending. How should I set it, in nuttx code or menuconfig? ---- 回复的原邮件 ---- 发件人 MIGUEL ALEXANDRE WISINTAINER<tcpipc...@hotmail.com><mailto:tcpipc...@hotmail.com> 日期 2022年02月28日 21:55 收件人 经天纬地<wgz_z...@163.com><mailto:wgz_z...@163.com> 抄送至 主题 Re: nuttx lora sx127x device use for help Well, I tested the receive with other module transmitting lora, but not running NUTTX Enviado do meu iPhone Em 28 de fev. de 2022, à(s) 09:28, 经天纬地 <wgz_z...@163.com<mailto:wgz_z...@163.com>> escreveu: sx127x has been executed successfully。The operation information is as follows: nsh> sx127x Start sx127x_demo LORA modulation Set frequency to 930000000<tel:930000000> Set power to 14 Waiting for data But keep waiting for data,There should be more than two devices for communication here. How to set it up?