微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > MCU和单片机设计讨论 > 1.OneNET之简单露脸上电

1.OneNET之简单露脸上电

时间:10-02 整理:3721RD 点击:
感谢论坛大大的慷慨厚爱!这次申请到了中移动的物联网开发板,由于本人从事这方面工作,虽然是做硬件的,但是软件咋也得学习学习哈。
这个板子初始看颜值还一般,但拿到手之后仔细一看,布局挺好的,整齐漂亮,可见设计者功底厚重!
尤其是板子带有GSM和wifi模块,这是我的最爱。
其次是STM32F103RET6 的mcu。
最重要的是可以使用中移动的OneNET云平台。
好了上照片看看板子吧:






上电后,各种色彩的LED闪开了,开始一脸懵逼的不知道哪个LED是干啥的,后来一看原理图就一目了然了。
连接电脑,串口自动识别:
串口助手消息如下:

  1. [18:30:52.582] SHT20 :Ok
  2. [18:30:52.582] ADXL345 :Ok
  3. [18:30:52.582] EEPROM :Ok
  4. [18:30:52.582] WaitAck TimeOut
  5. [18:30:52.586] OLED :Error
  6. [18:30:52.586] 2.SSID: ONENET,   PSWD: IOT@Chinamobile
  7. [18:30:52.624] DEVID: ******,     APIKEY: ****************************
  8. [18:30:52.624] 3.Hardware init OK
  9. [18:30:52.624] 4.OSStart
  10. [18:30:52.635] Tips:        NET_Device_Reset
  11. [18:30:54.518] Wifi Mode
  12. [18:30:55.810] STA Tips:        AT+CWMODE=1
  13. [18:30:58.167] STA Tips:        AT+CIPMODE=0
  14. [18:30:58.221] STA Tips:        AT+CWJAP="ONENET","IOT@Chinamobile"
  15. [18:30:58.271] WARN:        AT+CWJAP Err
  16. [18:31:13.873] Wifi info Error,Use USART1 -> 8266
  17. [18:31:13.876] STA Tips:        AT+CWJAP="ONENET","IOT@Chinamobile"
  18. [18:31:13.906] WARN:        AT+CWJAP Err
  19. [18:31:29.470] Wifi info Error,Use USART1 -> 8266
  20. [18:31:29.470] STA Tips:        AT+CWJAP="ONENET","IOT@Chinamobile"
  21. [18:31:29.500] WARN:        AT+CWJAP Err
  22. [18:31:45.061] Wifi info Error,Use USART1 -> 8266
  23. [18:31:45.064] STA Tips:        AT+CWJAP="ONENET","IOT@Chinamobile"
  24. [18:31:45.094] Tips:                Timer Check Err
  25. [18:31:52.807]
  26. [18:31:53.832] *******************HardFault_Handler*******************
  27. [18:31:53.832] SHT20 :Ok
  28. [18:31:56.030] ADXL345 :Ok
  29. [18:31:56.030] EEPROM :Ok
  30. [18:31:56.030] WaitAck TimeOut
  31. [18:31:56.033] OLED :Error
  32. [18:31:56.033] WARN:        IWDG Reboot
  33. [18:31:56.067] 3.Hardware init OK
  34. [18:31:56.067] 4.OSStart
  35. [18:31:56.080] WARN:        Fault Process
  36. [18:31:56.080] WARN:        FAULT_REBOOT
  37. [18:31:56.080] Tips:        NET_Device_Reset
  38. [18:31:56.095] Wifi Mode
  39. [18:31:57.388] STA Tips:        AT+CWMODE=1
  40. [18:31:59.735] STA Tips:        AT+CIPMODE=0
  41. [18:31:59.781] STA Tips:        AT+CWJAP="ONENET","IOT@Chinamobile"
  42. [18:31:59.829] WARN:        AT+CWJAP Err
  43. [18:32:15.383] Wifi info Error,Use USART1 -> 8266
  44. [18:32:15.383] STA Tips:        AT+CWJAP="ONENET","IOT@Chinamobile"
  45. [18:32:15.413]

