You Are Here:

Community: Developer Discussion Boards

#1 Old Python for series 60 + MMS - 2006-02-22, 22:30

Join Date: Feb 2006
Posts: 22
Location: NO_no
Send a message via ICQ to christee Send a message via MSN to christee
christee
Offline
Registered User
I am a student from Norway and I am attending a course called Location Aware Systems. Some of us are going to make applications for S60 phones, and some will do this using python.

There are some of us that would like to be able to send MMS using python, but this is not possible at the moment. Is there someone here that knows of an mms extension out there? Or maybe someone here knows if the developers of python for series 60 har started making an extension for this?
Reply With Quote

#2 Old Re: Python for series 60 + MMS - 2006-02-22, 22:48

Join Date: Jun 2005
Posts: 928
dcrocha's Avatar
dcrocha
Offline
Forum Nokia Expert
Hi,

I'd suggest you sending a message to the user "eriksmartt", as he is one of the responsibles for the project within Nokia.

The other one is Jukka Laurila

Daniel
Reply With Quote

#3 Old Re: Python for series 60 + MMS - 2006-02-22, 23:29

Join Date: Feb 2006
Posts: 22
Location: NO_no
Send a message via ICQ to christee Send a message via MSN to christee
christee
Offline
Registered User
It seems the administrator has disabled pm's, and the user has disabled the "send mail to this user" function. Hopefully eriksmartt will read this thread and reply.
Reply With Quote

#4 Old Re: Python for series 60 + MMS - 2006-02-23, 09:05

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
Sorry, but we're not planning to implement MMS messaging support in the near future. If anyone else would like to prototype something then go right ahead.
Reply With Quote

#5 Old Re: Python for series 60 + MMS - 2006-02-23, 11:42

Join Date: Feb 2006
Posts: 22
Location: NO_no
Send a message via ICQ to christee Send a message via MSN to christee
christee
Offline
Registered User
Bummer. Is there any special reason for that? I have seen some wishlists around and MMS is always listed.

If I were to try and make a prototype for this, could you maybe point me in the right direction? Maybe you have some template code that you use when making new modules so I could have something to start with?
Reply With Quote

#6 Old Re: Python for series 60 + MMS - 2006-02-23, 12:36

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
No, there isn't any special reason. It's just that we have a wishlist that is a mile long, we have to prioritize things according to utility and difficulty and the last time we checked implementing proper MMS support seemed fairly complex. You could of course aim for something simpler at first.

If you want to make a new module, then the modules in the current source distribution are good examples.
Reply With Quote

#7 Old Re: Python for series 60 + MMS - 2006-02-23, 13:21

Join Date: Feb 2006
Posts: 22
Location: NO_no
Send a message via ICQ to christee Send a message via MSN to christee
christee
Offline
Registered User
Well, if you guys thinks it looked complex, I guess it would be pretty stupid of me to try. But hell, I've done stupid things before.
Reply With Quote

#8 Old Re: Python for series 60 + MMS - 2006-02-23, 13:43

Join Date: Sep 2003
Posts: 209
Location: Finland
otsov
Offline
Regular Contributor
Quote:
Originally Posted by christee
If I were to try and make a prototype for this, could you maybe point me in the right direction? Maybe you have some template code that you use when making new modules so I could have something to start with?
Take a look at the "inbox" extension. If I remember correctly, the SMS specific things or better, where you should add support for emails and/or MMSes, are already commented in the source. See also the examples pointed in the source code. This might be a good place to start:

http://www.symbian.com/developer/tec.../mms_part2.pdf

Start with a simple hard coded example MMS with only text in it, modify e.g. "inbox" in the beginning and add the relevant code from the above link.
Reply With Quote

#9 Old Re: Python for series 60 + MMS - 2006-02-23, 13:51

Join Date: Feb 2006
Posts: 22
Location: NO_no
Send a message via ICQ to christee Send a message via MSN to christee
christee
Offline
Registered User
Quote:
Originally Posted by otsov
Take a look at the "inbox" extension. If I remember correctly, the SMS specific things or better, where you should add support for emails and/or MMSes, are already commented in the source. See also the examples pointed in the source code. This might be a good place to start:

