terefere 发表于 2023-9-17 01:30:09

on_wifi_callback() descryption and loop in wrong setup for AP connection

本帖最后由 terefere 于 2023-9-17 01:35 编辑

Firs matter: can you provide some decryption for value who give this routine?

Second: When I set incorrect data for connection to router then I see that wifi module try to force connection in loop- not finish procedure after show error. I don't think so, that is good. It look's like below. Is any solution ?, at now I try kill it by connect with empty SSID string. At line 234 is my code, here I also I try to call reset_ethernet() but I get error for nil value- must be something inside this routine?
start_connect_wifi
START to Connect!
netlinkbuffer.setflags = 22, cmd: 0x8B15
netlinkbuffer.recvflags = 22
netlink: 52 extra bytes in the end of netlink message
ioctl: Success
ssid   = XFF
password = iut
secumode = 6
add_network = 0

WLAN_SEC_WPAPSK_MIX
Line 0: Invalid passphrase length 3 (expected: 8..63) 'iut"'.
Wait for connecting
....netlinkbuffer.setflags = 23, cmd: 0x8B19
netlinkbuffer.recvflags = 23
netlink: 52 extra bytes in the end of netlink message
.netlinkbuffer.setflags = 0, cmd: 0x8B15
netlinkbuffer.recvflags = 0
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.......HEAP newlib: usage=39360120/51766752(76%),addr=0xA6F220
..IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........netlinkbuffer.setflags = 1, cmd: 0x8B15
netlinkbuffer.recvflags = 1
netlink: 52 extra bytes in the end of netlink message
.........netlinkbuffer.setflags = 2, cmd: 0x8B19
netlinkbuffer.recvflags = 2
netlink: 52 extra bytes in the end of netlink message
.netlinkbuffer.setflags = 3, cmd: 0x8B15
netlinkbuffer.recvflags = 3
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........HEAP newlib: usage=39360504/51766752(76%),addr=0xA6F220
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........netlinkbuffer.setflags = 4, cmd: 0x8B15
netlinkbuffer.recvflags = 4
netlink: 52 extra bytes in the end of netlink message
....netlinkbuffer.setflags = 5, cmd: 0x8B19
netlinkbuffer.recvflags = 5
netlink: 52 extra bytes in the end of netlink message
.netlinkbuffer.setflags = 6, cmd: 0x8B15
netlinkbuffer.recvflags = 6
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:3, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
........HEAP newlib: usage=39376472/51766752(76%),addr=0xA6F220
..IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........netlinkbuffer.setflags = 7, cmd: 0x8B15
netlinkbuffer.recvflags = 7
netlink: 52 extra bytes in the end of netlink message
.....get_stat!
.....netlinkbuffer.setflags = 8, cmd: 0x8B19
netlinkbuffer.recvflags = 8
netlink: 52 extra bytes in the end of netlink message
netlinkbuffer.setflags = 9, cmd: 0x8B15
netlinkbuffer.recvflags = 9
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
...UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
.......IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........netlinkbuffer.setflags = 10, cmd: 0x8B15
netlinkbuffer.recvflags = 10
netlink: 52 extra bytes in the end of netlink message
..HEAP newlib: usage=39377048/51766752(76%),addr=0xA6F220
.........netlinkbuffer.setflags = 11, cmd: 0x8B19
netlinkbuffer.recvflags = 11
netlink: 52 extra bytes in the end of netlink message
netlinkbuffer.setflags = 12, cmd: 0x8B15
netlinkbuffer.recvflags = 12
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.....UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
.....IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........netlinkbuffer.setflags = 13, cmd: 0x8B15
netlinkbuffer.recvflags = 13
netlink: 52 extra bytes in the end of netlink message
....netlinkbuffer.setflags = 14, cmd: 0x8B19
netlinkbuffer.recvflags = 14
netlink: 52 extra bytes in the end of netlink message
.netlinkbuffer.setflags = 15, cmd: 0x8B15
netlinkbuffer.recvflags = 15
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
.......HEAP newlib: usage=39376248/51766752(76%),addr=0xA6F220
.IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........netlinkbuffer.setflags = 16, cmd: 0x8B15
netlinkbuffer.recvflags = 16
netlink: 52 extra bytes in the end of netlink message
...........netlinkbuffer.setflags = 17, cmd: 0x8B19
netlinkbuffer.recvflags = 17
netlink: 52 extra bytes in the end of netlink message
netlinkbuffer.setflags = 18, cmd: 0x8B15
netlinkbuffer.recvflags = 18
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
.IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
...UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
......IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.HEAP newlib: usage=39376632/51766752(76%),addr=0xA6F220
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
.........IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
..........netlinkbuffer.setflags = 19, cmd: 0x8B15
netlinkbuffer.recvflags = 19
netlink: 52 extra bytes in the end of netlink message
..
WifiMgr_Connect() L#746: Timeout! Cannot connect to XFF!
WifiMgr_Connect() L#780: Error! Cannot connect to WiFi AP!
WifiCallback connecting fail, please check ssid,password,secmode
deauth_reason_code(15)
Connect finish!
on_wifi_callback(4,15)
********** WiFi Callback **********
State: 4
Reason: 15
********** ************* **********
****************** Reset Ethernet ****************
error [string "------------------------------------
..."]:885: attempt to call a nil value (global 'reset_ethernet')
WiFiMgrProcessThreadFunc() L#1248: Error! nWiFiConnEcode = 010
netlinkbuffer.setflags = 20, cmd: 0x8B19
netlinkbuffer.recvflags = 20
netlink: 52 extra bytes in the end of netlink message
netlinkbuffer.setflags = 21, cmd: 0x8B15
netlinkbuffer.recvflags = 21
netlink: 52 extra bytes in the end of netlink message
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:0, rate_bitmap:0x000ff015
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
   ==> rssi_level:1, rate_bitmap:0x000f0000
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
HEAP newlib: usage=39391640/51766752(76%),addr=0xA6F220
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
IEEE 802.1X RX: version=2 type=3 length=117
RSN: no matching PMKID found
netlinkbuffer.setflags = 22, cmd: 0x8B15
netlinkbuffer.recvflags = 22
netlink: 52 extra bytes in the end of netlink message
netlinkbuffer.setflags = 23, cmd: 0x8B19
netlinkbuffer.recvflags = 23
netlink: 52 extra bytes in the end of netlink message
netlinkbuffer.setflags = 0, cmd: 0x8B15
netlinkbuffer.recvflags = 0




If后要接end 发表于 2023-9-18 16:24:32

本帖最后由 If后要接end 于 2023-9-18 16:27 编辑

1: Do you mean lua for each statement explaination in this routine?

2:call reset_ethernet() get error, you can make sure the firmware version number of the screen. Place a text widget in the screen,the text widget properties to system variables, and download the project to the screen for viewing

terefere 发表于 2023-11-25 04:19:09

1. I mean what interesting for me can say "state and reason"
2. Bit not clear for me, U want to know my screen version?

If后要接end 发表于 2023-11-27 09:40:08

1、When the screen is not connected to the Internet normally, the wifi status displayed in the Debug message may not be correct, depending on the wifi error message, for example at line 230
2、yep,Older firmware versions cannot use reset_ethernet()
页: [1]
查看完整版本: on_wifi_callback() descryption and loop in wrong setup for AP connection