收藏官网首页
查看: 23268|回复: 2

[资料] 【测评有奖】Gokit3开发板乐鑫模块串口诊断教程

6

主题

13

帖子

77

积分

注册会员

Rank: 2

积分
77
跳转到指定楼层
楼主
发表于 2016-8-11 19:28:14 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
免费使用STM32、APP自动代码生成工具
本帖最后由 可乐丸子 于 2016-8-17 17:25 编辑

gokit3S开发板在使用乐鑫模块时需要注意不能接底板,笔者早前接了底板连接不了还以为模块有问题,这里告诉Gokit3S新用户,乐鑫模块使用SOC插槽连接到功能板,然后通过给功能板的MicroUSB口上电即可正常使用
下面介绍串口诊断乐鑫模块的方法,首先准备USB转TTL串口的连接线,将USB转串口线的TX RX GND连接到功能板上面的RX TX GND,如下图所示


然后将USB转串口线的USB头插入Windows电脑USB口,在电脑上安装USB转串口驱动,可以使用驱动精灵(驱动人生)解决,然后按Win+PauseBreak打开设备管理器,在端口分支下面会出现安装的USB转串口设备的名称和串口号COMX,其中X为数值需要记住
接着下载Putty或者SecureCRT串口终端软件,连接类型选择Serial,然后把COM后面数值改成设备管理器里面的数字,这里是4,在Speed(波特率)里面填115200


接着选Open打开并给功能板上电即可看到如下串口打印信息


