FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
511 views 0 comments
by
Hi,

Is there a gsmctl command to check if a new SMS was sent to the modem?

Thank you.

Michael Meirovitz

Control See

1 Answer

0 votes
by anonymous

Hello,

If you execute gsmctl with no arguments, you will receive information of usable commands with gsmctl

  -S -r, --sms --read           <INDEX> Read SMS by index
  -S -l, --sms --list           <TYPE>  List SMS by type [all, read, new]
  -S -t, --sms --total          Print SMS memory usage
  -S -d, --sms --delete <INDEX> Delete SMS by index
  -S -s, --sms --send "<NUMBER> <TEXT>" Send SMS. IMPORTANT! Number and text must be within quotes
  -S -p, --sms --sendpdu "PDU"  Formed PDU will be send straight to modem
  -S -b, --sms --send-b64 <NUMBER>      Send SMS encoded in base64 from /tmp/.smstext
 

gsmctl -S -l all command should list all received SMS messages.

Or, you can use logread -f | grep SMS to catch an event of SMS being received via command line.

Best answer