Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send in HEX format? #78

Open
therawk opened this issue Apr 18, 2019 · 1 comment
Open

How to send in HEX format? #78

therawk opened this issue Apr 18, 2019 · 1 comment

Comments

@therawk
Copy link

therawk commented Apr 18, 2019

My GSM Modem doesn't support UCS-2 but HEX. I have been using a C# app, converted it to PDU and then sent used AT commands to send SMS through serial port.

This library seems more reliable but I can't seem to get this working with HEX. When I try to send like emojis the application dies.

I guess I was close but this library always tries to encode the messages as UCS-2

Am I missing something here?

@tomchy
Copy link

tomchy commented Feb 12, 2021

Hi @therawk !
If you look at the pdu.py (e.g. lines 299-307), you will see that only two modes are used and that the HEX format is not listed there, so it is likely that it will not even set the input mode of the modem properly.

Since you were using the third format - do you have some code/samples/tests to include into the library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants