![]() |
Re: SMS from CLI (Command Line)?
Forget the above, that's not right, pnatd is part of phonet-at, but purging it would have you uninstall mp-fremantle-generic-pr which you don't wanna do.
Code:
apt-get --reinstall install phonet-at |
Re: SMS from CLI (Command Line)?
Alternatively try just to setuid the pnatd executable
Code:
chmod 4555 /usr/bin/pnatd |
Re: SMS from CLI (Command Line)?
Quote:
|
Re: SMS from CLI (Command Line)?
Send an SMS?
|
Re: SMS from CLI (Command Line)?
Quote:
I cannot edit my bbdb entries though, but bbdb is a funny animal. But that's a trivial matter running through the .bbdb file a few times with a keyboard macro or two. It's this type of function (sms/call from emacs) that makes this device so powerful, it's unfortunate that the number of folks interested seems so small. Thanks for helping figure out my issues. |
Re: SMS from CLI (Command Line)?
New version of bbdb-nokia-n900 v 0.3:
http://sumoudou.org/0/27.html Modified script, so point stays on record selected in BBDB and doesn't move to end after sending an SMS, or calling. |
Re: SMS from CLI (Command Line)?
I can't get the SMS script (http://www.paraiso.dk/pymaemosms.txt) working. I'm in the UK in case that matters and am feeding a number like
07123456789 and a message like testing testing It says "Message sent" but the phone I sent it to gets nothing. Any ideas what could be wrong? There's also nothing new in the el.db file but perhaps I shouldn't be expecting anything there anyway when sending an SMS like this? (That's actually a major problem for me -- I will want my sent messages to appear in history.) Thanks |
Re: SMS from CLI (Command Line)?
And it sounds like the Telepathy API way of sending SMSes would make more sense given that I want the message to be stored in "sent". What's the current state of that -- is there anything working and available?
|
Re: SMS from CLI (Command Line)?
It's way connect to phone for send message, but not connect to Message application for send.
By dbus-send you send "direct_to_phone" as modem. |
Re: SMS from CLI (Command Line)?
If I understand you correctly, I'm already clear on the differences between using dbus and Telepathy. But what I'm asking is whether the Telepathy API for SMS is working and usable -- and if so, where can I read about it?
|
Re: SMS from CLI (Command Line)?
if I may suggest another option, Tpsession is even simpler to use in case it helps you. Its a wrapper over the telepathy libs, if you dont want to get your hands dirty ;)
http://tpsession.garage.maemo.org/ |
Re: SMS from CLI (Command Line)?
Hmm, having had a look it looks nice but I don't even want to get my hands that dirty... If there were Python bindings on the other hand...
I actually just tried to install the Maemo SDK, thinking if it must be C it must be C, but am having no luck. That's a question for another thread, though. |
Re: SMS from CLI (Command Line)?
Quote:
just copypaste the el.db code from gitorious? www.gitorious.org/VertSMS it is about 10 lines if I remember correctly. should be found in SMS.py e: python bindings aren't a problem, you can use ctypes. But with rtcom API I haven't got anything working with storing the sms. |
Re: SMS from CLI (Command Line)?
Any idea how I can fix it?
And just so we're clear, the code you're pointing to is to add the SMS to the database, right? Would the conversations app then have to be prodded to reload the database before the sent messages appear? Thanks. |
Re: SMS from CLI (Command Line)?
Quote:
(dbus-monitor > logfile.txt for example) yes it adds it to database, there is small delay but don't know how it acts if conversations is open in background |
Re: SMS from CLI (Command Line)?
This is with the http://www.paraiso.dk/pymaemosms.txt script as is: http://sprunge.us/aIhe
This is with Cue's script back on page 6: http://sprunge.us/YMHI I've replaced the number with 07XXXXXXXXX (same number of digits though). |
Re: SMS from CLI (Command Line)?
update: there is now an API way to write stuff to rtcom eventlogger database!!! (million thankses again to frals and gri)
it can be found at newest push from gitorious. should be straight in sms.py (green lines) http://gitorious.org/vertsms/vertsms...faf78da4fed051 |
Re: SMS from CLI (Command Line)?
Quote:
thanks for your script. It works wonderfully... For non-accented messages. It seems your deoctify() function fails for accented messages, any plans to fix this? |
Re: SMS from CLI (Command Line)?
Quote:
Many posts ago I've written correct solution for decoding SMS PDU: http://kibergus.su/node/17 The only change is that gsmdecode.py is now in ussd4all package instead of ussd-common. Use gsmdecode.decode_pdu() for decoding PDU. |
Re: SMS from CLI (Command Line)?
Quote:
I have tried this example to send an sms via G-LIB library but currently I need to send an sms using "dbus_g_proxy_call" g-lib method. Unfortunately I got a Segmentation Failure (though sms is sent) when calling this: GError* error; dbus_g_proxy_call_no_reply(dbus_proxy, "Send", &error, MY_TYPE, ptrarray, G_TYPE_STRING,"",G_TYPE_INVALID); Please could you please give a hint how to fix that or is there any way to send an sms with reply version. |
Re: SMS from CLI (Command Line)?
Quote:
It does work after changing the 'except' clause to: Code:
octet = (15 << 4) | digit_1 |
Re: SMS from CLI (Command Line)?
That script is shauns and pendes script put together with the addition of CLI arguments so the caveats that are mentioned here
http://talk.maemo.org/showpost.php?p...8&postcount=23 apply to that script too. I recommend using one of the later more robust methods in the thread. |
Re: SMS from CLI (Command Line)?
Quote:
Despite my inexperience with Python I tried using TpSession, but kept getting "ImportError: No module named QtMobility.Messaging". I couldn't find a package to satisfy this dependency; python2.5-mobility-common and libqtm-messaging seemed the only likely candidates, but didn't help. Any clues gratefully received. :) |
Re: SMS from CLI (Command Line)?
Hello! I'm to send a message:
./sms-script +79111234567 hello and after some time got an announcement, that it cannot be sent to number 0079111234567 How can I fix it? What's wrong, guys? |
Re: SMS from CLI (Command Line)?
Quote:
exactly: import sys phonenumber = sys.argv[1] message = sys.argv[2] How can I put variables phonenumber and message in: child.send('at+cmgs="+XXXXXXX"\r'); child.send('SMSTEXTSMSTEXTSMSTEXT'); ? Thanks in advance for any help! |
Re: SMS from CLI (Command Line)?
apt-get install phone-control (Mo-AG Strikes again!)
|
Re: SMS from CLI (Command Line)?
I didn't think the current release (0.2-4 in devel) of phone-control could send an SMS? Is there some undocumented feature?
|
Re: SMS from CLI (Command Line)?
I made this just for fun. :)
Code:
Usage: Messages longer than 160 characters should be splitted in more than one message. To use this utility you need to run it as root (or use the -c option, which works also as user) If you want to run it as user: Code:
chmod 4555 /usr/bin/pnatdhttp://maemo.org/packages/view/smssend/ |
Re: SMS from CLI (Command Line)?
Works a treat for me! The only thing I'd say is that if I use the -c option the message doesn't send, it just prefills the text box. Is there any way you could auto send with the -c option? Using it without seems to work well but then I don't get a record of the text in my conversation window.
Thank you! |
Re: SMS from CLI (Command Line)?
It's possible to send the message using conversation, but it makes no sense in my opinion, because the QtMobility implementation always open the conversation app also when the message has been sent.
Since I think it's confusing for the user I preferred to just compose it and let the user push the "send" button. |
Re: SMS from CLI (Command Line)?
Quote:
|
Re: SMS from CLI (Command Line)?
Source code are available on the "homepage" (there's not really a page).
http://www.assembla.com/code/smssend/subversion/nodes |
Re: SMS from CLI (Command Line)?
Thanks for getting back sakya! The only trouble I have is that without the -c option I have no record of the sms messages I send and with it it's not really command line only! I have also noticed that if I am viewing a conversation with a recipient and I send to that recipient with the -c option it brings up the dashboard. This means that the first sms I send brings up the conversation window and the second sends it away again (or at least means I have to tap it in the dashboard).
|
Re: SMS from CLI (Command Line)?
In case it helps, here is a bash snippet which adds a text message to the database. I don't know how safe it is, but it /does/ appear in the conversations window after some variable delay. I was planning to use this with my own SMS script but never quite finished the SMS part (I got stuck on sending >160-char texts).
Code:
# $number is like '+447123456789' |
Re: SMS from CLI (Command Line)?
A direct insert in the db table doesn't seem the best way to me. :)
I'll look if there's some API to save a message. ;) Many thanks |
Re: SMS from CLI (Command Line)?
This in the wiki used to work for me and would sometimes add the message to the conversation window but it was never very reliable and no longer works for me.
|
Re: SMS from CLI (Command Line)?
The package is available in the Extras-devel repository
http://maemo.org/packages/view/smssend/ Btw I looked at the QtMobility APIs and it seems there's no way to save a message in the sent folder. I think I'll use the db insert. :p |
Re: SMS from CLI (Command Line)?
Yeah, I never claimed it wasn't messy! With a bit of testing maybe it'll turn out to be fine, maybe it won't.
|
Re: SMS from CLI (Command Line)?
I tried it and it seems to work fine. ;)
|
Re: SMS from CLI (Command Line)?
Could I persuade you to add autosend to the -c option as well? It's nice to be able to send as user, over 160 characters and without risking simultaneous database writes (if I scheduled a text via alarmd with smssend)?
|
| All times are GMT. The time now is 03:31. |
vBulletin® Version 3.8.8