1
\$\begingroup\$

I have a Telit GL865 GSM/GPRS module which is connected to a SBC (running ARCH Linux.) via Serial Port. For GPRS connection, PPP connection as indicaten on this page.

I want to read Cell Tower Signal Strength by the following AT Command: AT+CSQ?

But I can not use AT commands (AT+CSQ?) if PPP connection is active. First I detach/release PPP connection. Than I can use AT commands. Reconnection to the GPRS tooks about 2-3 minutes. But I do not want to wait for this delay.

Is there any way to check Cell Signal Strength Level or running this AT command (AT+CSQ?) without closing/disconnecting the PPP Connection?

\$\endgroup\$
2
\$\begingroup\$

Try the following:

Suspend the PPP connection by sending the +++ escape sequence:

(wait one second) +++ (wait one second)

If the modem comes back with OK, you are back in command mode. If it comes back with NO CARRIER, then this method will not work as it has hung up.

Assuming it comes back with OK, you can now send your AT+CSQ command (or any others).

When done, use this to re-enter the PPP data state:

AT+CGDATA=”PPP”,1

\$\endgroup\$
1
\$\begingroup\$

Yes, you can use GSM 27.010 serial multiplex mode on the modem ("CMUX mode" - telit has a guide to this mode which you can find online), together with the Linux GSM 27.010 line discipline (n_gsm) to do the actual heavy lifting of creating and interpreting the multiplexed serial traffic. You can use the ldattach command to put the modem into the correct mode, and then attach the line discipline to the serial port (there are also various other similar commands which do the same thing, but also do the CMUX setup on the modem automatically, instead of you having to specify the AT command via ldattach arguments).

Once the line discipline is attached, you'll then have multiple virtual serial ports /dev/gsmtty1, /dev/gsmtty2 etc. which you can use simultaneously. Put the ppp connection on /dev/gsmtty1, and execute the AT+CSQ command on /dev/gsmtty2 without any interruption to the ppp session.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.