串口诊断信息如下
  1. l`rl---------------SDK version:1.5.2(80914727)--------------
  2. system_get_free_heap_size=39104
  3. reset reason: 6
  4. ---UPGRADE_FW_BIN1---
  5. rgbGpioInit
  6. gpio_name 0
  7. gpio_name 14
  8. motorInit : 00000003
  9. dh11Init
  10. irInit
  11. gizwitsInit OK
  12. [WiFiEvent] connect AP failed!
  13. [GAgent] GAgent Start...
  14. [Local] GAgent get local info ok.
  15. [Local] MCU Protocol Vertion:00000001.
  16. [Local] MCU P0 Vertion:00000001.
  17. [Local] MCU Hard Vertion:03000001.
  18. [Local] MCU Soft Vertion:03000200.
  19. [Local] MCU old product_key:xxxxxxxxxxxxxxxxxxxxxxxxxx.
  20. [Local] MCU product_key:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
  21. [Local] MCU passcodeEnableTime:0 s.
  22. [Local] GAgent Soft Version: 04020013. Hard Version: 00ESP826.
  23. --- system_free_size = 22392 ---
  24. mode : sta(xx:xx:xx:xx:xx:xx)
  25. add if0
  26. f r0, motor 0 1280
  27. $ changed report data : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:0]],[hum:0]
  28. [Timer]  gagentTimerDel GAgent_Tick has not linked.
  29. temperature 0 48
  30. humidity 0 44
  31. $ changed report data : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:48]],[hum:44]
  32. [Local] GAgentStatus change, lastGAgentStatus=0x0000, newGAgentStatus=0x000a
  33. @@@@ GAgentStatus[hex]:0a | [Bin]:0,0,1,0,1,0
  34. OnBoarding: Station mode
  35. WiFi status: in binding mode
  36. rssi is 0
  37. scandone
  38. state: 0 -> 2 (b0)
  39. state: 2 -> 3 (0)
  40. state: 3 -> 5 (10)
  41. add 0
  42. aid 2
  43. cnt

  44. connected with chen313, channel 11
  45. dhcp client start...
  46. ip:192.168.1.155,mask:255.255.255.0,gw:192.168.1.1
  47. humidity 44 45
  48. $ changed report data : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:48]],[hum:45]
  49. [Lan] GAgent ack app discover ret=0...
  50. [Local] GAgentStatus change, lastGAgentStatus=0x000a, newGAgentStatus=0x031a
  51. @@@@ GAgentStatus[hex]:31a | [Bin]:0,1,1,0,1,0
  52. OnBoarding: Station mode
  53. WiFi status: connected router
  54. @@@@ W2M->WIFI_CONNROUTER
  55. rssi is 3
  56. [Lan] UDP BC Start ...
  57. [Lan] UDP BC firstStartUp...
  58. [Lan] UDP BC firstStartUp...
  59. [Lan] UDP BC firstStartUp...
  60. [GServer] GAgent Provision BizLogLev:00,SysLogLev:00
  61. [LogServer]  ip: xx▒xx.xx.xx, port: 1884
  62. [LogServer]  Socket: logServer connect ret = 0
  63. [LogServer]  Socket: logServer connect succeed !!!
  64. [LogServer]  login logServer. ret:0
  65. [LogServer]  Login res ...
  66. [GServer] go to check MCU OTA!
  67. [GServer] Logsystem: GAgent_OTA:no and jump to mcu ota check!
  68. [GServer] GAgent get MCU OTA respondCode:400
  69. [GServer] Logsystem: Cloud_isNeedOTA MCU_OTA:no!
  70. [LogServer]  Login logServer success.
  71. [Lan] UDP BC firstStartUp...
  72. [M2M] GAgent Cloud Working...
  73. [Local] GAgentStatus change, lastGAgentStatus=0x031a, newGAgentStatus=0x033a
  74. @@@@ GAgentStatus[hex]:33a | [Bin]:1,1,1,0,1,0
  75. OnBoarding: Station mode
  76. WiFi status: connected m2m
  77. connected m2m
  78. rssi is 3
  79. [Lan] UDP BC firstStartUp...
  80. [Lan] UDP BC firstStartUp...
  81. [Lan] UDP BC firstStartUp...
  82. [Lan] UDP BC firstStartUp...
  83. pm open,type:0 0
  84. [Lan] UDP BC firstStartUp...
  85. [Lan] UDP BC firstStartUp...
  86. [Lan] UDP BC firstStartUp...
  87. [Lan] UDP BC firstStartUp...
  88. [Lan] UDP BC firstStartUp...
  89. [Lan] UDP BC firstStartUp...
  90. [Lan] UDP BC firstStartUp...
  91. [Lan] UDP BC firstStartUp...
  92. [Lan] UDP BC firstStartUp...
  93. [Lan] UDP BC firstStartUp...
  94. [Lan] UDP BC firstStartUp...
  95. [Lan] UDP BC firstStartUp...
  96. [Lan] UDP BC firstStartUp...
  97. [Lan] UDP BC firstStartUp...
  98. [Lan] UDP BC firstStartUp...
  99. [Lan] UDP BC firstStartUp...
  100. [Lan] UDP BC firstStartUp...
  101. [Lan] UDP BC firstStartUp...
  102. [Lan] UDP BC firstStartUp...
  103. [Lan] UDP BC firstStartUp...
  104. [Lan] UDP BC firstStartUp...
  105. [Lan] UDP BC firstStartUp...
  106. [Lan] UDP BC finish ...
  107. [Lan] TCP NUM=0
  108. [Timer]  gagentTimerDel LanTick has not linked.
  109. [Lan] GAgent ack app discover ret=0...
  110. [Lan] GAgent ack app discover ret=0...
  111. humidity 45 46
  112. $ changed report data : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:48]],[hum:46]
  113. [Lan] GAgent ack app discover ret=0...
  114. [Lan] GAgent ack app discover ret=0...
复制代码


140

主题

418

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12649
沙发
发表于 2016-8-11 19:41:25 | 只看该作者
哎呦 不错哦

34

主题

896

帖子

2274

积分

超级版主

Rank: 8Rank: 8

积分
2274
板凳
发表于 2016-8-11 21:13:38 | 只看该作者
攒一个。感谢楼主的分享经验
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

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