复制代码

这是WIFI 联网模式,暂时由于内部代码自动默认连接名为ONENET的wifi热点,我这里当然没有,所以报错自动重启啦
切换到GPRS联网模式看看:

  1. [18:40:36.713] SHT20 :Ok
  2. [18:40:36.713] ADXL345 :Ok
  3. [18:40:36.713] EEPROM :Ok
  4. [18:40:36.713] WaitAck TimeOut
  5. [18:40:36.718] OLED :Error
  6. [18:40:36.718] 2.SSID: ONENET,   PSWD: IOT@Chinamobile
  7. [18:40:36.752] DEVID: ******,     APIKEY: ******************************
  8. [18:40:36.755] 3.Hardware init OK
  9. [18:40:36.755] 4.OSStart
  10. [18:40:36.767] Tips:        NET_Device_Reset
  11. [18:40:38.668] Gprs Mode
  12. [18:40:42.063]
  13. [18:40:42.472] **************************
  14. [18:40:42.472] 2016 10:16:34
  15. [18:40:42.481]
  16. [18:40:42.481] OK
  17. [18:40:42.481] 161130_EXTERNALSIM_HS8292U_V33
  18. [18:40:42.481]
  19. [18:40:42.481] Platform Version: MOCOR_12C.W13.36_Release
  20. [18:40:42.493] Project Version:   SC6500_modem
  21. [18:40:42.493] BASE  Version:     BASE_SVN
  22. [18:40:42.493] HW Version:        SC6500_modem
  23. [18:40:42.493] 12-07-
  24. [18:40:42.493] **************************
  25. [18:40:42.496] STA Tips:        AT+SSYS?
  26. [18:40:42.518] STA Tips:        AT+SIM1
  27. [18:40:42.553] STA Tips:        AT+CPIN?
  28. [18:40:42.599] STA Tips:        AT+CPIN?
  29. [18:40:44.710] STA Tips:        AT+CPIN?
  30. [18:40:46.832] STA Tips:        AT+CPIN?
  31. [18:40:48.943] STA Tips:        AT+CPIN?
  32. [18:40:51.054] STA Tips:        AT+CPIN?
  33. [18:40:53.175] STA Tips:        AT+CPIN?
  34. [18:40:55.286] STA Tips:        AT+CPIN?
  35. [18:40:57.397] STA Tips:        AT+CPIN?
  36. [18:40:59.519] STA Tips:        AT+CPIN?
  37. [18:41:01.630] STA Tips:        AT+CPIN?
  38. [18:41:03.741] STA Tips:        AT+CPIN?
  39. [18:41:05.862] STA Tips:        AT+CPIN?
  40. [18:41:07.974] STA Tips:        AT+CPIN?
  41. [18:41:10.085] STA Tips:        AT+CPIN?
  42. [18:41:12.206] STA Tips:        AT+CPIN?
  43. [18:41:14.317] STA Tips:        AT+CPIN?
  44. [18:41:16.428] STA Tips:        AT+CPIN?
  45. [18:41:18.550] STA Tips:        AT+CPIN?
  46. [18:41:20.661] STA Tips:        AT+CPIN?
  47. [18:41:22.772] STA Tips:        AT+CPIN?
  48. [18:41:24.893] STA Tips:        AT+CPIN?
  49. [18:41:27.004] STA Tips:        AT+CPIN?
  50. [18:41:29.116] STA Tips:        AT+CPIN?
  51. [18:41:31.237] STA Tips:        AT+CPIN?
  52. [18:41:33.348] STA Tips:        AT+CPIN?
  53. [18:41:35.459]

复制代码


板子自动识别接入联网模块,这里SIM卡位MICRO-sim,而我的卡却是nano-SIM还得找个卡套啊
好了,上电结束,后面我将采用HAL库进行板载外设的编程,以及后面联如云平台代码的植入。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top