You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some test on module 'modem' that uses your pdu lib and I got problem while sending message in 7bit mode.
I found in pduParser.generate() the user data length (TP-UDL) in this case not calculated correctly and this leads to some characters at the end trimmed out, this should be base on original text string length rather than encoded pdu string base.
Btw, in pduParser.decode7Bit(), in the loop to built ascii string to return, I have also break if the char code is 0 (string terminator) to avoid of unnecessary character while printing on console (\u0000).
Regards,
HieuNguyen.
The text was updated successfully, but these errors were encountered:
Dear Emil Sedgh,
Thanks for your great PDU lib.
I have some test on module 'modem' that uses your pdu lib and I got problem while sending message in 7bit mode.
I found in pduParser.generate() the user data length (TP-UDL) in this case not calculated correctly and this leads to some characters at the end trimmed out, this should be base on original text string length rather than encoded pdu string base.
This is ref for the fix: http://subnets.ru/saved/sms_pdu_format.html
Btw, in pduParser.decode7Bit(), in the loop to built ascii string to return, I have also break if the char code is 0 (string terminator) to avoid of unnecessary character while printing on console (\u0000).
Regards,
HieuNguyen.
The text was updated successfully, but these errors were encountered: