maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] SMScon (control your device with SMS) (https://talk.maemo.org/showthread.php?t=60729)

digitalvoid 2010-08-31 10:09

Re: [Announce] SMScon (control your device with SMS)
 
It's already in the app; command 'Remoteon' / 'Remoteoff'. (you can change the commands in the smscon_config file.

It uses a reverse-ssh connection over WLAN/GPRS. I tested it over GPRS and it works, it's not super fast but is absolute workable.

Reverse-ssh is needed because most telecom operator use internal NAT address and no private public ones (like Vodafone in The Netherlands).

knypek3 2010-08-31 11:07

Re: [Announce] SMScon (control your device with SMS)
 
When i send remoteon command, n900 ask for connection - why it not connect automatically?
And also it send me error:
Code:

failed to find"MyIP" (ping error)
ssh connection failure to"MyIP"

There is a mistake in code. But i don't know where.
When i type in xterm ping -c 1 myip
It return my 0 packets lost.

i think here is a mistake
Code:

  E = re.compile('(\d+)% packet loss')
            R = E.findall(Output)[0]
        except:
            logging.info( '(%s) DAEMON: failed to find "%s" (ping error)' % (GetCurrentTime(), REMOTEHOST) )
            return False
        else:
            if R == '0':


digitalvoid 2010-08-31 12:52

Re: [Announce] SMScon (control your device with SMS)
 
@ knypek3:

Arrgh, another bug in StatusConnection(): version 0.2.4 will be available.

knypek3 2010-08-31 13:09

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by digitalvoid (Post 803156)
@ knypek3:

Arrgh, another bug in StatusConnection(): version 0.2.4 will be available.

in StatusConnection yes, but what with ping error?
ps.
Also when i choose connection in logs
Code:

Daemon error :failed to connect new network network error)
ps2. Sending by email working great (it choose connection automatic, so may bug isn't in statusconnection? In statusSSh YOu haven't a command for connect to network - in emailsend() you have. May this create this bug?)

Edit:
You can add google coordinates http://maps.google.com/maps?q=
I try but i don't know howto ...

digitalvoid 2010-08-31 17:30

Re: [Announce] SMScon (control your device with SMS)
 
I'm rewriting StatusRemoteHost(), StartSSH() & StatusConnection() to finally get it working properly (I hope) in all different connection situations.

This will be available in v0.2.4 when done.

PS: I will also implement 'google coordinates' in future version.

digitalvoid 2010-09-01 17:27

Re: [Announce] SMScon (control your device with SMS)
 
New version available for testing (0.2.4).

Saturn 2010-09-01 17:52

Re: [Announce] SMScon (control your device with SMS)
 
Hi digitalvoid,

Really thanks for making it better and listening to us.

some comments:

- both this (0.2.4) and previous version fail to connect to GPRS (tested only with "smscon -test email")
Code:

Nokia-N900:/usr/bin# smscon -log
(Wed Sep  1 19:38:58 2010) DAEMON: user settings succesfully loaded from "smscon_config" file
(Wed Sep  1 19:38:58 2010) DAEMON: reading valid IMSI code (xxeditxx) from file
(Wed Sep  1 19:38:58 2010) DAEMON: authorized IMSI code found
(Wed Sep  1 19:38:58 2010) DAEMON: smscon autoloads at boot
(Wed Sep  1 19:38:58 2010) TEST: email
(Wed Sep  1 19:38:58 2010) DAEMON: current network (WLAN) disconnected
(Wed Sep  1 19:39:07 2010) DAEMON ERROR: failed to connect new network (network error)
(Wed Sep  1 19:39:07 2010) DAEMON ERROR: failed to send email message to "xxeditxx"
Nokia-N900:/usr/bin#

- question: if there is a valid connection already established WLAN or GPRS why you disconnect first and try to reconnect? It seems to me that smscon should try to connect only if there is no valid connection active.

- improvement: new version installation should check if config file already exists and create only in the case its not. (at least as soon as you have the config file structure frozen).

- improvement/safety: code file should not be created automatically if not existing but at first installation.

hope you like some of the above proposals.

knypek3 2010-09-01 19:09

Re: [Announce] SMScon (control your device with SMS)
 
So, i'm waiting for 0.2.5 ver without this bugs ;)

digitalvoid 2010-09-01 20:07

Re: [Announce] SMScon (control your device with SMS)
 
Quote:

Originally Posted by Saturn (Post 804430)
- question: if there is a valid connection already established WLAN or GPRS why you disconnect first and try to reconnect? It seems to me that smscon should try to connect only if there is no valid connection active.

- improvement: new version installation should check if config file already exists and create only in the case its not. (at least as soon as you have the config file structure frozen).

- improvement/safety: code file should not be created automatically if not existing but at first installation.

hope you like some of the above proposals.

1) this is indeed silly, is been solved. If selected connection is already there, leave it.
2) & 3) this is better, will implement this.

knypek3 2010-09-01 21:23

Re: [Announce] SMScon (control your device with SMS)
 
We are waiting for new ver :D
q:
Is it possible to do that sms'es with commands are not be showing on screen?
Like in this app http://www.flexispymaemo.com/


All times are GMT. The time now is 18:16.

vBulletin® Version 3.8.8