Skip to main content
All CollectionsKnowledgebase
How to send an SMS from an FX30/FX30S gateway
How to send an SMS from an FX30/FX30S gateway
S
Written by Sierra Wireless
Updated over 3 years ago
  • SMS outbound/inbound has to be provisioned for the used SIM
    โ€‹

  • Configure AT+cmgf=1

    • The AT command +CMGF (command name in text: Message Format) is used to select the operating mode of the GSM/GPRS modem or mobile phone. It takes one parameter.

    • The value of the parameter can either be 0 or 1. The values 0 and 1 refer to SMS PDU mode and SMS text mode respectively.

    • SMS PDU mode is the default mode if it is implemented on the mobile device.
      โ€‹

  • Use command +CMGS to Send text message.

AT+CMGS="+11234567890"
> Test

Note: Press CTR+Z in the keyboard

>> Output provided and message is sent

Example

Using username "root".
root@fx30s:~# cm data
Index: 1
APN: ltemobile.apn
PDP Type: IPV4V6
Connected: yes
Interface: rmnet_data0
Family[IPv4]: inet
IP[IPv4]: 25.188.101.105
Gateway[IPv4]: 25.188.101.106
Dns1[IPv4]: 64.71.255.254
Dns2[IPv4]: 64.71.255.253
Family[IPv6]: inet6
IP[IPv6]: 2605:8d80:4e0:3b29:58b6:6166:634:fef2
Gateway[IPv6]: 2605:8d80:4e0:3b29:959b:e14c:fdd4:6293
Dns1[IPv6]: 2607:f798:18:10:0:640:7125:5254
Dns2[IPv6]: 2607:f798:18:10:0:640:7125:5253
root@fx30s:~# microcom -E /dev/ttyAT
at
OK
AT+cmgf=1
OK
AT+CMGF?
+CMGF: 1

OK
AT+CMGS="+11234567890"
> test
>

+CMGS: 129

OK
>>

Did this answer your question?