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)

Saturn 2010-10-11 13:49

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

Originally Posted by zimon (Post 838377)
From: http://wiki.maemo.org/SMSCON#Commands

Haven't tested this (all these should be testable from SMSCON-Editor IMO), but I guess it sends only the latest IMSI-code back?
It wouldn't hurt to send ALL IMSI-codes it finds somehow (from gconf IAPs for example) in time decending order, as much what can be fit to 160 (SMS) characters at least.
Also, why not getting back all WLAN-MACs it finds from gconf with some SMSCON command.

The purpose of the tests in the editor, is to check that the settings the user has added work. It is not designed as a tester for the SMSCON daemon.
We want to make sure that the number, mail, passwords are somehow correct and the service can use them.

zimon 2010-10-11 15:23

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

Originally Posted by Saturn (Post 838393)
The purpose of the tests in the editor, is to check that the settings the user has added work. It is not designed as a tester for the SMSCON daemon.
We want to make sure that the number, mail, passwords are somehow correct and the service can use them.

Ok. What is the reasoning not to use smscon_daemon's functions to send really the same messages it would send in the real situation? That way also that part of the code would be tested more often.

digitalvoid 2010-10-11 15:37

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

Originally Posted by zimon (Post 838461)
Ok. What is the reasoning not to use smscon_daemon's functions to send really the same messages it would send in the real situation? That way also that part of the code would be tested more often.

This is possible but only from command-line (in v0.5-6 & higher). I used it for my own development purposes. It's only for internal testing & debugging of SMSCON!

To simulate a received message:

Code:

smscon -test2 "<SMSCON command>"
Example:
Code:

Nokia-N900:~# smscon -test2 "Location"

digitalvoid 2010-10-11 18:07

Re: [Announce] SMScon (control your device with SMS)
 
Version update to 0.5-7.

Changelog:

0.5-7
  • FIX: activation of the current active/available GPRS connection could fail in specific cases (bug in acquiring the connection name).
  • FIX: better logging/behaviour when locking/unlocking of device.

PontusOhman 2010-10-12 11:01

Re: [Announce] SMScon (control your device with SMS)
 
Edit: Nevermind :)
Have fixed it now, and all is working fine...

//Pontus

funkmunk 2010-10-12 19:13

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

I tried sending a test email from the SMSCon Editor Test tab and also an email with a picture taken from the front camera to my gmail inbox but I did not receive any of those two mails yet so far.

However while testing SMSCon Editor settings I did get a mail informing me about the GPS co-ordinates on my gmail inbox.

Why is it that I did not get the other two mails then?

zimon 2010-10-12 19:13

Re: [Announce] SMScon (control your device with SMS)
 
== smscon v0.5-7 - Nokia N900 remote control utility ==

I still have this problem, that from SMSCON-Editor the simple test mail or test mail with the picture (front camera) works, but Location test mail does not work. Somehow or something it is doing differently in latter case.

Code:

