AT command for disable Radio Signal Strength Indication and alike?

10,858

Solution 1

You should try turning off periodic messages as using AT^CURC=0.

Information regarding the AT^CURC command:

AT^CURC? Current setting of periodic status messages

AT^CURC=? See what you possible values are

AT^CURC=0 turn off periodic status messages

Solution 2

The best way to tackle this scenario would be to replace that part of the response with an empty string because otherwise, it will be difficult to check even if the command sent to disable it is working or not.

This regex will match all those. You can replace them ideally by an empty string.

(\\n|\\r|\\r\\n)\\^.*(\\n|\\r|\\r\\n)
Share:
10,858
Lasse Michael Mølgaard
Author by

Lasse Michael Mølgaard

I have been playing / programmed computers since I was about 7 years old! :-) I have since taking a diploma in advanced computer studies, and I have a bachelor degree in computer science. I have unfortunately not completed my masters degree, since I never haded in my master thesis. I have lately studied for Ciscos CCNA.

Updated on June 14, 2022

Comments

  • Lasse Michael Mølgaard
    Lasse Michael Mølgaard almost 2 years

    Im working on a program to send and recieve SMS using a GSM modem and my computer.

    I have gotten sending and receiving to work - well sort of.

    Once in a while my program is sent into a total chrash due to modem is mixing up information about Radio Signal Strength Indication and alike, while also serving my program with the hex code for the message.

    My code can handle the hex code just fine. but I have seen the following line popup while im decoding a byte stream:

    ^RSSI: 2
    

    So far I've seen it send out values between 1 and 10.

    Is there an AT Command that can disable them? I have no need for them.

    Or alternative: Is there a general syntax for them, so I can filter them out before decoding?

    Im leaning towards a filter solution. But that would be more easy to implement if I knew whenever modem is sending out on the form: "^SOMETHING: xxx", then It would be nice to know if it is always followed up be a delimiter say for instance "\r".

  • Lasse Michael Mølgaard
    Lasse Michael Mølgaard almost 12 years
    Have a PuTTY session running for a while now. And AT^CURC command did the trick! PuTTY is very quiet now. ;-)
  • Admin
    Admin almost 11 years
    Thanks. This parameter At^curc=0 stopps my modem to hopping from wcdma to hsdpa and vice-versa incessantly. Thanks a lot !