wmrsouza opened a new pull request, #20351:
URL: https://github.com/apache/nuttx/pull/20351
## Summary
This PR is a complement to #20155 providing BLE and Wi-Fi support to
ESP32-C2 (ESP8684)
## Impact
Impact on user: No.
Impact on hardware: No.
Impact on documentation: Documentation will be provided by PR #20349.
Impact on compatibility: No.
## Testing
Wi-Fi
### Building
```
make distclean && ./tools/configure.sh -S esp8684-devkitm:wifi && make -j &&
make flash ESPTOOL_PORT=/dev/ttyUSB0 && picocom -b 115200 /dev/ttyUSB0
```
### Running & Results
```
nsh> wapi psk wlan0 mypasswd 3
nsh> wapi essid wlan0 myssid 1
nsh> renew wlan0
nsh> ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 08:3a:8d:48:61:00 at RUNNING mtu 1500
inet addr:192.168.15.4 DRaddr:192.168.15.1 Mask:255.255.255.0
nsh> ping 192.168.15.3
PING 192.168.15.3 56 bytes of data
56 bytes from 192.168.15.3: icmp_seq=0 time=40.0 ms
56 bytes from 192.168.15.3: icmp_seq=1 time=10.0 ms
56 bytes from 192.168.15.3: icmp_seq=2 time=0.0 ms
56 bytes from 192.168.15.3: icmp_seq=3 time=190.0 ms
56 bytes from 192.168.15.3: icmp_seq=4 time=60.0 ms
56 bytes from 192.168.15.3: icmp_seq=5 time=130.0 ms
56 bytes from 192.168.15.3: icmp_seq=6 time=0.0 ms
56 bytes from 192.168.15.3: icmp_seq=7 time=0.0 ms
56 bytes from 192.168.15.3: icmp_seq=8 time=10.0 ms
56 bytes from 192.168.15.3: icmp_seq=9 time=60.0 ms
10 packets transmitted, 10 received, 0% packet loss, time 10110 ms
rtt min/avg/max/mdev = 0.000/50.000/190.000/60.827 ms
```
BLE
### Building
```
make distclean && ./tools/configure.sh -S esp8684-devkitm:ble && make -j &&
make flash ESPTOOL_PORT=/dev/ttyUSB0 && picocom -b 115200 /dev/ttyUSB0
```
### Running & Results
```
nsh> ifconfig
bnep0 Link encap:UNSPEC at DOWN mtu -9
inet addr:0.0.0.0 DRaddr:0.0.0.0 Mask:0.0.0.0
nsh> bt bnep0 info
Device: bnep0
BDAddr: 08:3a:8d:48:61:02
Flags: 0000
Free: 20
ACL: 20
SCO: 0
Max:
ACL: 24
SCO: 0
MTU:
ACL: 70
SCO: 70
Policy: 0
Type: 0
nsh> bt bnep0 scan start
nsh> bt bnep0 scan stop
nsh> bt bnep0 scan get
Scan result:
1. addr: 75:53:35:b8:30:c1 type: 1
rssi: -94
response type: 0
advertiser data: 02 01 1a 0e ff 4c 00 0f 05 90 00 4d 91 eb 10 02
2d 04 02 0a 00
2. addr: 75:53:35:b8:30:c1 type: 1
rssi: -94
response type: 0
advertiser data: 02 01 1a 0e ff 4c 00 0f 05 90 00 4d 91 eb 10 02
2d 04 02 0a 00
3. addr: 75:53:35:b8:30:c1 type: 1
rssi: -91
response type: 0
advertiser data: 02 01 1a 0e ff 4c 00 0f 05 90 00 4d 91 eb 10 02
2d 04 02 0a 00
4. addr: 75:53:35:b8:30:c1 type: 1
rssi: -91
response type: 0
advertiser data: 02 01 1a 0e ff 4c 00 0f 05 90 00 4d 91 eb 10 02
2d 04 02 0a 00
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]