可乐丸子 发表于 2016-8-11 19:28:14

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

本帖最后由 可乐丸子 于 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打开并给功能板上电即可看到如下串口打印信息


串口诊断信息如下
l`rl---------------SDK version:1.5.2(80914727)--------------
system_get_free_heap_size=39104
reset reason: 6
---UPGRADE_FW_BIN1---
rgbGpioInit
gpio_name 0
gpio_name 14
motorInit : 00000003
dh11Init
irInit
gizwitsInit OK
connect AP failed!
GAgent Start...
GAgent get local info ok.
MCU Protocol Vertion:00000001.
MCU P0 Vertion:00000001.
MCU Hard Vertion:03000001.
MCU Soft Vertion:03000200.
MCU old product_key:xxxxxxxxxxxxxxxxxxxxxxxxxx.
MCU product_key:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
MCU passcodeEnableTime:0 s.
GAgent Soft Version: 04020013. Hard Version: 00ESP826.
--- system_free_size = 22392 ---
mode : sta(xx:xx:xx:xx:xx:xx)
add if0
f r0, motor 0 1280
$ changed report data : ,,,,,,,,],
gagentTimerDel GAgent_Tick has not linked.
temperature 0 48
humidity 0 44
$ changed report data : ,,,,,,,,],
GAgentStatus change, lastGAgentStatus=0x0000, newGAgentStatus=0x000a
@@@@ GAgentStatus:0a | :0,0,1,0,1,0
OnBoarding: Station mode
WiFi status: in binding mode
rssi is 0
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt

connected with chen313, channel 11
dhcp client start...
ip:192.168.1.155,mask:255.255.255.0,gw:192.168.1.1
humidity 44 45
$ changed report data : ,,,,,,,,],
GAgent ack app discover ret=0...
GAgentStatus change, lastGAgentStatus=0x000a, newGAgentStatus=0x031a
@@@@ GAgentStatus:31a | :0,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected router
@@@@ W2M->WIFI_CONNROUTER
rssi is 3
UDP BC Start ...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
GAgent Provision BizLogLev:00,SysLogLev:00
ip: xx▒xx.xx.xx, port: 1884
Socket: logServer connect ret = 0
Socket: logServer connect succeed !!!
login logServer. ret:0
Login res ...
go to check MCU OTA!
Logsystem: GAgent_OTA:no and jump to mcu ota check!
GAgent get MCU OTA respondCode:400
Logsystem: Cloud_isNeedOTA MCU_OTA:no!
Login logServer success.
UDP BC firstStartUp...
GAgent Cloud Working...
GAgentStatus change, lastGAgentStatus=0x031a, newGAgentStatus=0x033a
@@@@ GAgentStatus:33a | :1,1,1,0,1,0
OnBoarding: Station mode
WiFi status: connected m2m
connected m2m
rssi is 3
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
pm open,type:0 0
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC firstStartUp...
UDP BC finish ...
TCP NUM=0
gagentTimerDel LanTick has not linked.
GAgent ack app discover ret=0...
GAgent ack app discover ret=0...
humidity 45 46
$ changed report data : ,,,,,,,,],
GAgent ack app discover ret=0...
GAgent ack app discover ret=0...

admin 发表于 2016-8-11 19:41:25

哎呦 不错哦

boboP 发表于 2016-8-11 21:13:38

攒一个。感谢楼主的分享经验
页: [1]
查看完整版本: 【测评有奖】Gokit3开发板乐鑫模块串口诊断教程