import time from machine import UART uart = UART(2, 115200) # 在web后台配置网络通道 # 读取imei uart.write("config,get,imei\r\n") # 读取imei time.sleep(0.5) data=uart.read() data=data.decode('utf-8').strip() datas=data.split(',') imei=datas[3] print(imei) # 发送imei进行数据上报 uart.write(imei) # http://47.99.116.246:58096/api/alert/alert?imei={imei} n=0 data=None while n<30 and data==None: n+=1 time.sleep(1) data=uart.read() if not data==None: data=data.decode('utf-8') print(data)
Web配置用户手册
http://wiki.yinerda.com/images/6/6c/银尔达-DTU固件Web配置用户手册.pdf
串口配置命令手册
http://wiki.yinerda.com/images/d/d8/银尔达-DTU固件串口配置命令手册.pdf
4G通信+UART串口
https://doc.itprojects.cn/0006.zhishi.esp32/02.doc/index.html#/c17.4g.uart
4g模块 (银尔达 4G模块Air724合宙Cat1 DTU物联网通信)
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.64c92e8dUI78bI&id=619967348711&_u=k1pdqa0o7390