SMS in Portuguese (PLS-62W) | Thales IoT Developer Community
April 8, 2020 - 5:11am, 1568 views
Hello
I need to use SMS in my application, however when I send some characters from the module to my cell phone and from module to module, some characters arrive exchanged. I even made a substitution method in java according to the GSM alphabet table, but I was unsuccessful
Example of characters exchanged @ =! and _ = '
Method according GSM table.
Best regards,
Italo
Hello,
Some characters are differently coded in GSM unfortunately. There is an escaping mechanism to cope with that. However according to AT commands Specification for SMS user data input after the prompt '>' in text **** (AT+CMGF)=1 and AT+CSCS="GSM" the character 0x1A is interpreted as 'CTRL-Z'. The character 0x1B (interpreted as 'ESC') as well as the escape character 0x5C (is interpreted as 'Ö'), therefore both escape mechanisms are not supported in this case.
It is recommended to use UCS2 alphabet and PDU **** instead if these characters are necessary.
Best regards,
Bartłomiej
Hello,
Hello, Thanks for your reply, however, when I send the message from my cell to the module the characters are correctly identified by java, the problem is being when sending the module to the cell. Even if it is only in the sending commands do you think it is better to switch to PDU ****?

Hello,
I have tried to send the characters you mentioned from my cell phone to the module (without Java app) and escape sequences were being displayed in place of @ and _ characters. This information from AT spec I have sent you previosly is also only about sending SMS messages. I think that the decision to switch to PDU should depend on your solution - if you have to use these characters in messages being sent from the module - PDU is more complicated to implement (if you don't have any libraries).
Regards,
Bartłomiej