/usr/share/doc/libgammu-dev/protocol/nokia-s40-sms.rst is in libgammu-dev 1.39.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | Nokia S40 filesystem SMS format
===============================
This text is work in progress and does not claim to be correct or accurate. It
is solely based on Gammu dumps received from users. Analysed by Michal Cihar
<michal@cihar.com>.
File structure
--------------
- 176 bytes header
- at offset 7 is length of PDU data
- at offset 94 is stored remote number in unicode
- rest is not known
- PDU data (without SMSC)
- here can be sometimes also some failure block, which is not known yet
- structured data header: 0x01 0x00 <LEN>, where <LEN> is length of rest
- structured blocks:
Block: <TYPE = byte> <LENGTH = word> <DATA ...>
Blocks
------
0x01
Unknown \x00 / \x01 (maybe received / sent)
0x02
SMSC number, ASCII
0x03
Text, unicode
0x04
Sender, unicode
0x05
Recipient, unicode
0x06
Unknown \x00\x00\x00\x00
0x07
Unknown \x00
0x08
Unknown \x02 / \x00
0x09
Unknown \x00\x00\x00\x00
0x0a
Unknown \x00
0x0b
Unknown \x00
0x0c
Unknown, several values (maybe message reference per number)
0x0d
Unknown \x00\x00
0x0e
Unknown \x00\x00
0x0f
Unknown \x00\x00
0x22
Unknown \x00
0x23
Unknown \x00\x00\x00\x00
0x24
Unknown \x00
0x26
Unknown \x00
0x27
Unknown \x00
0x2a
Unknown \x00
0x2b
some text (Sender?), unicode
To test:
- multiple recipients sms
|