找回密码
 注册
搜索
楼主: tonish

[讨论] 关于AT指令的编程,请高手帮忙

[复制链接]
发表于 2008-8-7 12:38:03 | 显示全部楼层
首先保证ATE!=0

RS232Error =OpenComConfig (com_port_imei,, devicename, 57600, 0, 8, 1, 512, 512 );   // u多了一个逗号
//增加FlushOutQ(comport);
Fmt(write_buffer_imei,"%s<%s","AT+EGMR=0,7\\r");
RS232Error_imei =ComWrt (com_port_imei, write_buffer_imei,strl(write_buffer_imei));  //得到长度的函数错误, strlen();
Delay(0.5);
RS232Error_imei = ComRd (com_port_imei, read_buffer_imei, 30);//把30改成 strlen(read_bufer);
FlushInQ (com_port_imei);
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-9-21 13:53 , Processed in 0.058144 second(s), 13 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表