Search code examples
linuxnetwork-programmingserial-portppp

Chat with modem during ppp connection


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 !


Solution

  • 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