Closed OriKomemi closed 1 year ago
I try to re-produce the BUG by your provided description, but the Border Router runs normally in my environment. So I want to know the conntection between ESP32 and ESP32C6. The connecttion type can reference: https://github.com/espressif/esp-idf/blob/master/examples/openthread/ot_br/README.md My LOG likes below:
I (0) cpu_start: App cpu up.
I (673) cpu_start: Pro cpu start user code
I (673) cpu_start: cpu freq: 160000000 Hz
I (674) cpu_start: Application information:
I (678) cpu_start: Project name: esp_ot_br
I (683) cpu_start: App version: v5.1-dev-3101-g1195b6cb2b
I (690) cpu_start: Compile time: Feb 1 2023 11:39:15
I (696) cpu_start: ELF file SHA256: 09f74fba4eafd00b...
I (702) cpu_start: ESP-IDF: v5.1-dev-3101-g1195b6cb2b
I (708) cpu_start: Min chip rev: v0.0
I (713) cpu_start: Max chip rev: v3.99
I (718) cpu_start: Chip rev: v3.0
I (723) heap_init: Initializing. RAM available for dynamic allocation:
I (730) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (736) heap_init: At 3FFC2BA0 len 0001D460 (117 KiB): DRAM
I (742) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (749) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (755) heap_init: At 400967BC len 00009844 (38 KiB): IRAM
I (763) spi_flash: detected chip: generic
I (766) spi_flash: flash io: dio
W (770) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (784) app_start: Starting scheduler on CPU0
I (788) app_start: Starting scheduler on CPU1
I (788) main_task: Started on CPU0
I (798) main_task: Calling app_main()
I (808) example_connect: Start example_connect.
W (828) wifi: [pp.c,3473] wifi driver task: 3ffcae20, prio:23, stack:6656, core=0
W (828) wifi: [ieee80211_ioctl.c,2088] wifi firmware version: 4dbcd24
W (828) wifi: [ieee80211_ioctl.c,2089] wifi certification version: v7.0
W (828) wifi: [ieee80211_ioctl.c,2090] config NVS flash: enabled
W (838) wifi: [ieee80211_ioctl.c,2091] config nano formating: disabled
W (848) wifi: [esf_buf.c,423] Init data frame dynamic rx buffer num: 32
W (848) wifi: [esf_buf.c,430] Init management frame dynamic rx buffer num: 32
W (858) wifi: [esf_buf.c,437] Init management short buffer num: 32
W (858) wifi: [esf_buf.c,455] Init dynamic tx buffer num: 32
W (868) wifi: [wdev.c,2332] Init static rx buffer size: 1600
W (878) wifi: [wdev.c,2339] Init static rx buffer num: 10
W (878) wifi: [wdev.c,2340] Init dynamic rx buffer num: 32
I (888) wifi_init: rx ba win: 6
I (888) wifi_init: tcpip mbox: 32
I (888) wifi_init: udp mbox: 6
I (898) wifi_init: tcp mbox: 6
I (898) wifi_init: tcp tx win: 5744
I (908) wifi_init: tcp rx win: 5744
I (908) wifi_init: tcp mss: 1440
I (908) wifi_init: WiFi IRAM OP enabled
I (918) wifi_init: WiFi RX IRAM OP enabled
I (918) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
W (1028) wifi: [hal_mac.c,606] WDEVBBRXHUNG:0xc00000f0, en:1, timer:240(3840 us)
W (1028) wifi: [hal_mac.c,608] WDEVBBTXHUNG:0x800000f0, en:1, timer:240(3840 us)
W (1038) wifi: [hal_mac.c,610] WDEVBBCCAHUNG:0x800000f0, en:1, timer:240(3840 us)
W (1038) wifi: [hal_mac.c,615] WDEVHUNGRECOVER:0xffff0fff, rxHungRecover[en:1, timer:32767 cycles(409 us)], txHungRecover[en:0, timer:4095 cycles(51 us)]
W (1058) wifi: [ieee80211.c,471] mode : sta (34:94:54:b8:35:c0)
W (1058) wifi: [ieee80211_sta.c,3033] enable tsf
I (1068) example_connect: Connecting to esp-office-2.4G...
I (1078) example_connect: Waiting for IP(s)
W (3488) wifi: [ieee80211_ht.c,2089] new:<13,0>, old:<1,0>, ap:<255,255>, sta:<13,0>, prof:1
W (4168) wifi: [ieee80211_sta.c,205] state: init -> auth (b0)
W (4178) wifi: [ieee80211_sta.c,205] state: auth -> assoc (0)
W (4178) wifi: [ieee80211_sta.c,205] state: assoc -> run (10)
W (4198) wifi: [wl_cnx.c,3120] connected with esp-office-2.4G, aid = 3, channel 13, BW20, bssid = 9c:3a:9a:04:18:92
W (4198) wifi: [wl_cnx.c,3130] security: WPA2-PSK, phy: bgn, rssi: -42
W (4208) wifi: [pm.c,3240] pm start, type: 1
W (4228) wifi: [pm.c,479] AP's beacon interval = 102400 us, DTIM period = 1
I (5808) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fe80:0000:0000:0000:3694:54ff:feb8:35c0, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (8718) esp_netif_handlers: example_netif_sta ip: 192.168.201.100, mask: 255.255.252.0, gw: 192.168.200.1
I (8718) esp_netif_handlers: example_netif_sta ip: 192.168.201.100, mask: 255.255.252.0, gw: 192.168.200.1
I (8718) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.201.100
I (8728) example_common: Connected to example_netif_sta
I (8728) example_common: - IPv4 address: 192.168.201.100,
I (8738) example_common: - IPv6 address: fe80:0000:0000:0000:3694:54ff:feb8:35c0, type: ESP_IP6_ADDR_IS_LINKI (8758) main_task: Returned from app_main()
I(8768) OPENTHREAD:[I] Platform------: RCP reset: RESET_POWER_ON
I(9008) OPENTHREAD:[I] Settings------: Read NetworkInfo {rloc:0xe400, extaddr:527e323ca6c73e5a, role:leader, mode:0x0f, version:4, keyseq:0x0, ...
I(9018) OPENTHREAD:[I] Settings------: ... pid:0x19357bc5, mlecntr:0x178e, maccntr:0x1776, mliid:8de0b6d9ab8501f9}
I (9038) OPENTHREAD: OpenThread attached to netif
> I(9058) OPENTHREAD:[N] BorderRouter--: BR ULA prefix: fd36:7c2f:d0f4::/48 (loaded)
I(9068) OPENTHREAD:[N] BorderRouter--: Local on-link prefix: fdde:ad00:beef:cafe::/64
I (9068) esp_ot_br: Already has network, skip configuring OpenThread network.
I (9088) OPENTHREAD: Platform UDP bound to port 49153
I(9088) OPENTHREAD:[N] Mle-----------: Role disabled -> detached
I (9128) OPENTHREAD: Platform UDP bound to port 61631
I (9138) OPENTHREAD: netif up
I (9138) OPENTHREAD: NAT64 ready
> I(10118) OPENTHREAD:[N] Mle-----------: RLOC16 e400 -> fffe
I(10428) OPENTHREAD:[N] Mle-----------: Attach attempt 1, AnyPartition reattaching with Active Dataset
W (12368) wifi: [hal_ampdu.c,45] <ba-add>idx:0 (ifx:0, 9c:3a:9a:04:18:92), tid:0, ssn:0, winSize:64
W (16608) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (16608) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (16608) OPENTHREAD: Dropping unsupported mldv2 record of type 6
I(17028) OPENTHREAD:[N] RouterTable---: Allocate router id 57
I(17038) OPENTHREAD:[N] Mle-----------: RLOC16 fffe -> e400
I(17048) OPENTHREAD:[N] Mle-----------: Role detached -> leader
I(17058) OPENTHREAD:[N] Mle-----------: Leader partition id 0x6182c1c6
I (17078) OPENTHREAD: Platform UDP bound to port 49154
W (17228) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (17248) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17248) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17248) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17628) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17638) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17638) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17648) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (17648) OPENTHREAD: Dropping unsupported mldv2 record of type 2
I (17678) OPENTHREAD: Received PIO
I (17888) OPENTHREAD: Platform UDP bound to port 53535
W (18068) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18078) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18078) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18088) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18238) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18238) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18238) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18258) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18258) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18268) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18268) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18278) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18288) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18298) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18298) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18308) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18308) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18328) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18328) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18338) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18338) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18348) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18358) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18368) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18368) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18378) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18378) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18388) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18398) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18408) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18408) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18418) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18418) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18438) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18728) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18738) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18738) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18748) OPENTHREAD: Dropping unsupported mldv2 record of type 2
W (18748) OPENTHREAD: Dropping unsupported mldv2 record of type 2
I (18808) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fdde:ad00:beef:cafe:3694:54ff:feb8:35c0, type: ESP_IP6_ADDR_IS_UNIQUE_LOCAL
I (20698) OPENTHREAD: Received PIO
I (23718) OPENTHREAD: Received PIO
I (26748) OPENTHREAD: Received PIO
> scanI (29768) OPENTHREAD: Received PIO
| PAN | MAC Address | Ch | dBm | LQI |
+------+------------------+----+-----+-----+
| 77d4 | 6eaa4525a6f591d6 | 14 | -44 | 0 |
| 77d4 | 8edead32ab814d52 | 14 | -43 | 0 |
| 228d | 8122334455667701 | 15 | -50 | 0 |
| 228d | 8122334455667704 | 15 | -52 | 0 |
| 77d4 | 22f557c63a3c0994 | 16 | -45 | 0 |
| 77d4 | 06ddf81d29c9f163 | 16 | -58 | 0 |
| face | 166e0a0000000001 | 17 | -59 | 0 |
| 14ec | 7766554433221101 | 21 | -46 | 0 |
| 14ec | 7766554433221103 | 21 | -41 | 0 |
I (34298) OPENTHREAD: Received PIO
| a122 | e670a279e881f4d6 | 25 | -47 | 0 |
Done
> I (39578) OPENTHREAD: Received PIO
W (46698) OPENTHREAD: Dropping unsupported mldv2 record of type 6
I (120988) OPENTHREAD: Received PIO
I (129548) OPENTHREAD: Received PIO
I (141158) OPENTHREAD: Received PIO
I (154118) OPENTHREAD: Received PIO
W (155178) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (155178) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (155178) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (155188) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (155188) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (155208) OPENTHREAD: Dropping unsupported mldv2 record of type 6
I (157148) OPENTHREAD: Received PIO
I (162848) OPENTHREAD: Multicast listener remove: FF05::2
E (162848) OPENTHREAD: Failed to remove backbone multicast listener
I (162848) OPENTHREAD: Multicast listener add: FF05::2
I (162948) OPENTHREAD: Multicast listener remove: FF05::2
I (162948) OPENTHREAD: Multicast listener add: FF05::2
I (163358) OPENTHREAD: Multicast listener add: FF05::2
I (163738) OPENTHREAD: Received PIO
I (164068) OPENTHREAD: Multicast listener add: FF05::2
I (167248) OPENTHREAD: Multicast listener add: FF05::2
I (167648) OPENTHREAD: Multicast listener add: FF05::2
I (177018) OPENTHREAD: Received PIO
I (181508) OPENTHREAD: Received PIO
> ping fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98
16 bytes from fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98: icmp_seq=1 hlim=255 time=152ms
1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 152/152.0/152 ms.
Done
> ping fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98I (185458) OPENTHREAD: Received PIO
16 bytes from fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98: icmp_seq=2 hlim=255 time=62ms
1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 62/62.0/62 ms.
Done
> ping fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98
16 bytes from fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98: icmp_seq=3 hlim=255 time=61ms
1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 61/61.0/61 ms.
Done
> ping fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98
16 bytes from fdde:ad00:beef:0:c0cb:16ea:2ca0:4e98: icmp_seq=4 hlim=255 time=45ms
1 packets transmitted, 1 packets received. Packet loss = 0.0%. Round-trip min/avg/max = 45/45.0/45 ms.
Done
> W (189868) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (189868) OPENTHREAD: Dropping unsupported mldv2 record of type 6
W (189868) OPENTHREAD: Dropping unsupported mldv2 record of type 6
I (190368) OPENTHREAD: Received PIO
Problem solved after replacing to another esp32c6.
Problem solved after replacing to another esp32c6.
Good job!
Answers checklist.
IDF version.
v5.1-dev-3101-g1195b6cb2b
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
esp32 && esp32c6
Power Supply used.
USB
What is the expected behavior?
Expected the border router to be able to work with a C6 RCP
What is the actual behavior?
After initializing the wifi connection, the border router is constantly trying to send Thread packets, but fails with following errors:
W(29231) OPENTHREAD:[W] Platform------: radio tx timeout W(29231) OPENTHREAD:[W] Platform------: RCP failure detected W(29241) OPENTHREAD:[W] Platform------: Trying to recover (1/1) I(29381) OPENTHREAD:[N] Platform------: RCP recovery is done I(29391) OPENTHREAD:[N] MeshForwarder-: Failed to send IPv6 UDP msg, len:84, chksum:2fe9, ecn:no, to:0xffff, sec:no, error:Abort, prio:net
Steps to reproduce.
Debug Logs.
More Information.
No response