固件升级报错重启,升级失败-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 894|回复: 6

[已解答] 固件升级报错重启,升级失败

[复制链接]
发表于 2021-3-10 00:17 | 显示全部楼层 |阅读模式
  1. [70624] Got: {"deviceType":"ProDevice","data":{"set":{"upgrade":true}},"fromDevice":"5fbb9c00e50811ea9a675254","toDevice":"92E36714DECAB07REX34IOPK"}

  2. [70627] data: {"set":{"upgrade":true}}

  3. [70630] fromDevice: 5fbb9c00e50811ea9a675254

  4. [70634] Authority uuid

  5. [70656] checkAvail: 1

  6. [70657] parse data: {"set":{"upgrade":true}}

  7. [70657] defined BLINKER_ARDUINOJSON

  8. [70658] autoManager begin: 0 1

  9. [70658] otaParse isParsed


  10. --------------- CUT HERE FOR EXCEPTION DECODER ---------------


  11. Exception (28):

  12. epc1=0x4000deed epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000098f depc=0x00000000



  13. >>>stack>>>



  14. ctx: cont

  15. sp: 3ffffc10 end: 3fffffc0 offset: 0190

  16. 3ffffda0:  3ffffe54 00001000 3fff0dd0 40223834  

  17. 3ffffdb0:  3ffffe54 00000001 3fff0dd0 4020534a  

  18. 3ffffdc0:  00000001 402807cc 3fff08c4 40203036  

  19. 3ffffdd0:  00007d0a 3ffe8b75 3ffefd98 4021227d  

  20. 3ffffde0:  00000000 00000000 3ffefd98 4021230f  

  21. 3ffffdf0:  80000000 3fffafec 3fffaff4 3fffb3dc  

  22. 3ffffe00:  3fffb3ec 3fffb3dc 3fffb3dc 00100020  

  23. 3ffffe10:  3fff3d54 0010001f 00fffe60 3ffffde4  

  24. 3ffffe20:  00007d00 3ffffe04 3ffefd98 00000000  

  25. 3ffffe30:  00000000 00000000 3ffefd98 402123f0  

  26. 3ffffe40:  3ffe9786 3fffabe4 3fffabf0 3fffafc4  

  27. 3ffffe50:  3fffafe4 3fffafd4 3fffafd4 00000020  

  28. 3ffffe60:  00000000 00000000 80fe9784 40223f74  

  29. 3ffffe70:  40223f68 3fff0e0c 3ffe9784 40216fc5  

  30. 3ffffe80:  3ffffe54 3ffffe44 3fff08c4 00000000  

  31. 3ffffe90:  402819d4 00000001 3fff08c4 40215639  

  32. 3ffffea0:  00000001 402819d4 3fff08c4 40206fe2  

  33. 3ffffeb0:  402819d4 00000001 3fff08c4 40207018  

  34. 3ffffec0:  00000001 402819d4 00000001 4020704a  

  35. 3ffffed0:  00000000 00000001 3ffefd98 00000001  

  36. 3ffffee0:  00000001 3fff0098 3ffefd98 40212f55  

  37. 3ffffef0:  00000000 3fffdad0 3fff0f68 00000030  

  38. 3fffff00:  3fff36fc 40281194 3fff08c4 40205fce  

  39. 3fffff10:  40105229 00650984 3fff3894 4024049c  

  40. 3fffff20:  007a1200 742ad81e 00650900 00000000  

  41. 3fffff30:  401054ad 006fd155 3fff0fc8 00000000  

  42. 3fffff40:  00000000 4bc6a7f0 000113cd 3fff0f68  

  43. 3fffff50:  00000000 00000000 4bc6a7f0 00000000  

  44. 3fffff60:  3ffefe98 54e1272c 401004fa 170a3d70  

  45. 3fffff70:  00000000 0000003c 0000012b 3fff0f68  

  46. 3fffff80:  3fffdad0 00000000 3ffefca0 402131a2  

  47. 3fffff90:  3fffdad0 00000000 3fff0f28 4021336c  

  48. 3fffffa0:  feefeffe feefeffe 3fff0f28 40225fc0  

  49. 3fffffb0:  feefeffe feefeffe 3ffe8608 40100f31  

  50. <<<stack<<<



  51. last failed alloc call: 40223820(4096)


  52. --------------- CUT HERE FOR EXCEPTION DECODER ---------------


  53. ets Jan  8 2013,rst cause:2, boot mode:(3,6)



  54. load 0x4010f000, len 3584, room 16

  55. tail 0

  56. chksum 0xb0

  57. csum 0xb0

  58. v2843a5ac

  59. ~ld
  60. pixels_init

  61. [1721] _power_count: 1

  62. [1721]

  63. [1721]
  64. __       __                __
  65. /\ \     /\ \    __        /\ \              v0.3.6
  66. \ \ \___ \ \ \  /\_\    ___\ \ \/'\      __   _ __   
  67. \ \ '__`\\ \ \ \/\ \ /' _ `\ \ , <    /'__`\/\`'__\
  68.   \ \ \L\ \\ \ \_\ \ \/\ \/\ \ \ \\`\ /\  __/\ \ \./
  69.    \ \_,__/ \ \__\\ \_\ \_\ \_\ \_\ \_\ \____\\ \_\  
  70.     \/___/   \/__/ \/_/\/_/\/_/\/_/\/_/\/____/ \/_/  
