maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] fMMS for N900 (https://talk.maemo.org/showthread.php?t=39737)

frals 2010-01-08 16:16

[Announce] fMMS for N900
 
fMMS is a python application with a graphical frontend for sending and receiving MMS on the N900.

When reporting a problem PLEASE be specific and PLEASE attach /tmp/fmms.log. Thank you.

BEFORE INSTALLING PLEASE READ http://talk.maemo.org/showpost.php?p=343619&postcount=1

v 0.6.1 video walkthrough: http://mynokiablog.com/2010/04/16/n9...p-receive-mms/

Old version: http://www.youtube.com/watch?v=PweDR6I0Bt0, thanks MaemoSverige!


If you decide to test this application, please drop a comment here, on irc (nick: frals) or in a PM/e-mail :)

Problems configuring? Turn to the wiki: http://wiki.maemo.org/MMS

Garage site: https://garage.maemo.org/projects/fmms

Code available at: http://gitorious.org/fmms

GUI FOR ADDING ANOTHER APN: http://talk.maemo.org/showthread.php?t=39951

---------------------------
As of release 0.6 there is now multiple "connection modes" available:

* Polite (Default behavior <0.6): Only switch to MMS connection if no connection is active, otherwise do nothing (pretty much)
* Rude: Force a disconnect of the active connection regardless of what it is, connect to MMS APN and then reconnect to the old one.
* Havoc: Try to bring up a connection to the MMS APN in parallell with whatever is active, this is what most other phones do. Note that to get this functionality on the N900 there are a few ugly hacks active which might break stuff, but it *should* work ;)
---------------------------

Changing user-agent fMMS sends (Softbank JP users need to do this from what I've heard):
gconftool-2 -s /apps/fmms/useragent --type string "New UA String"

If you are having problems with the MMS APN being chosen by "Connect Automatically" the following steps before installing fMMS 0.9.12 *SHOULD* do the trick:
NOTE: This only applies to people coming from a version prior to 0.9.12!
These commands clears all configuration settings for fMMS, so make sure you save the settings somewhere (http://wiki.maemo.org/MMS is a good place for connection settings ;-)) before running any command.


Open terminal:
gconftool-2 --recursive-unset /apps/fmms
gconftool-2 --recursive-unset /system/osso/connectivity/IAP/z_fMMS-APN

Make sure to copy and paste these as a space in the wrong place is VERY LIKELY to bork system stuff.

NOTE: As of 0.9.12 the settings for fMMS might no longer be saved in /system/osso/connectivity/IAP/z_fMMS-APN so deleting this might remove your GPRS Internet connection settings. However, a device reboot seems to restore the APN.

SHORT FAQ
  • Problem: "Name or service unknown"/"No route to host"/"Connection refused" or similar when sending
    Solution: Make sure you are connected to the MMS APN - if you still get the error, try pinging the mmsc host from the terminal. If it still fails, double check your connection settings. If your provider list a "MMS Proxy" or "MMS Gateway", input this in the HTTP Proxy settings for the connection

DON'T FORGET TO SET THE PROXY IN INTERNET CONNECTIONS

Thanks for testing!

Bratag 2010-01-08 16:31

Re: [Announce] fMMS for N900
 
Excellent - while I don't personally use MMS - I see it as something that a lot of people were complaining about. Great t see the community can add something like this without Nokias involvement.

tobylee 2010-01-08 16:36

Re: [Announce] fMMS for N900
 
good stuff. Now I can stop my iphone using girlfriend (although she did admit she was fairly jealous and impressed by the n900) from saying "but it cant even send pictures!" in jest. we often exchange pictures (of many things)

biggzy 2010-01-08 16:43

Re: [Announce] fMMS for N900
 
First off lets give a big thank you to the creator here, this is a feature i use (not alot tho) but still use it, so a big WELL DONE ;).
However i wont install it till its been tested (not saying theres any problems with the app) its coz im a noob with maemo, once it gets enuf votes it will be on my n900, so once again thanx for the MMS capability :D:D:D

Strickmabil 2010-01-08 17:14

Re: [Announce] fMMS for N900
 
Really nice!

Corso85 2010-01-08 17:37

Re: [Announce] fMMS for N900
 
Thanks! great effort.

Am having a little trouble. no matter what I put as an APN. it says its wrong. but i got it from my other cellphones config. so i'm sure its right.

what does it do to check the APN?

frals 2010-01-08 17:40

Re: [Announce] fMMS for N900
 
It checks against the list of installed APNs in the phone (listed under Internet Connections in the Settings menu) - that is, you have to have one configured that it's suppose to use, it does not currently create a new one for you.

Ie. what you should do is put in the name of an existing APN in your phone :)

