<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=83.253.0.12</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=83.253.0.12"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/83.253.0.12"/>
	<updated>2026-04-21T23:02:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=SMSCON&amp;diff=36848</id>
		<title>SMSCON</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=SMSCON&amp;diff=36848"/>
		<updated>2011-01-25T18:52:10Z</updated>

		<summary type="html">&lt;p&gt;83.253.0.12: /* Future development ideas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SMSCON provides complete control of your [[Nokia N900|N900]] by sending SMS commands to it. This is particularly handy in case you cannot find your phone, for example if it has been lost or even stolen.&lt;br /&gt;
 &lt;br /&gt;
SMSCON is a two part Python script running in command-line; &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; is the command-line control part and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; is the daemon (running in the background) part. The configuration file for all the user settings is in the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
SMSCON will also auto-load silently at boot, waiting for a special SMS command message in case you phone is lost (or even stolen). &lt;br /&gt;
&lt;br /&gt;
SMSCON can&#039;t guarantee that you will find your phone again, but it will provide the maximum chance to recover it. If this application ever helps you to recover your phone please tell the story on Maemo.org! The best way is of course to never lose your phone or let it get stolen...&lt;br /&gt;
&lt;br /&gt;
[[SMSCON Editor]] is a GUI helper application for SMSCON to set/edit user settings &amp;amp; control SMSCON.&lt;br /&gt;
 &lt;br /&gt;
=Functionality=&lt;br /&gt;
&lt;br /&gt;
SMSCON can:&lt;br /&gt;
&lt;br /&gt;
* autoload at boot (this is default set at install of smscon package); when device reboots it loads &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; silent in the background.&lt;br /&gt;
* creates a log file (on the device).&lt;br /&gt;
* detect SIM card change and sends new SIM card phonenumber, IMSI code &amp;amp; telecom operator name to other known mobile number (returns SMS message); if somebody has stolen your phone and put his/hers own SIM card in it.&lt;br /&gt;
* send current GPS location coordinates (returns SMS message or EMAIL with GoogleMaps picture with your phone&#039;s location on it).&lt;br /&gt;
* reboot the phone; only works if your SIM card hasn&#039;t a lock code.&lt;br /&gt;
* shutdown the phone.&lt;br /&gt;
* open a (reverse-)SSH connection to your own (home-)server (GPRS connection); control the phone at command-line level from your own home.&lt;br /&gt;
* email a frontcam picture to your email address (GPRS connection); to maybe see where your phone is or who is using it.&lt;br /&gt;
* send the current remaining battery charge (returns SMS message).&lt;br /&gt;
* make the phone call you; you can listen where your phone is (returns phonecall)&lt;br /&gt;
* lock the phone; nobody can use your phone anymore.&lt;br /&gt;
* detect keyboardslider use; when somebody has found your phone and uses the keyboard. (only after one of the valid SMS commands is send to you phone) (returns SMS message)&lt;br /&gt;
* send all valid SMS commands to you if you forgotten it (returns one or more SMS message)&lt;br /&gt;
* run a predefined shell script to start other programs, delete files etc.&lt;br /&gt;
* run directly shell command through SMS message sending. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* turn the phone silent when SMSCON is set active with a SMS command. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* send automatically SMS messages about the current battery status when SMSCON is set active with a SMS command. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* use multiple SIM cards (the IMSI numbers are stored in &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file) &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
SMSCON &amp;amp; [[SMSCON Editor]] can be found in the Extra-devel/Extra-testing repository (only if enabled on your phone).&lt;br /&gt;
&lt;br /&gt;
Always install the latest version on your phone, previous version can have bugs and have less functionallity!&lt;br /&gt;
&lt;br /&gt;
SMSCON is writen in Python and needs the following packages, besides &#039;&#039;&#039;python2.5&#039;&#039;&#039;, being installed on your device to install and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python-crypto /* NEW: NEEDED IN VERSION 0.5-5 and higher */&lt;br /&gt;
python-gobject&lt;br /&gt;
python-location&lt;br /&gt;
python-dbus&lt;br /&gt;
pexpect&lt;br /&gt;
gstreamer-tools &lt;br /&gt;
openssh-client&lt;br /&gt;
openssh-server&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The files &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; are placed by the installer in the &amp;lt;code&amp;gt;&#039;&#039;&#039;/opt/smscon&#039;&#039;&#039;&amp;lt;/code&amp;gt; directory. /* changed in version 0.5-5 and higher */ &lt;br /&gt;
&lt;br /&gt;
The installer will also generate a &amp;lt;code&amp;gt;smscon_boot&amp;lt;/code&amp;gt; file in &amp;lt;code&amp;gt;/etc/event.d&amp;lt;/code&amp;gt; for autoloading at boot of the device.&lt;br /&gt;
&lt;br /&gt;
Finally SMSCON generates a default settings template file (&amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt;) with all the user settings of SMSCON. It also creates a &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file (for storing the current IMSI number of your inserted SIM card) and a &amp;lt;code&amp;gt;smscon_script&amp;lt;/code&amp;gt; file (for running a custom user shell script).&lt;br /&gt;
&lt;br /&gt;
It&#039;s essential that the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file *must* be edited by [[SMSCON Editor]] or with commandline commands before use of SMSCON!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally: if you want to use the SSH connection feature of SMSCON (&#039;Remoteon&#039; / &#039;Remoteoff&#039; command), you also need a fixed IP address on your preconfigured remote server for the SSH (default port 22) connection.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
 &lt;br /&gt;
SMSCON is triggered by a SMS message with a predefined known command and then will execute the task in the background. If so it will send a reply SMS or email with the information.&lt;br /&gt;
&lt;br /&gt;
==Commands== &lt;br /&gt;
The (default) predefined commands are: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -sms&lt;br /&gt;
COM_CHECK         = &#039;Check&#039;&lt;br /&gt;
COM_REBOOT        = &#039;Reboot&#039;&lt;br /&gt;
COM_POWEROFF      = &#039;Poweroff&#039;&lt;br /&gt;
COM_POWER         = &#039;Power&#039;&lt;br /&gt;
COM_LOCATION      = &#039;Location&#039;&lt;br /&gt;
COM_REMOTEON      = &#039;Remoteon&#039;&lt;br /&gt;
COM_REMOTEOFF     = &#039;Remoteoff&#039;&lt;br /&gt;
COM_CAMERA        = &#039;Camera&#039;&lt;br /&gt;
COM_CALL          = &#039;Call&#039;&lt;br /&gt;
COM_LOCK          = &#039;Lock&#039;&lt;br /&gt;
COM_UNLOCK        = &#039;Unlock&#039;&lt;br /&gt;
COM_TRACKON       = &#039;Trackon&#039;&lt;br /&gt;
COM_TRACKOFF      = &#039;Trackoff&#039;&lt;br /&gt;
COM_CUSTOM        = &#039;Script&#039;  /* NEW: IN VERSION 0.5-9 */&lt;br /&gt;
COM_SHELL         = &#039;uptime &amp;gt;&amp;gt; /tmp/shell_log&#039;  &#039;&#039;&#039;/* NEW: IN VERSION 0.7-1 */&#039;&#039;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: These commands can be changed using the [[SMSCON Editor]] and from release v0.5-6 (and higher) also at the command-line with the &amp;lt;code&amp;gt;smscon -set &amp;lt;/code&amp;gt; command (see SMSCON command-line options).&lt;br /&gt;
&lt;br /&gt;
* When sending &#039;Check&#039; to you phone it sends one or more SMS messages with all the available SMSCON commands. &lt;br /&gt;
* Sending &#039;Reboot&#039; it will reboot your phone. &lt;br /&gt;
* Sending &#039;Poweroff&#039; is will shutdown your phone.&lt;br /&gt;
* Sending &#039;Location&#039; is will send it&#039;s current position by SMS or EMAIL (or both). &lt;br /&gt;
* Sending &#039;Remoteon&#039; it will enable the SSH connection to your (home-)server. &#039;Remoteoff&#039; will kill the connection. &lt;br /&gt;
* Sending &#039;Camera&#039; will send a frontcam picture by email.&lt;br /&gt;
* Sending &#039;Call&#039; will call you.&lt;br /&gt;
* Sending &#039;Lock&#039; will lock the device, so nobody can use your phone. &#039;Unlock&#039; will remove the device lock.&lt;br /&gt;
* Sending &#039;Trackon&#039; will continiously send SMS or email (or both) with location of the device &amp;amp; &#039;Trackoff&#039; will disable this.   &lt;br /&gt;
* Sending &#039;Script&#039; will run a predefined by user shell script (&amp;lt;code&amp;gt;/opt/smscon/smscon_script&amp;lt;/code&amp;gt;).  &lt;br /&gt;
* Sending &#039;uptime &amp;gt;&amp;gt; /tmp/shell_log&#039; (an example shell command) will exectute the shell command on your phone (no checks &amp;amp; output are returned!) &#039;&#039;&#039;/* NEW: IN VERSION 0.7-1 */&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
USAGE EXAMPLE: &lt;br /&gt;
* To trigger any of the commands the phone should receive an SMS having in the subject its defined name. E.g. to trigger the &amp;lt;code&amp;gt;&#039;&#039;&#039;COM_LOCATION&#039;&#039;&#039;&amp;lt;/code&amp;gt; command the phone should receive: &amp;lt;code&amp;gt;&#039;&#039;&#039;Location&#039;&#039;&#039;&amp;lt;/code&amp;gt;. &lt;br /&gt;
* The commands can use spaces in them and can be altered in a command only you know what it is and what it means.&lt;br /&gt;
 &lt;br /&gt;
The user editable settings of the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# smscon user settings (v0.7-1)&lt;br /&gt;
# (DO NOT edit the encrypted user settings below, use SMSCON-editor!)&lt;br /&gt;
&lt;br /&gt;
# SMS settings&lt;br /&gt;
SENDERNUMBER      = &#039;+XXXXXXXXXXX&#039;&lt;br /&gt;
&lt;br /&gt;
# SMS commands&lt;br /&gt;
COM_CHECK         = &#039;Check&#039;&lt;br /&gt;
COM_REBOOT        = &#039;Reboot&#039;&lt;br /&gt;
COM_POWEROFF      = &#039;Poweroff&#039;&lt;br /&gt;
COM_POWER         = &#039;Power&#039;&lt;br /&gt;
COM_LOCATION      = &#039;Location&#039;&lt;br /&gt;
COM_REMOTEON      = &#039;Remoteon&#039;&lt;br /&gt;
COM_REMOTEOFF     = &#039;Remoteoff&#039;&lt;br /&gt;
COM_CAMERA        = &#039;Camera&#039;&lt;br /&gt;
COM_CALL          = &#039;Call&#039;&lt;br /&gt;
COM_LOCK          = &#039;Lock&#039;&lt;br /&gt;
COM_UNLOCK        = &#039;Unlock&#039;&lt;br /&gt;
COM_TRACKON       = &#039;Trackon&#039;&lt;br /&gt;
COM_TRACKOFF      = &#039;Trackoff&#039;&lt;br /&gt;
COM_CUSTOM        = &#039;Script&#039;  /* NEW: IN VERSION 0.5-9 */&lt;br /&gt;
COM_SHELL         = &#039;uptime &amp;gt;&amp;gt; /tmp/commandlog&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Email settings&lt;br /&gt;
EMAILADDRESS      = &#039;XXXXX@XXXXXXXXXXX.XX&#039;&lt;br /&gt;
USER              = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
PASSWORD          = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
EMAILFROM         = &#039;XXXXXXXX@XXXXXX.XX&#039;&lt;br /&gt;
MAILSERVER        = &#039;XXXX.XXXXXX.XX&#039;&lt;br /&gt;
MAILPORT          = XXX&lt;br /&gt;
&lt;br /&gt;
# SSH settings&lt;br /&gt;
REMOTEHOST        = &#039;XXXXXXXXXXX.XX&#039;&lt;br /&gt;
REMOTEPORT        = 22&lt;br /&gt;
REMOTEUSER        = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
REMOTEPASSWORD    = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
# Disable SMS sending&lt;br /&gt;
# (WARNING: this will disable ALL SMS sending in SMSCON: &#039;yes&#039; / &#039;no&#039;&lt;br /&gt;
DISABLESMS        = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Send acknowledge SMS&lt;br /&gt;
# (send acknowledge SMS after receiving valid SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
COMMANDREPLY      = &#039;yes&#039;&lt;br /&gt;
&lt;br /&gt;
# Detect keyboard use&lt;br /&gt;
# (send acknowledge SMS if keyboard is slided: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
KEYBOARDDETECT    = &#039;no&#039;&lt;br /&gt;
&lt;br /&gt;
# Device lock&lt;br /&gt;
# (lock device after receiving valid SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
AUTODEVICELOCK    = &#039;yes&#039;&lt;br /&gt;
&lt;br /&gt;
# Auto battery status SMS report&lt;br /&gt;
# (sends SMS when SMSCON is set active with a SMS command &amp;amp; battery is depleting: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
AUTOBATREPORT     = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Auto device unlock&lt;br /&gt;
# (unlocks device when new SIM is inserted; &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
SIMUNLOCK         = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Silence the phone &lt;br /&gt;
# (disable all phone sounds when SMSCON is set active with a SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
SILENCEDEVICE     = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# GPS setings&lt;br /&gt;
# (if no GPS coordinates acquired after 600 seconds then stop)&lt;br /&gt;
GPSTIMEOUT        = 600&lt;br /&gt;
# (number of GPS coordinates to acquire and use the most accurate in &amp;quot;Location&amp;quot;-mode)&lt;br /&gt;
GPSPOLLING        = 3&lt;br /&gt;
# (time between sending coordinate sms in &amp;quot;Trackon&amp;quot;-mode: 10 / 20 / 30 / 60 / 120)&lt;br /&gt;
GPSINTERVAL       = 60&lt;br /&gt;
# (method to send GPS coordinates: &#039;email&#039; / &#039;sms&#039; / &#039;both&#039;)&lt;br /&gt;
GPSSEND           = &#039;both&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
The available command-line options for SMSCON are:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon&lt;br /&gt;
== smscon v0.7-1 - Nokia N900 remote control utility ==&lt;br /&gt;
 Options:&lt;br /&gt;
   -start            : start smscon_daemon&lt;br /&gt;
   -stop             : stop smscon_daemon&lt;br /&gt;
   -status           : get smscon_daemon status&lt;br /&gt;
   -log              : show log file&lt;br /&gt;
   -del log          : erase log file&lt;br /&gt;
   -sms              : show SMS commands&lt;br /&gt;
   -set name &amp;quot;value&amp;quot; : set user setting (name = &amp;quot;value&amp;quot;)&lt;br /&gt;
   -config           : show config file&lt;br /&gt;
   -script           : show script file&lt;br /&gt;
   -boot             : start smscon_daemon at device boot&lt;br /&gt;
   -unboot           : remove start of smscon_daemon at device boot&lt;br /&gt;
   -add imsi         : add current IMSI code to code file&lt;br /&gt;
   -remove imsi      : remove current IMSI code from code file&lt;br /&gt;
   -help             : this help menu&lt;br /&gt;
 Special options (normally not needed!):&lt;br /&gt;
   -reset            : factory default (delete boot, config, code &amp;amp; script file)&lt;br /&gt;
   -imsi             : show IMSI code file&lt;br /&gt;
   -del imsi         : delete code file&lt;br /&gt;
   -init             : create default config &amp;amp; script file&lt;br /&gt;
   -del config       : delete config file&lt;br /&gt;
   -del script       : delete script file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SMSCON is intended for people who have Python programming / Linux experience so you can adjust the script to their own needs.&lt;br /&gt;
