广州大彩串口屏论坛_大彩开发者交流论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4194|回复: 3

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

[复制链接]

20

主题

53

帖子

268

积分

中级会员

Rank: 3Rank: 3

积分
268
发表于 2023-9-17 01:30:09 | 显示全部楼层 |阅读模式
本帖最后由 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?
  1. start_connect_wifi
  2. [WIFIMGR] START to Connect!
  3. netlinkbuffer.setflags = 22, cmd: 0x8B15
  4. netlinkbuffer.recvflags = 22
  5. netlink: 52 extra bytes in the end of netlink message
  6. ioctl[SIOCSIWAP]: Success
  7. [WIFIMGR] ssid     = XFF
  8. [WIFIMGR] password = iut
  9. [WIFIMGR] secumode = 6
  10. add_network = 0

  11. WLAN_SEC_WPAPSK_MIX
  12. Line 0: Invalid passphrase length 3 (expected: 8..63) 'iut"'.
  13. [WIFIMGR] Wait for connecting
  14. ....netlinkbuffer.setflags = 23, cmd: 0x8B19
  15. netlinkbuffer.recvflags = 23
  16. netlink: 52 extra bytes in the end of netlink message
  17. .netlinkbuffer.setflags = 0, cmd: 0x8B15
  18. netlinkbuffer.recvflags = 0
  19. netlink: 52 extra bytes in the end of netlink message
  20. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  21.      ==> rssi_level:0, rate_bitmap:0x000ff015
  22. IEEE 802.1X RX: version=2 type=3 length=117
  23. RSN: no matching PMKID found
  24. ..........IEEE 802.1X RX: version=2 type=3 length=117
  25. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  26.      ==> rssi_level:1, rate_bitmap:0x000f0000
  27. RSN: no matching PMKID found
  28. ..........IEEE 802.1X RX: version=2 type=3 length=117
  29. RSN: no matching PMKID found
  30. ..........IEEE 802.1X RX: version=2 type=3 length=117
  31. RSN: no matching PMKID found
  32. .......HEAP newlib: usage=39360120/51766752(76%),addr=0xA6F220
  33. ..IEEE 802.1X RX: version=2 type=3 length=117
  34. RSN: no matching PMKID found
  35. ..........IEEE 802.1X RX: version=2 type=3 length=117
  36. RSN: no matching PMKID found
  37. .........IEEE 802.1X RX: version=2 type=3 length=117
  38. RSN: no matching PMKID found
  39. ..........IEEE 802.1X RX: version=2 type=3 length=117
  40. RSN: no matching PMKID found
  41. ..........netlinkbuffer.setflags = 1, cmd: 0x8B15
  42. netlinkbuffer.recvflags = 1
  43. netlink: 52 extra bytes in the end of netlink message
  44. .........netlinkbuffer.setflags = 2, cmd: 0x8B19
  45. netlinkbuffer.recvflags = 2
  46. netlink: 52 extra bytes in the end of netlink message
  47. .netlinkbuffer.setflags = 3, cmd: 0x8B15
  48. netlinkbuffer.recvflags = 3
  49. netlink: 52 extra bytes in the end of netlink message
  50. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  51.      ==> rssi_level:0, rate_bitmap:0x000ff015
  52. IEEE 802.1X RX: version=2 type=3 length=117
  53. RSN: no matching PMKID found
  54. ..UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  55.      ==> rssi_level:1, rate_bitmap:0x000f0000
  56. ........IEEE 802.1X RX: version=2 type=3 length=117
  57. RSN: no matching PMKID found
  58. .........IEEE 802.1X RX: version=2 type=3 length=117
  59. RSN: no matching PMKID found
  60. ..........IEEE 802.1X RX: version=2 type=3 length=117
  61. RSN: no matching PMKID found
  62. ..........IEEE 802.1X RX: version=2 type=3 length=117
  63. RSN: no matching PMKID found
  64. .........HEAP newlib: usage=39360504/51766752(76%),addr=0xA6F220
  65. IEEE 802.1X RX: version=2 type=3 length=117
  66. RSN: no matching PMKID found
  67. ..........IEEE 802.1X RX: version=2 type=3 length=117
  68. RSN: no matching PMKID found
  69. ..........IEEE 802.1X RX: version=2 type=3 length=117
  70. RSN: no matching PMKID found
  71. .........netlinkbuffer.setflags = 4, cmd: 0x8B15
  72. netlinkbuffer.recvflags = 4
  73. netlink: 52 extra bytes in the end of netlink message
  74. ....netlinkbuffer.setflags = 5, cmd: 0x8B19
  75. netlinkbuffer.recvflags = 5
  76. netlink: 52 extra bytes in the end of netlink message
  77. .netlinkbuffer.setflags = 6, cmd: 0x8B15
  78. netlinkbuffer.recvflags = 6
  79. netlink: 52 extra bytes in the end of netlink message
  80. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  81.      ==> rssi_level:0, rate_bitmap:0x000ff015
  82. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  83.      ==> rssi_level:3, rate_bitmap:0x000ff015
  84. IEEE 802.1X RX: version=2 type=3 length=117
  85. RSN: no matching PMKID found
  86. ..........IEEE 802.1X RX: version=2 type=3 length=117
  87. RSN: no matching PMKID found
  88. ..........IEEE 802.1X RX: version=2 type=3 length=117
  89. RSN: no matching PMKID found
  90. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  91.      ==> rssi_level:1, rate_bitmap:0x000f0000
  92. .........IEEE 802.1X RX: version=2 type=3 length=117
  93. RSN: no matching PMKID found
  94. ..........IEEE 802.1X RX: version=2 type=3 length=117
  95. RSN: no matching PMKID found
  96. .........IEEE 802.1X RX: version=2 type=3 length=117
  97. RSN: no matching PMKID found
  98. ..........IEEE 802.1X RX: version=2 type=3 length=117
  99. RSN: no matching PMKID found
  100. ........HEAP newlib: usage=39376472/51766752(76%),addr=0xA6F220
  101. ..IEEE 802.1X RX: version=2 type=3 length=117
  102. RSN: no matching PMKID found
  103. .........netlinkbuffer.setflags = 7, cmd: 0x8B15
  104. netlinkbuffer.recvflags = 7
  105. netlink: 52 extra bytes in the end of netlink message
  106. .....get_stat!
  107. .....netlinkbuffer.setflags = 8, cmd: 0x8B19
  108. netlinkbuffer.recvflags = 8
  109. netlink: 52 extra bytes in the end of netlink message
  110. netlinkbuffer.setflags = 9, cmd: 0x8B15
  111. netlinkbuffer.recvflags = 9
  112. netlink: 52 extra bytes in the end of netlink message
  113. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  114.      ==> rssi_level:0, rate_bitmap:0x000ff015
  115. IEEE 802.1X RX: version=2 type=3 length=117
  116. RSN: no matching PMKID found
  117. ..........IEEE 802.1X RX: version=2 type=3 length=117
  118. RSN: no matching PMKID found
  119. ...UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  120.      ==> rssi_level:1, rate_bitmap:0x000f0000
  121. .......IEEE 802.1X RX: version=2 type=3 length=117
  122. RSN: no matching PMKID found
  123. .........IEEE 802.1X RX: version=2 type=3 length=117
  124. RSN: no matching PMKID found
  125. ..........IEEE 802.1X RX: version=2 type=3 length=117
  126. RSN: no matching PMKID found
  127. ..........IEEE 802.1X RX: version=2 type=3 length=117
  128. RSN: no matching PMKID found
  129. .........IEEE 802.1X RX: version=2 type=3 length=117
  130. RSN: no matching PMKID found
  131. ..........IEEE 802.1X RX: version=2 type=3 length=117
  132. RSN: no matching PMKID found
  133. .........netlinkbuffer.setflags = 10, cmd: 0x8B15
  134. netlinkbuffer.recvflags = 10
  135. netlink: 52 extra bytes in the end of netlink message
  136. ..HEAP newlib: usage=39377048/51766752(76%),addr=0xA6F220
  137. .........netlinkbuffer.setflags = 11, cmd: 0x8B19
  138. netlinkbuffer.recvflags = 11
  139. netlink: 52 extra bytes in the end of netlink message
  140. netlinkbuffer.setflags = 12, cmd: 0x8B15
  141. netlinkbuffer.recvflags = 12
  142. netlink: 52 extra bytes in the end of netlink message
  143. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  144.      ==> rssi_level:0, rate_bitmap:0x000ff015
  145. IEEE 802.1X RX: version=2 type=3 length=117
  146. RSN: no matching PMKID found
  147. .....UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  148.      ==> rssi_level:1, rate_bitmap:0x000f0000
  149. .....IEEE 802.1X RX: version=2 type=3 length=117
  150. RSN: no matching PMKID found
  151. ..........IEEE 802.1X RX: version=2 type=3 length=117
  152. RSN: no matching PMKID found
  153. .........IEEE 802.1X RX: version=2 type=3 length=117
  154. RSN: no matching PMKID found
  155. ..........IEEE 802.1X RX: version=2 type=3 length=117
  156. RSN: no matching PMKID found
  157. .........IEEE 802.1X RX: version=2 type=3 length=117
  158. RSN: no matching PMKID found
  159. ..........IEEE 802.1X RX: version=2 type=3 length=117
  160. RSN: no matching PMKID found
  161. ..........IEEE 802.1X RX: version=2 type=3 length=117
  162. RSN: no matching PMKID found
  163. .........netlinkbuffer.setflags = 13, cmd: 0x8B15
  164. netlinkbuffer.recvflags = 13
  165. netlink: 52 extra bytes in the end of netlink message
  166. ....netlinkbuffer.setflags = 14, cmd: 0x8B19
  167. netlinkbuffer.recvflags = 14
  168. netlink: 52 extra bytes in the end of netlink message
  169. .netlinkbuffer.setflags = 15, cmd: 0x8B15
  170. netlinkbuffer.recvflags = 15
  171. netlink: 52 extra bytes in the end of netlink message
  172. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  173.      ==> rssi_level:0, rate_bitmap:0x000ff015
  174. IEEE 802.1X RX: version=2 type=3 length=117
  175. RSN: no matching PMKID found
  176. ..UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  177.      ==> rssi_level:1, rate_bitmap:0x000f0000
  178. .......HEAP newlib: usage=39376248/51766752(76%),addr=0xA6F220
  179. .IEEE 802.1X RX: version=2 type=3 length=117
  180. RSN: no matching PMKID found
  181. .........IEEE 802.1X RX: version=2 type=3 length=117
  182. RSN: no matching PMKID found
  183. ..........IEEE 802.1X RX: version=2 type=3 length=117
  184. RSN: no matching PMKID found
  185. ..........IEEE 802.1X RX: version=2 type=3 length=117
  186. RSN: no matching PMKID found
  187. .........IEEE 802.1X RX: version=2 type=3 length=117
  188. RSN: no matching PMKID found
  189. ..........IEEE 802.1X RX: version=2 type=3 length=117
  190. RSN: no matching PMKID found
  191. ..........IEEE 802.1X RX: version=2 type=3 length=117
  192. RSN: no matching PMKID found
  193. .........netlinkbuffer.setflags = 16, cmd: 0x8B15
  194. netlinkbuffer.recvflags = 16
  195. netlink: 52 extra bytes in the end of netlink message
  196. ...........netlinkbuffer.setflags = 17, cmd: 0x8B19
  197. netlinkbuffer.recvflags = 17
  198. netlink: 52 extra bytes in the end of netlink message
  199. netlinkbuffer.setflags = 18, cmd: 0x8B15
  200. netlinkbuffer.recvflags = 18
  201. netlink: 52 extra bytes in the end of netlink message
  202. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  203.      ==> rssi_level:0, rate_bitmap:0x000ff015
  204. .IEEE 802.1X RX: version=2 type=3 length=117
  205. RSN: no matching PMKID found
  206. ..........IEEE 802.1X RX: version=2 type=3 length=117
  207. RSN: no matching PMKID found
  208. ...UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  209.      ==> rssi_level:1, rate_bitmap:0x000f0000
  210. ......IEEE 802.1X RX: version=2 type=3 length=117
  211. RSN: no matching PMKID found
  212. .HEAP newlib: usage=39376632/51766752(76%),addr=0xA6F220
  213. .........IEEE 802.1X RX: version=2 type=3 length=117
  214. RSN: no matching PMKID found
  215. .........IEEE 802.1X RX: version=2 type=3 length=117
  216. RSN: no matching PMKID found
  217. ..........IEEE 802.1X RX: version=2 type=3 length=117
  218. RSN: no matching PMKID found
  219. ..........IEEE 802.1X RX: version=2 type=3 length=117
  220. RSN: no matching PMKID found
  221. .........IEEE 802.1X RX: version=2 type=3 length=117
  222. RSN: no matching PMKID found
  223. ..........netlinkbuffer.setflags = 19, cmd: 0x8B15
  224. netlinkbuffer.recvflags = 19
  225. netlink: 52 extra bytes in the end of netlink message
  226. ..
  227. [WIFIMGR]WifiMgr_Connect() L#746: Timeout! Cannot connect to XFF!
  228. [WIFIMGR]WifiMgr_Connect() L#780: Error! Cannot connect to WiFi AP!
  229. [Indoor]WifiCallback connecting fail, please check ssid,password,secmode
  230. deauth_reason_code(15)
  231. [WIFIMGR] Connect finish!
  232. on_wifi_callback(4,15)
  233. ********** WiFi Callback **********
  234. State: 4
  235. Reason: 15
  236. ********** ************* **********
  237. ****************** Reset Ethernet ****************
  238. error [string "------------------------------------
  239. ..."]:885: attempt to call a nil value (global 'reset_ethernet')
  240. [WIFIMGR]WiFiMgrProcessThreadFunc() L#1248: Error! nWiFiConnEcode = 010
  241. netlinkbuffer.setflags = 20, cmd: 0x8B19
  242. netlinkbuffer.recvflags = 20
  243. netlink: 52 extra bytes in the end of netlink message
  244. netlinkbuffer.setflags = 21, cmd: 0x8B15
  245. netlinkbuffer.recvflags = 21
  246. netlink: 52 extra bytes in the end of netlink message
  247. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  248.      ==> rssi_level:0, rate_bitmap:0x000ff015
  249. IEEE 802.1X RX: version=2 type=3 length=117
  250. RSN: no matching PMKID found
  251. IEEE 802.1X RX: version=2 type=3 length=117
  252. RSN: no matching PMKID found
  253. UpdateHalRAMask8188EUsb => mac_id:0, networkType:0x0b, mask:0x000fffff
  254.      ==> rssi_level:1, rate_bitmap:0x000f0000
  255. IEEE 802.1X RX: version=2 type=3 length=117
  256. RSN: no matching PMKID found
  257. IEEE 802.1X RX: version=2 type=3 length=117
  258. RSN: no matching PMKID found
  259. HEAP newlib: usage=39391640/51766752(76%),addr=0xA6F220
  260. IEEE 802.1X RX: version=2 type=3 length=117
  261. RSN: no matching PMKID found
  262. IEEE 802.1X RX: version=2 type=3 length=117
  263. RSN: no matching PMKID found
  264. IEEE 802.1X RX: version=2 type=3 length=117
  265. RSN: no matching PMKID found
  266. IEEE 802.1X RX: version=2 type=3 length=117
  267. RSN: no matching PMKID found
  268. netlinkbuffer.setflags = 22, cmd: 0x8B15
  269. netlinkbuffer.recvflags = 22
  270. netlink: 52 extra bytes in the end of netlink message
  271. netlinkbuffer.setflags = 23, cmd: 0x8B19
  272. netlinkbuffer.recvflags = 23
  273. netlink: 52 extra bytes in the end of netlink message
  274. netlinkbuffer.setflags = 0, cmd: 0x8B15
  275. netlinkbuffer.recvflags = 0
复制代码





回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12623
发表于 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
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

20

主题

53

帖子

268

积分

中级会员

Rank: 3Rank: 3

积分
268
 楼主| 发表于 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?
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12623
发表于 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()
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|广州大彩串口屏论坛_大彩开发者交流论坛

GMT+8, 2024-12-4 00:52 , Processed in 0.133926 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表