I'm working on a GUI to add a new GPRS APN so it can be configured in Internet Connections settings as you can't add a new GPRS access point through the UI at this time

benny1967 2010-01-08 17:54

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by frals (Post 459610)
It checks against the list of installed APNs in the phone (listed under Internet Connections in the Settings menu) - that is, you have to have one configured that it's suppose to use, it does not currently create a new one for you.

Ie. what you should do is put in the name of an existing APN in your phone :)


ah... now it makes sense. ;)

i had the same problem and no clue what to do. so once the new AP is in the settings, i also need to go there and insert the required proxy settings, right? the config dialog in your app will only point to the existing settings. fine.

adding an AP is done through a bunch of mysterious gconf commands, right? :)

frals 2010-01-08 17:57

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by benny1967 (Post 459630)
ah... now it makes sense. ;)

i had the same problem and no clue what to do. so once the new AP is in the settings, i also need to go there and insert the required proxy settings, right? the config dialog in your app will only point to the existing settings. fine.

adding an AP is done through a bunch of mysterious gconf commands, right? :)

Yeah - I should make that more clear - added to todo list for the next version. It takes the name of an existing APN and gets the proxy settings from it :)

Yes, if you are confident in using the terminal and entering a bunch of mysterious potentially dangerous commands they are listed at https://bugs.maemo.org/show_bug.cgi?id=5791#c16

amorek13 2010-01-08 18:07

Re: [Announce] fMMS for N900
 
i get an error sending failed
error: -2 name or service not known
please make sure apn setting are correct


my settings are as follows
apn: tmobile internet (just like in connections)
mmsc http://216.155.174.84/servlets/mms
resize image width 300
and my number

d-iivil 2010-01-08 18:27

Re: [Announce] fMMS for N900
 
Hmm.. won't accept my settings (Saunalahti, Finnish carrier). Keeps saying "could not save APN settings. Did you enter a correct APN?"

I'm trying to offer it these settings:
APN: mms.saunalahti.fi
MMSC: http://mms.saunalahti.fi:8002
width: 300
and my number

What am I doing wrong?

That One Guy 2010-01-08 18:27

Re: [Announce] fMMS for N900
 
1 Attachment(s)
Installed fine, boots fine, but it won't accept epc.tmobile.com as an APN.

~shrug~

Edit: Used settings that are in Internet Settings... Still nothing, but at least now it "accepted" the APN name or "T-Mobile Internet".

I'm sure it's something I'm missing...

frals 2010-01-08 18:35

Re: [Announce] fMMS for N900
 
Updated first post to answer some FAQ.

Make sure you type in the name like it's listed in "Internet Connections" - this application does not (currently) add a new APN for you - you have to set it up yourself in "Internet Connections" and then enter that name in fMMS.

d-iivil 2010-01-08 18:41

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by frals (Post 459715)
Updated first post to answer some FAQ.

Make sure you type in the name like it's listed in "Internet Connections" - this application does not (currently) add a new APN for you - you have to set it up yourself in "Internet Connections" and then enter that name in fMMS.

Okay.. after this I get Error 111 Connection refused.

Can someone who is using Saunalahti and has succeeded in making fMMS working please provide settings I should use?

But hail to you frals anyway for putting in so much effort for making MMS-messages appearing on N900 :)

amorek13 2010-01-08 18:43

Re: [Announce] fMMS for N900
 
is it me or internet connection if you go new it only lets you set up wifi?

d-iivil 2010-01-08 18:44

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by amorek13 (Post 459731)
is it me or internet connection if you go new it only lets you set up wifi?

It's not just you. N900 won't let us define more than one APN at the time :-/

frals 2010-01-08 19:08

Re: [Announce] fMMS for N900
 
First post updated.

Right I notice there's currently a bug with how the application tries to connect to MMSC which contains a path (ie http://mmsc.something/servlet/mms) - this should be the reason most of you see the "Name or service not known" error message (I hope)

I'll try to get this fixed in the next version - thanks for testing and reporting!

When reporting an error please include the settings from your "Internet Connections" as well as the settings your carrier requires you to have!

Thanks again for testing!

gesperon 2010-01-08 19:24

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by frals (Post 459773)
When reporting an error please include the settings from your "Internet Connections" as well as the settings your carrier requires you to have!

Thanks again for testing!

It fails saying:
Error: -2 Name or service not known

