I have a GPRS modem that I use with a PPP connection in an embedded Linux ; I need to get the modem hour while the connection is active, and for that I would like to use AT commands. But I have no idea how to send these commands to the modem...

I tryed with chat but it doesn't work the way I want, do you know how we can do this ? Send commands and get the return

Thanks !

有帮助吗?

解决方案

I make serial connections all day long from linux with PuTTY. After you find which device the serial line is (as well as the baud rate/stop-bits/pairty/flow-control), then use the terminal and send your ascii AT commands.

Your terminal could be minicom, picocom, putty or the like.

If you like python, pyserial is another option

其他提示

If your modem supports GSM07.11 multiplexer, then you may use it. One channel for pppd (or other ppp daemon) and other channel for AT commands.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top