&lt;br /&gt;
==After installation==&lt;br /&gt;
&lt;br /&gt;
After installation &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; will generate a new configuration file (&amp;lt;code&amp;gt;/opt/smscon/smscon_config&amp;lt;/code&amp;gt;) which you *must* edit to your own needs (i.e. change all xxxxxxx&#039;s). To edit this use [[SMSCON Editor]], which will assist in the configuration setup, or use the command-line &amp;lt;code&amp;gt;smscon -set&amp;lt;/code&amp;gt; option (available from 0.5-6 and higher).&lt;br /&gt;
Also a shell script file will be generated (&amp;lt;code&amp;gt;/opt/smscon/smscon_script&amp;lt;/code&amp;gt;) were the user can predefine shell commands to run other programs, delete files etc (available from 0.5-9 and higher).&lt;br /&gt;
&lt;br /&gt;
SMSCON will also be installed to autoload at boot, this can be disabled with the command-line command &amp;lt;code&amp;gt;smscon -unboot&amp;lt;/code&amp;gt; and re-enabled by &amp;lt;code&amp;gt;smscon -boot&amp;lt;/code&amp;gt; or with [[SMSCON Editor]].&lt;br /&gt;
&lt;br /&gt;
The first time you start SMSCON (&amp;lt;code&amp;gt;smscon -start&amp;lt;/code&amp;gt;) it loads the configured user settings file and is now active. &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; then stores your valid IMSI code in a file (&amp;lt;code&amp;gt;/opt/smscon/smscon_code&amp;lt;/code&amp;gt;) if the file doesn&#039;t exist.&lt;br /&gt;
&lt;br /&gt;
When later a new SIM card is inserted the new IMSI code is verified with the code in the stored &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file. This is how the &amp;quot;SIM card change&amp;quot; will be detected.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -start&lt;br /&gt;
smscon_daemon started.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All user action and behavior of &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; will be logged in the log file (at &amp;lt;code&amp;gt;/tmp/smscon.log&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -log&lt;br /&gt;
SMSCON INFO: smscon_daemon is running (XX-XX-XXXX XX:XX:XX)&lt;br /&gt;
DAEMON INFO: successfully loaded &amp;quot;smscon_config&amp;quot; file&lt;br /&gt;
DAEMON INFO: COM_CALL          = [Call]&lt;br /&gt;
DAEMON INFO: COM_CAMERA        = [Cam]&lt;br /&gt;
DAEMON INFO: COM_CHECK         = [Sms]&lt;br /&gt;
DAEMON INFO: COM_CUSTOM        = [Script]  /* NEW in 0.5-9 */&lt;br /&gt;
DAEMON INFO: COM_LOCATION      = [Gps]&lt;br /&gt;
DAEMON INFO: COM_LOCK          = [Lock]&lt;br /&gt;
DAEMON INFO: COM_POWER         = [Bat]&lt;br /&gt;
DAEMON INFO: COM_POWEROFF      = [Poweroff]&lt;br /&gt;
DAEMON INFO: COM_REBOOT        = [Reboot]&lt;br /&gt;
DAEMON INFO: COM_REMOTEOFF     = [Ssh off]&lt;br /&gt;
DAEMON INFO: COM_REMOTEON      = [Ssh on]&lt;br /&gt;
DAEMON INFO: COM_SHELL         = [uptime &amp;gt;&amp;gt; /tmp/shell_log]  /* NEW in 0.7-1 */&lt;br /&gt;
DAEMON INFO: COM_TRACKOFF      = [Gps off]&lt;br /&gt;
DAEMON INFO: COM_TRACKON       = [Gps on]&lt;br /&gt;
DAEMON INFO: COM_UNLOCK        = [Unlock]&lt;br /&gt;
DAEMON INFO: reading 1 valid IMSI code from &amp;quot;smscon_code&amp;quot; file  /* NEW in 0.7-1 */&lt;br /&gt;
DAEMON INFO: authorized IMSI code found&lt;br /&gt;
DAEMON INFO: smscon auto-loads at boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When having trouble with SMSCON always check the &amp;lt;code&amp;gt;smscon_log&amp;lt;/code&amp;gt; file!&lt;br /&gt;
&lt;br /&gt;
==Remote SSH connection==&lt;br /&gt;
&lt;br /&gt;
When the (reverse-)SSH connection is made (default command &#039;Remoteon&#039; / &#039;Remoteoff&#039;) you can from the server side (your own server) connect to your Nokia device with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -p 8080 localhost -l root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Current version v0.7-2=&lt;br /&gt;
&lt;br /&gt;
* FIX: bug in RestoreNetwork(); restoring previous network could fail. &lt;br /&gt;
* FIX: bug in CheckArguments(); execution of shell script could fail.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.7-1:&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; multiple IMSI codes are allowed in smscon_code file; use new option &amp;quot;smscon -add imsi&amp;quot; to store current IMSI code in smscon_code file.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (DISABLESMS); WARNING: disables ALL SMS sending in smscon program.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new smscon command (COM_SHELL); run directly shell commands. (no check &amp;amp; feedback from command!).&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (SIMUNLOCK); auto unlock phone after new SIM is inserted (to fool a possible thief of your phone).&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (SILENCEDEVICE); disable all phone sounds (email alert, IM alert, ringing alert &amp;amp; SMS alert) in current active profile, if smscon is activated. All volume levels are set to zero.&lt;br /&gt;
* &#039;&#039;&#039;NEW/CHANGE:&#039;&#039;&#039; new user option (AUTOBATREPORT); user can enable/disable sending automatically a SMS message when smscon is activated &amp;amp; device battery is depleting.&lt;br /&gt;
* CHANGE: when initializing a new smscon_config file all user settings wil be set default to &#039;no&#039;.&lt;br /&gt;
* REFACTORING: some parts in both scripts.&lt;br /&gt;
* FIX: better number handeling in SMSrecieve() routine (thanks to maemo.org user!).&lt;br /&gt;
* FIX: small bug in GSMmodem() in smscon_daemon script.&lt;br /&gt;
* FIX: small text bug in smscon script.&lt;br /&gt;
* &#039;&#039;&#039;EXPERIMENTAL/CHANGE:&#039;&#039;&#039; when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.&lt;br /&gt;
* &#039;&#039;&#039;EXPERIMENTAL/FIX:&#039;&#039;&#039; change in getting the right GPRS connections; MMS &amp;amp; WAP will be discarded in available GPRS network list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-9:&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039; NEW:&#039;&#039;&#039; added new smscon command: COM_CUSTOM to run a user configurable shell script (/opt/smscon/smscon_script)&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; if user setting REMOTEUSER, REMOTEPASSWORD is empty, &amp;quot;Remoteon&amp;quot; &amp;amp; &amp;quot;Remoteoff&amp;quot; function is disabled in smscon. &lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; smscon will send automatically a SMS message when smscon is activated &amp;amp; device battery is depleting.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new options in smscon menu.&lt;br /&gt;
* &#039;&#039;&#039;NEW/EXPERIMENTAL&#039;&#039;&#039;: when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.&lt;br /&gt;
* CHANGE: improved the way smscon reads user settings from smscon_config file.&lt;br /&gt;
* FIX/EXPERIMENTAL: change in getting the right GPRS connections; MMS &amp;amp; WAP will be discarded in available GPRS network list. (thanks to Zimon)&lt;br /&gt;
* FIX: added time notation in GPS email &amp;amp; SMS messages.&lt;br /&gt;
* FIX: picture of frontcam &amp;amp; GoogleMap image are named wrong &amp;amp; placed therefore in wrong directory.&lt;br /&gt;
* FIX: smscon fails to send SMS message when message is too long (&amp;gt; 160 chars.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-7:&#039;&#039;&#039;&lt;br /&gt;
* FIX: activation of the current active/available GPRS connection could fail in specific cases (bug in acquiring the name).&lt;br /&gt;
* FIX: better logging/behaviour when locking/unlocking of device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-6:&#039;&#039;&#039;&lt;br /&gt;
* NEW: added new command-line option for smscon to set user settings (encrypted &amp;amp; non-encrypted) in smscon_config file.&lt;br /&gt;
* NEW: added package icon&lt;br /&gt;
* NEW / FIX: added time &amp;amp; date of frontcam picture taken in email.&lt;br /&gt;
* REFACTORING: parts of script code.&lt;br /&gt;
* CHANGE: improved user setting reading from smscon_config file.&lt;br /&gt;
* CHANGE: cosmetic changes in logging.&lt;br /&gt;
* CHANGE / FIX: (UNTESTED) if USER &amp;amp; PASSWORD setting is empty, email sending to smtp server is done without user &amp;amp; password authentication.&lt;br /&gt;
* FIX: smscon can send to wrong phone number when activated &amp;amp; receives hereafter a non-SMSCON command SMS message from another phone number.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-5:&#039;&#039;&#039;&lt;br /&gt;
* NEW: in reply SMS from COM_LOCATION command is http link added to GoogleMaps.&lt;br /&gt;
* NEW/CHANGE: optification of SMSCON; new install path of package is now &#039;&#039;&#039;/opt/smscon&#039;&#039;&#039;.&lt;br /&gt;
* REFACTORING: improved the way SMS is send (more stable &amp;amp; controlled).&lt;br /&gt;
* REFACTORING/FIX: execption in email sending code failed.&lt;br /&gt;
* CHANGE: in SMSCON test modes usage of WLAN connection only if already connected, otherwise usage of GPRS connection.&lt;br /&gt;
* CHANGE: in SMSCON test modes if usage of GPRS connection, previous connection is saved &amp;amp; re-enabled after GPRS connection usage.&lt;br /&gt;
* CHANGE: if usage of GPRS connection, force Internet connections to GPRS connection (needed for keeping the connection alive/stable).&lt;br /&gt;
* CHANGE: new SMSCON icon (meets requirements of maemo package)&lt;br /&gt;
* CHANGE: new package description (meets requirements of maemo Extra-testing package)&lt;br /&gt;
* FIX: internal fixes (better consistency in logging).&lt;br /&gt;
* FIX: email attachment (camera picture or Google map) is displayed completely wrong (alt text was wrong/mixed etc.)&lt;br /&gt;
* FIX: remove unused variable in ConfigVars list.&lt;br /&gt;
* FIX: syntax bug fixed which could crash SMSCON.&lt;br /&gt;
&lt;br /&gt;
=Known Issues=&lt;br /&gt;
===v0.7-1===&lt;br /&gt;
* Bug in RestoreNetwork(); will be fixed in v0.7-2. (confirmed; thanks to Saturn)&lt;br /&gt;
* Bug in CheckArguments(); will be fixed in v0.7-2. (confirmed; thanks to Saturn)&lt;br /&gt;
* Please test &amp;amp; report on SMSCON thread on forum [http://talk.maemo.org/showthread.php?t=60729].&lt;br /&gt;
&lt;br /&gt;
===v0.5-9===&lt;br /&gt;
* Use 0.7-1 for testing (new options &amp;amp; bug fixes)!&lt;br /&gt;
&lt;br /&gt;
===v0.5-7===&lt;br /&gt;
* Several issues, see above.&lt;br /&gt;
&lt;br /&gt;
===v0.5-6===&lt;br /&gt;
* Smscon can fail, in specific circumstances, in aquiring the name of GPRS data connection. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.5-5===&lt;br /&gt;
* Smscon can send to wrong phone number when activated &amp;amp; receives hereafter a non-SMSCON command SMS message from another phone number. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-6===&lt;br /&gt;
* Email attachment (camera picture or Google map) is displayed wrong. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-5===&lt;br /&gt;
* COM_REBOOT &amp;amp; COM_POWEROFF command fail when used. (confirmed by creator)&lt;br /&gt;
* Alt text of email image in email is wrong. &lt;br /&gt;
&lt;br /&gt;
===v0.4.4-4===&lt;br /&gt;
* COM_REBOOT &amp;amp; COM_POWEROFF fails if changed. (confirmed by creator)&lt;br /&gt;
* COM_CALL fails. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-3===&lt;br /&gt;
* If default COM_REBOOT &amp;amp; COM_POWEROFF commands are changed command fails to execute (confirmed by Saturn) Fix in 0.4.4-4.&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-2===&lt;br /&gt;
* Dependancy list of SMSCON installer is incorrect (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-1===&lt;br /&gt;
&lt;br /&gt;
REMOVE PREVIOUS VERSION FROM NOKIA BEFORE USING 0.4.4-1 or higher &lt;br /&gt;
(reason: major change in &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file)!&lt;br /&gt;
&lt;br /&gt;
* Smscon won&#039;t autoload at boot (confirmed by creator). Fix in 0.4.4-2.&lt;br /&gt;
&lt;br /&gt;
===v0.4.3===&lt;br /&gt;
* Command &amp;quot;Trackon&amp;quot; is reported not to work (confirmed by creator)&lt;br /&gt;
* &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; does not start at boot when requested (confirmed by creator)&lt;br /&gt;
* SMS commands cannot accept spaces (confirmed by creator)&lt;br /&gt;
* Smscon doesn&#039;t load at boot. (confirmed by creator)&lt;br /&gt;
* &amp;quot;Trackon&amp;quot; (&amp;amp; &amp;quot;Trackoff&amp;quot;) command doesn&#039;t work. (confirmed by creator)&lt;br /&gt;
* Bug in selecting the right GPS mode if GPRS data network is available (usage of AGPS (faster) or GPS (slower)). (confirmed by creator)&lt;br /&gt;
* When using command &amp;quot;Location&amp;quot; GPRS data network is not automatically enabled.&lt;br /&gt;
* GPSTIMEOUT routine doesn&#039;t work as expected/intended. (confirmed by creator)&lt;br /&gt;
* When &amp;quot;Location&amp;quot; &amp;amp; &amp;quot;Trackon&amp;quot; commands are used, internal smscon events are discarted/hold until GPS is finished. (confirmed by creator)&lt;br /&gt;
* Discovered a initial GPS control design flaw in smscon. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.2===&lt;br /&gt;
* The default number is replaced by every mail received and not only those requesting a command. (confirmed &amp;amp; fixed in version 0.4.3)&lt;br /&gt;
&lt;br /&gt;
===v0.4.1===&lt;br /&gt;
* Command &amp;quot;Trackon&amp;quot; is reported not to work (confirmed)&lt;br /&gt;
* Reply command sends duplicates (unconfirmed)&lt;br /&gt;
&lt;br /&gt;
===v0.4.0===&lt;br /&gt;
* Will not work due to a typo in variable name (confirmed and fixed in version 0.4.1)&lt;br /&gt;
&lt;br /&gt;
=Future release=&lt;br /&gt;
&lt;br /&gt;
* CHANGE: for encryption of user settings in &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file,  now secret code key is based on device serial number (no more predefined key in script); this enhances security.&lt;br /&gt;
&lt;br /&gt;
=Future development ideas=&lt;br /&gt;
&lt;br /&gt;
Feel free to add requests below.&lt;br /&gt;
&lt;br /&gt;
* saving all &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; user variables in gconf database. No need for &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file anymore. (WONT IMPLEMENT)&lt;br /&gt;
* add setting for user&#039;s country mobile number prefix.&lt;br /&gt;
* add setting for alternative number (where alternative is a number sent a command and does not match the default) and option to choose where reply should be send, i.e. default number, alternative or both. Default number should not be replaced.&lt;br /&gt;
* add setting to choose the default internet connection (WLAN, GPRS, or ANY). At the moment hardcoded to GPRS. (WONT FIX)&lt;br /&gt;
* when the &amp;quot;Camera&amp;quot; command is sent, the process should wait for keyboard action to capture a picture and send the mail. In that way, there will be more chances to get better face portrait of the &amp;quot;new&amp;quot; user.&lt;br /&gt;
* Add the ability to run custom commands (very useful, but especially needed to delete sensitive data from the phone). (IMPLEMENTED IN 0.5-9 / 0.7-1)&lt;br /&gt;
* Add the ability to turn silent mode on. (IMPLEMENTED IN 0.7-1)&lt;br /&gt;
*Application must be included in the ROM itself so that it cannot be removed.&lt;br /&gt;
* Add a password so that no one else but the legitimate user can send an SMS to the phone and see where the phone is.&lt;br /&gt;
&lt;br /&gt;
=Testers needed=&lt;br /&gt;
 &lt;br /&gt;
Please test this software, I like to hear if it works for you or not. Please post on forum. I only can test the software with two Vodafone SIM cards from The Netherlands, I want to know if it also works with other cards and networks in other countries...&lt;br /&gt;
&lt;br /&gt;
=License=&lt;br /&gt;
This program is free software; you can redistribute it and/or modify&lt;br /&gt;
it under the terms of the GNU General Public License as published&lt;br /&gt;
by the Free Software Foundation; version 2 only.&lt;br /&gt;
&lt;br /&gt;
=Disclaimer=&lt;br /&gt;
This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:N900]]&lt;/div&gt;</summary>
		<author><name>83.253.0.12</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=SMSCON&amp;diff=36849</id>
		<title>SMSCON</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=SMSCON&amp;diff=36849"/>
		<updated>2011-01-25T18:51:51Z</updated>

		<summary type="html">&lt;p&gt;83.253.0.12: /* Requests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SMSCON provides complete control of your [[Nokia N900|N900]] by sending SMS commands to it. This is particularly handy in case you cannot find your phone, for example if it has been lost or even stolen.&lt;br /&gt;
 &lt;br /&gt;
SMSCON is a two part Python script running in command-line; &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; is the command-line control part and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; is the daemon (running in the background) part. The configuration file for all the user settings is in the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
SMSCON will also auto-load silently at boot, waiting for a special SMS command message in case you phone is lost (or even stolen). &lt;br /&gt;
&lt;br /&gt;
SMSCON can&#039;t guarantee that you will find your phone again, but it will provide the maximum chance to recover it. If this application ever helps you to recover your phone please tell the story on Maemo.org! The best way is of course to never lose your phone or let it get stolen...&lt;br /&gt;
&lt;br /&gt;
[[SMSCON Editor]] is a GUI helper application for SMSCON to set/edit user settings &amp;amp; control SMSCON.&lt;br /&gt;
 &lt;br /&gt;
=Functionality=&lt;br /&gt;
&lt;br /&gt;
SMSCON can:&lt;br /&gt;
&lt;br /&gt;
* autoload at boot (this is default set at install of smscon package); when device reboots it loads &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; silent in the background.&lt;br /&gt;
* creates a log file (on the device).&lt;br /&gt;
* detect SIM card change and sends new SIM card phonenumber, IMSI code &amp;amp; telecom operator name to other known mobile number (returns SMS message); if somebody has stolen your phone and put his/hers own SIM card in it.&lt;br /&gt;
* send current GPS location coordinates (returns SMS message or EMAIL with GoogleMaps picture with your phone&#039;s location on it).&lt;br /&gt;
* reboot the phone; only works if your SIM card hasn&#039;t a lock code.&lt;br /&gt;
* shutdown the phone.&lt;br /&gt;
* open a (reverse-)SSH connection to your own (home-)server (GPRS connection); control the phone at command-line level from your own home.&lt;br /&gt;
* email a frontcam picture to your email address (GPRS connection); to maybe see where your phone is or who is using it.&lt;br /&gt;
* send the current remaining battery charge (returns SMS message).&lt;br /&gt;
* make the phone call you; you can listen where your phone is (returns phonecall)&lt;br /&gt;
* lock the phone; nobody can use your phone anymore.&lt;br /&gt;
* detect keyboardslider use; when somebody has found your phone and uses the keyboard. (only after one of the valid SMS commands is send to you phone) (returns SMS message)&lt;br /&gt;
* send all valid SMS commands to you if you forgotten it (returns one or more SMS message)&lt;br /&gt;
* run a predefined shell script to start other programs, delete files etc.&lt;br /&gt;
* run directly shell command through SMS message sending. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* turn the phone silent when SMSCON is set active with a SMS command. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* send automatically SMS messages about the current battery status when SMSCON is set active with a SMS command. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* use multiple SIM cards (the IMSI numbers are stored in &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file) &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
SMSCON &amp;amp; [[SMSCON Editor]] can be found in the Extra-devel/Extra-testing repository (only if enabled on your phone).&lt;br /&gt;
&lt;br /&gt;
Always install the latest version on your phone, previous version can have bugs and have less functionallity!&lt;br /&gt;
&lt;br /&gt;
SMSCON is writen in Python and needs the following packages, besides &#039;&#039;&#039;python2.5&#039;&#039;&#039;, being installed on your device to install and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python-crypto /* NEW: NEEDED IN VERSION 0.5-5 and higher */&lt;br /&gt;
python-gobject&lt;br /&gt;
python-location&lt;br /&gt;
python-dbus&lt;br /&gt;
pexpect&lt;br /&gt;
gstreamer-tools &lt;br /&gt;
openssh-client&lt;br /&gt;
openssh-server&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The files &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; are placed by the installer in the &amp;lt;code&amp;gt;&#039;&#039;&#039;/opt/smscon&#039;&#039;&#039;&amp;lt;/code&amp;gt; directory. /* changed in version 0.5-5 and higher */ &lt;br /&gt;
&lt;br /&gt;
The installer will also generate a &amp;lt;code&amp;gt;smscon_boot&amp;lt;/code&amp;gt; file in &amp;lt;code&amp;gt;/etc/event.d&amp;lt;/code&amp;gt; for autoloading at boot of the device.&lt;br /&gt;
&lt;br /&gt;
Finally SMSCON generates a default settings template file (&amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt;) with all the user settings of SMSCON. It also creates a &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file (for storing the current IMSI number of your inserted SIM card) and a &amp;lt;code&amp;gt;smscon_script&amp;lt;/code&amp;gt; file (for running a custom user shell script).&lt;br /&gt;
&lt;br /&gt;
It&#039;s essential that the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file *must* be edited by [[SMSCON Editor]] or with commandline commands before use of SMSCON!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally: if you want to use the SSH connection feature of SMSCON (&#039;Remoteon&#039; / &#039;Remoteoff&#039; command), you also need a fixed IP address on your preconfigured remote server for the SSH (default port 22) connection.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
 &lt;br /&gt;
SMSCON is triggered by a SMS message with a predefined known command and then will execute the task in the background. If so it will send a reply SMS or email with the information.&lt;br /&gt;
&lt;br /&gt;
==Commands== &lt;br /&gt;
The (default) predefined commands are: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -sms&lt;br /&gt;
COM_CHECK         = &#039;Check&#039;&lt;br /&gt;
COM_REBOOT        = &#039;Reboot&#039;&lt;br /&gt;
COM_POWEROFF      = &#039;Poweroff&#039;&lt;br /&gt;
COM_POWER         = &#039;Power&#039;&lt;br /&gt;
COM_LOCATION      = &#039;Location&#039;&lt;br /&gt;
COM_REMOTEON      = &#039;Remoteon&#039;&lt;br /&gt;
COM_REMOTEOFF     = &#039;Remoteoff&#039;&lt;br /&gt;
COM_CAMERA        = &#039;Camera&#039;&lt;br /&gt;
COM_CALL          = &#039;Call&#039;&lt;br /&gt;
COM_LOCK          = &#039;Lock&#039;&lt;br /&gt;
COM_UNLOCK        = &#039;Unlock&#039;&lt;br /&gt;
COM_TRACKON       = &#039;Trackon&#039;&lt;br /&gt;
COM_TRACKOFF      = &#039;Trackoff&#039;&lt;br /&gt;
COM_CUSTOM        = &#039;Script&#039;  /* NEW: IN VERSION 0.5-9 */&lt;br /&gt;
COM_SHELL         = &#039;uptime &amp;gt;&amp;gt; /tmp/shell_log&#039;  &#039;&#039;&#039;/* NEW: IN VERSION 0.7-1 */&#039;&#039;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: These commands can be changed using the [[SMSCON Editor]] and from release v0.5-6 (and higher) also at the command-line with the &amp;lt;code&amp;gt;smscon -set &amp;lt;/code&amp;gt; command (see SMSCON command-line options).&lt;br /&gt;
&lt;br /&gt;
* When sending &#039;Check&#039; to you phone it sends one or more SMS messages with all the available SMSCON commands. &lt;br /&gt;
* Sending &#039;Reboot&#039; it will reboot your phone. &lt;br /&gt;
* Sending &#039;Poweroff&#039; is will shutdown your phone.&lt;br /&gt;
* Sending &#039;Location&#039; is will send it&#039;s current position by SMS or EMAIL (or both). &lt;br /&gt;
* Sending &#039;Remoteon&#039; it will enable the SSH connection to your (home-)server. &#039;Remoteoff&#039; will kill the connection. &lt;br /&gt;
* Sending &#039;Camera&#039; will send a frontcam picture by email.&lt;br /&gt;
* Sending &#039;Call&#039; will call you.&lt;br /&gt;
* Sending &#039;Lock&#039; will lock the device, so nobody can use your phone. &#039;Unlock&#039; will remove the device lock.&lt;br /&gt;
* Sending &#039;Trackon&#039; will continiously send SMS or email (or both) with location of the device &amp;amp; &#039;Trackoff&#039; will disable this.   &lt;br /&gt;
* Sending &#039;Script&#039; will run a predefined by user shell script (&amp;lt;code&amp;gt;/opt/smscon/smscon_script&amp;lt;/code&amp;gt;).  &lt;br /&gt;
* Sending &#039;uptime &amp;gt;&amp;gt; /tmp/shell_log&#039; (an example shell command) will exectute the shell command on your phone (no checks &amp;amp; output are returned!) &#039;&#039;&#039;/* NEW: IN VERSION 0.7-1 */&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
USAGE EXAMPLE: &lt;br /&gt;
* To trigger any of the commands the phone should receive an SMS having in the subject its defined name. E.g. to trigger the &amp;lt;code&amp;gt;&#039;&#039;&#039;COM_LOCATION&#039;&#039;&#039;&amp;lt;/code&amp;gt; command the phone should receive: &amp;lt;code&amp;gt;&#039;&#039;&#039;Location&#039;&#039;&#039;&amp;lt;/code&amp;gt;. &lt;br /&gt;
* The commands can use spaces in them and can be altered in a command only you know what it is and what it means.&lt;br /&gt;
 &lt;br /&gt;
The user editable settings of the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# smscon user settings (v0.7-1)&lt;br /&gt;
# (DO NOT edit the encrypted user settings below, use SMSCON-editor!)&lt;br /&gt;
&lt;br /&gt;
# SMS settings&lt;br /&gt;
SENDERNUMBER      = &#039;+XXXXXXXXXXX&#039;&lt;br /&gt;
&lt;br /&gt;
# SMS commands&lt;br /&gt;
COM_CHECK         = &#039;Check&#039;&lt;br /&gt;
COM_REBOOT        = &#039;Reboot&#039;&lt;br /&gt;
COM_POWEROFF      = &#039;Poweroff&#039;&lt;br /&gt;
COM_POWER         = &#039;Power&#039;&lt;br /&gt;
COM_LOCATION      = &#039;Location&#039;&lt;br /&gt;
COM_REMOTEON      = &#039;Remoteon&#039;&lt;br /&gt;
COM_REMOTEOFF     = &#039;Remoteoff&#039;&lt;br /&gt;
COM_CAMERA        = &#039;Camera&#039;&lt;br /&gt;
COM_CALL          = &#039;Call&#039;&lt;br /&gt;
COM_LOCK          = &#039;Lock&#039;&lt;br /&gt;
COM_UNLOCK        = &#039;Unlock&#039;&lt;br /&gt;
COM_TRACKON       = &#039;Trackon&#039;&lt;br /&gt;
COM_TRACKOFF      = &#039;Trackoff&#039;&lt;br /&gt;
COM_CUSTOM        = &#039;Script&#039;  /* NEW: IN VERSION 0.5-9 */&lt;br /&gt;
COM_SHELL         = &#039;uptime &amp;gt;&amp;gt; /tmp/commandlog&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Email settings&lt;br /&gt;
EMAILADDRESS      = &#039;XXXXX@XXXXXXXXXXX.XX&#039;&lt;br /&gt;
USER              = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
PASSWORD          = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
EMAILFROM         = &#039;XXXXXXXX@XXXXXX.XX&#039;&lt;br /&gt;
MAILSERVER        = &#039;XXXX.XXXXXX.XX&#039;&lt;br /&gt;
MAILPORT          = XXX&lt;br /&gt;
&lt;br /&gt;
# SSH settings&lt;br /&gt;
REMOTEHOST        = &#039;XXXXXXXXXXX.XX&#039;&lt;br /&gt;
REMOTEPORT        = 22&lt;br /&gt;
REMOTEUSER        = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
REMOTEPASSWORD    = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
# Disable SMS sending&lt;br /&gt;
# (WARNING: this will disable ALL SMS sending in SMSCON: &#039;yes&#039; / &#039;no&#039;&lt;br /&gt;
DISABLESMS        = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Send acknowledge SMS&lt;br /&gt;
# (send acknowledge SMS after receiving valid SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
COMMANDREPLY      = &#039;yes&#039;&lt;br /&gt;
&lt;br /&gt;
# Detect keyboard use&lt;br /&gt;
# (send acknowledge SMS if keyboard is slided: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
KEYBOARDDETECT    = &#039;no&#039;&lt;br /&gt;
&lt;br /&gt;
# Device lock&lt;br /&gt;
# (lock device after receiving valid SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
AUTODEVICELOCK    = &#039;yes&#039;&lt;br /&gt;
&lt;br /&gt;
# Auto battery status SMS report&lt;br /&gt;
# (sends SMS when SMSCON is set active with a SMS command &amp;amp; battery is depleting: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
AUTOBATREPORT     = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Auto device unlock&lt;br /&gt;
# (unlocks device when new SIM is inserted; &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
SIMUNLOCK         = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Silence the phone &lt;br /&gt;
# (disable all phone sounds when SMSCON is set active with a SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
SILENCEDEVICE     = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# GPS setings&lt;br /&gt;
# (if no GPS coordinates acquired after 600 seconds then stop)&lt;br /&gt;
GPSTIMEOUT        = 600&lt;br /&gt;
# (number of GPS coordinates to acquire and use the most accurate in &amp;quot;Location&amp;quot;-mode)&lt;br /&gt;
GPSPOLLING        = 3&lt;br /&gt;
# (time between sending coordinate sms in &amp;quot;Trackon&amp;quot;-mode: 10 / 20 / 30 / 60 / 120)&lt;br /&gt;
GPSINTERVAL       = 60&lt;br /&gt;
# (method to send GPS coordinates: &#039;email&#039; / &#039;sms&#039; / &#039;both&#039;)&lt;br /&gt;
GPSSEND           = &#039;both&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
The available command-line options for SMSCON are:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon&lt;br /&gt;
== smscon v0.7-1 - Nokia N900 remote control utility ==&lt;br /&gt;
 Options:&lt;br /&gt;
   -start            : start smscon_daemon&lt;br /&gt;
   -stop             : stop smscon_daemon&lt;br /&gt;
   -status           : get smscon_daemon status&lt;br /&gt;
   -log              : show log file&lt;br /&gt;
   -del log          : erase log file&lt;br /&gt;
   -sms              : show SMS commands&lt;br /&gt;
   -set name &amp;quot;value&amp;quot; : set user setting (name = &amp;quot;value&amp;quot;)&lt;br /&gt;
   -config           : show config file&lt;br /&gt;
   -script           : show script file&lt;br /&gt;
   -boot             : start smscon_daemon at device boot&lt;br /&gt;
   -unboot           : remove start of smscon_daemon at device boot&lt;br /&gt;
   -add imsi         : add current IMSI code to code file&lt;br /&gt;
   -remove imsi      : remove current IMSI code from code file&lt;br /&gt;
   -help             : this help menu&lt;br /&gt;
 Special options (normally not needed!):&lt;br /&gt;
   -reset            : factory default (delete boot, config, code &amp;amp; script file)&lt;br /&gt;
   -imsi             : show IMSI code file&lt;br /&gt;
   -del imsi         : delete code file&lt;br /&gt;
   -init             : create default config &amp;amp; script file&lt;br /&gt;
   -del config       : delete config file&lt;br /&gt;
   -del script       : delete script file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SMSCON is intended for people who have Python programming / Linux experience so you can adjust the script to their own needs.&lt;br /&gt;
&lt;br /&gt;
==After installation==&lt;br /&gt;
&lt;br /&gt;
After installation &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; will generate a new configuration file (&amp;lt;code&amp;gt;/opt/smscon/smscon_config&amp;lt;/code&amp;gt;) which you *must* edit to your own needs (i.e. change all xxxxxxx&#039;s). To edit this use [[SMSCON Editor]], which will assist in the configuration setup, or use the command-line &amp;lt;code&amp;gt;smscon -set&amp;lt;/code&amp;gt; option (available from 0.5-6 and higher).&lt;br /&gt;
Also a shell script file will be generated (&amp;lt;code&amp;gt;/opt/smscon/smscon_script&amp;lt;/code&amp;gt;) were the user can predefine shell commands to run other programs, delete files etc (available from 0.5-9 and higher).&lt;br /&gt;
&lt;br /&gt;
SMSCON will also be installed to autoload at boot, this can be disabled with the command-line command &amp;lt;code&amp;gt;smscon -unboot&amp;lt;/code&amp;gt; and re-enabled by &amp;lt;code&amp;gt;smscon -boot&amp;lt;/code&amp;gt; or with [[SMSCON Editor]].&lt;br /&gt;
&lt;br /&gt;
The first time you start SMSCON (&amp;lt;code&amp;gt;smscon -start&amp;lt;/code&amp;gt;) it loads the configured user settings file and is now active. &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; then stores your valid IMSI code in a file (&amp;lt;code&amp;gt;/opt/smscon/smscon_code&amp;lt;/code&amp;gt;) if the file doesn&#039;t exist.&lt;br /&gt;
&lt;br /&gt;
When later a new SIM card is inserted the new IMSI code is verified with the code in the stored &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file. This is how the &amp;quot;SIM card change&amp;quot; will be detected.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -start&lt;br /&gt;
smscon_daemon started.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All user action and behavior of &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; will be logged in the log file (at &amp;lt;code&amp;gt;/tmp/smscon.log&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -log&lt;br /&gt;
SMSCON INFO: smscon_daemon is running (XX-XX-XXXX XX:XX:XX)&lt;br /&gt;
DAEMON INFO: successfully loaded &amp;quot;smscon_config&amp;quot; file&lt;br /&gt;
DAEMON INFO: COM_CALL          = [Call]&lt;br /&gt;
DAEMON INFO: COM_CAMERA        = [Cam]&lt;br /&gt;
DAEMON INFO: COM_CHECK         = [Sms]&lt;br /&gt;
DAEMON INFO: COM_CUSTOM        = [Script]  /* NEW in 0.5-9 */&lt;br /&gt;
DAEMON INFO: COM_LOCATION      = [Gps]&lt;br /&gt;
DAEMON INFO: COM_LOCK          = [Lock]&lt;br /&gt;
DAEMON INFO: COM_POWER         = [Bat]&lt;br /&gt;
DAEMON INFO: COM_POWEROFF      = [Poweroff]&lt;br /&gt;
DAEMON INFO: COM_REBOOT        = [Reboot]&lt;br /&gt;
DAEMON INFO: COM_REMOTEOFF     = [Ssh off]&lt;br /&gt;
DAEMON INFO: COM_REMOTEON      = [Ssh on]&lt;br /&gt;
DAEMON INFO: COM_SHELL         = [uptime &amp;gt;&amp;gt; /tmp/shell_log]  /* NEW in 0.7-1 */&lt;br /&gt;
DAEMON INFO: COM_TRACKOFF      = [Gps off]&lt;br /&gt;
DAEMON INFO: COM_TRACKON       = [Gps on]&lt;br /&gt;
DAEMON INFO: COM_UNLOCK        = [Unlock]&lt;br /&gt;
DAEMON INFO: reading 1 valid IMSI code from &amp;quot;smscon_code&amp;quot; file  /* NEW in 0.7-1 */&lt;br /&gt;
DAEMON INFO: authorized IMSI code found&lt;br /&gt;
DAEMON INFO: smscon auto-loads at boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When having trouble with SMSCON always check the &amp;lt;code&amp;gt;smscon_log&amp;lt;/code&amp;gt; file!&lt;br /&gt;
&lt;br /&gt;
==Remote SSH connection==&lt;br /&gt;
&lt;br /&gt;
When the (reverse-)SSH connection is made (default command &#039;Remoteon&#039; / &#039;Remoteoff&#039;) you can from the server side (your own server) connect to your Nokia device with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -p 8080 localhost -l root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Current version v0.7-2=&lt;br /&gt;
&lt;br /&gt;
* FIX: bug in RestoreNetwork(); restoring previous network could fail. &lt;br /&gt;
* FIX: bug in CheckArguments(); execution of shell script could fail.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.7-1:&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; multiple IMSI codes are allowed in smscon_code file; use new option &amp;quot;smscon -add imsi&amp;quot; to store current IMSI code in smscon_code file.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (DISABLESMS); WARNING: disables ALL SMS sending in smscon program.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new smscon command (COM_SHELL); run directly shell commands. (no check &amp;amp; feedback from command!).&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (SIMUNLOCK); auto unlock phone after new SIM is inserted (to fool a possible thief of your phone).&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (SILENCEDEVICE); disable all phone sounds (email alert, IM alert, ringing alert &amp;amp; SMS alert) in current active profile, if smscon is activated. All volume levels are set to zero.&lt;br /&gt;
* &#039;&#039;&#039;NEW/CHANGE:&#039;&#039;&#039; new user option (AUTOBATREPORT); user can enable/disable sending automatically a SMS message when smscon is activated &amp;amp; device battery is depleting.&lt;br /&gt;
* CHANGE: when initializing a new smscon_config file all user settings wil be set default to &#039;no&#039;.&lt;br /&gt;
* REFACTORING: some parts in both scripts.&lt;br /&gt;
* FIX: better number handeling in SMSrecieve() routine (thanks to maemo.org user!).&lt;br /&gt;
* FIX: small bug in GSMmodem() in smscon_daemon script.&lt;br /&gt;
* FIX: small text bug in smscon script.&lt;br /&gt;
* &#039;&#039;&#039;EXPERIMENTAL/CHANGE:&#039;&#039;&#039; when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.&lt;br /&gt;
* &#039;&#039;&#039;EXPERIMENTAL/FIX:&#039;&#039;&#039; change in getting the right GPRS connections; MMS &amp;amp; WAP will be discarded in available GPRS network list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-9:&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039; NEW:&#039;&#039;&#039; added new smscon command: COM_CUSTOM to run a user configurable shell script (/opt/smscon/smscon_script)&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; if user setting REMOTEUSER, REMOTEPASSWORD is empty, &amp;quot;Remoteon&amp;quot; &amp;amp; &amp;quot;Remoteoff&amp;quot; function is disabled in smscon. &lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; smscon will send automatically a SMS message when smscon is activated &amp;amp; device battery is depleting.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new options in smscon menu.&lt;br /&gt;
* &#039;&#039;&#039;NEW/EXPERIMENTAL&#039;&#039;&#039;: when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.&lt;br /&gt;
* CHANGE: improved the way smscon reads user settings from smscon_config file.&lt;br /&gt;
* FIX/EXPERIMENTAL: change in getting the right GPRS connections; MMS &amp;amp; WAP will be discarded in available GPRS network list. (thanks to Zimon)&lt;br /&gt;
* FIX: added time notation in GPS email &amp;amp; SMS messages.&lt;br /&gt;
* FIX: picture of frontcam &amp;amp; GoogleMap image are named wrong &amp;amp; placed therefore in wrong directory.&lt;br /&gt;
* FIX: smscon fails to send SMS message when message is too long (&amp;gt; 160 chars.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-7:&#039;&#039;&#039;&lt;br /&gt;
* FIX: activation of the current active/available GPRS connection could fail in specific cases (bug in acquiring the name).&lt;br /&gt;
* FIX: better logging/behaviour when locking/unlocking of device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-6:&#039;&#039;&#039;&lt;br /&gt;
* NEW: added new command-line option for smscon to set user settings (encrypted &amp;amp; non-encrypted) in smscon_config file.&lt;br /&gt;
* NEW: added package icon&lt;br /&gt;
* NEW / FIX: added time &amp;amp; date of frontcam picture taken in email.&lt;br /&gt;
* REFACTORING: parts of script code.&lt;br /&gt;
* CHANGE: improved user setting reading from smscon_config file.&lt;br /&gt;
* CHANGE: cosmetic changes in logging.&lt;br /&gt;
* CHANGE / FIX: (UNTESTED) if USER &amp;amp; PASSWORD setting is empty, email sending to smtp server is done without user &amp;amp; password authentication.&lt;br /&gt;
* FIX: smscon can send to wrong phone number when activated &amp;amp; receives hereafter a non-SMSCON command SMS message from another phone number.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-5:&#039;&#039;&#039;&lt;br /&gt;
* NEW: in reply SMS from COM_LOCATION command is http link added to GoogleMaps.&lt;br /&gt;
* NEW/CHANGE: optification of SMSCON; new install path of package is now &#039;&#039;&#039;/opt/smscon&#039;&#039;&#039;.&lt;br /&gt;
* REFACTORING: improved the way SMS is send (more stable &amp;amp; controlled).&lt;br /&gt;
* REFACTORING/FIX: execption in email sending code failed.&lt;br /&gt;
* CHANGE: in SMSCON test modes usage of WLAN connection only if already connected, otherwise usage of GPRS connection.&lt;br /&gt;
* CHANGE: in SMSCON test modes if usage of GPRS connection, previous connection is saved &amp;amp; re-enabled after GPRS connection usage.&lt;br /&gt;
* CHANGE: if usage of GPRS connection, force Internet connections to GPRS connection (needed for keeping the connection alive/stable).&lt;br /&gt;
* CHANGE: new SMSCON icon (meets requirements of maemo package)&lt;br /&gt;
* CHANGE: new package description (meets requirements of maemo Extra-testing package)&lt;br /&gt;
* FIX: internal fixes (better consistency in logging).&lt;br /&gt;
* FIX: email attachment (camera picture or Google map) is displayed completely wrong (alt text was wrong/mixed etc.)&lt;br /&gt;
* FIX: remove unused variable in ConfigVars list.&lt;br /&gt;
* FIX: syntax bug fixed which could crash SMSCON.&lt;br /&gt;
&lt;br /&gt;
=Known Issues=&lt;br /&gt;
===v0.7-1===&lt;br /&gt;
* Bug in RestoreNetwork(); will be fixed in v0.7-2. (confirmed; thanks to Saturn)&lt;br /&gt;
* Bug in CheckArguments(); will be fixed in v0.7-2. (confirmed; thanks to Saturn)&lt;br /&gt;
* Please test &amp;amp; report on SMSCON thread on forum [http://talk.maemo.org/showthread.php?t=60729].&lt;br /&gt;
&lt;br /&gt;
===v0.5-9===&lt;br /&gt;
* Use 0.7-1 for testing (new options &amp;amp; bug fixes)!&lt;br /&gt;
&lt;br /&gt;
===v0.5-7===&lt;br /&gt;
* Several issues, see above.&lt;br /&gt;
&lt;br /&gt;
===v0.5-6===&lt;br /&gt;
* Smscon can fail, in specific circumstances, in aquiring the name of GPRS data connection. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.5-5===&lt;br /&gt;
* Smscon can send to wrong phone number when activated &amp;amp; receives hereafter a non-SMSCON command SMS message from another phone number. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-6===&lt;br /&gt;
* Email attachment (camera picture or Google map) is displayed wrong. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-5===&lt;br /&gt;
* COM_REBOOT &amp;amp; COM_POWEROFF command fail when used. (confirmed by creator)&lt;br /&gt;
* Alt text of email image in email is wrong. &lt;br /&gt;
&lt;br /&gt;
===v0.4.4-4===&lt;br /&gt;
* COM_REBOOT &amp;amp; COM_POWEROFF fails if changed. (confirmed by creator)&lt;br /&gt;
* COM_CALL fails. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-3===&lt;br /&gt;
* If default COM_REBOOT &amp;amp; COM_POWEROFF commands are changed command fails to execute (confirmed by Saturn) Fix in 0.4.4-4.&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-2===&lt;br /&gt;
* Dependancy list of SMSCON installer is incorrect (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-1===&lt;br /&gt;
&lt;br /&gt;
REMOVE PREVIOUS VERSION FROM NOKIA BEFORE USING 0.4.4-1 or higher &lt;br /&gt;
(reason: major change in &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file)!&lt;br /&gt;
&lt;br /&gt;
* Smscon won&#039;t autoload at boot (confirmed by creator). Fix in 0.4.4-2.&lt;br /&gt;
&lt;br /&gt;
===v0.4.3===&lt;br /&gt;
* Command &amp;quot;Trackon&amp;quot; is reported not to work (confirmed by creator)&lt;br /&gt;
* &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; does not start at boot when requested (confirmed by creator)&lt;br /&gt;
* SMS commands cannot accept spaces (confirmed by creator)&lt;br /&gt;
* Smscon doesn&#039;t load at boot. (confirmed by creator)&lt;br /&gt;
* &amp;quot;Trackon&amp;quot; (&amp;amp; &amp;quot;Trackoff&amp;quot;) command doesn&#039;t work. (confirmed by creator)&lt;br /&gt;
* Bug in selecting the right GPS mode if GPRS data network is available (usage of AGPS (faster) or GPS (slower)). (confirmed by creator)&lt;br /&gt;
* When using command &amp;quot;Location&amp;quot; GPRS data network is not automatically enabled.&lt;br /&gt;
* GPSTIMEOUT routine doesn&#039;t work as expected/intended. (confirmed by creator)&lt;br /&gt;
* When &amp;quot;Location&amp;quot; &amp;amp; &amp;quot;Trackon&amp;quot; commands are used, internal smscon events are discarted/hold until GPS is finished. (confirmed by creator)&lt;br /&gt;
* Discovered a initial GPS control design flaw in smscon. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.2===&lt;br /&gt;
* The default number is replaced by every mail received and not only those requesting a command. (confirmed &amp;amp; fixed in version 0.4.3)&lt;br /&gt;
&lt;br /&gt;
===v0.4.1===&lt;br /&gt;
* Command &amp;quot;Trackon&amp;quot; is reported not to work (confirmed)&lt;br /&gt;
* Reply command sends duplicates (unconfirmed)&lt;br /&gt;
&lt;br /&gt;
===v0.4.0===&lt;br /&gt;
* Will not work due to a typo in variable name (confirmed and fixed in version 0.4.1)&lt;br /&gt;
&lt;br /&gt;
=Future release=&lt;br /&gt;
&lt;br /&gt;
* CHANGE: for encryption of user settings in &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file,  now secret code key is based on device serial number (no more predefined key in script); this enhances security.&lt;br /&gt;
&lt;br /&gt;
=Future development ideas=&lt;br /&gt;
&lt;br /&gt;
Feel free to add requests below.&lt;br /&gt;
&lt;br /&gt;
* saving all &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; user variables in gconf database. No need for &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file anymore. (WONT IMPLEMENT)&lt;br /&gt;
* add setting for user&#039;s country mobile number prefix.&lt;br /&gt;
* add setting for alternative number (where alternative is a number sent a command and does not match the default) and option to choose where reply should be send, i.e. default number, alternative or both. Default number should not be replaced.&lt;br /&gt;
* add setting to choose the default internet connection (WLAN, GPRS, or ANY). At the moment hardcoded to GPRS. (WONT FIX)&lt;br /&gt;
* when the &amp;quot;Camera&amp;quot; command is sent, the process should wait for keyboard action to capture a picture and send the mail. In that way, there will be more chances to get better face portrait of the &amp;quot;new&amp;quot; user.&lt;br /&gt;
* Add the ability to run custom commands (very useful, but especially needed to delete sensitive data from the phone). (IMPLEMENTED IN 0.5-9 / 0.7-1)&lt;br /&gt;
* Add the ability to turn silent mode on. (IMPLEMENTED IN 0.7-1)&lt;br /&gt;
*Application must be included in the ROM itself so that it cannot be removed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Testers needed=&lt;br /&gt;
 &lt;br /&gt;
Please test this software, I like to hear if it works for you or not. Please post on forum. I only can test the software with two Vodafone SIM cards from The Netherlands, I want to know if it also works with other cards and networks in other countries...&lt;br /&gt;
&lt;br /&gt;
=License=&lt;br /&gt;
This program is free software; you can redistribute it and/or modify&lt;br /&gt;
it under the terms of the GNU General Public License as published&lt;br /&gt;
by the Free Software Foundation; version 2 only.&lt;br /&gt;
&lt;br /&gt;
=Disclaimer=&lt;br /&gt;
This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:N900]]&lt;/div&gt;</summary>
		<author><name>83.253.0.12</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=SMSCON&amp;diff=36850</id>
		<title>SMSCON</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=SMSCON&amp;diff=36850"/>
		<updated>2011-01-25T18:50:41Z</updated>

		<summary type="html">&lt;p&gt;83.253.0.12: /* Future development ideas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SMSCON provides complete control of your [[Nokia N900|N900]] by sending SMS commands to it. This is particularly handy in case you cannot find your phone, for example if it has been lost or even stolen.&lt;br /&gt;
 &lt;br /&gt;
SMSCON is a two part Python script running in command-line; &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt;. &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; is the command-line control part and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; is the daemon (running in the background) part. The configuration file for all the user settings is in the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
SMSCON will also auto-load silently at boot, waiting for a special SMS command message in case you phone is lost (or even stolen). &lt;br /&gt;
&lt;br /&gt;
SMSCON can&#039;t guarantee that you will find your phone again, but it will provide the maximum chance to recover it. If this application ever helps you to recover your phone please tell the story on Maemo.org! The best way is of course to never lose your phone or let it get stolen...&lt;br /&gt;
&lt;br /&gt;
[[SMSCON Editor]] is a GUI helper application for SMSCON to set/edit user settings &amp;amp; control SMSCON.&lt;br /&gt;
 &lt;br /&gt;
=Functionality=&lt;br /&gt;
&lt;br /&gt;
SMSCON can:&lt;br /&gt;
&lt;br /&gt;
* autoload at boot (this is default set at install of smscon package); when device reboots it loads &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; silent in the background.&lt;br /&gt;
* creates a log file (on the device).&lt;br /&gt;
* detect SIM card change and sends new SIM card phonenumber, IMSI code &amp;amp; telecom operator name to other known mobile number (returns SMS message); if somebody has stolen your phone and put his/hers own SIM card in it.&lt;br /&gt;
* send current GPS location coordinates (returns SMS message or EMAIL with GoogleMaps picture with your phone&#039;s location on it).&lt;br /&gt;
* reboot the phone; only works if your SIM card hasn&#039;t a lock code.&lt;br /&gt;
* shutdown the phone.&lt;br /&gt;
* open a (reverse-)SSH connection to your own (home-)server (GPRS connection); control the phone at command-line level from your own home.&lt;br /&gt;
* email a frontcam picture to your email address (GPRS connection); to maybe see where your phone is or who is using it.&lt;br /&gt;
* send the current remaining battery charge (returns SMS message).&lt;br /&gt;
* make the phone call you; you can listen where your phone is (returns phonecall)&lt;br /&gt;
* lock the phone; nobody can use your phone anymore.&lt;br /&gt;
* detect keyboardslider use; when somebody has found your phone and uses the keyboard. (only after one of the valid SMS commands is send to you phone) (returns SMS message)&lt;br /&gt;
* send all valid SMS commands to you if you forgotten it (returns one or more SMS message)&lt;br /&gt;
* run a predefined shell script to start other programs, delete files etc.&lt;br /&gt;
* run directly shell command through SMS message sending. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* turn the phone silent when SMSCON is set active with a SMS command. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* send automatically SMS messages about the current battery status when SMSCON is set active with a SMS command. &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
* use multiple SIM cards (the IMSI numbers are stored in &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file) &#039;&#039;&#039;/* NEW IN 0.7-1 */&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Installation=&lt;br /&gt;
&lt;br /&gt;
SMSCON &amp;amp; [[SMSCON Editor]] can be found in the Extra-devel/Extra-testing repository (only if enabled on your phone).&lt;br /&gt;
&lt;br /&gt;
Always install the latest version on your phone, previous version can have bugs and have less functionallity!&lt;br /&gt;
&lt;br /&gt;
SMSCON is writen in Python and needs the following packages, besides &#039;&#039;&#039;python2.5&#039;&#039;&#039;, being installed on your device to install and run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
python-crypto /* NEW: NEEDED IN VERSION 0.5-5 and higher */&lt;br /&gt;
python-gobject&lt;br /&gt;
python-location&lt;br /&gt;
python-dbus&lt;br /&gt;
pexpect&lt;br /&gt;
gstreamer-tools &lt;br /&gt;
openssh-client&lt;br /&gt;
openssh-server&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The files &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; are placed by the installer in the &amp;lt;code&amp;gt;&#039;&#039;&#039;/opt/smscon&#039;&#039;&#039;&amp;lt;/code&amp;gt; directory. /* changed in version 0.5-5 and higher */ &lt;br /&gt;
&lt;br /&gt;
The installer will also generate a &amp;lt;code&amp;gt;smscon_boot&amp;lt;/code&amp;gt; file in &amp;lt;code&amp;gt;/etc/event.d&amp;lt;/code&amp;gt; for autoloading at boot of the device.&lt;br /&gt;
&lt;br /&gt;
Finally SMSCON generates a default settings template file (&amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt;) with all the user settings of SMSCON. It also creates a &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file (for storing the current IMSI number of your inserted SIM card) and a &amp;lt;code&amp;gt;smscon_script&amp;lt;/code&amp;gt; file (for running a custom user shell script).&lt;br /&gt;
&lt;br /&gt;
It&#039;s essential that the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file *must* be edited by [[SMSCON Editor]] or with commandline commands before use of SMSCON!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Finally: if you want to use the SSH connection feature of SMSCON (&#039;Remoteon&#039; / &#039;Remoteoff&#039; command), you also need a fixed IP address on your preconfigured remote server for the SSH (default port 22) connection.&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
 &lt;br /&gt;
SMSCON is triggered by a SMS message with a predefined known command and then will execute the task in the background. If so it will send a reply SMS or email with the information.&lt;br /&gt;
&lt;br /&gt;
==Commands== &lt;br /&gt;
The (default) predefined commands are: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -sms&lt;br /&gt;
COM_CHECK         = &#039;Check&#039;&lt;br /&gt;
COM_REBOOT        = &#039;Reboot&#039;&lt;br /&gt;
COM_POWEROFF      = &#039;Poweroff&#039;&lt;br /&gt;
COM_POWER         = &#039;Power&#039;&lt;br /&gt;
COM_LOCATION      = &#039;Location&#039;&lt;br /&gt;
COM_REMOTEON      = &#039;Remoteon&#039;&lt;br /&gt;
COM_REMOTEOFF     = &#039;Remoteoff&#039;&lt;br /&gt;
COM_CAMERA        = &#039;Camera&#039;&lt;br /&gt;
COM_CALL          = &#039;Call&#039;&lt;br /&gt;
COM_LOCK          = &#039;Lock&#039;&lt;br /&gt;
COM_UNLOCK        = &#039;Unlock&#039;&lt;br /&gt;
COM_TRACKON       = &#039;Trackon&#039;&lt;br /&gt;
COM_TRACKOFF      = &#039;Trackoff&#039;&lt;br /&gt;
COM_CUSTOM        = &#039;Script&#039;  /* NEW: IN VERSION 0.5-9 */&lt;br /&gt;
COM_SHELL         = &#039;uptime &amp;gt;&amp;gt; /tmp/shell_log&#039;  &#039;&#039;&#039;/* NEW: IN VERSION 0.7-1 */&#039;&#039;&#039;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: These commands can be changed using the [[SMSCON Editor]] and from release v0.5-6 (and higher) also at the command-line with the &amp;lt;code&amp;gt;smscon -set &amp;lt;/code&amp;gt; command (see SMSCON command-line options).&lt;br /&gt;
&lt;br /&gt;
* When sending &#039;Check&#039; to you phone it sends one or more SMS messages with all the available SMSCON commands. &lt;br /&gt;
* Sending &#039;Reboot&#039; it will reboot your phone. &lt;br /&gt;
* Sending &#039;Poweroff&#039; is will shutdown your phone.&lt;br /&gt;
* Sending &#039;Location&#039; is will send it&#039;s current position by SMS or EMAIL (or both). &lt;br /&gt;
* Sending &#039;Remoteon&#039; it will enable the SSH connection to your (home-)server. &#039;Remoteoff&#039; will kill the connection. &lt;br /&gt;
* Sending &#039;Camera&#039; will send a frontcam picture by email.&lt;br /&gt;
* Sending &#039;Call&#039; will call you.&lt;br /&gt;
* Sending &#039;Lock&#039; will lock the device, so nobody can use your phone. &#039;Unlock&#039; will remove the device lock.&lt;br /&gt;
* Sending &#039;Trackon&#039; will continiously send SMS or email (or both) with location of the device &amp;amp; &#039;Trackoff&#039; will disable this.   &lt;br /&gt;
* Sending &#039;Script&#039; will run a predefined by user shell script (&amp;lt;code&amp;gt;/opt/smscon/smscon_script&amp;lt;/code&amp;gt;).  &lt;br /&gt;
* Sending &#039;uptime &amp;gt;&amp;gt; /tmp/shell_log&#039; (an example shell command) will exectute the shell command on your phone (no checks &amp;amp; output are returned!) &#039;&#039;&#039;/* NEW: IN VERSION 0.7-1 */&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
USAGE EXAMPLE: &lt;br /&gt;
* To trigger any of the commands the phone should receive an SMS having in the subject its defined name. E.g. to trigger the &amp;lt;code&amp;gt;&#039;&#039;&#039;COM_LOCATION&#039;&#039;&#039;&amp;lt;/code&amp;gt; command the phone should receive: &amp;lt;code&amp;gt;&#039;&#039;&#039;Location&#039;&#039;&#039;&amp;lt;/code&amp;gt;. &lt;br /&gt;
* The commands can use spaces in them and can be altered in a command only you know what it is and what it means.&lt;br /&gt;
 &lt;br /&gt;
The user editable settings of the &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# smscon user settings (v0.7-1)&lt;br /&gt;
# (DO NOT edit the encrypted user settings below, use SMSCON-editor!)&lt;br /&gt;
&lt;br /&gt;
# SMS settings&lt;br /&gt;
SENDERNUMBER      = &#039;+XXXXXXXXXXX&#039;&lt;br /&gt;
&lt;br /&gt;
# SMS commands&lt;br /&gt;
COM_CHECK         = &#039;Check&#039;&lt;br /&gt;
COM_REBOOT        = &#039;Reboot&#039;&lt;br /&gt;
COM_POWEROFF      = &#039;Poweroff&#039;&lt;br /&gt;
COM_POWER         = &#039;Power&#039;&lt;br /&gt;
COM_LOCATION      = &#039;Location&#039;&lt;br /&gt;
COM_REMOTEON      = &#039;Remoteon&#039;&lt;br /&gt;
COM_REMOTEOFF     = &#039;Remoteoff&#039;&lt;br /&gt;
COM_CAMERA        = &#039;Camera&#039;&lt;br /&gt;
COM_CALL          = &#039;Call&#039;&lt;br /&gt;
COM_LOCK          = &#039;Lock&#039;&lt;br /&gt;
COM_UNLOCK        = &#039;Unlock&#039;&lt;br /&gt;
COM_TRACKON       = &#039;Trackon&#039;&lt;br /&gt;
COM_TRACKOFF      = &#039;Trackoff&#039;&lt;br /&gt;
COM_CUSTOM        = &#039;Script&#039;  /* NEW: IN VERSION 0.5-9 */&lt;br /&gt;
COM_SHELL         = &#039;uptime &amp;gt;&amp;gt; /tmp/commandlog&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Email settings&lt;br /&gt;
EMAILADDRESS      = &#039;XXXXX@XXXXXXXXXXX.XX&#039;&lt;br /&gt;
USER              = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
PASSWORD          = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
EMAILFROM         = &#039;XXXXXXXX@XXXXXX.XX&#039;&lt;br /&gt;
MAILSERVER        = &#039;XXXX.XXXXXX.XX&#039;&lt;br /&gt;
MAILPORT          = XXX&lt;br /&gt;
&lt;br /&gt;
# SSH settings&lt;br /&gt;
REMOTEHOST        = &#039;XXXXXXXXXXX.XX&#039;&lt;br /&gt;
REMOTEPORT        = 22&lt;br /&gt;
REMOTEUSER        = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
REMOTEPASSWORD    = &#039;&amp;lt;ENCRYPTED STRING&amp;gt;&#039;&lt;br /&gt;
&lt;br /&gt;
# Disable SMS sending&lt;br /&gt;
# (WARNING: this will disable ALL SMS sending in SMSCON: &#039;yes&#039; / &#039;no&#039;&lt;br /&gt;
DISABLESMS        = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Send acknowledge SMS&lt;br /&gt;
# (send acknowledge SMS after receiving valid SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
COMMANDREPLY      = &#039;yes&#039;&lt;br /&gt;
&lt;br /&gt;
# Detect keyboard use&lt;br /&gt;
# (send acknowledge SMS if keyboard is slided: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
KEYBOARDDETECT    = &#039;no&#039;&lt;br /&gt;
&lt;br /&gt;
# Device lock&lt;br /&gt;
# (lock device after receiving valid SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
AUTODEVICELOCK    = &#039;yes&#039;&lt;br /&gt;
&lt;br /&gt;
# Auto battery status SMS report&lt;br /&gt;
# (sends SMS when SMSCON is set active with a SMS command &amp;amp; battery is depleting: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
AUTOBATREPORT     = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Auto device unlock&lt;br /&gt;
# (unlocks device when new SIM is inserted; &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
SIMUNLOCK         = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# Silence the phone &lt;br /&gt;
# (disable all phone sounds when SMSCON is set active with a SMS command: &#039;yes&#039; / &#039;no&#039;)&lt;br /&gt;
SILENCEDEVICE     = &#039;no&#039;  /* NEW: IN VERSION 0.7-1 */&lt;br /&gt;
&lt;br /&gt;
# GPS setings&lt;br /&gt;
# (if no GPS coordinates acquired after 600 seconds then stop)&lt;br /&gt;
GPSTIMEOUT        = 600&lt;br /&gt;
# (number of GPS coordinates to acquire and use the most accurate in &amp;quot;Location&amp;quot;-mode)&lt;br /&gt;
GPSPOLLING        = 3&lt;br /&gt;
# (time between sending coordinate sms in &amp;quot;Trackon&amp;quot;-mode: 10 / 20 / 30 / 60 / 120)&lt;br /&gt;
GPSINTERVAL       = 60&lt;br /&gt;
# (method to send GPS coordinates: &#039;email&#039; / &#039;sms&#039; / &#039;both&#039;)&lt;br /&gt;
GPSSEND           = &#039;both&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
The available command-line options for SMSCON are:&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon&lt;br /&gt;
== smscon v0.7-1 - Nokia N900 remote control utility ==&lt;br /&gt;
 Options:&lt;br /&gt;
   -start            : start smscon_daemon&lt;br /&gt;
   -stop             : stop smscon_daemon&lt;br /&gt;
   -status           : get smscon_daemon status&lt;br /&gt;
   -log              : show log file&lt;br /&gt;
   -del log          : erase log file&lt;br /&gt;
   -sms              : show SMS commands&lt;br /&gt;
   -set name &amp;quot;value&amp;quot; : set user setting (name = &amp;quot;value&amp;quot;)&lt;br /&gt;
   -config           : show config file&lt;br /&gt;
   -script           : show script file&lt;br /&gt;
   -boot             : start smscon_daemon at device boot&lt;br /&gt;
   -unboot           : remove start of smscon_daemon at device boot&lt;br /&gt;
   -add imsi         : add current IMSI code to code file&lt;br /&gt;
   -remove imsi      : remove current IMSI code from code file&lt;br /&gt;
   -help             : this help menu&lt;br /&gt;
 Special options (normally not needed!):&lt;br /&gt;
   -reset            : factory default (delete boot, config, code &amp;amp; script file)&lt;br /&gt;
   -imsi             : show IMSI code file&lt;br /&gt;
   -del imsi         : delete code file&lt;br /&gt;
   -init             : create default config &amp;amp; script file&lt;br /&gt;
   -del config       : delete config file&lt;br /&gt;
   -del script       : delete script file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
SMSCON is intended for people who have Python programming / Linux experience so you can adjust the script to their own needs.&lt;br /&gt;
&lt;br /&gt;
==After installation==&lt;br /&gt;
&lt;br /&gt;
After installation &amp;lt;code&amp;gt;smscon&amp;lt;/code&amp;gt; will generate a new configuration file (&amp;lt;code&amp;gt;/opt/smscon/smscon_config&amp;lt;/code&amp;gt;) which you *must* edit to your own needs (i.e. change all xxxxxxx&#039;s). To edit this use [[SMSCON Editor]], which will assist in the configuration setup, or use the command-line &amp;lt;code&amp;gt;smscon -set&amp;lt;/code&amp;gt; option (available from 0.5-6 and higher).&lt;br /&gt;
Also a shell script file will be generated (&amp;lt;code&amp;gt;/opt/smscon/smscon_script&amp;lt;/code&amp;gt;) were the user can predefine shell commands to run other programs, delete files etc (available from 0.5-9 and higher).&lt;br /&gt;
&lt;br /&gt;
SMSCON will also be installed to autoload at boot, this can be disabled with the command-line command &amp;lt;code&amp;gt;smscon -unboot&amp;lt;/code&amp;gt; and re-enabled by &amp;lt;code&amp;gt;smscon -boot&amp;lt;/code&amp;gt; or with [[SMSCON Editor]].&lt;br /&gt;
&lt;br /&gt;
The first time you start SMSCON (&amp;lt;code&amp;gt;smscon -start&amp;lt;/code&amp;gt;) it loads the configured user settings file and is now active. &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; then stores your valid IMSI code in a file (&amp;lt;code&amp;gt;/opt/smscon/smscon_code&amp;lt;/code&amp;gt;) if the file doesn&#039;t exist.&lt;br /&gt;
&lt;br /&gt;
When later a new SIM card is inserted the new IMSI code is verified with the code in the stored &amp;lt;code&amp;gt;smscon_code&amp;lt;/code&amp;gt; file. This is how the &amp;quot;SIM card change&amp;quot; will be detected.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -start&lt;br /&gt;
smscon_daemon started.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All user action and behavior of &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; will be logged in the log file (at &amp;lt;code&amp;gt;/tmp/smscon.log&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Nokia-N900:~# smscon -log&lt;br /&gt;
SMSCON INFO: smscon_daemon is running (XX-XX-XXXX XX:XX:XX)&lt;br /&gt;
DAEMON INFO: successfully loaded &amp;quot;smscon_config&amp;quot; file&lt;br /&gt;
DAEMON INFO: COM_CALL          = [Call]&lt;br /&gt;
DAEMON INFO: COM_CAMERA        = [Cam]&lt;br /&gt;
DAEMON INFO: COM_CHECK         = [Sms]&lt;br /&gt;
DAEMON INFO: COM_CUSTOM        = [Script]  /* NEW in 0.5-9 */&lt;br /&gt;
DAEMON INFO: COM_LOCATION      = [Gps]&lt;br /&gt;
DAEMON INFO: COM_LOCK          = [Lock]&lt;br /&gt;
DAEMON INFO: COM_POWER         = [Bat]&lt;br /&gt;
DAEMON INFO: COM_POWEROFF      = [Poweroff]&lt;br /&gt;
DAEMON INFO: COM_REBOOT        = [Reboot]&lt;br /&gt;
DAEMON INFO: COM_REMOTEOFF     = [Ssh off]&lt;br /&gt;
DAEMON INFO: COM_REMOTEON      = [Ssh on]&lt;br /&gt;
DAEMON INFO: COM_SHELL         = [uptime &amp;gt;&amp;gt; /tmp/shell_log]  /* NEW in 0.7-1 */&lt;br /&gt;
DAEMON INFO: COM_TRACKOFF      = [Gps off]&lt;br /&gt;
DAEMON INFO: COM_TRACKON       = [Gps on]&lt;br /&gt;
DAEMON INFO: COM_UNLOCK        = [Unlock]&lt;br /&gt;
DAEMON INFO: reading 1 valid IMSI code from &amp;quot;smscon_code&amp;quot; file  /* NEW in 0.7-1 */&lt;br /&gt;
DAEMON INFO: authorized IMSI code found&lt;br /&gt;
DAEMON INFO: smscon auto-loads at boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When having trouble with SMSCON always check the &amp;lt;code&amp;gt;smscon_log&amp;lt;/code&amp;gt; file!&lt;br /&gt;
&lt;br /&gt;
==Remote SSH connection==&lt;br /&gt;
&lt;br /&gt;
When the (reverse-)SSH connection is made (default command &#039;Remoteon&#039; / &#039;Remoteoff&#039;) you can from the server side (your own server) connect to your Nokia device with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -p 8080 localhost -l root&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Current version v0.7-2=&lt;br /&gt;
&lt;br /&gt;
* FIX: bug in RestoreNetwork(); restoring previous network could fail. &lt;br /&gt;
* FIX: bug in CheckArguments(); execution of shell script could fail.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.7-1:&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; multiple IMSI codes are allowed in smscon_code file; use new option &amp;quot;smscon -add imsi&amp;quot; to store current IMSI code in smscon_code file.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (DISABLESMS); WARNING: disables ALL SMS sending in smscon program.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new smscon command (COM_SHELL); run directly shell commands. (no check &amp;amp; feedback from command!).&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (SIMUNLOCK); auto unlock phone after new SIM is inserted (to fool a possible thief of your phone).&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new user option (SILENCEDEVICE); disable all phone sounds (email alert, IM alert, ringing alert &amp;amp; SMS alert) in current active profile, if smscon is activated. All volume levels are set to zero.&lt;br /&gt;
* &#039;&#039;&#039;NEW/CHANGE:&#039;&#039;&#039; new user option (AUTOBATREPORT); user can enable/disable sending automatically a SMS message when smscon is activated &amp;amp; device battery is depleting.&lt;br /&gt;
* CHANGE: when initializing a new smscon_config file all user settings wil be set default to &#039;no&#039;.&lt;br /&gt;
* REFACTORING: some parts in both scripts.&lt;br /&gt;
* FIX: better number handeling in SMSrecieve() routine (thanks to maemo.org user!).&lt;br /&gt;
* FIX: small bug in GSMmodem() in smscon_daemon script.&lt;br /&gt;
* FIX: small text bug in smscon script.&lt;br /&gt;
* &#039;&#039;&#039;EXPERIMENTAL/CHANGE:&#039;&#039;&#039; when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.&lt;br /&gt;
* &#039;&#039;&#039;EXPERIMENTAL/FIX:&#039;&#039;&#039; change in getting the right GPRS connections; MMS &amp;amp; WAP will be discarded in available GPRS network list.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-9:&#039;&#039;&#039;&lt;br /&gt;
*&#039;&#039;&#039; NEW:&#039;&#039;&#039; added new smscon command: COM_CUSTOM to run a user configurable shell script (/opt/smscon/smscon_script)&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; if user setting REMOTEUSER, REMOTEPASSWORD is empty, &amp;quot;Remoteon&amp;quot; &amp;amp; &amp;quot;Remoteoff&amp;quot; function is disabled in smscon. &lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; smscon will send automatically a SMS message when smscon is activated &amp;amp; device battery is depleting.&lt;br /&gt;
* &#039;&#039;&#039;NEW:&#039;&#039;&#039; added new options in smscon menu.&lt;br /&gt;
* &#039;&#039;&#039;NEW/EXPERIMENTAL&#039;&#039;&#039;: when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.&lt;br /&gt;
* CHANGE: improved the way smscon reads user settings from smscon_config file.&lt;br /&gt;
* FIX/EXPERIMENTAL: change in getting the right GPRS connections; MMS &amp;amp; WAP will be discarded in available GPRS network list. (thanks to Zimon)&lt;br /&gt;
* FIX: added time notation in GPS email &amp;amp; SMS messages.&lt;br /&gt;
* FIX: picture of frontcam &amp;amp; GoogleMap image are named wrong &amp;amp; placed therefore in wrong directory.&lt;br /&gt;
* FIX: smscon fails to send SMS message when message is too long (&amp;gt; 160 chars.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-7:&#039;&#039;&#039;&lt;br /&gt;
* FIX: activation of the current active/available GPRS connection could fail in specific cases (bug in acquiring the name).&lt;br /&gt;
* FIX: better logging/behaviour when locking/unlocking of device.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-6:&#039;&#039;&#039;&lt;br /&gt;
* NEW: added new command-line option for smscon to set user settings (encrypted &amp;amp; non-encrypted) in smscon_config file.&lt;br /&gt;
* NEW: added package icon&lt;br /&gt;
* NEW / FIX: added time &amp;amp; date of frontcam picture taken in email.&lt;br /&gt;
* REFACTORING: parts of script code.&lt;br /&gt;
* CHANGE: improved user setting reading from smscon_config file.&lt;br /&gt;
* CHANGE: cosmetic changes in logging.&lt;br /&gt;
* CHANGE / FIX: (UNTESTED) if USER &amp;amp; PASSWORD setting is empty, email sending to smtp server is done without user &amp;amp; password authentication.&lt;br /&gt;
* FIX: smscon can send to wrong phone number when activated &amp;amp; receives hereafter a non-SMSCON command SMS message from another phone number.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Previous version v0.5-5:&#039;&#039;&#039;&lt;br /&gt;
* NEW: in reply SMS from COM_LOCATION command is http link added to GoogleMaps.&lt;br /&gt;
* NEW/CHANGE: optification of SMSCON; new install path of package is now &#039;&#039;&#039;/opt/smscon&#039;&#039;&#039;.&lt;br /&gt;
* REFACTORING: improved the way SMS is send (more stable &amp;amp; controlled).&lt;br /&gt;
* REFACTORING/FIX: execption in email sending code failed.&lt;br /&gt;
* CHANGE: in SMSCON test modes usage of WLAN connection only if already connected, otherwise usage of GPRS connection.&lt;br /&gt;
* CHANGE: in SMSCON test modes if usage of GPRS connection, previous connection is saved &amp;amp; re-enabled after GPRS connection usage.&lt;br /&gt;
* CHANGE: if usage of GPRS connection, force Internet connections to GPRS connection (needed for keeping the connection alive/stable).&lt;br /&gt;
* CHANGE: new SMSCON icon (meets requirements of maemo package)&lt;br /&gt;
* CHANGE: new package description (meets requirements of maemo Extra-testing package)&lt;br /&gt;
* FIX: internal fixes (better consistency in logging).&lt;br /&gt;
* FIX: email attachment (camera picture or Google map) is displayed completely wrong (alt text was wrong/mixed etc.)&lt;br /&gt;
* FIX: remove unused variable in ConfigVars list.&lt;br /&gt;
* FIX: syntax bug fixed which could crash SMSCON.&lt;br /&gt;
&lt;br /&gt;
=Known Issues=&lt;br /&gt;
===v0.7-1===&lt;br /&gt;
* Bug in RestoreNetwork(); will be fixed in v0.7-2. (confirmed; thanks to Saturn)&lt;br /&gt;
* Bug in CheckArguments(); will be fixed in v0.7-2. (confirmed; thanks to Saturn)&lt;br /&gt;
* Please test &amp;amp; report on SMSCON thread on forum [http://talk.maemo.org/showthread.php?t=60729].&lt;br /&gt;
&lt;br /&gt;
===v0.5-9===&lt;br /&gt;
* Use 0.7-1 for testing (new options &amp;amp; bug fixes)!&lt;br /&gt;
&lt;br /&gt;
===v0.5-7===&lt;br /&gt;
* Several issues, see above.&lt;br /&gt;
&lt;br /&gt;
===v0.5-6===&lt;br /&gt;
* Smscon can fail, in specific circumstances, in aquiring the name of GPRS data connection. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.5-5===&lt;br /&gt;
* Smscon can send to wrong phone number when activated &amp;amp; receives hereafter a non-SMSCON command SMS message from another phone number. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-6===&lt;br /&gt;
* Email attachment (camera picture or Google map) is displayed wrong. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-5===&lt;br /&gt;
* COM_REBOOT &amp;amp; COM_POWEROFF command fail when used. (confirmed by creator)&lt;br /&gt;
* Alt text of email image in email is wrong. &lt;br /&gt;
&lt;br /&gt;
===v0.4.4-4===&lt;br /&gt;
* COM_REBOOT &amp;amp; COM_POWEROFF fails if changed. (confirmed by creator)&lt;br /&gt;
* COM_CALL fails. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-3===&lt;br /&gt;
* If default COM_REBOOT &amp;amp; COM_POWEROFF commands are changed command fails to execute (confirmed by Saturn) Fix in 0.4.4-4.&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-2===&lt;br /&gt;
* Dependancy list of SMSCON installer is incorrect (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.4-1===&lt;br /&gt;
&lt;br /&gt;
REMOVE PREVIOUS VERSION FROM NOKIA BEFORE USING 0.4.4-1 or higher &lt;br /&gt;
(reason: major change in &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file)!&lt;br /&gt;
&lt;br /&gt;
* Smscon won&#039;t autoload at boot (confirmed by creator). Fix in 0.4.4-2.&lt;br /&gt;
&lt;br /&gt;
===v0.4.3===&lt;br /&gt;
* Command &amp;quot;Trackon&amp;quot; is reported not to work (confirmed by creator)&lt;br /&gt;
* &amp;lt;code&amp;gt;smscon_daemon&amp;lt;/code&amp;gt; does not start at boot when requested (confirmed by creator)&lt;br /&gt;
* SMS commands cannot accept spaces (confirmed by creator)&lt;br /&gt;
* Smscon doesn&#039;t load at boot. (confirmed by creator)&lt;br /&gt;
* &amp;quot;Trackon&amp;quot; (&amp;amp; &amp;quot;Trackoff&amp;quot;) command doesn&#039;t work. (confirmed by creator)&lt;br /&gt;
* Bug in selecting the right GPS mode if GPRS data network is available (usage of AGPS (faster) or GPS (slower)). (confirmed by creator)&lt;br /&gt;
* When using command &amp;quot;Location&amp;quot; GPRS data network is not automatically enabled.&lt;br /&gt;
* GPSTIMEOUT routine doesn&#039;t work as expected/intended. (confirmed by creator)&lt;br /&gt;
* When &amp;quot;Location&amp;quot; &amp;amp; &amp;quot;Trackon&amp;quot; commands are used, internal smscon events are discarted/hold until GPS is finished. (confirmed by creator)&lt;br /&gt;
* Discovered a initial GPS control design flaw in smscon. (confirmed by creator)&lt;br /&gt;
&lt;br /&gt;
===v0.4.2===&lt;br /&gt;
* The default number is replaced by every mail received and not only those requesting a command. (confirmed &amp;amp; fixed in version 0.4.3)&lt;br /&gt;
&lt;br /&gt;
===v0.4.1===&lt;br /&gt;
* Command &amp;quot;Trackon&amp;quot; is reported not to work (confirmed)&lt;br /&gt;
* Reply command sends duplicates (unconfirmed)&lt;br /&gt;
&lt;br /&gt;
===v0.4.0===&lt;br /&gt;
* Will not work due to a typo in variable name (confirmed and fixed in version 0.4.1)&lt;br /&gt;
&lt;br /&gt;
=Future release=&lt;br /&gt;
&lt;br /&gt;
* CHANGE: for encryption of user settings in &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file,  now secret code key is based on device serial number (no more predefined key in script); this enhances security.&lt;br /&gt;
&lt;br /&gt;
=Future development ideas=&lt;br /&gt;
&lt;br /&gt;
Feel free to add requests below.&lt;br /&gt;
&lt;br /&gt;
* saving all &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; user variables in gconf database. No need for &amp;lt;code&amp;gt;smscon_config&amp;lt;/code&amp;gt; file anymore. (WONT IMPLEMENT)&lt;br /&gt;
* add setting for user&#039;s country mobile number prefix.&lt;br /&gt;
* add setting for alternative number (where alternative is a number sent a command and does not match the default) and option to choose where reply should be send, i.e. default number, alternative or both. Default number should not be replaced.&lt;br /&gt;
* add setting to choose the default internet connection (WLAN, GPRS, or ANY). At the moment hardcoded to GPRS. (WONT FIX)&lt;br /&gt;
* when the &amp;quot;Camera&amp;quot; command is sent, the process should wait for keyboard action to capture a picture and send the mail. In that way, there will be more chances to get better face portrait of the &amp;quot;new&amp;quot; user.&lt;br /&gt;
* Add the ability to run custom commands (very useful, but especially needed to delete sensitive data from the phone). (IMPLEMENTED IN 0.5-9 / 0.7-1)&lt;br /&gt;
* Add the ability to turn silent mode on. (IMPLEMENTED IN 0.7-1)&lt;br /&gt;
*Application must be included in the ROM itself so that it cannot be removed.&lt;br /&gt;
&lt;br /&gt;
=Requests=&lt;br /&gt;
* Add a password so that no one else but the legitimate user can send an SMS to the phone and see where the phone is.&lt;br /&gt;
&lt;br /&gt;
=Testers needed=&lt;br /&gt;
 &lt;br /&gt;
Please test this software, I like to hear if it works for you or not. Please post on forum. I only can test the software with two Vodafone SIM cards from The Netherlands, I want to know if it also works with other cards and networks in other countries...&lt;br /&gt;
&lt;br /&gt;
=License=&lt;br /&gt;
This program is free software; you can redistribute it and/or modify&lt;br /&gt;
it under the terms of the GNU General Public License as published&lt;br /&gt;
by the Free Software Foundation; version 2 only.&lt;br /&gt;
&lt;br /&gt;
=Disclaimer=&lt;br /&gt;
This program is distributed in the hope that it will be useful,&lt;br /&gt;
but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
[[Category:N900]]&lt;/div&gt;</summary>
		<author><name>83.253.0.12</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Digital_compass&amp;diff=6205</id>
		<title>Digital compass</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Digital_compass&amp;diff=6205"/>
		<updated>2010-02-27T17:06:09Z</updated>

		<summary type="html">&lt;p&gt;83.253.0.12: /* Connection options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All information pertains to the [[N900]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; See also [[Orrery]], a night-sky viewer which also can be used as a digital compass&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Why a compass is needed =&lt;br /&gt;
== Augmented Reality (AR) ==&lt;br /&gt;
* GPS gives location of device; compass gives orientation&lt;br /&gt;
* Allows pointing the device and getting information relevant to the pointed direction&lt;br /&gt;
* E.g. Layar, Wikitude&lt;br /&gt;
== Navigation ==&lt;br /&gt;
* Car navigation&lt;br /&gt;
* On-foot navigation&lt;br /&gt;
** Map rotation&lt;br /&gt;
&lt;br /&gt;
= Connection options =&lt;br /&gt;
&lt;br /&gt;
* Optical (use one of the cameras, plus image processing)&lt;br /&gt;
** Best to use user-facing camera, so the world-facing can be used for capturing the world image for AR&lt;br /&gt;
*** Both cameras cannot be used at the same time - and the front camera is lower quality.&lt;br /&gt;
* USB&lt;br /&gt;
** Unknown if USB host possible.&lt;br /&gt;
** Unknown if power is available from USB.&lt;br /&gt;
* IrDA&lt;br /&gt;
** Is unsupported at this point. The device only has an CIR transmitter.&lt;br /&gt;
* Bluetooth&lt;br /&gt;
** Bluetooth data&lt;br /&gt;
** Bluetooth audio - sending analog signals via Bluetooth microphone for digital signal processing on the N900&lt;br /&gt;
*** Possibly a Bluetooth stereo microphone (Sony ECMHW1) could send the Sin,Cos signals from an analog compass sensor (Sensor 1525, www.dinsmoresensors.com) to the N900. Direction would then be determined essentially by arctan2 and possibly low pass filtering for noise reduction.&lt;br /&gt;
* FM radio&lt;br /&gt;
** Requires headphones be connected&lt;br /&gt;
** Signal processing of audio in software&lt;br /&gt;
* MicroSD card&lt;br /&gt;
** There used to be some GPS:s on Flash-type expansion cards. How about a compass?&lt;br /&gt;
&lt;br /&gt;
= Compass chips or sensors =&lt;br /&gt;
* Honeywell HMC5843&lt;br /&gt;
** I2C interface&lt;br /&gt;
** Magnetometer requires vector math on client side for interpretation, see OpenMoko i2c compass project for more info&lt;br /&gt;
* Dinsmore analog&lt;br /&gt;
&lt;br /&gt;
= Ready-built compass modules =&lt;br /&gt;
* Ocean Server OS4000&lt;br /&gt;
* Ocean Server OS5000&lt;br /&gt;
** USB and RS232 interface&lt;br /&gt;
&lt;br /&gt;
= Microcontrollers =&lt;br /&gt;
&lt;br /&gt;
= Converters =&lt;br /&gt;
* I2C to RS232&lt;br /&gt;
** http://www.gedanken.demon.co.uk/rs232-converters/i2c.html&lt;br /&gt;
** http://www.i2cchip.com/&lt;br /&gt;
* RS232 to Bluetooth&lt;br /&gt;
** Sparkfun BlueSmiRF Gold&lt;br /&gt;
* I2C to USB&lt;br /&gt;
** http://www.harbaum.org/till/i2c_tiny_usb/&lt;br /&gt;
* I2C to Bluetooth&lt;br /&gt;
** http://www.emv-electronics.com/de/intro/i2cbusadapter.htm (seems unavailable for purchase)&lt;br /&gt;
&lt;br /&gt;
= Designs =&lt;br /&gt;
== Optical image processing of compass ==&lt;br /&gt;
* Periscope-like mirror&lt;br /&gt;
== Ready-made RS232 compass modules with RS232-Bluetooth conversion ==&lt;br /&gt;
== Custom board designs ==&lt;br /&gt;
This MIT project from 2002 designs a custom bluetooth digital compass http://web.mit.edu/dtfg/www/research/compass/index.html&lt;br /&gt;
&lt;br /&gt;
= Alternatives to a digital compass =&lt;br /&gt;
* Use GPS motion to determine direction&lt;br /&gt;
** Only useful for navigation, not AR&lt;br /&gt;
** Does not work if standing still&lt;br /&gt;
* Use image processing for AR&lt;br /&gt;
** E.g. artoolkit&lt;br /&gt;
** Still you cannot get absolute orientation of device&lt;br /&gt;
* Initialized orientation + delta orientations (dead reckoning)&lt;br /&gt;
** Maybe you can initialize the device to a known orientation (e.g. straight north), then use optical flow and/or accelerometer data to extrapolate subsequent orientations&lt;br /&gt;
* Optical compass + manually dragging an on-screen compass to match&lt;br /&gt;
** Not automatic so some AR apps like games might not work&lt;br /&gt;
** But for navigation or rotating maps, it could work: just glance at the optical compass, then drag the map icon to match the orientation.&lt;br /&gt;
* Combined GPS/optical compass for daytime use:&lt;br /&gt;
** Use GPS location and time info to calculate current sun location (The orrery app will do this,&lt;br /&gt;
for the sun, moon, planets etc)&lt;br /&gt;
** Let user optically align to visible sun&lt;br /&gt;
&lt;br /&gt;
[[Category:Brainstorm]]&lt;br /&gt;
[[Category:N900 Additional Hardware]]&lt;/div&gt;</summary>
		<author><name>83.253.0.12</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Digital_compass&amp;diff=6206</id>
		<title>Digital compass</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Digital_compass&amp;diff=6206"/>
		<updated>2010-02-24T22:18:24Z</updated>

		<summary type="html">&lt;p&gt;83.253.0.12: /* Custom board designs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All information pertains to the [[N900]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039; See also [[Orrery]], a night-sky viewer which also can be used as a digital compass&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Why a compass is needed =&lt;br /&gt;
== Augmented Reality (AR) ==&lt;br /&gt;
* GPS gives location of device; compass gives orientation&lt;br /&gt;
* Allows pointing the device and getting information relevant to the pointed direction&lt;br /&gt;
* E.g. Layar, Wikitude&lt;br /&gt;
== Navigation ==&lt;br /&gt;
* Car navigation&lt;br /&gt;
* On-foot navigation&lt;br /&gt;
** Map rotation&lt;br /&gt;
&lt;br /&gt;
= Connection options =&lt;br /&gt;
&lt;br /&gt;
* Optical (use one of the cameras, plus image processing)&lt;br /&gt;
** Best to use user-facing camera, so the world-facing can be used for capturing the world image for AR&lt;br /&gt;
*** Both cameras cannot be used at the same time - and the front camera is lower quality.&lt;br /&gt;
* USB&lt;br /&gt;
** Unknown if USB host possible.&lt;br /&gt;
** Unknown if power is available from USB.&lt;br /&gt;
* IrDA&lt;br /&gt;
** Is unsupported at this point. The device only has an CIR transmitter.&lt;br /&gt;
* Bluetooth&lt;br /&gt;
** Bluetooth data&lt;br /&gt;
** Bluetooth audio - sending analog signals via Bluetooth microphone for digital signal processing on the N900&lt;br /&gt;
* FM radio&lt;br /&gt;
** Requires headphones be connected&lt;br /&gt;
** Signal processing of audio in software&lt;br /&gt;
* MicroSD card&lt;br /&gt;
** There used to be some GPS:s on Flash-type expansion cards. How about a compass?&lt;br /&gt;
&lt;br /&gt;
= Compass chips or sensors =&lt;br /&gt;
* Honeywell HMC5843&lt;br /&gt;
** I2C interface&lt;br /&gt;
** Magnetometer requires vector math on client side for interpretation, see OpenMoko i2c compass project for more info&lt;br /&gt;
* Dinsmore analog&lt;br /&gt;
&lt;br /&gt;
= Ready-built compass modules =&lt;br /&gt;
* Ocean Server OS4000&lt;br /&gt;
* Ocean Server OS5000&lt;br /&gt;
** USB and RS232 interface&lt;br /&gt;
&lt;br /&gt;
= Microcontrollers =&lt;br /&gt;
&lt;br /&gt;
= Converters =&lt;br /&gt;
* I2C to RS232&lt;br /&gt;
** http://www.gedanken.demon.co.uk/rs232-converters/i2c.html&lt;br /&gt;
** http://www.i2cchip.com/&lt;br /&gt;
* RS232 to Bluetooth&lt;br /&gt;
** Sparkfun BlueSmiRF Gold&lt;br /&gt;
* I2C to USB&lt;br /&gt;
** http://www.harbaum.org/till/i2c_tiny_usb/&lt;br /&gt;
* I2C to Bluetooth&lt;br /&gt;
** http://www.emv-electronics.com/de/intro/i2cbusadapter.htm (seems unavailable for purchase)&lt;br /&gt;
&lt;br /&gt;
= Designs =&lt;br /&gt;
== Optical image processing of compass ==&lt;br /&gt;
* Periscope-like mirror&lt;br /&gt;
== Ready-made RS232 compass modules with RS232-Bluetooth conversion ==&lt;br /&gt;
== Custom board designs ==&lt;br /&gt;
This MIT project from 2002 designs a custom bluetooth digital compass http://web.mit.edu/dtfg/www/research/compass/index.html&lt;br /&gt;
&lt;br /&gt;
= Alternatives to a digital compass =&lt;br /&gt;
* Use GPS motion to determine direction&lt;br /&gt;
** Only useful for navigation, not AR&lt;br /&gt;
** Does not work if standing still&lt;br /&gt;
* Use image processing for AR&lt;br /&gt;
** E.g. artoolkit&lt;br /&gt;
** Still you cannot get absolute orientation of device&lt;br /&gt;
* Initialized orientation + delta orientations (dead reckoning)&lt;br /&gt;
** Maybe you can initialize the device to a known orientation (e.g. straight north), then use optical flow and/or accelerometer data to extrapolate subsequent orientations&lt;br /&gt;
* Optical compass + manually dragging an on-screen compass to match&lt;br /&gt;
** Not automatic so some AR apps like games might not work&lt;br /&gt;
** But for navigation or rotating maps, it could work: just glance at the optical compass, then drag the map icon to match the orientation.&lt;br /&gt;
* Combined GPS/optical compass for daytime use:&lt;br /&gt;
** Use GPS location and time info to calculate current sun location (The orrery app will do this,&lt;br /&gt;
for the sun, moon, planets etc)&lt;br /&gt;
** Let user optically align to visible sun&lt;br /&gt;
&lt;br /&gt;
[[Category:Brainstorm]]&lt;br /&gt;
[[Category:N900 Additional Hardware]]&lt;/div&gt;</summary>
		<author><name>83.253.0.12</name></author>
	</entry>
</feed>