Settings:
APN: WAP
MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc
Resize image width: 92
phone number: [my #]

Another try
Settings:
APN: WAP
MMSC: http://216.155.174.84/servlets/mms
Resize image width: 92
phone number: [my #]


I think http://mms.msg.eng.t-mobile.com/mms/wapenc is the official T-Mobile MMSC according to: http://support.t-mobile.com/doc/tm21...revPageIndex=1

Also I created the WAP settings using gconftool-2
/system/osso/connectivity/IAP/WAP:
gprs_accesspointname = wap.voicestream.com
name = WAP
sim_imsi = [**********************]
type = GPRS
ipv4_type = AUTO


Thanks for looking at this

frals 2010-01-08 19:54

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by gesperon (Post 459812)
It fails saying:
Error: -2 Name or service not known
[snip]


Thanks for looking at this

Thanks for posting, this is the problem I've listed in the first post "Known problems" - I'll try to include the fix in the next version :)

Corso85 2010-01-08 19:57

Re: [Announce] fMMS for N900
 
Ok. Here is what happened with me

First i got the check your APN thing in fMMS so it wouldn't save the settings. so discovered thru frals that I had to add a new APN thru terminal. manually

Code:

gconftool-2 --set /system/osso/connectivity/IAP/NEWAPNNAME/type --type string "GPRS"

gconftool-2 --set /system/osso/connectivity/IAP/NEWAPNNAME/name --type string "NEWAPNNAME"

Get sim_imsi: (Really long number)

Code:

gconftool -R /system/osso/connectivity/IAP |grep sim_imsi
Set sim_imsi:

Code:

gconftool-2 --set /system/osso/connectivity/IAP/NEWAPNNAME/sim_imsi --type string YOURSIMIMSI
Then a new packet data connection appeared in my Internet Connection. I went there to edit it.

New Internet connection settings:
Access Point Name: du
user: (none for me)
pass: (none for me)

Advanced:
HTTP Proxy: 10.14.18.4
Port: 8080

Then I saved and connected to this connection
Now in fmms

fmms Settings:
APN: du
MMSC: http://mms.du.ae
Resize image width: 400
Phone number: [my #]

I got the error "Unknown name" when I was trying to send an MMS without connecting to the new data connection first. (silly me)

I got the error "Connection Refused" when I had the port set wrong in the proxy.

At the moment, after ironing out the APN settings. It's working. I get 200k success message. And the other mobile receives the MMS. but it says invalid text or attachment.

I've only tried with one Picture (smallest i can find). I'll try others later.

twaelti 2010-01-08 20:59

Re: [Announce] fMMS for N900
 
To get a list of all available APN/ connections through X-Term:
gconftool-2 --all-dirs /system/osso/connectivity/IAP

To get all settings for a certain APN/connection:
gconftool-2 -R /system/osso/connectivity/IAP/TheNameOfYourAPN

twaelti 2010-01-08 21:27

Re: [Announce] fMMS for N900
 
Woohoo - it works :-) First N900 MMS in Switzerland, through the carrier Sunrise (TDC)

My settings for reference:
Code:

ipv4_address = 0.0.0.0
 ipv4_autodns = true
 ipv4_gateway = 0.0.0.0
 ipv4_type = AUTO
 proxy_rtsp =
 proxy_rtsp_port = 0
 proxy_http = 212.35.34.75
 name = Sunrise MMS
 type = GPRS
 proxytype = MANUAL
 gprs_password = mms
 ipv4_dns1 = 0.0.0.0
 ipv4_dns2 = 0.0.0.0
 sim_imsi = 22802050YOUROWN
 ipv4_netmask = 0.0.0.0
 proxy_https =
 autoconf_url =
 ask_password = false
 proxy_ftp_port = 0
 proxy_ftp =
 gprs_username = mms
 proxy_http_port = 8080
 proxy_https_port = 0
 omit_proxy = []
 gprs_accesspointname = mms.sunrise.ch

Thanks so much!

PS: Bug? I can't open an MMS from the list in fMMS later on, but only initially by opening the notification after reception.

matrim 2010-01-08 21:29

Re: [Announce] fMMS for N900
 
I just tried on o2 Ireland and it didn't work.

I sent myself a picture from another phone and I got the notification of a received message but no message appeared in fMMS

Then I tried to send a message and I got something like Error 110 Connection Timeout

I closed and restarted fMMS and I could see a message in the main window. It connected to GPRS straight away but then nothing else happened and fMMS froze. I couldn't open the settings or exit the app without killing it

The Access Point settings I'm using are

Access Point Name : wap.dol.ie
Username : user
Password: user
Proxy: None \ Don't use
IP Address: auto

MMSC: http://mmsc.mms.o2.ie:8002

could this be related to
Quote:

Fails to send when MMSC URL contains a path after the hostname

twaelti 2010-01-08 21:29

Re: [Announce] fMMS for N900
 
BTW: The SIM_IMSI contains MMC and MNC, this might be helpful when automating the APN setup and fMMS configuration. We would only need a more complete /etc/operator_settings file and then it could easily be parsed.

peterway 2010-01-08 21:35

Re: [Announce] fMMS for N900
 
Tested with vodafone italy
Work Fine !!!!!!!!!!:):):):)