http://www.symbian.com/developer/tec.../mms_part2.pdf

Start with a simple hard coded example MMS with only text in it, modify e.g. "inbox" in the beginning and add the relevant code from the above link.
Thanks for the tip.
Reply With Quote

#10 Old Re: Python for series 60 + MMS - 2006-03-01, 11:46

Join Date: Jul 2004
Posts: 76
eriksmartt
Offline
Regular Contributor
Bummer that PM's are disabled since the thread was specifically asking for me. Fortunately, jplauril and otsov have already addressed the issue.

Just to reiterate, MMS was low on the wishlist given it's complexity and limited use, and because there were other priorities that came up higher (ex., send and receive SMS were heavily requested.) The Java guys are getting MMS though (through JSR 205), and it will be interesting to see if the new API's drive MMS adoption.

For the time being, the unfortunate (or fortunate, depending how you look at it) answer is that MMS isn't being worked on by the folks here, but the source code is available and the MMS C++ API's could be exposed. No easy task.. but it's technically feasible.
Reply With Quote

#11 Old Re: Python for series 60 + MMS - 2006-03-01, 12:26

Join Date: Feb 2006
Posts: 22
Location: NO_no
Send a message via ICQ to christee Send a message via MSN to christee
christee
Offline
Registered User
I took a glance at the MMS part of the C++ API the other day. I have written some C++ before but I consider myself very novice. It did not take long before I saw that this was way to much for me. I guess I will have to try to figure out other ways of sending an mms.

One idea I had was to simply write an MMS sender in maybe java that could take some arguments and simply send the MMS. Could something like this work?

One could generate an MMS in a python application and "send" it to a java application that actually sends the MMS? Excuse my crappy explanation for the idea.
Reply With Quote

#12 Old Re: Python for series 60 + MMS - 2006-04-02, 16:28

Join Date: Mar 2003
Posts: 3
kari.kujansuu
Offline
Registered User
I have succeeded in sending an MMS message from Python. See http://nysse.lapanen.org/python/MMS/. This is a native extension with minimal functionality - it can send a message with one file attachment. Note that I am a novice in Symbian programming - use at your own risk...
Reply With Quote

#13 Old Re: Python for series 60 + MMS - 2006-04-03, 12:00

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
great

Many are waiting for this feature
But why use this :
[code]
# mmsmodule named as MMSMODULE.PYD (ALL in uppercase !)
import mmsmodule
[code]

Could you explain this to me ?
Last edited by cyke64 : 2006-04-03 at 12:01. Reason: smiley
Reply With Quote

#14 Old Re: Python for series 60 + MMS - 2006-04-03, 18:21

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
cyke64, I can perhaps explain: the Symbian file system is case insensitive but case preserving. Python will find the .pyd regardless of the case of the filename.
Reply With Quote

#15 Old Re: Python for series 60 + MMS - 2006-04-03, 18:30

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
kari.kujansuu: Nice work!

One fix is in order, though: You should release the interpreter lock before entering the Active Scheduler and reacquire it when you return from it. Whenever you call CActiveScheduler::Start() in a Python extension you should do this (unless you _really_ know what you are doing):
Code:
    Py_BEGIN_ALLOW_THREADS
    CActiveScheduler::Start();
    Py_END_ALLOW_THREADS
The source code of existing extensions has examples of this technique. See e.g. src/ext/messaging/messagingmodule.cpp.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
MMS display on the S40 DP2.0 SDK1.1 puikeong Mobile Java Tools & SDKs 0 2005-03-11 19:49
Recommended Sizes for MMS Image, Text and Layout sguthery General Messaging 3 2003-08-22 10:10
MMS API and how to actually produce code for MMS? Softbit General Symbian C++ 0 2003-08-20 14:13
7210 MMS vs. 7650 MMS ... poncha General Messaging 1 2002-12-19 12:07
MMS file format and storage (7650) betasuppe General Messaging 1 2002-11-06 11:19

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d121773X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