gsm模块单独在电脑终端测试是没有问题的,但是拿到context A8开发板下就是读取不了串口数据,用的gsm模块是明基M23的。写的程序如下size返回的是-1,recv是空的,搞了几天,就是不知道哪里错了,请大神们帮我检查检查错误,感激不尽....
#include
大家好,我想通过Bash脚本实现gsm串口发送短信,实现报警的目的。 首先是将所有服务器的错误信息收集到一个服务器上,然后集中保存在一个文件内,定期grep这个文件里面的关键字,当出现符合要求的关键字后,通过gsm短信猫发送到指定人的手机上。 大概知道是通过AT指令发送短信,但是具体怎么对串口操作呢? 能不能通过shell脚本实现这个功能,不动用什么复杂的编程语言。 希望大家帮助我。
使用QT作主界面,通过串口操作GPRS实现打电话,发短信 //首先解决串口操作的问题 #ifndef UARTIO_H #define UARTIO_H int open_uart(char *fname); int set_uart_speed(int fd, int speed); int set_uart_parity(int fd, int databits, int stopbits, int parity); ssize_t read_uart_timeout(int fd, void *buf, size_t count, int timeout); #endif #include //串口头文件 #include #include #include #include int __spee...
/*作者:凌彬严,QQ:215643142,我是一名linux c应用开发自学者,初学不久,水平有限希望能与大家一起交流,向大家学习。欢迎加我的QQ或给我发邮件[email]215643142@qq.com[/email],如果你有linux c打印机开发接口源码与我分享将不胜感谢.——2010-09-29*/ /*以下是我自己做的一个简易的串口单口gsm短信猫linux c 开发接口源码,已做一些简单测试通过。欢迎大家批评指正或给予一些建议。*/
hello: OpenVox G400P can be implemented to send or receive sms. I will introduce few possible ways to get the features work. 1) To receive the sms, there is a patch to get sms and store that in text format under asterisk logs, customers can use script to parse that and save to somewhere. please refer this link: http://bbs.openvox.cn/viewthread.php?tid=981&extra=page%3D1 2) To send sms, there are ...
大家好, 我有一个gsm猫, 我使用超级终端来控制它,AT指令如下:AT+CMGS="131673433xx"<CR>hello,world!<CTRL+Z><CR> 其中的<CR>表示回车,短信正常发出,这是使用txt模式,我的猫是wavecom的 ========================= at+cmgs="131673433xx" > hello +CMGS: 7 OK ========================= 但...