关于中移
中移物联网旗下
- OneMO是中移物联网打造的物联网专业模组品牌
- OneOS 是中移物联网有限公司自主研发的物联网操作系统
- OneNET 是中移物联网有限公司发布的物联网开放平台
形成了从硬件模组到云平台、再到操作系统的完整物联网解决方案
4g模组官方网站
http://onemo10086.com/#/aboutus
官方教程
http://onemo10086.com/#/school/article/514?id=514
sdk获取
官方客户不知道啥时候上班 早上10点也说不在服务时间内 找不到官方的sdk下载路径
sdk获取
https://github.com/viys/ML305A_ML307A_OpenCPU_Standard_1.4.2.2023062518_release
诊断工具文档
http://file.whycan.com/files/202412/ML307/5_ML307R_%E7%BB%B4%E6%8A%A4%E8%AF%8A%E6%96%AD%E5%B7%A5%E5%85%B7%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C_V1.0.1.pdf
https://github.com/RomaWan/ML307/blob/main/5_ML307R_%E7%BB%B4%E6%8A%A4%E8%AF%8A%E6%96%AD%E5%B7%A5%E5%85%B7%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C_V1.0.1.pdf
驱动下载 CATStudio
https://gitcode.com/open-source-toolkit/13721/?utm_source=tools_gitcode&index=top&type=card&
烧写工具 aboot-tools
https://os.iot.10086.cn/download/tool
烧录模式
先一直按着BOOT按键,然后按一下RST按键, 然后松开RST按键, 最后松开BOOT,此时模组进入了烧录程序模式
开发记录
烧录报错
对比编译
好像缺少一个步骤,python版本为3.9 切换为3.7 还是报错如上
烧写log
23:24:58.204 stopping aboot download engine...
23:24:58.204 <COM11> device offlined
23:24:58.204 <COM11> extinguishing device <COM11>...
23:24:58.204 <COM11> device <COM11> extinguished successfully.
23:24:58.204 <COM11> disconnecting from serial device <COM11>...
23:24:58.204 Reading from COM port (ReadIOCompletion): Operation aborted
23:24:58.204 disconnected from serial device <COM11> successfully!
23:24:58.204 <COM11> OFFLINE device_open_failed_num = 0, device_list size = 0
23:24:58.204 received all devices closed message.
23:24:58.204 aboot download engine stopped successfully.
23:24:58.272 initializing aboot release package...
23:24:58.272 extracting download.json (2 KB)...
23:24:58.273 extracting partition.bin (2 KB)...
23:24:58.274 initialized aboot release package successfully.
23:27:08.108 starting aboot download engine...
23:27:08.108 extracting download.json (2 KB)...
23:27:08.108 download engine running in upgrade mode!
23:27:08.108 aboot download engine started successfully.
23:27:08.108 getting serial devices list...
23:27:13.198 <COM11> new device arrived.
23:27:13.198 enabling device <COM11> into downloading mode...
23:27:13.198 device <COM11> enabled successfully.
23:27:13.198 connecting to serial device <COM11>...
23:27:13.239 <COM11> connected to serial device <COM11> successfully!
23:27:13.239 <COM11> starting to fire device <COM11>...
23:27:13.239 <COM11> ONLINE device_open_failed_num = 0, device_list size = 1
23:27:13.239 <COM11> device <COM11> fired successfully.
23:27:13.273 <COM11> #=> [INFO: UsbArch ] usb phy reg: 0xd42070a4 = 0x189b
23:27:14.327 <COM11> device <COM11> is ready to be enabled manually
23:27:14.390 <COM11> #=> [INFO: Main ] Downloading command detected.
23:27:14.390 <COM11> #=> [INFO: Aboot ] volume "boardid" not found, use empty as default!
23:27:14.412 <COM11> processing command [get bootrom info]
23:27:14.412 <COM11> enable fast downloading mode
23:27:14.412 <COM11> OKAY [ 0.000s]
23:27:14.412 <COM11> processing command [require product arom-tiny]
23:27:14.412 <COM11> Checking product
23:27:14.412 <COM11> OKAY [ 0.000s]
23:27:14.412 <COM11> processing command [require version 0.6]
23:27:14.412 <COM11> Checking version
23:27:14.412 <COM11> OKAY [ 0.000s]
23:27:14.412 <COM11> processing command [require version-bootrom 2022.11.06]
23:27:14.412 <COM11> Checking version-bootrom
23:27:14.412 <COM11> OKAY [ 0.000s]
23:27:14.412 <COM11> processing command [progress weight 6946816]
23:27:14.412 <COM11> setting total progress
23:27:14.412 <COM11> OKAY [ 0.000s]
23:27:14.422 <COM11> target reported max download size of 65408 bytes
23:27:14.422 <COM11> extracting preboot.img (25 KB)...
23:27:14.422 <COM11> processing command [call preboot.img]
23:27:14.422 <COM11> Sending 'preboot.img' (25 KB)
23:27:14.422 <COM11> OKAY [ 0.000s]
23:27:14.422 <COM11> verifying
23:27:14.422 <COM11> #=> [ERR : Fip ] Not a fip!
23:27:14.422 <COM11> FAILED (remote: image verify failed)
23:27:14.422 <COM11> all finished. total time: 0.011s
问题解决: 烧录问题解决 换了一个下载工具 就好了。。。。
定时器崩溃问题
不能在定时器回调中 写打印、复杂计算、耗时长的操作
如何获取ms级时间戳
sdk中使用了os,心跳为5ms,也就是说我开一个定时器最快的速度也就是5ms,太慢了。。
资源消耗查询
可用ram、和文件系统的剩余空间是可以通过软件接口查询的,但是如何获取编译后的map文件呢?
关于文件系统
是否存在擦写均衡,寿命多久?
参考
https://cloud.tencent.com/developer/article/2435789
https://blog.csdn.net/jcf5832/article/details/144294665