Editing SMSCON
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 70 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | + | '''Please Note: Update for 0.9.19++ is in progress for this page. In particular section "Usage" still needs updates...'''. --[[User:yablacky|yablacky]] 00:14, 23 May 2012 (UTC) | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | Update for 0.9.19++ is in progress for this | + | |
==Introduction== | ==Introduction== | ||
Line 37: | Line 32: | ||
* Looking for commands in received SMS messages. | * Looking for commands in received SMS messages. | ||
- | * Asking a remote command server for commands. | + | * Asking a remote command server for commands.<br/>This functionality is available if you have a file under your control that is accessible via internet. A private homepage that allows you to serve an extra file might be all you need. |
* Sending notifications, responses and query results by SMS and/or by EMAIL. | * Sending notifications, responses and query results by SMS and/or by EMAIL. | ||
- | * Send help about all currently recognized SMS commands. | + | * Send help about all currently recognized SMS commands.<br/>This is very handy if you've forgotten them. This way you need just to remember the code of one single command (the COM_CHECK command and its prefix/suffix). |
* Supports use of multiple SIM cards. | * Supports use of multiple SIM cards. | ||
- | * Detect SIM card change. | + | * Detect SIM card change.<br/>The first time an unknown SIM is detected, SMSCON will send a notification. It contains the new SIM card's phone number, IMSI code & telecom operator name. This scenario happens if your phone's finder or thief replaces your SIM by his/hers own SIM card. |
- | * Detect SIM card removal | + | * Detect SIM card removal [since version 0.9.19].<br/>Each time the phone boots without a SIM card, SMSCON tries to send an email notification (SMS is not possible without SIM). Email might work if the phone has somehow connected to an already known WLAN. Send retry option applies. In this case there is a chance to control the phone at least via CHECKHOST method.<br/> |
+ | '''Note:''' On device boot it is possible to simply skip the SIM-card PIN-code question. To SMSCON this appears the same as SIM card removal. Consequently the email subject sent is "No or skipped SIM". | ||
+ | '''Hint:''' Some user complained about being notified that they use their N900 albeit they use it without SIM in a home WLAN. Well, its not a bug, its a feature. Previously SMSCON throws away all possibilities being controlled and | ||
+ | just terminates itself. Should you use your phone this way and don't want any notifications, then do the same thing and stop SMSCON explicitly. | ||
* Optionally turn the phone silent on receiving a known command. | * Optionally turn the phone silent on receiving a known command. | ||
* Stores personal settings encrypted. | * Stores personal settings encrypted. | ||
Line 75: | Line 73: | ||
* Autoloads at boot. This ensures that SMSCON is active (that means is listening for commands) even after device (re)boot. Autoload is enabled by default during installation of a SMSCON package. | * Autoloads at boot. This ensures that SMSCON is active (that means is listening for commands) even after device (re)boot. Autoload is enabled by default during installation of a SMSCON package. | ||
- | * Create and keep a log file on the device. The log file can be queried remotely by SMS command as well as locally via command line | + | * Create and keep a log file on the device. The log file can be queried remotely by SMS command as well as locally via command line. |
* Reboot the phone. Albeit this is possible it is not generally recommended if your SIM card has a PIN: If nobody enters the PIN correctly, the phone would boot but could not connect to GPRS network. | * Reboot the phone. Albeit this is possible it is not generally recommended if your SIM card has a PIN: If nobody enters the PIN correctly, the phone would boot but could not connect to GPRS network. | ||
* Shutdown the phone. Also just possible but not generally recommended. | * Shutdown the phone. Also just possible but not generally recommended. | ||
Line 177: | Line 175: | ||
All phone numbers should be entered with country prefix. Not only ensures this that SMS are send successfully regardless where your phone actually is located. It further is essential to make phone numbers comparable. | All phone numbers should be entered with country prefix. Not only ensures this that SMS are send successfully regardless where your phone actually is located. It further is essential to make phone numbers comparable. | ||
- | |||
- | |||
===After installation=== | ===After installation=== | ||
Line 400: | Line 396: | ||
host your-computer.com on port 4321 | host your-computer.com on port 4321 | ||
CameraON,your-computer.com:4321 --> ditto | CameraON,your-computer.com:4321 --> ditto | ||
- | Camera1,your-computer.com:4321 --> ditto | + | Camera1,your-computer.com:4321 --> ditto |
Camera1,your-computer.com --> ditto, but uses default port 5000 | Camera1,your-computer.com --> ditto, but uses default port 5000 | ||
- | Camera0,your-computer.com --> request to stop video | + | Camera0,your-computer.com --> request to stop video |
Camera0 --> ditto | Camera0 --> ditto | ||
CameraOFF --> ditto | CameraOFF --> ditto | ||
Line 415: | Line 411: | ||
live stream. Default port number is 5000. | live stream. Default port number is 5000. | ||
- | If the video receiving computer is in a LAN behind a (DSL-)router (and the phone isn't) then you need to configure the router to | + | If the video receiving computer is in a LAN behind a (DSL-)router (and the phone isn't but currently has a 2G or 3G IP) then you need to configure the router to do port forwarding. This is almost the same thing as for CHECKHOST (but video is sent via udp, CHECKHOST checks via tcp). |
By design SMSCON does not support a pre-configured video receiving host. It must be specified in each COM_CAMERA command explicitly. This gives you a wide range of possible computers where to watch the video. | By design SMSCON does not support a pre-configured video receiving host. It must be specified in each COM_CAMERA command explicitly. This gives you a wide range of possible computers where to watch the video. | ||
Line 588: | Line 584: | ||
* 'Restart' will stop and start again the smscon_daemon. | * 'Restart' will stop and start again the smscon_daemon. | ||
- | ===Remote command server | + | ===Remote command server=== |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | To trigger any of the commands by a remote file on your own server (when option ENABLECHECKHOST is enabled), the file only must contain one of the following values from 00, 01 to 19 or -1: | |
<pre> | <pre> | ||
Line 625: | Line 611: | ||
19 = COM_LOG | 19 = COM_LOG | ||
</pre> | </pre> | ||
- | This two character code must be contained in the first two characters of the file. Further data is simply ignored but may be | + | This two character code must be contained in the first two characters of the file. Further data is simply ignored but may be tranferred with each query. So better keep the file small. |
- | + | It is of course necessary that the file on your server can be read by your N900 via the http protocol (or the protocol you set). Otherwise it won't work. If it don't work, check the log for ''CHECKHOST'' errors. | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ''' | + | |
- | + | The default CHECKTIME is 15 minutes but can be changed via CHECKTIME setting. Note that after giving a command via remote command server, it can take up to CHECKTIME minutes to execute the command. | |
===Example config file=== | ===Example config file=== | ||
Line 866: | Line 832: | ||
===Remote SSH connection=== | ===Remote SSH connection=== | ||
- | + | When the (reverse-)SSH connection is made (default command 'Remoteon' / 'Remoteoff') you can from the server side (your own server) connect to your Nokia device with the following command: | |
- | + | ||
- | + | ||
<pre> | <pre> | ||
ssh -p 8080 localhost -l root | ssh -p 8080 localhost -l root | ||
</pre> | </pre> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
==Files== | ==Files== | ||
Line 944: | Line 898: | ||
More information about each available version is [http://maemo.org/packages/view/smscon/ here]. | More information about each available version is [http://maemo.org/packages/view/smscon/ here]. | ||
- | === 0.9. | + | === 0.9.18-1 (Current [[Extras-devel]], [[Extras-testing]]) === |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
'''Changelog''' | '''Changelog''' | ||
Line 1,152: | Line 1,095: | ||
This page has been accessed 42,375 times. --[[User:yablacky|yablacky]] 15:30, 28 April 2012 (UTC)<br> | This page has been accessed 42,375 times. --[[User:yablacky|yablacky]] 15:30, 28 April 2012 (UTC)<br> | ||
This page has been accessed 43,315 times. --[[User:yablacky|yablacky]] 00:14, 13 May 2012 (UTC)<br> | This page has been accessed 43,315 times. --[[User:yablacky|yablacky]] 00:14, 13 May 2012 (UTC)<br> | ||
- | This page has been accessed 43,675 times. --[[User:yablacky|yablacky]] 06:51, 16 May 2012 (UTC) wow, 10 | + | This page has been accessed 43,675 times. --[[User:yablacky|yablacky]] 06:51, 16 May 2012 (UTC) wow, 10.000 :))<br> |
This page has been accessed 44,554 times. --[[User:yablacky|yablacky]] 02:45, 23 May 2012 (UTC)<br> | This page has been accessed 44,554 times. --[[User:yablacky|yablacky]] 02:45, 23 May 2012 (UTC)<br> | ||
- | |||
- | |||
- | |||
- | |||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:N900]] | [[Category:N900]] |
Learn more about Contributing to the wiki.