|
本帖最后由 可乐丸子 于 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
- [WiFiEvent] connect AP failed!
- [GAgent] GAgent Start...
- [Local] GAgent get local info ok.
- [Local] MCU Protocol Vertion:00000001.
- [Local] MCU P0 Vertion:00000001.
- [Local] MCU Hard Vertion:03000001.
- [Local] MCU Soft Vertion:03000200.
- [Local] MCU old product_key:xxxxxxxxxxxxxxxxxxxxxxxxxx.
- [Local] MCU product_key:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
- [Local] MCU passcodeEnableTime:0 s.
- [Local] 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 : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:0]],[hum:0]
- [Timer] gagentTimerDel GAgent_Tick has not linked.
- temperature 0 48
- humidity 0 44
- $ changed report data : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:48]],[hum:44]
- [Local] GAgentStatus change, lastGAgentStatus=0x0000, newGAgentStatus=0x000a
- @@@@ GAgentStatus[hex]:0a | [Bin]: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 : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:48]],[hum:45]
- [Lan] GAgent ack app discover ret=0...
- [Local] GAgentStatus change, lastGAgentStatus=0x000a, newGAgentStatus=0x031a
- @@@@ GAgentStatus[hex]:31a | [Bin]:0,1,1,0,1,0
- OnBoarding: Station mode
- WiFi status: connected router
- @@@@ W2M->WIFI_CONNROUTER
- rssi is 3
- [Lan] UDP BC Start ...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [GServer] GAgent Provision BizLogLev:00,SysLogLev:00
- [LogServer] ip: xx▒xx.xx.xx, port: 1884
- [LogServer] Socket: logServer connect ret = 0
- [LogServer] Socket: logServer connect succeed !!!
- [LogServer] login logServer. ret:0
- [LogServer] Login res ...
- [GServer] go to check MCU OTA!
- [GServer] Logsystem: GAgent_OTA:no and jump to mcu ota check!
- [GServer] GAgent get MCU OTA respondCode:400
- [GServer] Logsystem: Cloud_isNeedOTA MCU_OTA:no!
- [LogServer] Login logServer success.
- [Lan] UDP BC firstStartUp...
- [M2M] GAgent Cloud Working...
- [Local] GAgentStatus change, lastGAgentStatus=0x031a, newGAgentStatus=0x033a
- @@@@ GAgentStatus[hex]:33a | [Bin]:1,1,1,0,1,0
- OnBoarding: Station mode
- WiFi status: connected m2m
- connected m2m
- rssi is 3
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- pm open,type:0 0
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC firstStartUp...
- [Lan] UDP BC finish ...
- [Lan] TCP NUM=0
- [Timer] gagentTimerDel LanTick has not linked.
- [Lan] GAgent ack app discover ret=0...
- [Lan] GAgent ack app discover ret=0...
- humidity 45 46
- $ changed report data : [act:0],[onf:0],[Col:0],[R:0],[G:0],[B:0],[mo:1280],[inf:0],[tem:48]],[hum:46]
- [Lan] GAgent ack app discover ret=0...
- [Lan] GAgent ack app discover ret=0...
复制代码
|
|