Active Topics

 



Notices


Reply
Thread Tools
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#1
Here is the fix (I desperately wanted) for my environment.

The fix is so easy, but do not ask me how much time I spent then and now debugging, understanding/changing/learning code, trying to understand MMS protocol, ...

I am sure frals would have solved within a few minutes (less than hour).

Nevertheless here we go:
get root
open /opt/fmms/mms/mms_pdu.py with leafpad/nano/vi
and add following line
Code:
                  0x19 : ('WTF', 'BooleanValue'),
Attached is the modified python script, but this sed command will do the trick also (as.root):
Code:
sed -e s/"                  0x18 : ('Transaction-Id', 'TextString'),"/"             
     0x18 : ('Transaction-Id', 'TextString'),\n                  0x19 : ('WTF', 'BooleanValue'), #peterleinchen"/ -i /opt/fmms/mms/mms_pdu.py
Attached Files
File Type: gz mms_pdu.py.gz (9.3 KB, 173 views)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2014-04-10 at 20:26.
 

The Following 10 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#2
What about gaining maintainership and uploading a fixed version in extras?
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 6 Users Say Thank You to freemangordon For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#3
Originally Posted by freemangordon View Post
What about gaining maintainership and uploading a fixed version in extras?
Done (at least first part ).
But please do not expect new features

One question: you wrote 'extras'? Did you mean 'extras-devel', sure! Or 'extras-testing, also understood! But 'extras'?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 4 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 2,290 | Thanked: 4,134 times | Joined on Apr 2010 @ UK
#4
Originally Posted by peterleinchen View Post
One question: you wrote 'extras'? Did you mean 'extras-devel', sure! Or 'extras-testing, also understood! But 'extras'?

I don't see why not. After all the whole point of -devel and -testing is to QA before extras.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#5
Originally Posted by sixwheeledbeast View Post
I don't see why not. After all the whole point of -devel and -testing is to QA before extras.
exactly
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 2 Users Say Thank You to freemangordon For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#6
Done.
Just sent it to extras-devel. (as I used the devel sources)
Please check it to be the 'same' package (used py2deb).

BUT after one week there is not a single feedback at all
Not that I expected hundreds/thousands of hoorays, but a bit more enthusiasm.
I really really do not use this MMS service myself or did/do receive a lot of MMS, but to have a device not capable of receiving those one/two messages a year really made me angry (hence my efforts)!
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 6 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#7
Code:
for(int i=0; i<=9999; i++) {
   printf("hooray peterleinchen!\n");
}
There you go Just one question - what if mms receiving was perfectly working for me all the time (i received my last mms ~1 week ago)? Can this change break something? Should I test? What exactly is this "WTF" boolean value, what is it used for?

Edit: Well... I just looked at my mms list nad saw some small glitches... There are some messages which seem to be incorrectly decoded somehow. There is html-like code in the end. Let's say the message should end with "haha " and instead there's "haha <smil><head><layout>[...and so on...]" (smil.xml content?). Is it a known issue (maybe even connected to this fix?) or should I debug it further and try to fix it myself? It's not really annoying... And seems to be very rare and random - I have only 3 or 4 messages with it (one with non-alphanumeric characters, one with letters which are present only in my country's national charset and one with only english letters and spaces), while my complete mms list has >=100 items.

Last edited by misiak; 2014-04-17 at 21:14.
 

The Following 6 Users Say Thank You to misiak For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#8
Okay, as I got now my 10000 hoorays I open up the Pandora box

Yep, for some it was working fine, for others not!
Up to now no one (I know of) had a clue why. Even 'rumors' about IMEI databases, blocking by operator on purpose, ...
But it is all due to my operator(s) decided to send MMS according to specification 1.1 (fmms sends and receives only 1.0). So the header parsing went berserk and screwed everything.

This fix only adds one specific 1.1 header (X-MMS-Retrieve-Status), but that was sufficient for me (there are of course more and even spec.1.2).
So what I would like to get is some feedback from users who suffered non-ability-of-receiving.
[i.e. for you it does not matter atm and NO it will NOT break anything]

--
edit to misiak's edit
Yes that is the layout code of the message. And should not be in the message text itself. You are lucky that the text of message (or was it subject?) seems to be in front of smil info. Other way round message would have been unreadable possibly. And I assume that some length has not been read correct or text was not-Null terminated (which is only normal at the end) or some special characters (unicode?) screwed it up.
But as you say only a few are borked.
And no I am sure my fix has nothing to do with it.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2014-04-17 at 21:31.
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 804 | Thanked: 1,598 times | Joined on Feb 2010 @ Gdynia, Poland
#9
Originally Posted by peterleinchen View Post
This fix only adds one specific 1.1 header (X-MMS-Retrieve-Status), but that was sufficient for me (there are of course more and even spec.1.2).
So what I would like to get is some feedback from users who suffered non-ability-of-receiving.
[i.e. for you it does not matter atm and NO it will NOT break anything]
Wouldn't it be proper to call it "Retrieve-Status" instead of "WTF" then (following the naming convention for other fields in the file)?

Edit: and, following page 42 of http://www.openmms.org/download/OMA-WAP-MMS.pdf , add Retrieve-Text, Read-Status, Reply-Charging and Reply-Charging-Deadline too? (although I'm not sure which version of the specification this pdf describes...)

Edit2: oh, there are also: Reply-Charging-ID, Reply-Charging-Size, Previously-Sent-By and Previously-Sent-Date fields on next page, I missed them earlier...

Last edited by misiak; 2014-04-17 at 21:29.
 

The Following 2 Users Say Thank You to misiak For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#10
Yep, exactly.
Please see the deb coming to extras-devel!
(Except the others I am a lazy bastard and for me it is sufficient, hence the desired feedbacks to know I need to invest more work.)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2014-04-17 at 21:36.
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:46.