Notices


Reply
Thread Tools
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#381
Originally Posted by zimon View Post
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.
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#382
Originally Posted by Saturn View Post
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.
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#383
Originally Posted by zimon View Post
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"
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)

Last edited by digitalvoid; 2010-10-11 at 20:02. Reason: added info
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#384
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.
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)
 
Posts: 29 | Thanked: 0 times | Joined on Oct 2010 @ Sweden
#385
Edit: Nevermind
Have fixed it now, and all is working fine...

//Pontus

Last edited by PontusOhman; 2010-10-12 at 16:04.
 
Posts: 463 | Thanked: 103 times | Joined on Jul 2010 @ Mumbai, India
#386
@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?
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#387
== 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.

Last edited by zimon; 2010-10-12 at 19:31.
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#388
@ 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...
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)

Last edited by digitalvoid; 2010-10-12 at 21:04.
 

The Following User Says Thank You to digitalvoid For This Useful Post:
Posts: 37 | Thanked: 6 times | Joined on Mar 2010
#389
Originally Posted by droll View Post
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?
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#390
Originally Posted by Honza. View Post
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.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:54.