复制代码
每次升级都是这个原因,没成功过。然后用了Exception Decoder.
下面是代码

  1. Decoding stack results
  2. 0x40223834: EEPROMClass::begin(unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/EEPROM/EEPROM.cpp line 80
  3. 0x4020534a: BlinkerOTA::saveOTARun() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/../Functions/BlinkerOTA.h line 503
  4. 0x40203036: _Z13BLINKER_LOG_TIPK19__FlashStringHelperIEEvT_DpT0_ at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  5. 0x4021227d: BlinkerApi::ota() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerApi.h line 7642
  6. 0x4021230f: BlinkerApi::otaParse(ArduinoJson6111_00000::ObjectRef const&) at /home/wx/snap/arduino/50/Arduino/libraries/blinker-library-master/src/modules/ArduinoJson/ArduinoJson/Document/BasicJsonDocument.hpp line 56
  7. 0x402123f0: BlinkerApi::parse(char*, bool) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerApi.h line 4617
  8. 0x40223f74: HardwareSerial::write(unsigned char const*, unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/HardwareSerial.h line 165
  9. 0x40223f68: HardwareSerial::write(unsigned char const*, unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/HardwareSerial.h line 164
  10. 0x40216fc5: Print::write(char const*) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/Print.h line 62
  11. 0x40215639: BLINKER_LOG_T() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerDebug.cpp line 129
  12. 0x40206fe2: BLINKER_LOG_T (bool) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  13. 0x40207018: _Z13BLINKER_LOG_TIPK19__FlashStringHelperIbEEvT_DpT0_ at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  14. 0x4020704a: BLINKER_LOG_ALL__FlashStringHelper const*, bool>(__FlashStringHelper const*, bool) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 109
  15. 0x40212f55: BlinkerApi::run() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerApi.h line 3102
  16. 0x40205fce: BLINKER_LOG_T (unsigned char) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  17. 0x4024049c: mem_malloc at core/mem.c line 210
  18. 0x401004fa: millis() at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring.cpp line 188
  19. 0x402131a2: blinker_run() at /tmp/arduino_build_373134/sketch/Blinker_api.cpp line 125
  20. 0x4021336c: loop() at /home/wx/Desktop/FloorLED/FloorLED.ino line 75
  21. 0x40225fc0: loop_wrapper() at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 197
复制代码
没看懂是什么原因造成的,请大佬帮忙解决,谢谢!
发表于 2021-3-10 07:06 | 显示全部楼层
这不是中文,你翻下字典。或者找身边成功的人,他们的代码提示如何,毕竟这么长的代码,头要看晕,其实就是操作不规范导致的。实在不行,用钞能力吧。
发表于 2021-3-10 14:01 | 显示全部楼层
OTA正常升级流程
1.APP发送的OTA指令
2.设备收到指令后设置OTA并重启
3.重启后拉取OTA固件
4.拉取固件成功/失败后,设备上报服务器OTA状态并重启

从你给出的调试信息看是处于阶段2的正常重启,建议给出更多的调试信息。
 楼主| 发表于 2021-3-10 16:44 | 显示全部楼层
三水 发表于 2021-3-10 14:01
OTA正常升级流程
1.APP发送的OTA指令
2.设备收到指令后设置OTA并重启

根据我之前测试成功过的来看,重启前最后一条会打印OTA RUN:1,也不会出现Exception (28):错误提示。重启后才能正常执行3、4。
你说这个是正常的话,我过会在试试全流程,上电后会不会执行3、4.再把完整打印发上来
 楼主| 发表于 2021-3-10 23:33 | 显示全部楼层
三水 发表于 2021-3-10 14:01
OTA正常升级流程
1.APP发送的OTA指令
2.设备收到指令后设置OTA并重启
  1. Exception 28: LoadProhibited: A load referenced a page mapped with an attribute that does not permit loads
  2. PC: 0x4000deed
  3. EXCVADDR: 0x0000098f
  4. Memory allocation of 4096 bytes failed at 0x40223828: EEPROMClass::begin(unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/EEPROM/EEPROM.cpp line 69

  5. Decoding stack results
  6. 0x4022673d: __delay(unsigned long) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring.cpp line 57
  7. 0x40226732: __delay(unsigned long) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring.cpp line 54
  8. 0x40205353: BlinkerOTA::saveOTARun() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/../Functions/BlinkerOTA.h line 504
  9. 0x40203036: _Z13BLINKER_LOG_TIPK19__FlashStringHelperIEEvT_DpT0_ at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  10. 0x40212285: BlinkerApi::ota() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerApi.h line 7642
  11. 0x40212317: BlinkerApi::otaParse(ArduinoJson6111_00000::ObjectRef const&) at /home/wx/snap/arduino/50/Arduino/libraries/blinker-library-master/src/modules/ArduinoJson/ArduinoJson/Document/BasicJsonDocument.hpp line 56
  12. 0x402123f8: BlinkerApi::parse(char*, bool) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerApi.h line 4617
  13. 0x40223f7c: HardwareSerial::write(unsigned char const*, unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/HardwareSerial.h line 165
  14. 0x40223f70: HardwareSerial::write(unsigned char const*, unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/HardwareSerial.h line 164
  15. 0x40216fcd: Print::write(char const*) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/Print.h line 62
  16. 0x40215641: BLINKER_LOG_T() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerDebug.cpp line 129
  17. 0x40206fea: BLINKER_LOG_T (bool) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  18. 0x40207020: _Z13BLINKER_LOG_TIPK19__FlashStringHelperIbEEvT_DpT0_ at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 78
  19. 0x40207052: BLINKER_LOG_ALL__FlashStringHelper const*, bool>(__FlashStringHelper const*, bool) at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Adapters/../Blinker/BlinkerDebug.h line 109
  20. 0x40212f5d: BlinkerApi::run() at /home/wx/snap/arduino/current/Arduino/libraries/blinker-library-master/src/Blinker/BlinkerApi.h line 3102
  21. 0x40100c77: free(void*) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/umm_malloc/umm_malloc.cpp line 398
  22. 0x40223f70: HardwareSerial::write(unsigned char const*, unsigned int) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/HardwareSerial.h line 164
  23. 0x40216fcd: Print::write(char const*) at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/Print.h line 62
  24. 0x40224d7d: String::invalidate() at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/WString.cpp line 140
  25. 0x40224d9c: String::~String() at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/WString.cpp line 125
  26. 0x401004fa: millis() at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_wiring.cpp line 188
  27. 0x402131aa: blinker_run() at /tmp/arduino_build_473616/sketch/Blinker_api.cpp line 125
  28. 0x40213374: loop() at /home/wx/Desktop/FloorLED/FloorLED.ino line 76
  29. 0x40225fc8: loop_wrapper() at /home/wx/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/cores/esp8266/core_esp8266_main.cpp line 197
复制代码


这是exception Decoder 看像是内存不足
升级后重启也没有固件升级成功,没拉固件,就是正常的重启
 楼主| 发表于 2021-3-11 01:20 | 显示全部楼层
完整打印信息如下
  1. [49705] MQTT Publish...

  2. [49707] Freeheap: 5376

  3. [49751] {"data":{"state":"online","timer":"000","version":"0.1.1"},"fromDevice":"92E36714DECAB07REX34IOPK","toDevice":"5fbb9c00e50811ea9a675254","deviceType":"OwnApp"}

  4. [49755] ...OK!

  5. [49757] Freeheap: 5376

  6. [49759] Freeheap: 6448

  7. [49761] heartBeat isParsed 1

  8. [49764] _fresh need flush

  9. [49766] isParsed

  10. [55150] Got: {"deviceType":"ProDevice","data":{"set":{"upgrade":true}},"fromDevice":"5fbb9c00e50811ea9a675254","toDevice":"92E36714DECAB07REX34IOPK"}

  11. [55153] data: {"set":{"upgrade":true}}

  12. [55156] fromDevice: 5fbb9c00e50811ea9a675254

  13. [55160] Authority uuid

  14. [55182] checkAvail: 1

  15. [55183] parse data: {"set":{"upgrade":true}}

  16. [55183] defined BLINKER_ARDUINOJSON

  17. [55184] autoManager begin: 0 1

  18. [55184] otaParse isParsed


  19. --------------- CUT HERE FOR EXCEPTION DECODER ---------------


  20. Exception (28):

  21. epc1=0x4000deed epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000098f depc=0x00000000



  22. >>>stack>>>



  23. ctx: cont

  24. sp: 3ffffc10 end: 3fffffc0 offset: 0190

  25. 3ffffda0:  3ffffe54 00001000 3fff0988 4021f398  

  26. 3ffffdb0:  3ffffe54 00000001 3fff0988 40204d9a  

  27. 3ffffdc0:  00000001 4027af30 3fff047c 40202846  

  28. 3ffffdd0:  00007d0a 3ffe8930 3ffef960 4020fcf1  

  29. 3ffffde0:  00000000 00000000 3ffef960 4020fd83  

  30. 3ffffdf0:  80000000 3fffabfc 3fffac04 3fffafec  

  31. 3ffffe00:  3fffaffc 3fffafec 3fffafec 00100020  

  32. 3ffffe10:  3fff3724 0010001f 00fffe60 3ffffde4  

  33. 3ffffe20:  00007d00 3ffffe04 3ffef960 00000000  

  34. 3ffffe30:  00000000 00000000 3ffef960 4020fe64  

  35. 3ffffe40:  3ffe93fe 3fffa7f4 3fffa800 3fffabd4  

  36. 3ffffe50:  3fffabf4 3fffabe4 3fffabe4 00000020  

  37. 3ffffe60:  00000000 00000000 80fe93fc 4021fd7c  

  38. 3ffffe70:  4021fd70 3fff09c4 3ffe93fc 40212b41  

  39. 3ffffe80:  3ffffe54 3ffffe44 3fff047c 00000000  

  40. 3ffffe90:  4027c098 00000001 3fff047c 402111b5  

  41. 3ffffea0:  00000001 4027c098 3fff047c 4020573a  

  42. 3ffffeb0:  4027c098 00000001 3fff047c 40205770  

  43. 3ffffec0:  00000001 4027c098 00000001 402057a2  

  44. 3ffffed0:  00000000 00000001 3ffef960 00000001  

  45. 3ffffee0:  00000001 3ffefc60 3ffef960 402109cd  

  46. 3ffffef0:  3fff8500 0016001f 80ff0b20 00000030  

  47. 3fffff00:  3fff04ba 00000000 3fff047c 3fff0b20  

  48. 3fffff10:  00002278 3fff09c4 3fff342c 4023ac7c  

  49. 3fffff20:  4021fd70 3fff09c4 3ffe93fc 40230e99  

  50. 3fffff30:  3ffe8c9f 00000000 0021216b 40222fd5  

  51. 3fffff40:  00000000 4bc6a7f0 0000d754 3fff0b20  

  52. 3fffff50:  00000000 00000000 4bc6a7f0 00000000  

  53. 3fffff60:  3ffefa60 06db3509 401004fa f6872b02  

  54. 3fffff70:  00000000 3fff09c4 3ffe8c95 3fff0b20  

  55. 3fffff80:  3fffdad0 00000000 3fff0ae0 40210c0a  

  56. 3fffff90:  3fffdad0 00000000 3fff0ae0 40210d28  

  57. 3fffffa0:  feefeffe feefeffe 3fff0ae0 40221d20  

  58. 3fffffb0:  feefeffe feefeffe 3ffe85dc 40100ef5  

  59. <<<stack<<<



  60. last failed alloc call: 4021F384(4096)


  61. --------------- CUT HERE FOR EXCEPTION DECODER ---------------


  62. ets Jan  8 2013,rst cause:2, boot mode:(3,6)



  63. load 0x4010f000, len 3584, room 16

  64. tail 0

  65. chksum 0xb0

  66. csum 0xb0

  67. v2843a5ac

  68. ~ld
  69. pixels_init

  70. [1724] _power_count: 1

  71. [1724]

  72. [1724]
  73. __       __                __
  74. /\ \     /\ \    __        /\ \              v0.3.6
  75. \ \ \___ \ \ \  /\_\    ___\ \ \/'\      __   _ __   
  76. \ \ '__`\\ \ \ \/\ \ /' _ `\ \ , <    /'__`\/\`'__\
  77.   \ \ \L\ \\ \ \_\ \ \/\ \/\ \ \ \\`\ /\  __/\ \ \./
  78.    \ \_,__/ \ \__\\ \_\ \_\ \_\ \_\ \_\ \____\\ \_\  
  79.     \/___/   \/__/ \/_/\/_/\/_/\/_/\/_/\/____/ \/_/  
  80.     To better use blinker with your IoT project!
  81.     Download latest blinker library here!
  82.     => https://github.com/blinker-iot/blinker-library


  83. [1760]
  84. ===========================================================
  85. ================= Blinker PRO mode init ! =================
  86.      EEPROM address 1280-1535 is used for PRO ESP Mode!
  87. ========= PLEASE AVOID USING THESE EEPROM ADDRESS! ========
  88. ===========================================================


  89. [1786] API deviceType: TIVGVmuWKIbc

  90. [1789]
  91. ===========================================================
  92. ================== Blinker Timer loaded! ==================
  93.      EEPROM address 1536-2431 is used for Blinker Timer!
  94. ========= PLEASE AVOID USING THESE EEPROM ADDRESS! ========
  95. ===========================================================


  96. [1818] countdown state: false

  97. [1819] _cdRunState: 0

  98. [1821] _totalTime: 0

  99. [1823] _runTime: 0

  100. [1824] _action:

  101. [1827] loop state: false

  102. [1828] _lpRunState: 0

  103. [1830] _times: 0

  104. [1832] _tri_times: 0

  105. [1834] _time1: 0

  106. [1835] _action1:

  107. [1837] _time2: 0

  108. [1838] _action2:

  109. [1840] _lpData: 0

  110. [1842] ESP_PRO initialized...

  111. setup ok!![1845] check wlan config

  112. [1848] wlan config check,success

  113. [1856] SSID: bb PASWD: 1323811540

  114. [1857] Connecting to bb

  115. [5731] erase power count

  116. [5863] WiFi connected

  117. [5863] IP address:

  118. [5863] 192.168.3.25

  119. [5863] SSID: bb PSWD: 1323811540

  120. [5864] PRO deviceType: TIVGVmuWKIbc

  121. [6864] WiFi.localIP: 192.168.3.25

  122. [6866] mDNS responder started

  123. [6867] webSocket_PRO server started

  124. [6867] ws://F4CFA2F6EECD.local:81

  125. [6867] conn begin, fresh _initTime: 6867

  126. [6869] authCheck start

  127. [6872] authCheck end

  128. [6873] is auth, conn deviceRegister

  129. [6877] HTTPS begin: https://iot.diandeng.tech/api/v1/user/device/auth/get?deviceType=TIVGVmuWKIbc&typeKey=61fO1qpDZowr&deviceName=F4CFA2F6EECD&aliType=light&miType=light&version=0.1.1&protocol=mqtts

  130. [7831] [HTTP] GET... code: 200

  131. [7833] reply was:

  132. [7833] ==============================

  133. [7833] {"detail": {"authKey": "6biyrlrhwwo3"}, "message": 1000}

  134. [7833] ==============================

  135. [7837] ====================

  136. [7839] AUTHKEY_PRO: 6biyrlrhwwo3

  137. [7842] ====================

  138. [7846] [HTTP] begin: https://iot.diandeng.tech/api/v1/user/device/auth?authKey=6biyrlrhwwo3&aliType=light&miType=light&version=0.1.1&protocol=mqtts

  139. [9216] [HTTP] GET... code: 200

  140. [9225] reply was:

  141. [9225] ==============================

  142. [9225] {"detail": {"broker": "aliyun", "deviceName": "92E36714DECAB07REX34IOPK", "host": "mqtts://public.iot-as-mqtt.cn-shanghai.aliyuncs.com", "iotId": "OO9VuQAxMMBy9oF2JGmf000000", "iotToken": "^1^1615396429532^c48ede6e14c8ca4", "port": "1883", "productKey": "a13w5LGskGs", "uuid": "5fbb9c00e50811ea9a675254"}, "message": 1000}

  143. [9248] ==============================

  144. [9252] ====================

  145. [9254] ====================

  146. [9256] ==========AUTH CHECK==========

  147. [9260] ====================

  148. [9262] DEVICE_NAME: F4CFA2F6EECD

  149. [9265] MQTT_PRODUCTINFO_PRO: a13w5LGskGs

  150. [9269] MQTT_DEVICEID_PRO: 92E36714DECAB07REX34IOPK

  151. [9273] MQTT_ID_PRO: 92E36714DECAB07REX34IOPK

  152. [9277] MQTT_NAME_PRO: OO9VuQAxMMBy9oF2JGmf000000

  153. [9281] MQTT_KEY_PRO: ^1^1615396429532^c48ede6e14c8ca4

  154. [9286] MQTT_BROKER: aliyun

  155. [9289] HOST: public.iot-as-mqtt.cn-shanghai.aliyuncs.com

  156. [9294] PORT: 1883

  157. [9295] UUID_PRO: 5fbb9c00e50811ea9a675254

  158. [9299] AUTHKEY_PRO: 6biyrlrhwwo3

  159. [9302] ====================

  160. [9305] BLINKER_PUB_TOPIC_PRO: /a13w5LGskGs/92E36714DECAB07REX34IOPK/s

  161. [9311] BLINKER_SUB_TOPIC_PRO: /a13w5LGskGs/92E36714DECAB07REX34IOPK/r

  162. [10317] WiFi.localIP: 192.168.3.25

  163. [10318] mDNS responder started

  164. [10320] webSocket_PRO server started

  165. [10320] ws://92E36714DECAB07REX34IOPK.local:81

  166. [10322] Freeheap: 29608

  167. [15320] Connecting to MQTT...

  168. [15330] Freeheap: 29632

  169. [16248] MQTT Connected!

  170. [16248] Freeheap: 7952

  171. [17305] OTA load: 0.1.1

  172. [17306] OTA Check: 0

  173. [17307] loadVersion: 0.1.1

  174. [17307] OTA FAIL OR NOT START OTA

  175. [21379] Current time: Wed Mar 10 17:14:01 2021


  176. [21379] NTP time: 1615367641

  177. [21379] check ntp init

  178. [21380] OTA Check: 0

  179. [21381] ==== needInit ====

  180. [21382] message: /share/device?deviceName=92E36714DECAB07REX34IOPK&key=6biyrlrhwwo3

  181. [21391] blinker server begin

  182. [21391] Freeheap: 28272

  183. [22324] HTTPS begin: https://iot.diandeng.tech/api/v1/user/device/share/device?deviceName=92E36714DECAB07REX34IOPK&key=6biyrlrhwwo3

  184. [22325] HTTPS payload: /share/device?deviceName=92E36714DECAB07REX34IOPK&key=6biyrlrhwwo3

  185. [22333] [HTTP] status... code: 200

  186. [22337] {"detail": {"users": []}, "message": 1000}

  187. [22341] _type: 16

  188. [22342] payload: {"users":[]}

  189. [22346] sharers data: {"users":[]}

  190. [22348] load timing

  191. [22350] load timing taskCount: 0

  192. [22353] freshTiming wDay: 4, nowMins: 74, nowSeconds: 4442

  193. [22358] nextTask: 10  apartSeconds: 81958 wDay: 4

  194. [22362] cbackData: 10

  195. [22364] change apartSeconds: 3600

  196. [22468] Connecting to MQTT...

  197. [22478] Freeheap: 28656

  198. [23531] MQTT Connected!

  199. [23531] Freeheap: 7536

  200. [23531] =======================================================

  201. [23531] =========== Blinker Auto Control mode init! ===========

  202. [23535]      EEPROM address 0-1279 is used for Auto Control!

  203. [23540] ======= PLEASE AVOID USING THESE EEPROM ADDRESS! ======

  204. [23546] =======================================================

  205. [23552] _______autoStart_______

  206. [23555] _aCount: 1

  207. [23556] new BlinkerAUTO() _num: 0

  208. [23560] _haveAuto: 0

  209. [23561] _autoState: 0

  210. [23563] _logicType: 0

  211. [23565] _compareType: 0

  212. [53146] Got: {"deviceType":"ProDevice","data":{"get":"state"},"fromDevice":"5fbb9c00e50811ea9a675254","toDevice":"92E36714DECAB07REX34IOPK"}

  213. [53148] data: {"get":"state"}

  214. [53150] fromDevice: 5fbb9c00e50811ea9a675254

  215. [53154] Authority uuid

  216. [53176] checkAvail: 1

  217. [53176] parse data: {"get":"state"}

  218. [53177] defined BLINKER_ARDUINOJSON

  219. [53177] autoManager begin: 0 0

  220. [53178] autoFormatData key: state, json: "state":"online"

  221. [53182] new.

  222. [53183] timer codes: 000

  223. [53185] autoFormatData key: timer, json: "timer":"000"

  224. [53190] add.

  225. [53191] autoFormatData key: version, json: "version":"0.1.1"

  226. [53197] add.

  227. [53198] print: {"state":"online","timer":"000","version":"0.1.1"}

  228. [53204] Proto print...

  229. [53206] Freeheap: 4496

  230. [53208] isJson: {"data":{"state":"online","timer":"000","version":"0.1.1"},"fromDevice":"92E36714DECAB07REX34IOPK","toDevice":"5fbb9c00e50811ea9a675254","deviceType":"OwnApp"}

  231. [53223] MQTT Publish...

  232. [53225] Freeheap: 4456

  233. [53308] {"data":{"state":"online","timer":"000","version":"0.1.1"},"fromDevice":"92E36714DECAB07REX34IOPK","toDevice":"5fbb9c00e50811ea9a675254","deviceType":"OwnApp"}

  234. [53311] ...OK!
复制代码
发表于 2021-3-11 15:44 | 显示全部楼层
如果ram不够可以更新最新的库使用非加密接入进行测试
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-11-28 14:28 , Processed in 0.074582 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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