Table of Contents

Name

decode_pdu - decodes a PDU string and displays all contained fields in clear text.

Synopsis

decode_pdu [ options ] -s string

Description

decode_pdu is command-line helper tool for the SMSLink project. It accepts a raw PDU string (as captured straight off some GSM module) and converts it (using the same routines as the SMSLink server module), listing all the contained fields in clear text. Warning: decode_pdu can't be used to decode a PDU string created with encode_pdu(1) . The PDU format for sending doesn't contain the same fields as the format when received. The intention with this utility and the ones that will follow, is to provide an environment that will ease developpment of further PDU features support.

This manual page will cover the functionalities and use of decode_pdu.

Options

-g
Turns debugging on.
-h
Displays a short help message and exits.
-v
Displays version information and exits.
-m model
The GSM model you want to emulate. Some PDU fields are model-dependant, which means you may need to emulate the device which received the PDU string in the first place. All models supported by SMSLink are supported here. The compiled-in default will be listed when invoquing decode_pdu -h. When using this option, please replace model with the MOD field as listed in the /etc/gsmcaps "driver" file (first field of each record). Beware: the handling of this field / option is case-sensitive.
-z charset
The character set to be used when encoding / decoding the provided string. Use decode_pdu -h to list all supported charsets, the token you have to specify instead of charset as parameter for this option, and the compiled-in default.
-s string
The PDU string that you want decoded.

Return Value

Upon success decode_pdu returns 0. When a problem occurs, a non-zero value is returned.

Files

/etc/gsmcaps
"Driver" file, containing a few fields defining the properties and capabilities of each supported GSM model.

Bugs

See the BUGS document in the sources directory or the relevant section on the web site.

See Also

sms_serv(1) , encode_pdu(1) , gsmts0338(1) , gsmcaps(5)

The INSTALL and README documents in the sources tree.

Copyright

SMSLink is (c) Les Ateliers du Heron, 1998-2006 by Philippe Andersson <philipa STRUDEL scarlet PUNKT be>. It has been originally written for Scitex Europe, S.A.

Part of the code is (c) Riccardo Facchetti.

The code also includes contributions from Philipp Klaus <pklaus@access.ch> and numerous others. All contributors are acknowledged in the CHANGELOG document, and in the comment headers of the source files they modified.

SMSLink has been released to the public under the GNU GPL.

Home page: <http://smslink.sourceforge.net/ >


Table of Contents