Author |
Post |
|
#1 Wed Aug 19, 2020 15:20, 50 months ago.
|
Member
Registered: Aug 2020
Location: Canada
|
Hello, Whenever I receive an incoming message that is past a certain length smstools adds a '\n' character. The main issue with this isn't the '\n' character, it's the fact that just before that character is printed smstools seems to duplicate the character that is printed just before the new line break. Here's an example of my issue: Haven't managed to find any config options that could change this so I figured I'd ask if anyone else here has had this issue.
|
|
#2 Wed Aug 19, 2020 18:01, 50 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Can you please show the received PDU's? If you had loglevel 7, PDU's can be found from the log. If you don't have a log, use a global setting store_received_pdu = 3, and receive the same message again. You can protect the data using Private tag.
|
|
#3 Thu Aug 20, 2020 17:54, 50 months ago.
|
Member
Registered: Aug 2020
Location: Canada
Topic owner
|
Thanks for the quick reply. Here's the same message with the PDU output: « Last edit by keke on Fri Aug 21, 2020 01:18, 50 months ago. »
|
|
#4 Fri Aug 21, 2020 01:18, 50 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Thank's for the information, which looks interesting...
Your file looks like adjusted to the line width of 82 or 83. What is causing those extra characters, I do not know. Not smstools in any case. Do you have an eventhandler which does weird stuff? Probably not, perhaps some editor which you are using to view messages does some wrapping but fails? Or is it a terminal? If you just cat incoming/GSM1.xxxxxx and there are extra characters visible, is it possible to change the width of terminal window?
To be sure about what really is in the file, you could use hexdump -C to verify it.
|
|
#5 Fri Aug 21, 2020 14:02, 50 months ago.
|
Member
Registered: Aug 2020
Location: Canada
Topic owner
|
Thanks for all the info and ideas.
I tried using cat incoming/GSM1.xxxxxx and the duplicated character was nowhere to be seen. I also tried accessing the file using nano and I still couldn't see the duplicated character. For whatever reason when I use vim the duplicated character seems to show (must have something to do with the fact that I'm using a TTY application to get access to the device). So it seems like this visual bug only happens in that one editor which is strange but is a big relief.
Thanks for the help with this, it's much appreciated.
|