TheCranston commented on issue #8839:
URL: https://github.com/apache/nuttx/issues/8839#issuecomment-1479589845

   @anchao Thank you for the code changes.  I've applied them locally and it 
appears to have helped
   ```
   ABCDF
   [    1.190000] [ 2] sdio_io_rw_extended: error 1
   telnetd [5:100]
   
   NuttShell (NSH) NuttX-12.0.0
   nsh> iperf -c 192.168.253.166
          IP: 192.168.253.17
   
    mode=tcp-client sip=192.168.253.17:5001,dip=192.168.253.166:5001, 
interval=3, time=30
   
              Interval         Transfer         Bandwidth
   
   *float*-*float* sec     229376 Bytes *float* Mbits/sec
   *float*-*float* sec     212992 Bytes *float* Mbits/sec
   *float*-*float* sec     229376 Bytes *float* Mbits/sec
   *float*-*float* sec     245760 Bytes *float* Mbits/sec
   *float*-*float* sec     229376 Bytes *float* Mbits/sec
   *float*-*float* sec     229376 Bytes *float* Mbits/sec
   *float*-*float* sec     245760 Bytes *float* Mbits/sec
   *float*-*float* sec     229376 Bytes *float* Mbits/sec
   *float*-*float* sec     229376 Bytes *float* Mbits/sec
   *float*-*float* sec     245760 Bytes *float* Mbits/sec
   *float*-*float* sec    2326528 Bytes *float* Mbits/sec
   iperf exit
   nsh> 
   ```
   
   The iperf server reported
   ```
   $ iperf -s
   ------------------------------------------------------------
   Server listening on TCP port 5001
   TCP window size:  128 KByte (default)
   ------------------------------------------------------------
   [  1] local 192.168.253.166 port 5001 connected with 192.168.253.17 port 
4823 (icwnd/mss/irtt=12/1250/14035)
   [ ID] Interval       Transfer     Bandwidth
   [  1] 0.0000-30.5803 sec  2.23 MBytes   613 Kbits/sec
   ```
   613Kb/s is not all that speedy, but at least it ran error free.  And I'll 
note, I'm not fully sure what a good metric is for this chip.
   Thanks again, let me know what other debugs/tests I can perform.
   
   That sdio_io_rw_extended error upon boot persists.  I also discovered that 
the wlan0 interface appears to "go to sleep" at some point of inactivity and 
does not wake back up:
   
   ```
   ABCDF
   [    1.190000] [ 2] sdio_io_rw_extended: error 1
   telnetd [5:100]
   
   NuttShell (NSH) NuttX-12.0.0
   nsh> wapi show wlan0
   wlan0 Configuration:
          IP: 192.168.253.17
     NetMask: 255.255.255.0
   Frequency: *float*
        Flag: WAPI_FREQ_AUTO
     Channel: 1
   Frequency: *float*
       ESSID: DaNet
        Flag: WAPI_ESSID_ON
        Mode: WAPI_MODE_MANAGED
          AP: 24:81:3b:b6:10:e0
     BitRate: 65000
        Flag: WAPI_BITRATE_FIXED
     TxPower: 31
        Flag: WAPI_TXPOWER_DBM
       Sense: -58
     Country: US
   [   12.970000] [ 6] bcmf_ioctl: ERROR: Unrecognized IOCTL command: 8b3a
   [   12.970000] [ 6] wapi_get_pta_prio: ioctl(SIOCGIWPTAPRIO): 25
   nsh> ping 10.255.254.151
   PING 10.255.254.151 56 bytes of data
   No response from 10.255.254.151: icmp_seq=0 time=1000 ms
   56 bytes from 10.255.254.151: icmp_seq=1 time=40.0 ms
   56 bytes from 10.255.254.151: icmp_seq=2 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=3 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=4 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=5 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=6 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=7 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=8 time=30.0 ms
   56 bytes from 10.255.254.151: icmp_seq=9 time=30.0 ms
   10 packets transmitted, 9 received, 10% packet loss, time 10100 ms
   rtt min/avg/max/mdev = 30.000/31.111/40.000/3.143 ms
   nsh> wapi show wlan0
   wlan0 Configuration:
          IP: 192.168.253.17
     NetMask: 255.255.255.0
   Frequency: *float*
        Flag: WAPI_FREQ_AUTO
     Channel: 1
   Frequency: *float*
       ESSID: DaNet
        Flag: WAPI_ESSID_ON
        Mode: WAPI_MODE_MANAGED
          AP: 00:00:00:00:00:00
     BitRate: 65000
        Flag: WAPI_BITRATE_FIXED
     TxPower: 31
        Flag: WAPI_TXPOWER_DBM
       Sense: 0
     Country: US
   [  674.680000] [14] bcmf_ioctl: ERROR: Unrecognized IOCTL command: 8b3a
   [  674.680000] [14] wapi_get_pta_prio: ioctl(SIOCGIWPTAPRIO): 25
   nsh> ping 10.255.254.151
   PING 10.255.254.151 56 bytes of data
   No response from 10.255.254.151: icmp_seq=0 time=1000 ms
   No response from 10.255.254.151: icmp_seq=1 time=1000 ms
   No response from 10.255.254.151: icmp_seq=2 time=1000 ms
   No response from 10.255.254.151: icmp_seq=3 time=1000 ms
   No response from 10.255.254.151: icmp_seq=4 time=1000 ms
   No response from 10.255.254.151: icmp_seq=5 time=1000 ms
   No response from 10.255.254.151: icmp_seq=6 time=1000 ms
   No response from 10.255.254.151: icmp_seq=7 time=1000 ms
   No response from 10.255.254.151: icmp_seq=8 time=1000 ms
   No response from 10.255.254.151: icmp_seq=9 time=1000 ms
   10 packets transmitted, 0 received, 100% packet loss, time 10100 ms
   nsh> 
   ```
   The two pings were separated by ~10mins of idle time.  Not sure what's up 
there, but it's been consistently loosing network ability after a period of 
time.  wapi shows that the "SENSE" value goes from -58 to 0.  


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

Reply via email to