|
|
SMS Server Tools 3 Community |
Welcome, Guest. Please login or register. |
Sat May 18, 2024 19:16 |
Page: 1
Keywords: Mode: All keywords (AND) |
Tue Oct 20, 2009 17:49
|
Vincent: Well, all fine with these stuff..
Can i ask you something at this post or sholuld i start another topic?? My question is how can i execute a shell command using sms??? E.g. how can i send a "reboot" command to my Linux Box through sms??
|
Tue Oct 20, 2009 17:04
|
Vincent: It seems that the problem is at the phone, not at the charset.c...
i tried it and to another phone and it happens the same thing.....
The devices does not support all the greek characters.....
|
Tue Oct 20, 2009 16:59
|
Vincent: :D
you are very kind...
i made the conversion to charset.c and now it looks like this
'?' , 0x3F, // QUESTION MARK
0xA1, 0x40, // INVERTED EXCLAMATION MARK
// 'A' , 0x41, // LATIN CAPITAL LETTER A...Z
// 'B' , 0x42,
0xC1, 0x41,
0xC2, 0x42,
'C' , 0x43,
'D' , 0x44,
// 'E' , 0x45,
0xC5, 0x45,
// 'H' , 0x48,
// 'I' , 0x49,
0xC7, 0x48,
0xC9, 0x49,
'J' , 0x4A,
// 'K' , 0x4B,
0xCA, 0x4B,
'L' , 0x4C,
// 'M' , 0x4D,
// 'N' , 0x4E,
// 'O' , 0x4F,
// 'P' , 0x50,
0xCC, 0x4D,
0xCD, 0x4E,
0xCF, 0x4F,
0xD1, 0x50,
'Q' , 0x51,
'R' , 0x52,
'S' , 0x53,
// 'T' , 0x54,
0xD4, 0x54,
// 'X' , 0x58,
// 'Y' , 0x59,
// 'Z' , 0x5A,
0xD5, 0x59,
0xD7, 0x58,
0xC6, 0x5A,
The message send (the greek capital alphabet) is having some problems (letters E, Z, H, I and Ψ) although i double checked the conversion for mistakes.. When i resend the message back to my linux box the message appears RIGHT.... :shock: :shock: .All the other letters appear fine..... And i lost the latin characters... I think i will turn it back!!!!! :roll: :D
|
Tue Oct 20, 2009 11:03
|
Vincent: here we go..
i send a sms to my phone containing all greek alphabet capitals:
Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
at my phone arrived this:
Α Α Γ Δ Å Æ Ç Θ É É Λ I I Ξ I Π Ñ Σ O O Φ χ Ø Ω
i resend the message to my pc and the result was
Α Α Γ Δ Ε Ζ Η Θ Ι Ε Λ Ι Ι Ξ Ι Π Ρ Σ Ο Ο Φ χ Ψ Ω
after taking a look at http://www.unicode.org/Public/MAPPINGS/ETSI/GSM0338.TXT
i found that there are differences between same optical letters but different alphabets.
0x41 0x0041 # LATIN CAPITAL LETTER A
#0x41 0x0391 # GREEK CAPITAL LETTER ALPHA
0x42 0x0042 # LATIN CAPITAL LETTER B
#0x42 0x0392 # GREEK CAPITAL LETTER BETA
0x45 0x0045 # LATIN CAPITAL LETTER E
#0x45 0x0395 # GREEK CAPITAL LETTER EPSILON
so when i type greek Alpha the sms server receives 0x0391 instead of 0x0041 which is the only character accepted.
and as far as i can understand my phone also send only some greek capitals. the rest must be latin characters but simmilar optical with greek.
Actually this is not a major problem since my computer will send some pre-writen automated messages
And really thank you very, very much for the time you spend with my problem!!! :D
|
Tue Oct 20, 2009 09:07
|
Vincent: Sorry for my delayed answer...
My locale output is
root@host235 root]# locale
LANG=el_GR
LC_CTYPE="el_GR"
LC_NUMERIC="el_GR"
LC_TIME="el_GR"
LC_COLLATE="el_GR"
LC_MONETARY="el_GR"
LC_MESSAGES="el_GR"
LC_PAPER="el_GR"
LC_NAME="el_GR"
LC_ADDRESS="el_GR"
LC_TELEPHONE="el_GR"
LC_MEASUREMENT="el_GR"
LC_IDENTIFICATION="el_GR"
LC_ALL=
What i found is that receiving sms works like a charm, but when i try to send a sms, i have to change between the languages GR and US. This because as i understand the GSM alphabet does not contain all the Greek capital letters but only the different ones. For example Δ,Φ,Ξ,Ω,Π, Λ exists only at Greek Aplhabet, while H,I,K,O,T,P,A exists in both Alphabets.
|
Mon Oct 19, 2009 14:05
|
Vincent: It worked like a charm!!!!!
Thank you very much!!!!
|
Mon Oct 19, 2009 13:19
|
Vincent: The PDU string is:
( PRIVATE BLOCK )
the word in greek i'm sending is ΔΟΚΙΜΕΣ which appears as .OKIME. The greek characters Δ and Σ appears as dots.
also the smsd.conf is
devices = GSM
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
report = /var/spool/sms/report
sent = /var/spool/sms/sent
#mypath = /usr/local/bin
logfile = /var/log/smsd.log
loglevel = 7
#alarmhandler = /usr/local/bin/alarmevent
alarmlevel = 4
delaytime = 10
errorsleeptime = 10
blocktime = 3600
#blockafter = 3
#eventhandler = /usr/local/bin/smsevent
#stats = /var/log/smsd_stats
#stats_interval = 3600
#stats_no_zeroes = no
#blacklist = /etc/smsd.black
#whitelist = /etc/smsd.white
#checkhandler = /usr/local/bin/smscheck
receive_before_send = no
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 3
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
#store_received_pdu = 1
#validity = 255
decode_unicode_text = no
#internal_combine = no
#user = smsd
#group = dialout
#infofile = /var/run/sms/smsd.working
#pidfile = /var/run/sms/smsd.pid
#keep_filename = no
#store_original_filename = yes
#regular_run = /var/spool/sms/regular_run
#regular_run_interval = 300
#admin_to = (number)
#terminal = no
#filename_preview = 80
incoming_utf8 = no
#incoming_ISO-8859-7 = yes
#incoming_ISO = yes
[queues]
VODAFONE = /var/spool/sms/VODAFONE
[provider]
VODAFONE = 0,1,2,3,4,5,6,7,8,9
[GSM]
init = ATE0+CPMS="SM"
# Windows: /dev/com1, Solaris: /dev/cua/a, Linux /dev/ttyS0
device = /dev/ttyS1
incoming = yes
queues = VODAFONE
#You don't need a PIN for mobile phones
#pin = 1111
mode = new
smsc = 6942190000
baudrate = 9600
rtscts = yes
cs_convert = yes
report = no
memory_start = 1
#eventhandler = /usr/local/bin/smsevent
#primary_memory = memory name
#secondary_memory = memory name
#secondary_memory_max = number
#pdu_from_file = /var/spool/sms/GSM1-PDU
#sending_disabled = no
decode_unicode_text = no
#decode_unicode_text = yes
#internal_combine = no
#pinsleeptime = 5
#admin_to = (number)
#message_limit = 20
#message_count_clear = 60
|
Mon Oct 19, 2009 12:53
|
Vincent: Operating system name and version: Linux Centos
Version of smsd: 3.1.5
Smsd installed from: sources
Name and model of a modem / phone: Wavecom Fastrak
Interface: serial
How can i read my messages in ISO-8859-7 (Greek)?? The incomming messages appears scrambled...
Thank you for your time
|
Page: 1
Time in this board is UTC.
|
|
|
|
|
|
|