![]() |
Re: [Announce] SMScon (control your device with SMS)
Looks like an useful application. However, I see that much of the functionality relies on the N900 /sending/ SMS messages. Does that imply that you need a second cellphone to receive them?
Paai |
Re: [Announce] SMScon (control your device with SMS)
@ paai:
Yes, it can be any cellphone to send SMS commands to SMSCON. Only if SMSCON has never been send messages to and phone is stolen and swapped with other SIM card it will send SMS message to predefined cellphone number (user option SENDERNUMBER in "smscon_config" file). After this, sending a SMS command to the new SIM card number ('thiefs' SIM card number) it will send return SMS's to your currently used cellphone (and this number is stored in SENDERNUMBER in "smscon_config" file). |
Re: [Announce] SMScon (control your device with SMS)
Is the script activated if there is a bunch of coded words in the subject line? Like if my friend accidentally sends me a message with the subject line "Check out my new Power Lock...", does it execute the 3 corresponding commands?
|
Re: [Announce] SMScon (control your device with SMS)
Quote:
COM_LOCK = 'Lock' If some message is: 'The Lock of my door is broken', SMSCON is not trigged. Even 'LockLock' or ' Lock' or 'Lock ' (spaces!) doesn't trigger it. Only with message: 'Lock'. |
Re: [Announce] SMScon (control your device with SMS)
It would be nice to have an option to register a number that is the only valid to send the smscon commands.
I know the chances are pretty low that someone else will actually send a command to my n900, but they still exist. And i wouldn't be overly happy to expose my current location or a picture of myself/surrounding to someone that is pinging my phone. Or did i somehow miss the point and my n900 only returns requests to a certain predefined number? Meaning that anybody (like 12345) can send a command, but the reply always goes to my defined number (i.e. 7890)...:confused: |
Re: [Announce] SMScon (control your device with SMS)
Quote:
Nobody will ever gues this (possibilities are almost unlimited) and if choosen right nobody will 'hack' your phone... |
Re: [Announce] SMScon (control your device with SMS)
Hey there,
First off this is a really nice application, it's coming along very nicely. A few bugs (and fixes) though: Using version 0.4.4-5 in -testing, the reboot and poweroff commands currently fail. Reboot fails because of line 714 of smscon_daemon: Code:
logging.info('executing command "%s"' % Com) Code:
logging.info('executing command "%s"' % COM_REBOOT) Code:
logging.info('executing command "%s"' % Com) Code:
logging.info('executing command "%s"' % COM_POWEROFF) This is set in line 377, imo the line should either have more generic alt text set, or the alt text should be set as part of the differing message bodies for different email reasons, rather than be set statically. |
Re: [Announce] SMScon (control your device with SMS)
Hi
Whenever I send a test email with picture, the picture is always black? Checked no fingers in the way. Any ideas? |
Re: [Announce] SMScon (control your device with SMS)
Quote:
I assume you are inside a room when you are testing this with relatively low light. If you go out in daylight and there is no issue with your camera it should take an ok picture. What I'm trying to say is that is a known limitation of the front camera. |
Re: [Announce] SMScon (control your device with SMS)
@ nidO:
Thanks for pointing this out, will be fixed in next release. Current changes/fixes for upcoming 0.4.4-6 release: * FIX: COM_REBOOT & COM_POWEROFF command fail when used. * FIX: alt text of email image is wrong. * CHANGE: initial network connection will be restored after using test modes (in SMSCON-editor) and smscon will also stop running when finished in test mode. * CHANGE: added time notation (again) in smscon log file. Other: * improved data connection handling (again). * minor code cleanup |
Re: [Announce] SMScon (control your device with SMS)
This is AWESOME
One thing I really wish is that I could choose in the SMS I *send* if I want locations as email, or SMS. If my phone gets lost inside my country, I probably want to use email, coz I get the map, and I know it has a data connection. If my phone gets lost outside my country, I do not have a data connection, so email wouldn't work, and I would want to use SMS. I think the suggestion earlier in the thread, where we could send Location foo@somewhere.net or Location +4670123456 ...would be PERFECT, so that the incoming SMS would guide where the message was sent (+ indicates phonenumber, lackthereof indicates email) Many thanks for an AWESOME program! (Oh and by the way, for those of you using GMAIL to send mail, a good idea is to set up a separate gmail email account for this reason alone, coz otherwise the stolen phone contains the cleartext of your google password - not a good thing .... ) /Z |
Re: [Announce] SMScon (control your device with SMS)
Quote:
actually, I'm encountering an issue related to email transmission: if I'm connected to wlan and press the "email" or "email with picture" button in the test page of SMSCon-editor, it disconnects from wifi and tries to connect via gprs. This is very bad since I don't want to permit any data connection through mobile carrier. Why doesn't it send the email via wifi? |
Re: [Announce] SMScon (control your device with SMS)
A suggestion maybe already posted: the smscon_config file should be shomehow encrypted: too many sensitive data in there!
The editor would ask for the decryption password at start. |
Re: [Announce] SMScon (control your device with SMS)
Quote:
Crusial in this case is a reliable data connection for sending the requested data back (for email or SSH connection setup). I have chosen for this a cellular connection (GPRS), because this (almost) always will work if there is phone reception. When your phone is lying in some remote area, a WLAN will ever help you, because it has to little range and can be restricted by firewall, passwords etc. When valid SMS commands are send to SMSCON and has to send an email (or it must setup the SSH connection) it will use the GPRS data connection. If you are persitent never to use any data connection through mobile carrier, this app won't work for you. But for not completely ruling it out: I can change the way the test email uses a data connection:
|
Re: [Announce] SMScon (control your device with SMS)
What interests me most in this app is the fact that you can fire up a reverse ssh in this way. But then I'd need a second cell-phone to send the SMS.
Can anybody think of an alternative method to signal the N900? Paai |
Re: [Announce] SMScon (control your device with SMS)
For information, I have been working since the last version only in one new feature.
That is to add a password protection on opening the smscon-editor. It requires a couple of new dialog windows (one for entering the password and a second to change the password.), buttons here and there, some serious change on the code to not execute things before authorized etc, and of course new code to handle and make those actions (read, save, compare passwords etc). I'm quite there but I'm missing one important library to make it perfect. :) Does anyone has a pointer on a simple and nice crypto library to propose? |
Re: [Announce] SMScon (control your device with SMS)
Quote:
|
Re: [Announce] SMScon (control your device with SMS)
Quote:
|
Re: [Announce] SMScon (control your device with SMS)
Quote:
HOWEVER, there is one feature with the existing functionality that I like, which is why I would REALLY like you to keep the existing functionality as an option: This makes the phones IP public (well, on my ISP anyway) whereas it's IP on WLAN probably is private. So now after it has sent an email, I can then SSH directly into the phone (I have DYNDns set up for my phone) Of course, one could also make this a new command: "GetGPRSIP", would switch the phone to GPRS, try to connect, and sends that IP back in an SMS (or email, as configured). Again, many thanks for glorious software. You should have a paypal tipjar! /Z |
Re: [Announce] SMScon (control your device with SMS)
Quote:
Alternatively, you could avoid the need for SMSCON if you only really want the reverse ssh bit - just leave a reverse ssh connection permanently active. I do this (via scripts triggered each time a network interface comes up), it works OK and doesn't appear to use noticably more battery when the tunnel is idling (my n900 is set for "always on" data connection). See eitama's wiki at http://wiki.maemo.org/Reverse_ssh for more info on how to set this up. |
Re: [Announce] SMScon (control your device with SMS)
Sms commands not working for me:
i tried smscon -status and got: smscon_daemon is running. smscon -log shows nothing about the SMSs i sent to the device. it ignored all commands i sent - Camera, Lock etc. using the "Test" emails worked fine, but it currently seems that the application is not processing the SMS messages i send to the phone. Any idea? |
Re: [Announce] SMScon (control your device with SMS)
Which version are you using? (use latest: 0.4.4-6)
|
Re: [Announce] SMScon (control your device with SMS)
yes the command line shows v0.4.4-6
|
Re: [Announce] SMScon (control your device with SMS)
This is kinda feature requests: Can you put password to access SMScon Editor? Just to protect those commands more effectively.
Also, can you configure it so that it tries wifi first and then if it's not available, switches to cellular data network? |
Re: [Announce] SMScon (control your device with SMS)
Hi. I'm using version v0.4.4-6 and most things I've tried seem to work fine, including check, reboot, location, camera (have to test in daylight), and lock.
Not sure what 'power' does since I haven't tried it. Does it power on the device from an off state? I guess power off turns it off? Does trackon continuously record the gps location? However, even though I have set KEYBOARDDETECT = 'yes' in the config file, I am not getting any notifications of keyboard use. Any suggestions? Also, for the ssh reverse tunnel, can I change the port in my server to which I connect to the N900? I already have a proxy server running on port 8080 on my home server. How about something like 12000 to connect to the N900 via: ssh -p 12000 localhost -l root Thanks for a great application. |
Re: {Announce] SMScon (control your device with SMS)
Quote:
I tried reading about chroot jail and rssh, but these options still give the user some type of limited shell, don't they? I googled but did not find how to allow only tunnelling with no shell access. Any pointers? Thanks, |
Re: [Announce] SMScon (control your device with SMS)
@ zerocool2k:
Saturn is busy with the password access for SMSCON-editor, so I will come in near future. "Also, can you configure it so that it tries wifi first and then if it's not available, switches to cellular data network? " To implement this not as easy as it sound and makes things quite complicated, but I think in theory it can be done. @ DojwqIO: COM_POWER show you the current battery charge percentage (returns SMS). COM_TRACKON will continiously send the GPS coordinates with SMS or email to you. The port can be adjusted in the smscon_daemon file (look at "LocalPort" under "variables") Keyboard use is opening/closing the keyboard slider. |
Re: [Announce] SMScon (control your device with SMS)
Thanks for the reply. I don't know what happened but when I upgraded SMScon Editor earlier (when newer SMScon wasn't up), it automatically uninstalled SMScon. Is this normal?
|
Re: [Announce] SMScon (control your device with SMS)
Find the new version of the SMSCON Editor v. 0.4.4-12 in extras.
http://maemo.org/packages/view/smscon-editor/ Cumulative updates since previous version: * Added support for new option to send GPS coordinates to both email and sms. * Increased the size of the username fields - useful with gmail and such. * Removed smscon from the dependencies (to allow promotion in extras) Some more information and screenshots in the wiki page of SMSCON Editor (needs work still!) Feel free to report issues. On other news: -I have found how to password protect the startup of the editor in a simple and nice way. It needs still quite some work to be fully integrated but will come in a future version eventually. - Don't forget to vote in testing for the packages promotion. Here are the links: SMSCON , SMSCON-Editor |
Re: [Announce] SMScon (control your device with SMS)
Quote:
Version: 0.4.4-6 Status: Daemon is running Log: No incoming (received) sms commands are listed Any ideas what this might be up to? |
Re: [Announce] SMScon (control your device with SMS)
still also waiting for this - if it works it'll be a great tool for me
|
Re: [Announce] SMScon (control your device with SMS)
Quote:
1. Did you change/rename the commands? 2. Did you check you didn't put any space after the command sms? 3. What is your default language. 4. do you see the sms you have sent to the messages and does it have more than just the command? |
Re: [Announce] SMScon (control your device with SMS)
i didn't change the commands - stayed with default names.
i did not put a space or enter after the command in the SMS message, however, when i open the SMS message in the N900, the message looks as if there is a new line (as if i also added an ENTER key to the end of the message). my device language is English(United Kingdom). One more thing is that i did not use another cellular to send the SMS - i used a windows application called "TextMe" - i don't have another cellular to use for sending. i also tried to copy the message content from the N900 after i got it to clipboard and paste it to a new sent SMS message and it didn't work also. Thanks. |
Re: [Announce] SMScon (control your device with SMS)
1 Attachment(s)
hi. first of all, thank you, this is an awesome application. :)
i found potential trouble with grps connection handling. there could be situations when there are more than one such connection available. for example, one for internet-over-gprs and one for mms (via fmms / fapn pair). in such case smscon-daemon, as far as i can understand, will use the first gprs connection he found, and if it will be the one for mms only then email just will not be sent. actually, i haven't any clue about how to define the exact subtype of the grps connection. the only solution that came to my mind was to check gprs_accesspointname param in the gconftool output for whether it contains "mms." substring. (patch attached.) but it's a kind of quick-and-dirty hacks. has anybody any better suggestions? :confused: |
Re: [Announce] SMScon (control your device with SMS)
1 Attachment(s)
Find the new version of the SMSCON Editor v. 0.4.4-14 in extras-devel.
http://maemo.org/packages/view/smscon-editor/ This version brings a feature requested by several people already. It allows the prefixing of a common string all the commands on the window in one go. There isn't much to explain - just try it. The changes are registered only after pressing the "Update Settings" button. To remove the prefix (before updating them) just re-prefix with nothing in the box. See for more information and screenshots in the wiki page of SMSCON Editor (still needs work! documentation is always boring :)) - Feel free to report issues. - Feel free to thank the developers. There's a button for it! - Don't forget to vote in testing for the packages promotion if you find them functional. Here are the links: SMSCON , SMSCON-Editor |
Re: [Announce] SMScon (control your device with SMS)
Quote:
I have set up the keys and I'm able to connect via ssh and open the tunnel from the command line as root in the N900, but smscon fails to establish the connection. Update: I added a passphrase to my private key on the N900 and added it to smscon_config and it didn't work either. The ssh connection cannot be established with smscon but it is possible from the command line. Any suggestions? The smscon -log output does not provide a lot of information. More information: the remoteuser in my ssh server does not have shell access but it is able to forward ports. |
Re: [Announce] SMScon (control your device with SMS)
Quote:
I do not however get any sms updates about keyboard use. See my other post about issues with remote ssh connections. smscon is not able to establish the reverse tunnel with public key authorization. |
Re: [Announce] SMScon (control your device with SMS)
Quote:
1. I tried with the default commands and also with custom commands 2. Yep. No spaces or new lines in the sms. Only the command. 3. English 4. The message that i receive on my n900 only displays my command (i.e. Check) with no other signs, whitespaces or similar. When i receive the message, the notification window pops up, but nothing else happens. The message is sent from another cellphone (using the same network - o2). Thanks for your support...:rolleyes: [update] I also do not receive any command reply sms. So it looks like smscon can't handle the received sms (which would also confirm the "empty" logfile) |
Re: [Announce] SMScon (control your device with SMS)
Quote:
I changed the code in smscon_daemon to try to connect even after a failed ping: Code:
if StatusSSH() == False: Hope this helps. |
Re: [Announce] SMScon (control your device with SMS)
Quote:
|
All times are GMT. The time now is 05:42. |
vBulletin® Version 3.8.8