decode-pdu is a command-line tool for decoding output from Sony Ericsson commands (acquired through AT commands) to decode SMS PDUs.
Compile:
ghc --make decode-pdu.hs
Extract data from phone and store into a text file, using a terminal program such as screen
or minicom
with the following commands:
AT+CPMS="ME" +CPMS: 374,21267,0,20,374,21267 OK AT+CMGL=4 +CMGL: 1,3,,22 079144973701903711150C914497081478530000AD09CEF21D0447BFDD65 [...]
Filter this log file through decode-pdu
:
cat benc5-20100118.txt | ./decode-pdu >> 079144973701903711150C914497081478530000AD09CEF21D0447BFDD65 * To: +447980418735: New phone >> +CMGL: 2,1,,32 * Message number: 2 >> 0791449737709399040C914497081478530000906071712261400EC7F79BECBAA3C374D03AED2603 * From: +447980418735: Good.what kind(09-06-17) [...]
decode-pdu.hs (7.1k)
updated 20011-05-27 to compile with more recent Haskell Platform