My settings:
APN: mms.vodafone.it
mmsc: http://mms.vodafone.it/servlets/mms
proxy: 10.128.224.10

frals 2010-01-08 21:45

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by twaelti (Post 460086)
Woohoo - it works :-) First N900 MMS in Switzerland, through the carrier Sunrise (TDC)

PS: Bug? I can't open an MMS from the list in fMMS later on, but only initially by opening the notification after reception.

Great that it works! :)

If I understand you correctly - if you have fMMS running and receive a MMS it isnt listed - this is correct, you currently have to restart the application for it to show a new MMS :)

Quote:

Originally Posted by matrim (Post 460089)
I sent myself a picture from another phone and I got the notification of a received message but no message appeared in fMMS

Did you get the "SMS PUSH Received" notification or both the "SMS PUSH" and the "MMS Received"? If the app is running when the MMS is received it needs to be restarted to show the new MMS (yes, I know, stupid, but I haven't fixed updating yet)

Quote:

Originally Posted by matrim (Post 460089)
Then I tried to send a message and I got something like Error 110 Connection Timeout

I closed and restarted fMMS and I could see a message in the main window. It connected to GPRS straight away but then nothing else happened and fMMS froze. I couldn't open the settings or exit the app without killing it

It could be due to connection issues with your MMSC - please double check they are correct :)

Quote:

Originally Posted by matrim (Post 460089)
The Access Point settings I'm using are

Access Point Name : wap.dol.ie
Username : user
Password: user
Proxy: None \ Don't use
IP Address: auto

MMSC: http://mmsc.mms.o2.ie:8002

could this be related to

It *should* work fine with those settings, please double check they match what your provider has on their homepage - can you ping mmsc.mms.o2.ie in the terminal when connected to the MMS APN?

@twaelti: Cool!

@peterway: Great! :)

mele 2010-01-08 21:55

Re: [Announce] fMMS for N900
 
Here works also =)

APN: Saunalahti MMS
MMSC: http://mms.saunalahti.fi:8002
Access Point: mms.saunalahti.fi
proxy ip: 62.142.4.197
port:8080


Should link to address book work?...now i have to go manually to address book and copy phone number i want

NOKIAFAN 2010-01-08 21:57

Re: [Announce] fMMS for N900
 
this is my first time installing a .deb file on my n900 and i'm not really familiar with linux. I tried installing the file and i get an error message that it's missing some application packages. please help...thanks

frals 2010-01-08 22:05

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by mele (Post 460127)
Here works also =)

APN: Saunalahti MMS
MMSC: http://mms.saunalahti.fi:8002
Access Point: mms.saunalahti.fi
proxy ip: 62.142.4.197
port:8080


Should link to address book work?...now i have to go manually to address book and copy phone number i want

Great :)

No - Address book feature isn't implemented currently, it's on the list though ;-)


Quote:

Originally Posted by NOKIAFAN (Post 460134)
this is my first time installing a .deb file on my n900 and i'm not really familiar with linux. I tried installing the file and i get an error message that it's missing some application packages. please help...thanks

Please read and make sure you understand the disclaimer in the first post (and the links there) before installing this application :)

You need rootsh installed and in the terminal do apt-get install <packagename>

e.g.: apt-get install python-imaging

How to enable rootsh and install stuff from the commandline should be well documented on the wiki and in this forum, try a search for it :-)

matrim 2010-01-08 23:32

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by frals (Post 460109)
Great that it works! :)

If I understand you correctly - if you have fMMS running and receive a MMS it isnt listed - this is correct, you currently have to restart the application for it to show a new MMS :)


Did you get the "SMS PUSH Received" notification or both the "SMS PUSH" and the "MMS Received"? If the app is running when the MMS is received it needs to be restarted to show the new MMS (yes, I know, stupid, but I haven't fixed updating yet)

I'm not sure which I received, I think "SMS PUSH Received". When I restarted I did see a message in the list, but the application froze.

I'll retry tomorrow and let you know my results.

d-iivil 2010-01-08 23:40

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by mele (Post 460127)
Here works also =)

APN: Saunalahti MMS
MMSC: http://mms.saunalahti.fi:8002
Access Point: mms.saunalahti.fi
proxy ip: 62.142.4.197
port:8080


