Keywords: Mode: All keywords (AND) |
Mon Feb 18, 2013 16:55
|
deepcore: ...not quite sure how to mark question as solved... cannot edit title, no "solved button"
|
Mon Feb 18, 2013 16:50
|
deepcore: That fixed it. Thanks a lot - and sorry for (appearently) not having read the configuration section properly before asking.
|
Sun Feb 17, 2013 22:51
|
deepcore: If any other people are experiencing similar problems, here is a workaround I am currently using:
It seemed that the danish characters was always decoded to the same (wrong) characters.
This was verified looking at several incoming messages with a hex editor.
As the characters are consistently decoded to the same char, the octal value of these characters can be used along with a streameditor.
The following command produces a correctly formatted file.
sed -e "s/\o346/æ/g" -e "s/\o370/ø/g" -e "s/\o345/å/g" -e "s/\o306/Æ/g" -e "s/\o330/Ø/g" -e "s/\o305/Å/g" errorFile.txt >decodedCorrectly.txt
I have set up a listener on the .../spool/incoming/ directory and move the files through a script to /spool/incommingOk/ from where i can pick them up.
....
While this work. it is not a solution though - just thought someone might benefit from this.
This workaround works on Debian 6.0.6
|
Fri Feb 15, 2013 23:10
|
deepcore: Operating system name and version: Debian 6.0.6
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem : HUAWEI E1552
Interface: USB
I am having trouble recieving the special scandinavian caracters æøåÆØÅ correctly.
Whenever an sms is received, these caracters are replaced by "diamonds-caracters".
There are, however no trouble sending messages containing these letters.
If I, for instance sends the message:
"This is a danish character test: æøåÆØÅ"
i will receive an sms looking like this:
<top of message snipped>
Alphabet: ISO
Length: 39
This is a danish character test: ������
My config file is as below:
# Global configuration
devices = modem1
loglevel = 5
logfile = /var/log/sms/smstools.log
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
delaytime = 6
errorsleeptime = 12
blocktime = 180
autosplit = 3
receive_before_send = yes
hangup_incoming_call = yes
# Modem configuration # HUAWEI E1552B
[modem1]
init = AT+CPMS="ME","ME","ME"
device = /dev/ttyUSB0
incoming = yes
pin = 1234
baudrate = 19200
memory_start = 0
I have tried the following settings both in unison and independetly:
decode_unicode_text = yes
cs_convert = yes
The first does not help, and the second appearently blocks the messages so they do not show up in the incomming folder.
It is worth noticing that I am running on a system that does not have Danish localization. This does, however usually not present problems as danish special caracters have been around since extended ASCII.
Any help would be greatly appriciated, thanks.
|