Tera term串口下发AT命令测试

软件准备:teraterm-4.77.exe

编辑软件TTL:setup_ttleditor_1_5_1.exe

下载链接: https://pan.baidu.com/s/1i5CbIbb 密码: s756


tera term打开界面如下:


如果安装TTL,可以直接在TTL下面编写命令流程,点击Run Macro即可运行。


下面时下发AT命令测试的脚本:

connect "/c=3 /baud=38400"


gettime logstr "log-%Y%m%d-%H%M%S.txt"
setdir 'd:\User\Desktop'
;changedir 'd:\User\Desktop'
getdir curdir
;curdir ='d:\User\Desktop'
sprintf '%s\%s' curdir logstr
filename = inputstr




logopen filename 0 1 1 1
logwrite '************Log start'#13#10


sendln "ATI"
wait "OK"


sendln "AT+CGMR"
wait "OK"


sendln "AT+CGSN"
wait "OK"


sendln "AT+IPR?"
wait "OK"


sendln "AT+CPIN?"
wait "OK"


sendln "AT+CSQ"
wait "OK"


sendl

你可能感兴趣的:(Tera term串口下发AT命令测试)