Should link to address book work?...now i have to go manually to address book and copy phone number i want

Have you first deleted the Saunalahti Internet from phone's settings and then created the mms APN there? I mean I want to keep my internet APN functional and still send and receive mms-messages without editin the APN-list every time.

I'm asking because there's no such settings like proxy or port in fMMS settings-page.

frals 2010-01-08 23:43

Re: [Announce] fMMS for N900
 
Yes, you need to edit the Internet APN everytime (for now) and configure the proxy there.

d-iivil 2010-01-08 23:45

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by frals (Post 460285)
Yes, you need to edit the Internet APN everytime (for now) and configure the proxy there.

Okay, that's what I was thinking too. I think I need to wait for firmware-update and hope it's gonna allow to have more than just one APN :-/

jjx 2010-01-08 23:47

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by twaelti (Post 460090)
BTW: The SIM_IMSI contains MMC and MNC, this might be helpful when automating the APN setup and fMMS configuration. We would only need a more complete /etc/operator_settings file and then it could easily be parsed.

No, unfortunately that doesn't work. Here in UK, I've seen two operators where MMC and MNC are not sufficient to identify the APN setting:

Vodafone UK - This matches an MMC/MNC in /etc/operator_settings, but it doesn't work. At least 3 different APNs are documented on forums, according to type of contract (contract vs. pay-as-you-go (aka.prepay); possibly different again for data card SIMs). One of those APNs might be out of date (hard to be sure), but I know for sure, 2 of them are active and the correct one has to be used for your contract type otherwise you get no connection.

Giffgaff - This matches MMC/MNC in /etc/operator_settings, but it doesn't work. It shows up as O2, because Giffgaff piggybacks on O2, but the O2 APN does not work - you have to use the Giffgaff one. You can't detect this from MMC/MNC.

That's just for regular data connections. If you can't choose the regular data APN from MMC/MNC alone, I am quite sure you can't choose the correct MMS settings from it.

Isn't there any more information available from USIMs? I'm sure I've seen long screenfuls of relevant looking data on some diagnostic software.

Whether there is or not, it seems that operators often send a special kind of text after you put a SIM into a new phone; the special text contains appropriate data and MMS settings.

Of course it does not always work automatically, except for the first operator used with a phone, because phones (e.g. Symbian) can be rather complicated about these things, maintaining multiple APN profiles etc. and keeping a mix of old and new settings; virtually all users would have no idea what to do with it. I certainly don't, so my very cheap and basic other Nokia phone cannot do data or MMS to any operator other than the one whose SIM I put in the first time - even though the phone is unlocked and manages voice + SMS to all operators without any problem.

frals 2010-01-09 00:06

Re: [Announce] fMMS for N900
 
Updated first post with link to a GUI program to add a new APN; http://mms.frals.se/fapn.html

Uploaded to -devel as well.

AltarCrystal 2010-01-09 00:46

Re: [Announce] fMMS for N900
 
Just thought I'd throw another working carrier in the ring, AT&T here in the USA

APN: AT&T Internet
APN Address: wap.cingular
HTTP Proxy: 66.209.11.32:80
MMSC: http://mmsc.cingular.com

GREAT work! I'll be interested in checking out some of the code, and possibly lending a hand in future development :)

frals 2010-01-09 01:21

Re: [Announce] fMMS for N900
 
AltarCrystal: Nice, the code is in /opt/fmms, I'll try to get it up on the garage site as well and starting commiting there instead of my local svn :)

0.1.3-1 pushed to -devel, should appear soon.

Fixes:
* should be able to send MMS thru a MMSC contaning a path in the url (ie T-Mobile USA) when not using a proxy
* able to send MMS without attachment again

amorek13 2010-01-09 01:45

Re: [Announce] fMMS for N900
 
frals any way to make fmms force a connection
i got it to work but first before i send it i have to manually connect to the specific connection so fmms will not give me an error?

frals 2010-01-09 01:53

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by amorek13 (Post 460461)
frals any way to make fmms force a connection
i got it to work but first before i send it i have to manually connect to the specific connection so fmms will not give me an error?

Not yet implemented, I'm working on it though :) For now you have to connect manually I'm afraid

amorek13 2010-01-09 02:10

Re: [Announce] fMMS for N900
 
Quote:

Originally Posted by frals (Post 460472)
Not yet implemented, I'm working on it though :) For now you have to connect manually I'm afraid


yes but at least it forces a connections when mms is coming in also can you have the connection time out after some time lets say 30 sec after receiving mms?


All times are GMT. The time now is 22:12.

vBulletin® Version 3.8.8