Re: Modemmanager - how to send sms? - receiving is ok



----------------eredeti üzenet-----------------
Feladó: "PongráczI"
Címzett: "Dan Williams" dcbw redhat com
CC: networkmanager-list gnome org
Dátum: Wed, 1 Feb 2012 23:27:35 +0100
-------------------------------------------------


> Dear Dan,
>
> Thank you very much for your support!
> I check my debian testing packages regarding the mentioned version and the
> possibility how to use the latest (and greatest) release, even from git.
>
> modemmanager: 0.5-1
> dbus,dbus-x11, dbus-1-3: 1.4.16-1
> python-dbus-glib: 0.98-1
>> I'd try current git master, or the latest MM_05 branch of what will
>> become MM 0.5.2. That has the SMS fixes that I talk about above, plus
>> the reworked "sms-send.py" tool which I've tested quite a bit.
>>
>> Dan

Hi Dan,

I followed you advice, I downloaded the MM_05 branch and compiled in my system. I did not changed (means: compiled) other things on the system, so, the rest is in the same version I wrote above.
After the installation, I fixed a path problem (previously I compiled it with prefix: /usr/local instead of /usr) and the system started well, seems it is working with nmcli tool.

My test result with receiving sms from modem (there are two sms messages: indexes are: 0 and 1), now I got this garbage:

ebox@antiX1 :~/tmp/modemmanager/ModemManager/test$ ./sms-get.py /org/freedesktop/ModemManager/Modems/2 0
-------------------------------------------------------------------
0: From: 002B00330036003200300034003400380039003500380031 Time: 12/01/29,23:24:21+04 SMSC:
 004600720061006E0063006F0073002000670073006D

ebox@antiX1 :~/tmp/modemmanager/ModemManager/test$ ./sms-get.py /org/freedesktop/ModemManager/Modems/2 1
-------------------------------------------------------------------
0: From: 002B00330036003200300034003400380039003500380031 Time: 12/01/29,23:24:21+04 SMSC:
 004600720061006E0063006F0073002000670073006D

For sending sms, I got this one:
./sms-send.py --number +3620xxxxxxx "Uj modemmanager, uj problemak"
Sending message failed: org.freedesktop.ModemManager.Modem.Gsm.Unknown: Unknown error


Using dbus-send command line utility, I got this result (I printed some other info, too):

mm enum= "/org/freedesktop/ModemManager/Modems/2"
Dev= /org/freedesktop/ModemManager/Modems/2
Device info= "ZTE INCORPORATED"
"MF668A"
"BD_MF668AV1.0.1B02"
Device type (1-GSM, 2-CDMA) = 1
Signal quality= 80
SMS list: method return sender=:1.5 -> dest=:1.92 reply_serial=2
 array [
 array [
 dict entry(
 string "number"
 variant string "002B00330036003200300034003400380039003500380031"
 )
 dict entry(
 string "timestamp"
 variant string "12/01/29,23:24:21+04"
 )
 dict entry(
 string "text"
 variant string "004600720061006E0063006F0073002000670073006D"
 )
 dict entry(
 string "data"
 variant array of bytes [
 00 30 00 30 00 34 00 36 00 30 00 30 00 37 00 32 00 30 00 30
 00 36 00 31 00 30 00 30 00 36 00 45 00 30 00 30 00 36 00 33
 00 30 00 30 00 36 00 46 00 30 00 30 00 37 00 33 00 30 00 30
 00 32 00 30 00 30 00 30 00 36 00 37 00 30 00 30 00 37 00 33
 00 30 00 30 00 36 00 44
 ]
 )
 dict entry(
 string "data-coding-scheme"
 variant uint32 2
 )
 dict entry(
 string "index"
 variant uint32 0
 )
 ]
 ]

What do you think, should I recompile almost everything? :)

Seriously, if you can give me hints or short description, where to start, what to check, I can do it to move forward in this question.

Anyway, what do you think, even I got this result with my modem, that not means other modems will not work, right?


Thank you in advance,
István



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]