Re: Reading binary messages
is there a way to save/display the raw message so one can maybe extract the URL manually somehow? Although, bluesms.py mentioned at other placed in the thread is nice...here is a snippet that does exactly what you want to do... #!/usr/bin/env python import dbus import subprocess bus = dbus.SystemBus() msgs_obj = bus.get_object(org.freesmartphone.opimd, /org/freesmartphone/PIM/Messages) msgsIFace = dbus.Interface(msgs_obj, org.freesmartphone.PIM.Messages) queryPath = msgsIFace.Query({'SMS-alphabet':'binary', 'Direction':'in'}) queryObj = bus.get_object(org.freesmartphone.opimd, queryPath) queryIFace = dbus.Interface(queryObj, org.freesmartphone.PIM.MessageQuery) count = queryIFace.GetResultCount() msgs = queryIFace.GetMultipleResults(count) queryIFace.Dispose() for msg in msgs: sender = msg[Sender] smsData = msg[SMS-data] smsStr = '' for charData in smsData: character = chr(int(charData)) smsStr = smsStr + character msgPath = msg[Path] #subProc = subprocess.Popen([file, -bi, -], stdout=subprocess.PIPE, stdin=subprocess.PIPE) #msgType = subProc.communicate(smsStr)[0].strip() #msgObj = bus.get_object(org.freesmartphone.opimd, msgPath) #msgIFace = dbus.Interface(msgObj, org.freesmartphone.PIM.Message) #msgIFace.Update({'SMS-content_mime':msgType}) print * print Sender: + sender print msgPath: + msgPath print msgType: + msgType print content following print smsStr print --Vikas ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Hi.. KaZeR wrote: Has anyone succeeded / starting working on reading binary sms? I have some of them sitting in my inbox, under SHR it's only displayed as This is a binary message just wondered if anyone can tell about progress in that matter? I have a bunch of the binary messages, too.. :S is there a way to save/display the raw message so one can maybe extract the URL manually somehow? cheers, -- Thomas -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 640k ought to be enough for anybody. - Bill Gates, 1981 -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ signature.asc Description: OpenPGP digital signature ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Helge Hafting wrote: Sebastian Krzyszkowiak wrote: On 8/4/09, Brock awwa...@thelackthereof.org wrote: this actually difficult or is it a matter of nobody having the time / care to do it? I think noone cares. I don't need MMS at all, Yes, we care. I don't send MMS myself, but others send me pictures occationally - it'd sure be nice to see them on the excellent display... +1. The worst part about having it not implemented at all is that you don't even know who sent you a message. Interestingly, i received a mms a few minutes ago and this time instead of the binary message i got a notification sms from my provider, with a link and password to a website where i can read it... -- View this message in context: http://n2.nabble.com/Reading-binary-messages-tp3383279p3397157.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On Thu, Aug 6, 2009 at 11:10 AM, KaZeR ka...@altern.org wrote: +1. +1 Interestingly, i received a mms a few minutes ago and this time instead of the binary message i got a notification sms from my provider, with a link and password to a website where i can read it... This happens to me often as well. As far as I know this is because some providers don't cooperate with each other (and won't accept MMS from each other). Cheers, Edwin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On 8/6/09, Edder ed...@tkwsping.nl wrote: On Thu, Aug 6, 2009 at 11:10 AM, KaZeR ka...@altern.org wrote: +1. +1 Interestingly, i received a mms a few minutes ago and this time instead of the binary message i got a notification sms from my provider, with a link and password to a website where i can read it... This happens to me often as well. As far as I know this is because some providers don't cooperate with each other (and won't accept MMS from each other). Cheers, Edwin AFAIK there is just no way to detect if phone supports MMS or not. Binary message is sent, and when timeout is reached without downloading message, SMS with info is sent. So Freerunner users can still read their MMS, exactly as Nokia 3210 users :P -- Sebastian Krzyszkowiak dos ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Sebastian Krzyszkowiak wrote: On 8/6/09, Edder ed...@tkwsping.nl wrote: AFAIK there is just no way to detect if phone supports MMS or not. Binary message is sent, and when timeout is reached without downloading message, SMS with info is sent. So Freerunner users can still read their MMS, exactly as Nokia 3210 users :P Oh, i believed that if your phone didn't send the receipt return (or whatever it's called) then the provider would have assumed that you can't read it. I have 10 binary messages in my inbox, most of them received the same day, a few days ago, and i received only one sms notification so far.. I'll ask someone with mms-capable phone to send me a test. -- View this message in context: http://n2.nabble.com/Reading-binary-messages-tp3383279p3397535.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
that's an incorrect assumption. my providers only send one SMS indicating i have an MMS to read. there isn't a second SMS with a public URL. therefore i have zero chance of reading it unless i use my own software to fetch the MMS and render it by hand. Sebastian Krzyszkowiak wrote: AFAIK there is just no way to detect if phone supports MMS or not. Binary message is sent, and when timeout is reached without downloading message, SMS with info is sent. So Freerunner users can still read their MMS, exactly as Nokia 3210 users :P ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On 8/6/09, David Ford da...@blue-labs.org wrote: that's an incorrect assumption. my providers only send one SMS indicating i have an MMS to read. there isn't a second SMS with a public URL. therefore i have zero chance of reading it unless i use my own software to fetch the MMS and render it by hand. Sebastian Krzyszkowiak wrote: AFAIK there is just no way to detect if phone supports MMS or not. Binary message is sent, and when timeout is reached without downloading message, SMS with info is sent. So Freerunner users can still read their MMS, exactly as Nokia 3210 users :P So how are you supposed to read them on some old or simple headsets? Not every phone has MMS support at all, even iPhone didn't have it in first versions. -- Sebastian Krzyszkowiak dos ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
you can't. there is no guarantee by your provider that you can read MMS messages on any given phone. unless you bought a phone that indicates it can do MMS and you receive one, great. if you have a black and white dinosaur phone that doesn't do graphics and you get an MMS, you're just plain out of luck if your provider doesn't also send you a URL to read it from your PC. Sebastian Krzyszkowiak wrote: So how are you supposed to read them on some old or simple headsets? Not every phone has MMS support at all, even iPhone didn't have it in first versions. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Hey David, On Tue, 04 Aug 2009 17:15:57 -0400 David Ford da...@blue-labs.org wrote: MMS notification is sent as a URL via SMS. bluesms.py has initial support for MMS however my phone has been out for buzzfix for a while. with a growing number of phones and carriers, you're only allowed to fetch that URL from the phone number it's designated for. further, it's normal to require you to fetch via your APN proxy. do note that the PDU decoding for these binary messages is broken in FSO and needs to be fixed. i'll work on that when i get my phone back next week. that means that the URL sent to you could have junk prefixed to the URL, or the front of the URL could be chopped off. we talked about this some time ago and I'm still not sure why the first part of that multipart SMS is swallowed in your case. As I said the binary SMS you get not only contains the URL but other info as well. Have you tried my suggestion on setting Device.SetSimBuffersSms(False) [1] and checking with mdbus -s -l what the first message is? I suspect the first message has the attribute pid or message-class set to something strange so when the SIM buffers the message it will overwrite it. As soon as you got both messages you can reassemble the whole message and parse that according to the spec. [1]: http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.GSM.Device.html;hb=HEAD#SetSimBuffersSms Regards, Daniel Willmann signature.asc Description: PGP signature ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
howdy, yup, we did. and unfortunately i had to ship my phone off for buzz fix. i just got the box in the mail today and this is one of the top items on my todo list this weekend. i've already put some code into bluesms.py in prep for copying the pdu and storing it to see a) why the two msgs, and b) why the corruption. -david Daniel Willmann wrote: [...] we talked about this some time ago and I'm still not sure why the first part of that multipart SMS is swallowed in your case. As I said the binary SMS you get not only contains the URL but other info as well. Have you tried my suggestion on setting Device.SetSimBuffersSms(False) [1] and checking with mdbus -s -l what the first message is? I suspect the first message has the attribute pid or message-class set to something strange so when the SIM buffers the message it will overwrite it. As soon as you got both messages you can reassemble the whole message and parse that according to the spec. [1]: http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.GSM.Device.html;hb=HEAD#SetSimBuffersSms ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Sebastian Krzyszkowiak wrote: On 8/4/09, Brock awwa...@thelackthereof.org wrote: this actually difficult or is it a matter of nobody having the time / care to do it? I think noone cares. I don't need MMS at all, Yes, we care. I don't send MMS myself, but others send me pictures occationally - it'd sure be nice to see them on the excellent display... Helge Hafting ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
+1 2009/8/5 Helge Hafting helge.haft...@hist.no: Sebastian Krzyszkowiak wrote: On 8/4/09, Brock awwa...@thelackthereof.org wrote: this actually difficult or is it a matter of nobody having the time / care to do it? I think noone cares. I don't need MMS at all, Yes, we care. I don't send MMS myself, but others send me pictures occationally - it'd sure be nice to see them on the excellent display... Helge Hafting ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- David Reyes Samblas Martinez http://www.tuxbrain.com Open ultraportable embedded solutions Openmoko, Openpandora, Arduino Hey, watch out!!! There's a linux in your pocket!!! ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Am Mittwoch 05 August 2009 15:46:12 schrieb Helge Hafting: Sebastian Krzyszkowiak wrote: On 8/4/09, Brock awwa...@thelackthereof.org wrote: this actually difficult or is it a matter of nobody having the time / care to do it? I think noone cares. I don't need MMS at all, Yes, we care. I don't send MMS myself, but others send me pictures occationally - it'd sure be nice to see them on the excellent display... Helge Hafting I got an MMS last week and looked around if i can find some dokumentation for MMS. I found this page [1] with the spezification. But i didn't feeled like looking at it. It's a bit too much. Perhaps someone can summerize the data format. After that implementing is a lot easier, i think. Thomas [1] http://www.openmobilealliance.org/Technical/release_program/mms_v1_3.aspx ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Reading binary messages
Hello list. Has anyone succeeded / starting working on reading binary sms? I have some of them sitting in my inbox, under SHR it's only displayed as This is a binary message Thanks in advance! -- View this message in context: http://n2.nabble.com/Reading-binary-messages-tp3383279p3383279.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
KaZeR schrieb: Hello list. Has anyone succeeded / starting working on reading binary sms? I have some of them sitting in my inbox, under SHR it's only displayed as This is a binary message Thanks in advance! isnt this text also displayed when getting an mms? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On Tue, Aug 4, 2009 at 10:51 AM, Bernd Prünsterbernd.pruens...@gmail.com wrote: KaZeR schrieb: Hello list. Has anyone succeeded / starting working on reading binary sms? I have some of them sitting in my inbox, under SHR it's only displayed as This is a binary message Thanks in advance! isnt this text also displayed when getting an mms? Yes I'm pretty sure this is the case. I got one receiving an mms. But maybe Kazer wanted to ask if there is work to display mms... (which are binary sms...) ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- Steven Le Roux Jabber-ID : ste...@jabber.fr 0x39494CCB ste...@le-roux.info 2FF7 226B 552E 4709 03F0 6281 72D7 A010 3949 4CCB ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
Steven Le Roux wrote: Yes I'm pretty sure this is the case. I got one receiving an mms. But maybe Kazer wanted to ask if there is work to display mms... (which are binary sms...) Indeed, thoses are probably mms notifications, but i can't be sure. When receiving this kind of notifications, the FR should at least decline the reception or notify the service provider that it's unable to read this kind of messages. That way, at least with my operator, you would get a regular clear text sms with an url and password to read the message from a web browser. Can we reject these binary messages? -- View this message in context: http://n2.nabble.com/Reading-binary-messages-tp3383279p3383453.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On 2009.08.04.02.31, KaZeR wrote: | | | | Steven Le Roux wrote: | | Yes I'm pretty sure this is the case. I got one receiving an mms. | | But maybe Kazer wanted to ask if there is work to display mms... | (which are binary sms...) | | | | Indeed, thoses are probably mms notifications, but i can't be sure. | When receiving this kind of notifications, the FR should at least decline | the reception or notify the service provider that it's unable to read this | kind of messages. That way, at least with my operator, you would get a | regular clear text sms with an url and password to read the message from a | web browser. | | Can we reject these binary messages? I got a crazy idea... why don't we actually _display_ mms messages? Is this actually difficult or is it a matter of nobody having the time / care to do it? ... research ... OK, my new rough guess is that the issue is that MMS has some carrier-specific configs? The wiki discuss page mentions mmslib, which is actually a PHP library that claims to decode MMS messages. Anyone play with that? --Brock ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
I get the same when some one with a Nokia or Ericsson phone sends me a phone-number-fancy-sms. -f- On Tue, Aug 4, 2009 at 10:39 PM, Brock awwa...@thelackthereof.org wrote: On 2009.08.04.02.31, KaZeR wrote: | | | | Steven Le Roux wrote: | | Yes I'm pretty sure this is the case. I got one receiving an mms. | | But maybe Kazer wanted to ask if there is work to display mms... | (which are binary sms...) | | | | Indeed, thoses are probably mms notifications, but i can't be sure. | When receiving this kind of notifications, the FR should at least decline | the reception or notify the service provider that it's unable to read this | kind of messages. That way, at least with my operator, you would get a | regular clear text sms with an url and password to read the message from a | web browser. | | Can we reject these binary messages? I got a crazy idea... why don't we actually _display_ mms messages? Is this actually difficult or is it a matter of nobody having the time / care to do it? ... research ... OK, my new rough guess is that the issue is that MMS has some carrier-specific configs? The wiki discuss page mentions mmslib, which is actually a PHP library that claims to decode MMS messages. Anyone play with that? --Brock ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
MMS notification is sent as a URL via SMS. bluesms.py has initial support for MMS however my phone has been out for buzzfix for a while. with a growing number of phones and carriers, you're only allowed to fetch that URL from the phone number it's designated for. further, it's normal to require you to fetch via your APN proxy. do note that the PDU decoding for these binary messages is broken in FSO and needs to be fixed. i'll work on that when i get my phone back next week. that means that the URL sent to you could have junk prefixed to the URL, or the front of the URL could be chopped off. step 1: MMSC sends you an SMS with a URL step 2: your phone should bring up GPRS if not already up step 3: your phone should fetch the MMS by way of your APN proxy using the given URL. step 4: decode the MMS as applicable step 5: save the content you decoded and notify the message reader program that it's ready for rendering step 6: shut down GPRS if necessary -david ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On 8/4/09, Brock awwa...@thelackthereof.org wrote: this actually difficult or is it a matter of nobody having the time / care to do it? I think noone cares. I don't need MMS at all, and I have many others more important issues to fix/implement, and I think most of developers think the same. But if you want to implement MMS, then go ahead! Discuss with FSO guys where and how it should be implemented, and then work with SHR devs to support it in GUI. -- Sebastian Krzyszkowiak dos ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On Tue, Aug 4, 2009 at 10:39 PM, Brockawwa...@thelackthereof.org wrote: [...] I got a crazy idea... why don't we actually _display_ mms messages? Is this actually difficult or is it a matter of nobody having the time / care to do it? Reading MMS should be quite easy technically. The effort is integrating it in FSO in an elegant and robust way to do some automagically retrieve, handling the case if a GRPS connection is already up with different apn, if you changed the sim and so on. For the GUI part it should be only a matter of showing pics/play streams etc. FSO founded a company providing professional support, so I just guess that if someone will fund them we may have MMS support quite quickly ;) Nicola ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
On 2009.08.04.17.15, David Ford wrote: | bluesms.py has initial support for MMS however my phone has been out for | .. bluesms.py is exactly what I was thinking of / looking for. I found your svn and see that it is a work-in-progress, but I'll give it a spin when I can anyway. Thanks! --Brock ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Reading binary messages
good :) my work has been stunted for a few weeks while my phone is out but it's my pet project :) -david Brock wrote: On 2009.08.04.17.15, David Ford wrote: | bluesms.py has initial support for MMS however my phone has been out for | .. bluesms.py is exactly what I was thinking of / looking for. I found your svn and see that it is a work-in-progress, but I'll give it a spin when I can anyway. Thanks! --Brock ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community