Editing SMSCON
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 69 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 (available only if you setup and maintain such a server). |
* 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, e.g. if you've forgotten them. This way you need just to remember the code of one single command (the COM_CHECK command). |
* Supports use of multiple SIM cards. | * Supports use of multiple SIM cards. | ||
- | * Detect SIM card change. | + | * Detect SIM card change. It will send a notification containing 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. |
- | + | ||
* 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 69: | ||
* 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 171: | ||
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 378: | Line 370: | ||
====COM_CAMERA: How to select picture or video==== | ====COM_CAMERA: How to select picture or video==== | ||
- | The COM_CAMERA command activates the front camera for taking a single picture or a live video stream [video since version 0.9.19]. Once started, a live video stream is continuously sent until explicitly stopped by another COM_CAMERA command. A picture requires only one command per picture | + | The COM_CAMERA command activates the front camera for taking a single picture or a live video stream [video since version 0.9.19]. Once started, a live video stream is continuously sent until explicitly stopped by another COM_CAMERA command. A picture requires only one command per picture, |
To select picture or video, the COM_CAMERA command does now accept up to 3 parameters. To specify them in a SMS, you have to define the COM_CAMERA command on your phone to contain at least three (recommended optional) [[ #Variable text parts in command definitions | placeholders]]. The corresponding parameter's meaning is as follows: | To select picture or video, the COM_CAMERA command does now accept up to 3 parameters. To specify them in a SMS, you have to define the COM_CAMERA command on your phone to contain at least three (recommended optional) [[ #Variable text parts in command definitions | placeholders]]. The corresponding parameter's meaning is as follows: | ||
Line 400: | Line 392: | ||
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 407: | ||
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. |
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 580: | ||
* '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 607: | ||
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 828: | ||
===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 894: | ||
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,091: | ||
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 :)) |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[[Category:Software]] | [[Category:Software]] | ||
[[Category:N900]] | [[Category:N900]] |
Learn more about Contributing to the wiki.