faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
384 stars 302 forks source link

PDU not decoded correctly #51

Open obana1990 opened 9 years ago

obana1990 commented 9 years ago

Hi,

When I try to decode the following PDU 07912160130320F5440B917130263521F600005160101235458AA005C01BF40201E8E5393D2C1E93CBE633BD3CA787C56372D97CA697E7F4B0784C2E9BCFF4F29C1E168FC965F3995E9ED3C3E231B96C3ED3CB737A583C2697CD677A794E0F8BC7E4B2F94C2FCFE961F1985C369FE9E5393D2C1E93CBE633BD3CA787C56372D97CA697E7F4B0784C2E9BCFF4F29C1E168FC965F3995E9ED3C3E231B96C3ED3CB737A583C2697CD

I got the content as following as the sms text <LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖlöLÜ<Nß,<LÖl

I'm using the decodeSmsPdu from pdu.py by passing the du as string. Am I doing anything wrong?