2

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 !

Mike Pennington
  • 41,899
  • 19
  • 136
  • 174
Jérémy Dutheil
  • 6,099
  • 7
  • 37
  • 52

2 Answers2

2

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.

SKi
  • 8,007
  • 2
  • 26
  • 57
  • I don't think it supports, sadly ; anyway, we can shut down the connexion but how can I do that by using chat ? Nothing seems to work for now :/ – Jérémy Dutheil Dec 28 '11 at 09:28
1

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

Mike Pennington
  • 41,899
  • 19
  • 136
  • 174