SMSCON INFO: "GPS1" TEST: smscon_daemon active (12-10-2010 21:39:03)
DAEMON INFO: successfully loaded "smscon_config" file
DAEMON INFO: COM_CALL          = [Call]
DAEMON INFO: COM_CAMERA        = [Camera]
DAEMON INFO: COM_CHECK        = [Check]
DAEMON INFO: COM_LOCATION      = [Location]
DAEMON INFO: COM_LOCK          = [Lock]
DAEMON INFO: COM_POWER        = [Power]
DAEMON INFO: COM_POWEROFF      = [Poweroff]
DAEMON INFO: COM_REBOOT        = [Reboot]
DAEMON INFO: COM_REMOTEOFF    = [Remoteoff]
DAEMON INFO: COM_REMOTEON      = [Remoteon]
DAEMON INFO: COM_TRACKOFF      = [Trackoff]
DAEMON INFO: COM_TRACKON      = [Trackon]
DAEMON INFO: COM_UNLOCK        = [Unlock]
DAEMON INFO: reading valid IMSI code (xxxxxxx) from smscon_code file
DAEMON INFO: authorized IMSI code found
DAEMON INFO: smscon auto-loads at boot
DAEMON INFO: stored current GPRS network (OPERATOR WAP 2.0)
DAEMON INFO: GPRS network (OPERATOR WAP 2.0) already connected
DAEMON INFO: internet connection behaviour already set to "GPRS"
DAEMON INFO: starting GPS device in location mode
DAEMON INFO: waiting for valid GPS coordinate (search time = 0.6 sec.)
DAEMON INFO: waiting for valid GPS coordinate (search time = 1.9 sec.)
DAEMON INFO: waiting for valid GPS coordinate (search time = 2.9 sec.)
DAEMON INFO: waiting for valid GPS coordinate (search time = 6.0 sec.)
DAEMON INFO: start collecting GPS coordinates
DAEMON INFO: GPS coordinate acquired (#1, xx.183685, xx.955589, 320.5 m.)
DAEMON INFO: GPS coordinate acquired (#2, xx.183507, xx.954971, 72.1 m.)
DAEMON INFO: most accurate GPS coordinate (xx.183507, xx.954971, 72.1 m.)
DAEMON INFO: created GPS coordinate map
DAEMON INFO: (EMAIL) trying to connect to "smtp.xxxxxx.xxx"
DAEMON ERROR: (EMAIL) mailserver connection failure
DAEMON INFO: restoring saved GPRS network (OPERATOR WAP 2.0)
DAEMON INFO: GPRS network (OPERATOR WAP 2.0) already connected
DAEMON INFO: smscon_daemon has stopped
SMSCON INFO: "EMAIL1" TEST: smscon_daemon active (12-10-2010 21:41:14)
DAEMON INFO: successfully loaded "smscon_config" file
DAEMON INFO: COM_CALL          = [Call]
DAEMON INFO: COM_CAMERA        = [Camera]
DAEMON INFO: COM_CHECK        = [Check]
DAEMON INFO: COM_LOCATION      = [Location]
DAEMON INFO: COM_LOCK          = [Lock]
DAEMON INFO: COM_POWER        = [Power]
DAEMON INFO: COM_POWEROFF      = [Poweroff]
DAEMON INFO: COM_REBOOT        = [Reboot]
DAEMON INFO: COM_REMOTEOFF    = [Remoteoff]
DAEMON INFO: COM_REMOTEON      = [Remoteon]
DAEMON INFO: COM_TRACKOFF      = [Trackoff]
DAEMON INFO: COM_TRACKON      = [Trackon]
DAEMON INFO: COM_UNLOCK        = [Unlock]
DAEMON INFO: reading valid IMSI code (xxxxxx) from smscon_code file
DAEMON INFO: authorized IMSI code found
DAEMON INFO: smscon auto-loads at boot
DAEMON INFO: stored current GPRS network (OPERATOR WAP 2.0)
DAEMON INFO: GPRS network (OPERATOR WAP 2.0) already connected
DAEMON INFO: internet connection behaviour already set to "GPRS"
DAEMON INFO: (EMAIL) trying to connect to "smtp.xxxxxx.xxx"
DAEMON INFO: (EMAIL) trying to send email to "smtp.xxxxxx.xxx"
DAEMON INFO: send test email message to "zimon@xxxx"
DAEMON INFO: (EMAIL) mailserver connection closed
DAEMON INFO: restoring saved GPRS network (OPERATOR WAP 2.0)
DAEMON INFO: GPRS network (OPERATOR WAP 2.0) already connected
DAEMON INFO: internet connection behaviour not used
DAEMON INFO: smscon_daemon has stopped
SMSCON INFO: "GPS1" TEST: smscon_daemon active (12-10-2010 21:46:13)
DAEMON INFO: successfully loaded "smscon_config" file
DAEMON INFO: COM_CALL          = [Call]
DAEMON INFO: COM_CAMERA        = [Camera]
DAEMON INFO: COM_CHECK        = [Check]
DAEMON INFO: COM_LOCATION      = [Location]
DAEMON INFO: COM_LOCK          = [Lock]
DAEMON INFO: COM_POWER        = [Power]
DAEMON INFO: COM_POWEROFF      = [Poweroff]
DAEMON INFO: COM_REBOOT        = [Reboot]
DAEMON INFO: COM_REMOTEOFF    = [Remoteoff]
DAEMON INFO: COM_REMOTEON      = [Remoteon]
DAEMON INFO: COM_TRACKOFF      = [Trackoff]
DAEMON INFO: COM_TRACKON      = [Trackon]
DAEMON INFO: COM_UNLOCK        = [Unlock]
DAEMON INFO: reading valid IMSI code (xxxxxxx) from smscon_code file
DAEMON INFO: authorized IMSI code found
DAEMON INFO: smscon auto-loads at boot
DAEMON INFO: stored current GPRS network (OPERATOR WAP 2.0)
DAEMON INFO: GPRS network (OPERATOR WAP 2.0) already connected
DAEMON INFO: internet connection behaviour already set to "GPRS"
DAEMON INFO: starting GPS device in location mode
DAEMON INFO: waiting for valid GPS coordinate (search time = 0.5 sec.)
DAEMON INFO: waiting for valid GPS coordinate (search time = 1.9 sec.)
DAEMON INFO: start collecting GPS coordinates
DAEMON INFO: GPS coordinate acquired (#1, xx.183400, xx.954845, 132.2 m.)
DAEMON INFO: GPS coordinate acquired (#2, xx.183566, xx.954883, 136.4 m.)
DAEMON INFO: most accurate GPS coordinate (xx.183400, xx.954845, 132.2 m.)
DAEMON INFO: created GPS coordinate map
DAEMON INFO: (EMAIL) trying to connect to "smtp.xxxxxx.xxx"
DAEMON INFO: (EMAIL) trying to send email to "smtp.xxxxxx.xxx"
DAEMON INFO: send email GPS coordinate map to "zimon@xxxx"
DAEMON INFO: (EMAIL) mailserver connection closed
DAEMON INFO: restoring saved GPRS network (OPERATOR WAP 2.0)
DAEMON INFO: GPRS network (OPERATOR WAP 2.0) already connected
DAEMON INFO: smscon_daemon has stopped

The normal test email came OK, the Location test email(s) never came.

It is funny, I have exactly opposite results as the previous poster.

Edit:
And once again, I am sure I do not have "OPERATOR WAP 2.0" IAP in use. Haven't used it since...a month ago. I have the normal full access "OPERATOR Internet" IAP in use almost always and also currently. If I go to Status area, where it shows what Internet-connection IAP is in use (and where you could change it), it says "OPERATOR Internet".

So when it says "GPRS network (OPERATOR WAP 2.0) already connected", it is not true. The program should get the right in use IAP from somewhere else than it gets it now from.

digitalvoid 2010-10-12 21:01

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

Have you looked at the log of smscon (/tmp/smscon.log)?

Can you send me the log or post it here?


@ zimon:

I will send you tomorow a test pre-release for you to evaluate (0.5-8).

Some changes in the detecting of the networks. Maybe this will solve the problem...

Honza. 2010-10-13 08:48

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

Originally Posted by droll (Post 792751)
wow, not bad. i would guess it would also come in useful when you leave your phone at home. sms it to ask for missed calls, unread sms-es...etc.

Yes, this can be really usefull! Is it possible with current version?

zimon 2010-10-13 12:24

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

Originally Posted by Honza. (Post 839913)
Yes, this can be really usefull! Is it possible with current version?

No, unless you do it by first asking ssh tunnel to the device with REMOTEON command and then doing those queries somehow in command line interface (CLI).....or make an another tunnel (2) for VNC and launch a vnc-server on the N900 side through the first ssh-tunnel.

SMSCON could have this kind of command also, VNCON, which would do the ssh-tunnel as with REMOTEON but first would start the vnc-server and make a same time ssh-tunnels for ssh and vnc.
I am not sure if ssh-client in N900 is cabable creating two tunnels at the same time with two ssh -R -options.

This kind of VNCON-command would not be so useful when the phone is stolen though.


All times are GMT. The time now is 02:10.

vBulletin® Version 3.8.8