DecodePdu: Difference between revisions
Jump to navigation
Jump to search
(Created page with " This command allows to accept an incoming call once presented on the specified port. '''COMMAND''' {| class="wikitable" !Command !Line Arguments !Returns |- |AcceptCall |PortIndex |Error Code in case of error. |} '''OUTPUT''' Command status: <br> "%s\n", status (CONNECTED or NO INCOMING CALL) '''EXAMPLE''' <syntaxhighlight lang="text"> ~# AcceptCall 0<br> CONNECTED<br> ~# AcceptCall 2<br> NO INCOMING CALL </syntaxhighlight> Category:SMS") Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
This command | This command decodes specified PDU buffer. | ||
'''COMMAND''' | '''COMMAND''' | ||
Line 8: | Line 8: | ||
!Returns | !Returns | ||
|- | |- | ||
| | |DecodePdu | ||
|PortIndex | |PortIndex,PDUBuffer | ||
| | |Decoded PDU, in the case of error, Error Code | ||
|} | |} | ||
'''OUTPUT''' | '''OUTPUT'''<br>Decoded information from PDU in the following format: "SMSC: %s\nPDU type: %s\n Phone number: %s\n Alphabet type: %s\n SMS class: %s\n SMS date: %s\nSMS time: %s\n Message text: %s\n",smsc_number, dest_number, alphabet_type, sms_class, sms_date, sms_time,message_text | ||
"%s\n", | |||
'''EXAMPLE''' <syntaxhighlight lang="text"> | '''EXAMPLE''' <syntaxhighlight lang="text"> | ||
~# DecodePdu 001100098121436587F900000B17C8329BFD064D9B5362999DB697E565B96BFC6E8700 | |||
SMSC: +33123456789 | |||
PDU type: SMS-DELIVER | |||
Phone number: +33666666789 | |||
Alphabet type: default GSM7. | |||
SMS has no message class meaning. | |||
SMS date: 02/08/26 | |||
SMS time: 19:37:41+80 | |||
Message text: <Hello?>. | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:SMS]] | [[Category:SMS]] |
Revision as of 20:50, 26 March 2025
This command decodes specified PDU buffer.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
DecodePdu | PortIndex,PDUBuffer | Decoded PDU, in the case of error, Error Code |
OUTPUT
Decoded information from PDU in the following format: "SMSC: %s\nPDU type: %s\n Phone number: %s\n Alphabet type: %s\n SMS class: %s\n SMS date: %s\nSMS time: %s\n Message text: %s\n",smsc_number, dest_number, alphabet_type, sms_class, sms_date, sms_time,message_text
EXAMPLE
~# DecodePdu 001100098121436587F900000B17C8329BFD064D9B5362999DB697E565B96BFC6E8700
SMSC: +33123456789
PDU type: SMS-DELIVER
Phone number: +33666666789
Alphabet type: default GSM7.
SMS has no message class meaning.
SMS date: 02/08/26
SMS time: 19:37:41+80
Message text: <Hello?>.