Gemalto is now part of the Thales Group, find out more.

You are here

Custom AT command for monitoring signal level

Showcase, June 14, 2019 - 3:16pm, 805 views

Introduction

New Java API available for ELS61 rel.2, PLS62 and EHSx rel.4 module allows to create custom AT commands. This showcase presents custom AT command that allows to monitor signal level. The same command can be used in all cellular technologies (2G, 3G, 4G). 
To monitor signal level with standard AT commands, different command has to be used in 2G (AT+CSQ) and different in 3G/4G (AT^SMONI). Hence, only one custom AT command AT^CSQ makes monitoring signal easier.

Command description

Only exec mode of this command is available. In test mode and write mode it returns error.

at^csq=?

ERROR 

at^csq?

ERROR 

If module is registered to the network it returns two lines. The first one is the description of parameters. Second line contains parameters themself:

-used technology,

-paramaters relevant for signal quality assessment (depending on used technology),

-unified rating in the scale from 1 to 5 (5 is the best signal).

at^csq

^CSQ: Rat | RSSI [dBm] | Signal Bar [*/5]

^CSQ:  2G ,     -93    ,        3

OK 

at^csq

^CSQ: Rat | RSCP [dBm] | Ec/No [dB] | Signal Bar [*/5]

^CSQ:  3G ,     -57    ,    -9.0    ,        5

OK 

at^csq

^CSQ: Rat | RSRP [dBm] | RSRQ [dB] | Signal Bar [*/5]

^CSQ:  4G ,     -92    ,   -11.5   ,        2

OK 

If module is not registered (or in airplane mode) it returns only "Not Registered".

at^csq

^CSQ: Not Registered

OK

MIDlet description

After execution of AT^CSQ command, MIDlet sends command AT^SMONI to check registration state and cellular technology. If module is registered to the network, it reads relevant parameters (in 2G from AT+CSQ and in 3G/4G from AT^SMONI). Based on it, it assesses quality level and print it as a response together with other parameters.

In Logger.java, line 11, level of logs can be modified.

Alopez's picture
Alopez

Hi,

Really nice

thanks for the contribution

Regards

ALOPEZ

Somewhere over the rainbow!!! Looking for the Oz Land!!!

ADAM GEMALTO