Notices


Reply
Thread Tools
Posts: 17 | Thanked: 1 time | Joined on Dec 2009
#31
I was thinking about this yesterday and then saw this post on the side of the front page. Thank you! Thank you! Thank you!
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#32
Originally Posted by shaunramos View Post
The script now would ask for the number and the message and can also schedule sending. Updated script is right here:
http://www.paraiso.dk/pymaemosms.txt.
Can you modify it, so it accepts these as arguments and doesn't stop execution and ask, so it can be used in shell scripts?
 
Posts: 119 | Thanked: 14 times | Joined on Nov 2009
#33
can something like this be made for sending sms trough a skype account from the n900 to any other phone?
 
Posts: 19 | Thanked: 2 times | Joined on Dec 2009
#34
Awesome work!

Thanks to both of you
 
Posts: 14 | Thanked: 18 times | Joined on Dec 2009
#35
I made the script more interactive but you can of course change it so that it accepts arguments instead. Just use python's sys.argv. If i have the time, i will change it so that it can support both.

Also, if anyone is interested, i have made another sample script listens to incoming messages. I placed the link in the pymaemo wiki:
http://wiki.maemo.org/PyMaemo#Examples or you can also read it directly here: http://www.paraiso.dk/incomingsms.txt

regards,
shaun
 

The Following 2 Users Say Thank You to shaunramos For This Useful Post:
Posts: 22 | Thanked: 7 times | Joined on Nov 2007
#36
This is really good stuff, but would it be possible to organize this knowledge in a slightly different way?

I plan to use Perl when I get my N900 and so I don't need a lot of Python-code that (for me) just obscures the core information.

What I would like to have is bascially just a compendium of how the N900's functions (SMS-sending, SMS-receiving etc etc) maps to the D-Bus.

Something like: "for incoming SMS listen for 'IncomingSegment'-signals from /com/nokia/phone/SMS, interface Phone.SMS on the systembus".

Does such an overview already exist somewhere? (If not I will create it when I have time on the weekend).
 
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#37
Originally Posted by shaunramos View Post
I made the script more interactive but you can of course change it so that it accepts arguments instead. Just use python's sys.argv. If i have the time, i will change it so that it can support both.
I'll take a look, haven't messed with Python so far...

Also, if anyone is interested, i have made another sample script listens to incoming messages. I placed the link in the pymaemo wiki:
This is good stuff, haven't looked yet, but assumed you've utilized some dbus hooks, that get triggered when SMSes come in.

In case you've studied it, are you aware of which hooks could be used to catch call inception and call end.

I'm asking since I already programmed elisp code for Emacs's BBDB to initiate calling, and automatically record, who you've called etc. including the call time to BBDB database, however, I don't know which hooks to catch to check for actual call inception and end, so what happens to me now:

1. All calls are recorded as zero length, since Emacs dials the numer via dbus, which immediately exits, and Emacs catches this as call end time.
2. Even if the call doesn't connect, i.e. the line is busy, the user picks up, it gets recorded as a call made.

Therefore you need to somehow check for call start and end...
 

The Following User Says Thank You to 白い熊 For This Useful Post:
Posts: 14 | Thanked: 18 times | Joined on Dec 2009
#38
Originally Posted by 白い熊 View Post
I'll take a look, haven't messed with Python so far...



This is good stuff, haven't looked yet, but assumed you've utilized some dbus hooks, that get triggered when SMSes come in.

In case you've studied it, are you aware of which hooks could be used to catch call inception and call end.

I'm asking since I already programmed elisp code for Emacs's BBDB to initiate calling, and automatically record, who you've called etc. including the call time to BBDB database, however, I don't know which hooks to catch to check for actual call inception and end, so what happens to me now:

1. All calls are recorded as zero length, since Emacs dials the numer via dbus, which immediately exits, and Emacs catches this as call end time.
2. Even if the call doesn't connect, i.e. the line is busy, the user picks up, it gets recorded as a call made.

Therefore you need to somehow check for call start and end...
I use the dbus-monitor to check for hooks. Run the dbus-monitor, make a call, end the call. Stop the monitor and check the log. You should then be able to see the hooks you need.

regards,
shaun
 
Posts: 8 | Thanked: 7 times | Joined on Dec 2009 @ London
#39
Hi there,

I added some code and now you are able to send sms and receive a reply. Code is available for download here http://ztbsauer.com/sender.py

For now it replies only for one command but feel free to expand it for own needs.
 

The Following 2 Users Say Thank You to pende For This Useful Post:
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#40
I know the cellular stack supports it, are there any libraries for sending class 0 or "flash" SMS?
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:59.