SendSmsText: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
No edit summary
m (added Category:R2D2 using HotCat)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
This command send a text SMS to a specified destination number.
This command send a specified text as a SMS to a specified destination number.
 
Text should be entered with double quotes, coded as UTF-8.
 
The SMS Center number can be specified as an optional parameter as well as an optionnal Timeout value in seconds.
 
Command exits as soon as the SMS is sent.


'''COMMAND:'''
'''COMMAND:'''
Line 8: Line 14:
|-
|-
|SendSmsText
|SendSmsText
|Port index, Destination number, SMS text, [SMSC number, Timeout)]
|Port index Destination number SMS text [SMSC number[ Timeout]]
|In case of Error, returns [[R2D2 Error Codes|Error Codes]]
|In case of Error, returns [[R2D2 Error Codes|Error Codes]]
|}
|}
(*) Note that the ATCommand must be entered with quotes if the AT Command itself includes double quotes or spaces. See below.


'''OUTPUT:'''
'''OUTPUT:'''


Response from the modem to the AT command.
None.


'''EXAMPLE:'''<syntaxhighlight lang="text">
'''EXAMPLE:'''<syntaxhighlight lang="text">
~# SendAtCommand 0, "ATI4"
~# SendSmsText 0 0632279930 "SMS message from BASH script"
ATI4
SMS SENT
Quectel
Message reference(s): 89
RM500Q-AE
Revision: RM500QAEAAR13A03M4G
OK
</syntaxhighlight>'''OR'''<syntaxhighlight lang="text">
</syntaxhighlight>'''OR'''<syntaxhighlight lang="text">
~# SendAtCommand 0,'AT+QCALLCFG="voice_enable"'
~# SendSmsText 0 0632279930 "SMS message from BASH script" +333600100100
+QCALLCFG: "voice_disable",1
SMS SENT
OK
Message reference(s): 54
</syntaxhighlight>
</syntaxhighlight>
[[Category:SMS]]
[[Category:R2D2]]

Latest revision as of 11:26, 27 March 2025

This command send a specified text as a SMS to a specified destination number.

Text should be entered with double quotes, coded as UTF-8.

The SMS Center number can be specified as an optional parameter as well as an optionnal Timeout value in seconds.

Command exits as soon as the SMS is sent.

COMMAND:

Command Input Arguments Returns
SendSmsText Port index Destination number SMS text [SMSC number[ Timeout]] In case of Error, returns Error Codes

OUTPUT:

None.

EXAMPLE:

~# SendSmsText 0 0632279930 "SMS message from BASH script"
SMS SENT
Message reference(s): 89

OR

~# SendSmsText 0 0632279930 "SMS message from BASH script" +333600100100
SMS SENT
Message reference(s): 54