tmedicci commented on PR #15962: URL: https://github.com/apache/nuttx/pull/15962#issuecomment-2710484773
Hi @Laczen , thanks for submitting it! I have no comments regarding the code. The changes are welcomed! But I've found two possible bugs: 1. If I start the _client_ device before the _server_, the _server_ device halts: On _client_ device: ``` nsh> ifup wpan0 ifup wpan0...OK nsh> udpclient fe80::ff:fe00:a ``` On _server_ device: ``` nsh> ifconfig wpan0 inet6 fe80::ff:fe00:a nsh> ifup wpan0 ifup wpan0...OK nsh> nsh> (device is halted here, not accepting further commands) ``` 2. Wi-Fi coexistence: as soon as I connect to an AP, the server stops receiving the UDP packets: On _server_ device: ``` nsh> ifconfig wpan0 inet6 fe80::ff:fe00:a nsh> ifup wpan0 ifup wpan0...OK nsh> udpserver & udpserver [6:100] ``` On _client_ device: ``` nsh> ifup wpan0 ifup wpan0...OK nsh> udpclient fe80::ff:fe00:a client: 0. Sending 96 bytes client: 0. Sent 96 bytes ``` Again, on _server_ device, the device stops receiving the UDP packets after connected to the AP. The `udpserver` is still running. Please note that I rearranged the log output to improve readability: ``` nsh> server: 0. Receiving up 1024 bytes server: 0. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 1. Receiving up 1024 bytes server: 1. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 2. Receiving up 1024 bytes server: 2. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 3. Receiving up 1024 bytes server: 3. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 4. Receiving up 1024 bytes server: 4. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 5. Receiving up 1024 bytes server: 5. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 6. Receiving up 1024 bytes server: 6. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 7. Receiving up 1024 bytes server: 7. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 8. Receiving up 1024 bytes server: 8. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 9. Receiving up 1024 bytes server: 9. Received 96 bytes from fe80:0000:0000:0000:0000:00ff:fe00:feff port 5472 server: 10. Receiving up 1024 bytes nsh> wapi psk wlan0 mypasswd 3 nsh> wapi essid wlan0 myssid 1 nsh> renew wlan0 nsh> ps PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND 0 0 0 FIFO Kthread - Ready 0000000000000000 0003056 Idle_Task 1 0 100 RR Kthread - Waiting Semaphore 0000000000000000 0004024 lpwork 0x3ffc0db8 0x3ffc0de8 2 2 100 RR Task - Running 0000000000000000 0003024 nsh_main 3 0 223 RR Kthread - Waiting Semaphore 0000000000000000 0001992 rt_timer 4 0 253 RR Kthread - Waiting MQ empty 0000000000000000 0006624 wifi 5 5 100 RR Task - Waiting Semaphore 0000000000000000 0004056 telnetd 6 6 100 RR Task - Waiting Semaphore 0000000000000000 0004040 udpserver ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org