Chat with modem during ppp connection
-
07-04-2021 - |
문제
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.