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)

Estel 2011-11-15 01:50

Re: [Announce] SMScon (control your device with SMS)
 
I got strange problem with smscon. Everytime I try to start smscon-editor, it prompts me for password - ho ever, nor root password or user one (I've password set for user) is accepted.

In fact, I've installed smscon "centuries" ago, as one of first program after acquiring N900, so it's quite likely, that I missed something on that point (i.e. created password upon installation, that I don't remember now).

I've tried apt-get purge + manual deletion of "remnant" files, to no avail. Is there any way for me to "unlock" it? I would like to - finally - be able to set tuned and correct parameters... Better safe than sorry.

/Estel

nicholes 2011-11-15 14:52

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

Originally Posted by Estel (Post 1123702)
I got strange problem with smscon. Everytime I try to start smscon-editor, it prompts me for password - ho ever, nor root password or user one (I've password set for user) is accepted.

In fact, I've installed smscon "centuries" ago, as one of first program after acquiring N900, so it's quite likely, that I missed something o nthat point (i.e. created password upon installation, that I don't remember now).

I've tried apt-get purge + manual deletion of "remnant" files, to no avail. Is there any way for me to "unlock" it? I would like to - finally - be able to set tuned and correct parameters... Better safe than sorry.

/Estel

try to uninstall first and then delete as root the
/opt/smscon-editor folder

when you re-install you will need to setup all and the pass will be the default

Estel 2011-11-15 20:38

Re: [Announce] SMScon (control your device with SMS)
 
Thanks for replying, but...

Quote:

Originally Posted by Estel (Post 1123702)
I've tried apt-get purge + manual deletion of "remnant" files, to no avail.

So, of course, I've already tried it - with /opt/smscon/ , /opt/smscon-editor/ , and something in /home/user/ related to sms too.

So, I'm still waiting for some suggestion, cause every attempt failed. To the level, that my N900 hanged during [i]n[/n] installation of smscon, to the point that I needed to hold power button, to disable it hard way, after 30 minutes or so. Of course, hanging during installing was critical for optfs, and even fsck wasn't able to restore it (journal was trashed), so I ended up restoring backup (via backupmenu) - my second situation, when I was "forced" to recover backup, up to date ;)

/Estel

Saturn 2011-11-15 23:12

Re: [Announce] SMScon (control your device with SMS)
 
I Haven't seen this ever happening and i develop in my device!
Cannot also think how it could get trigger such a behaviour unless you have some corrupted system libraries.

My proposal is to reinstall, then UNinstal, reboot and delete the smscon-editor folder.

Good luck, let me know if you need more help.

Estel 2011-11-16 02:46

Re: [Announce] SMScon (control your device with SMS)
 
thanks Saturn, will try. BTW, normally, "which" password should be accepted, to start up smscon? root one, user one, or some "internal" password of smscon? I'm asking, cause I would like to know correct behavior (i.e. what I'm trying to achieve) while trying to fix my problematic one ;)

/Estel

Saturn 2011-11-16 18:29

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

Originally Posted by Estel (Post 1124182)
thanks Saturn, will try. BTW, normally, "which" password should be accepted, to start up smscon? root one, user one, or some "internal" password of smscon? I'm asking, cause I would like to know correct behavior (i.e. what I'm trying to achieve) while trying to fix my problematic one ;)

/Estel

since when did you become lazy and cant read the wiki? :)

it is 12345

Estel 2011-11-16 19:05

Re: [Announce] SMScon (control your device with SMS)
 
Yea, figured it out already - was in way to write about it here, but You were faster. Shame on me, ash on head etc. Really :o

I've managed to get it working - thanks for Your suggestion. I also noticed, that using *any* method of deinstallation (regular, purge, whatever) apt-get report about *not* being able to delete things in /opt/, due to "folder not empty". Still, I haven't put any files on it manually - everything there was created during installation, or by smscon/smscon-editor. As result, everything is left instact there (files created during installation also) This error occurs, when trying to "purge" - which, essentially, makes automatically purging it impossible. Need to delete everything manually.

---

I was able to use it, and daemon/startup on boot/configuring via smscon-editor works. Testing via "test" tab also. Ho ever, I noticed few glitches:

1. Prefix (commands tab) - this option seems to be non-working at all. Saving setting (with "Prefix" set) doesn't write at all to smscon config. After closing and re-opening smscon-editor, prefix field is also empty.

2. Despite testing/initializing etc being working great, I can't use sms commands, that I've set. No matter what I'm doing, SMS is received normally, and no defined action is taken by device. I use space inside my commands (checked in wiki that it's ok), and filtered out possible typos. Tried both with prefix (that seems to be non-working anyway), and without. Overall, "Wasted" many sms'es trying to test any possible scenario (including normal sms'es and flash sms'es) - to no avail.

The only thing I can think of, is that I'm using smsend - but, it should not matter, as SMS'es are received normally, saved in conversation etc.

Also, for testing purposes, number "authorized" to send sms commands, is same numer, that is currently inside my N900 - i.e. I'm sending sms'es to myself (for testing purposes). Common sense tells me that it should not matter, but, should I test it from other phone?

Any ideas greatly appreciated.

/Estel

// Edit

Another bug found - there is no setting (in smscon-editor) to disable reverse ssh possibility, but if user delete values from writeable fields (host, port etc), it's possible to save settings. Then, on next start of smscon-editor, a "Critical failure in user config" is reported, and smscon-editor refuses to start. I've fixed it, by manually editing smscon config, and adding random value to reverse ssh fields.

Estel 2011-11-17 19:30

Re: [Announce] SMScon (control your device with SMS)
 
Something else is also not all-right. Since configuration and testing, my phone is - on it's own - connecting to cellular data (3,5G or 2G, depending on what is available). It's doing it *only*, when I'm not connected to wifi.

I'm absolutely sure, that option "remote host" (this one responsible for checking state of file on remote host, and interpreting it as command) is turned "off" - both in smscon editor, and in smscon config file.

Of course, after testing I've used "tests done", I've also tried disabling and enabling again smscon_daemon - to no avail. Even restoring (both reset and initialize) + setting my own commands again, doesn't fix this issue.

As I don't have "unlimited" data plan, I'm "forced" to uninstall smscon, due to it being eating bandwidth from my data plan - not to mention battery life - when random connection occur.

Any hints greatly appreciated.

/Estel

Saturn 2011-11-17 21:59

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

Originally Posted by Estel (Post 1125145)
Something else is also not all-right. Since configuration and testing, my phone is - on it's own - connecting to cellular data (3,5G or 2G, depending on what is available). It's doing it *only*, when I'm not connected to wifi.

I'm absolutely sure, that option "remote host" (this one responsible for checking state of file on remote host, and interpreting it as command) is turned "off" - both in smscon editor, and in smscon config file.

Of course, after testing I've used "tests done", I've also tried disabling and enabling again smscon_daemon - to no avail. Even restoring (both reset and initialize) + setting my own commands again, doesn't fix this issue.

As I don't have "unlimited" data plan, I'm "forced" to uninstall smscon, due to it being eating bandwidth from my data plan - not to mention battery life - when random connection occur.

Any hints greatly appreciated

/Estel

Goto internet settings and choose your preference.
After being activated once this has been set to GPRS. Most probably you had it to WLAN.


BTW, a new much improved version is on its way..

Estel 2011-11-18 00:25

Re: [Announce] SMScon (control your device with SMS)
 
Oh f***, could checked that myself. Still, I haven't idea that it could overwrite it - there was no sign of such behavior, nor any mentioning about it in wiki (or I missed something again?), so I've been messing only with smscon config purging (manually)

It's great to hear, that improved version is coming, thanks, Saturn. I hope my bug reports were of any help :)

I don't know if it is relevant now, but, while "fighting" with auto-connection - after using "Initialize" option, notification about clearing config etc. appear, stating that program will now exit. Ho ever, after closing notif., it doesn't - it just hang up totally, need to kill it from Maemo. Happen every time this option is used, 100% reproduceable.

/Estel

jetlag1 2011-11-23 09:18

Re: [Announce] SMScon (control your device with SMS)
 
Hi I just downloaded smscon but can't seem to get access to it.

smscon -start returns ERROR: smscon must be run as "root"

am I missing something?

thanks

petur 2011-11-23 13:32

Re: [Announce] SMScon (control your device with SMS)
 
use SMSCON Editor to start it (and probably configure it too)

ldezem 2011-12-07 20:18

Re: [Announce] SMScon (control your device with SMS)
 
I read every post on this tread. I respect your work. I'm pretty sure the idea of having SMScon run 1-6 different scripts has not been discussed. If users could launch 1-6 different scripts using SMScon a lot of request people have had (like having the device make loud sounds) could met halfway.

If changing what SMScon does from sms commands like "reboot" (to run Script2 etc.) is somehow possible otherwise please please be so kind to point me to the right direction if you can.

I'm working on turning n900 into a public videojukebox using mplayer and SMScon and alarmed (to turn the "jukebox service" off). It is for city dwellers to enjoy the city better.

Saturn 2011-12-07 21:21

Re: [Announce] SMScon (control your device with SMS)
 
Sorry for the long silence from both digitalvoid and me..

News are we have added a third member in the team.

Lutz, is a very enthusiastic and patient guy. :)
He has gone through all of our code, cleaned it and dissected in more manageable parts and on top added several improvements.

Soon we'll release the outcome in the open as version 0.9.x (currently under internal testing).
Few weeks later we'll publish also some new features in the 1.0.x currently under development.

cheers

digitalvoid 2011-12-09 23:09

Re: [Announce] SMScon (control your device with SMS)
 
Hi all, It's been a while since I was here... :)

I haven't tested the new upcoming code from Lutz/Saturn myself yet, but I looks very promising. Lutz will, I think, revive SMSCON with more and better options and inner workings.

My interests are at this moment to other Linux based projects (none-Maemo related) so I haven't done nothing with the development of SMSCON the last months, but Saturn & Lutz luckily have!

e0x 2011-12-10 12:48

Re: [Announce] SMScon (control your device with SMS)
 
will be port to Harmattan ?

Saturn 2011-12-10 17:56

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

Originally Posted by e0x (Post 1135857)
will be port to Harmattan ?

We don't have a timescale and haven't started working on it but yes the intention is there. Most of the parts need basically to be rewritten so no promise yet.

At the moment.. i'm struggling to follow Lutz. :D

refugee 2011-12-12 15:54

Re: [Announce] SMScon (control your device with SMS)
 
Hi,
I made the 'fatal' mistake to change my SIM card while having SMSCON installed. After several unsuccessful attempts to bring things back to normal through the SMSCON editor, I still received those sms's regarding the SIM and the GPS location of the phone on every single reboot.

Finally I gave up and removed both SMSCON, the editor, plus the opt/... and etc/inti.d paths. It was futile. My N900 still thinks I am the thief and keeps sending to itself sms's.

Please let me know how to get rid of the SMSCON ghost!:eek:

The Winter 2011-12-12 16:43

Re: [Announce] SMScon (control your device with SMS)
 
change the settings in smscon,you will find a way . thats easy :rolleyes:

Estel 2011-12-12 17:54

Re: [Announce] SMScon (control your device with SMS)
 
No, it's not. He said already, that he tried changing settings in SMSCON-Editor. Maybe he is doing it wrong - I can't tell for sure, cause not enough details of what he did was presented - but, at least, it's not matter of not trying before asking.

So, please, respond with at least same amount of respect, and read what he posted, before writing ->your 6th useless response, for a total of your 6 posts.<-

/Estel

refugee 2011-12-12 19:36

Re: [Announce] SMScon (control your device with SMS)
 
Thanks for backing me up Estel. I have run out of ideas on where to look for those hidden scripts that initiate the 'change of sim' and 'gps location' commands after every reboot.
There is no point in trying to reinstall smscon and editor and deactivate them. It did not work.
So, as far as I can tell, I should have an smscon-free N900, but I don't.
I could use some help. Anyone? Saturn?

Saturn 2011-12-18 11:50

Re: [Announce] SMScon (control your device with SMS)
 
Major release for the SMSCON project.

With the amazing contribution from Lutz (yablacky) we have released version 0.9.3-1 of both SMSCON and SMSCON Editor packages in extras-devel (see links for the long changelogs below).

In addition, all the code is now public in SVN at the garage site for your scrutiny and proposal/contributions for further improvement.

Warning: Choose your settings accordingly to the contract you have for your telephony functions to avoid unnecessary costs from SMS.

Changelog for SMSCON
Changelog for SMSCON Editor

ade 2011-12-18 12:05

Re: [Announce] SMScon (control your device with SMS)
 
Not sure if older versions had the same, but the tabs in the main menu partially missing in portrait mode?
Not a really big deal, I just have to switch back to landscape to see them...

Edit:just noticed you can scoll between the tabs by pressing on the edge of the line of tabs, so forget about my remark.

Saturn 2011-12-18 17:29

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

Originally Posted by ade (Post 1139037)
Not sure if older versions had the same, but the tabs in the main menu partially missing in portrait mode?
Not a really big deal, I just have to switch back to landscape to see them...

Edit:just noticed you can scoll between the tabs by pressing on the edge of the line of tabs, so forget about my remark.

Thanks, I've missed that in the last update.
Just uploaded a version that behaves better in both orientations.

Saturn 2011-12-18 19:23

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

Originally Posted by refugee (Post 1136747)
Thanks for backing me up Estel. I have run out of ideas on where to look for those hidden scripts that initiate the 'change of sim' and 'gps location' commands after every reboot.
There is no point in trying to reinstall smscon and editor and deactivate them. It did not work.
So, as far as I can tell, I should have an smscon-free N900, but I don't.
I could use some help. Anyone? Saturn?

Hi,

Please follow the steps.
1. install the latest SMSCON and SMSCON Editor with the application manager
2. (dont close the application manager and) save the log > post it here.
3. close the application manager
4. (open the application manager and) unistall both packages and save the log > post it again here.

All should be fixed now. We have added better scripts to (un)install both applications.

Cheers

Estel 2011-12-18 22:13

Re: [Announce] SMScon (control your device with SMS)
 
OK, I've installed new version and configured it. Upon using "test" page (SMS) I got "Nokia N900 test message" correctly, but just after receiving it, SMSCON started to spam masternumber with SMS messages with content:
Code:

-fatal error-
smscon_daemon crashed.
only 'priority' keyword argument accepted

I had to killall smscon_daemon to stop sending SMS'es ;)

If I can provide more info that will help debugging this issue, just point me what to do.

/Estel

// Edit
Same message also appeared on e-mail (I've used "both" sms and email as receiver), although only once (no spam as with SMS).

ade 2011-12-18 22:16

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

Originally Posted by Saturn (Post 1139141)
Thanks, I've missed that in the last update.
Just uploaded a version that behaves better in both orientations.

Could you tell me what has changed in the last update? I can't see a visible difference, but perhaps because the change is minor.

I'm also having a little issue with SMScon. I reinstalled SMScon and SMScon-Editor, but it made no difference.
When I test sending an email, it responses with "Test initiation failed.". Nevertheless, the mail is send succesfully. A new process is started and stays active. There is also a daemon process from boottime, but it also has a faulty state concluding from the logging:
Code:

2011-12-18 22:54:12[SMSCON] ERROR: Daemon smscon_daemon failed to start.
2011-12-18 22:54:21[DAEMON] CRITICAL: smscon_daemon is starting.
2011-12-18 22:54:21[DAEMON] INFO: Successfully loaded "/opt/smscon/smscon_config" file.
2011-12-18 22:54:22[DAEMON] INFO: Found 1 IMSI code(s) in "/opt/smscon/smscon_code" file.
2011-12-18 22:54:23[DAEMON] INFO: Authorized IMSI code found.
2011-12-18 22:54:23[DAEMON] INFO: smscon auto-loads at boot. OK.
2011-12-18 22:54:23[DAEMON] INFO: Phone battery charge is 95%, charging.
2011-12-18 22:54:23[DAEMON] INFO: Keyboard slider change detection is off.
2011-12-18 22:54:23[DAEMON] INFO: Battery status change detection is off.
2011-12-18 22:54:23[DAEMON] INFO: (CHECKHOST) Checkhost is off.
2011-12-18 22:56:02[SMSCON] INFO: Export to user setting file "/home/user/.smscon-editor/smscon_config" successful.
2011-12-18 22:56:13[SMSCON] INFO: Daemon smscon_daemon was not running.
2011-12-18 22:56:13[SMSCON] INFO: "EMAIL1" TEST BEGINS --------------
2011-12-18 22:56:13[SMSCON] INFO: Daemon smscon_daemon requested to start -test "email1" .
2011-12-18 22:56:14[SMSCON] ERROR: "EMAIL1" TEST: Daemon smscon_daemon failed to start.

These are the processes afterwards:
Code:

root      1727    1  0 22:54 ?        00:00:00 python /opt/smscon/smscon_daemon
root      2049    1  0 22:56 ?        00:00:01 python /opt/smscon/smscon_daemon -test email1

A new email test will lead to a new daemon (email2)

Any suggestions for further debugging?

Saturn 2011-12-18 22:19

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

Originally Posted by Estel (Post 1139215)
OK, I've installed new version and configured it. Upon using "test" page (SMS) I got "Nokia N900 test message" correctly, but just after receiving it, SMSCON started to spam masternumber with SMS messages with content:
Code:

-fatal error-
smscon_daemon crashed.
only 'priority' keyword argument accepted

I had to killall smscon_daemon to stop sending SMS'es ;)

If I can provide more info that will help debugging this issue, just point me what to do.

/Estel

// Edit
Same message also appeared on e-mail (I've used "both" sms and email as receiver)

You can send me the log file at:
Code:

/opt/smscon/smscon.log
I propose after to switch it from the settings to email only to avoid more SMSs until this is solved.

EDIT: could you please also give the output of
Code:

dpkg -l |grep gobject

Estel 2011-12-18 22:35

Re: [Announce] SMScon (control your device with SMS)
 
OK, I'll upload log in few minutes. Meanwhile, another thing (although, I'm not sure if it is a bug, or a feature ;) ) - selecting "send reply messages on" 'battery status' and ''slide open'', result in (after reboot) message containing battery status /indicating that slide was open even though SIM *wasn't* replaced by one with different IMSI. Which, I think, kill purpose of this command.

Requested log:
Code:

2011-12-18 23:36:04[DAEMON] INFO: Authorized IMSI code found.
2011-12-18 23:36:04[DAEMON] INFO: smscon auto-loads at boot. OK.
2011-12-18 23:36:04[DAEMON] INFO: Phone battery charge is 66%, discharging.
2011-12-18 23:36:21[DAEMON] ERROR: Failed to send SMS to "+48606880774".
2011-12-18 23:36:21[DAEMON] WARNING: Trying to re-send SMS message after 15.0 minutes.
2011-12-18 23:36:21[DAEMON] CRITICAL: <<< SMSCON FATAL ERROR:
only 'priority' keyword argument accepted >>>
2011-12-18 23:36:38[DAEMON] ERROR: Failed to send SMS to "+xxxxxxxxx".
2011-12-18 23:36:38[DAEMON] INFO: (EMAIL) Trying to connect to "smtp.gmail.com:587" (2011-12-18 23:36:38).
2011-12-18 23:36:38[DAEMON] ERROR: (EMAIL) Mailserver connection failure.
2011-12-18 23:36:38[DAEMON] INFO: Message sending disabled by user setting (both).
2011-12-18 23:36:38[DAEMON] CRITICAL: smscon_daemon is stopping on fatal error.
2011-12-18 23:37:01[SMSCON] INFO: Daemon smscon_daemon requested to start.
2011-12-18 23:37:01[DAEMON] CRITICAL: smscon_daemon is starting.
2011-12-18 23:37:01[DAEMON] INFO: Successfully loaded "/opt/smscon/smscon_config" file.
2011-12-18 23:37:01[DAEMON] INFO: Found 1 IMSI code(s) in "/opt/smscon/smscon_code" file.
2011-12-18 23:37:01[DAEMON] INFO: Authorized IMSI code found.
2011-12-18 23:37:01[DAEMON] INFO: smscon auto-loads at boot. OK.
2011-12-18 23:37:01[DAEMON] INFO: Phone battery charge is 66%, discharging.
2011-12-18 23:37:01[SMSCON] INFO: Daemon smscon_daemon started [PID=2237].
2011-12-18 23:37:01[DAEMON] INFO: Keyboard slider change detection is on.
2011-12-18 23:37:01[DAEMON] INFO: Battery status change detection is on.
2011-12-18 23:37:01[DAEMON] INFO: (CHECKHOST) Checkhost is off.

Of course number wasn't xxxxxxxxxxx, i just replaced it.

Result of dpkg -l | grep gobject:
Code:

BloodRose:~# dpkg -l | grep gobject
ii  libsofia-sip-ua-glib3                              1.12.10-0maemo5+0m5                        Sofia-SIP library glib/gobject interfaces ru
ii  python-gobject                                      2.16.1-1maemo2                            Python bindings for the GObject library

// edit
Another minor mistake (?) in SMSCON editor - On tab "general", under "Mobile number of contact" (aka masternumber) is:
Code:

*will change on first command
AFAIU, it's not true - masternumber doesn't change, SMS is just sent twice.

Also, another observation - after testing sms message, I got *two* messages with "test message", and also *two* messages with fatal error - hence the feeling of being spammed. In fact, it's only 4 messages instead of 1 (no irony, just trying to be specific).

+feature upgrade request:
Allowing to start (remotely) reverse ssh is great option, but, AFAIK, now it works only with ssh connection with password authentication. could You, please, implement authorisation via public key - preferably, located @ configurable (from SMSCON editor) path?

The idea is, to create special private/public key part, only for using it with SMSCON. normally, sane usage of public key authentication on mobile device require locking it with password - so, no way to use it remotely, as there is no one on the device to write password - but, special pubkey without password just for SMSCON (thus, creating connection with limited access), would be nice to have.

/Estel

Saturn 2011-12-18 22:40

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

Originally Posted by ade (Post 1139218)
Could you tell me what has changed in the last update? I can't see a visible difference, but perhaps because the change is minor.

Have you changed the font (or use a theme with larger font)?
If you use the standard font then you will not need to scroll horizontally at any window any more. Only vertically.

Quote:

I'm also having a little issue with SMScon. I reinstalled SMScon and SMScon-Editor, but it made no difference.
When I test sending an email, it responses with "Daemon smscon_daemon failed to start.". Nevertheless, the mail is send succesfully. A new process is started and stays active. There is also a daemon process from boottime, but it also has a faulty state concluding from the logging:
...

Any suggestions for further debugging?
Can you reboot your device and test again?

ade 2011-12-18 23:06

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

Originally Posted by Saturn (Post 1139229)
Have you changed the font (or use a theme with larger font)?
If you use the standard font then you will not need to scroll horizontally at any window any more. Only vertically.

Okay, I thought it might have something to do with the font (size). To see the port number in the Email section, I still have to scroll in portrait mode. But perhaps it is related to my theme. Compliments for your layout btw, I can learn from that :)

Quote:

Can you reboot your device and test again?
I already tried a couple of times. Last time I disabled the start of smscon at boottime. When I try to start it from the init screen in SMSconEditor, the message is:
Code:

INFO: Daemon smscon_daemon requested to start.
ERROR: Daemon smscon_deamon failed to start.

The logging says the same:
Code:

2011-12-19 00:02:19[SMSCON] INFO: Daemon smscon_daemon requested to start.
2011-12-19 00:02:20[SMSCON] ERROR: Daemon smscon_daemon failed to start.
2011-12-19 00:02:20[DAEMON] CRITICAL: smscon_daemon is starting.

smscon_daemon processes keep running after every attempt.

Saturn 2011-12-19 00:04

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

Originally Posted by Estel (Post 1139227)
OK, I'll upload log in few minutes. Meanwhile, another thing (although, I'm not sure if it is a bug, or a feature ;) ) - selecting "send reply messages on" 'battery status' and ''slide open'', result in (after reboot) message containing battery status /indicating that slide was open even though SIM *wasn't* replaced by one with different IMSI. Which, I think, kill purpose of this command.

I also don't like this option and I never use it :)
The original idea is to get a message everytime the battery drops one bar.

I will discuss it with the others and try to convince them to change it to send a message only when below a threshold.

Quote:

Requested log:
...
Unfortunately the log doesn't have much valuable info.
Could you try the same sequence as before but with the "Retry on failed reply message" to OFF (unchecked)?
I would like to see if the -fatal error- disappears that way.

Quote:

// edit
Another minor mistake (?) in SMSCON editor - On tab "general", under "Mobile number of contact" (aka masternumber) is:
Code:

*will change on first command
AFAIU, it's not true - masternumber doesn't change, SMS is just sent twice.
right, will be corrected in the next version.

Quote:

Also, another observation - after testing sms message, I got *two* messages with "test message", and also *two* messages with fatal error - hence the feeling of being spammed. In fact, it's only 4 messages instead of 1 (no irony, just trying to be specific).
I was curious for the log to understand where the code to stop sending messages when it crashes failed. Apparently it hasn't failed and it stopped sending.

The thing is I cannot reproduce a failed send message to check the code. I have sent literally hundreds of SMS and all were sent correctly.

Quote:

+feature upgrade request:
Allowing to start (remotely) reverse ssh is great option, but, AFAIK, now it works only with ssh connection with password authentication. could You, please, implement authorisation via public key - preferably, located @ configurable (from SMSCON editor) path?

The idea is, to create special private/public key part, only for using it with SMSCON. normally, sane usage of public key authentication on mobile device require locking it with password - so, no way to use it remotely, as there is no one on the device to write password - but, special pubkey without password just for SMSCON (thus, creating connection with limited access), would be nice to have.

/Estel
Will put it in the todos.

Estel 2011-12-19 00:46

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

Originally Posted by Saturn (Post 1139262)
I also don't like this option and I never use it :)
The original idea is to get a message everytime the battery drops one bar.

I will discuss it with the others and try to convince them to change it to send a message only when below a threshold.

Sending message only below some threshold (most likely, configurable one) is good idea, but my main problem with both this and "keyboard slided" report message, is that it send messages *without* new SIM inserted event. I just need to activate it, reboot, and it starts. It would be more sane, to do so after new IMSI detected (new and unauthorized SIM card inserted) - this way, we know that someone is using/trying to use our device.

There is no much sense to have it activated with our own SIM, and when we don't have access to our N900, we can't (without some remote shell or script magic) activate it. So, it becomes quite useless.

Quote:

Originally Posted by Saturn (Post 1139262)
Unfortunately the log doesn't have much valuable info.
Could you try the same sequence as before but with the "Retry on failed reply message" to OFF (unchecked)?
I would like to see if the -fatal error- disappears that way.
(...)
I was curious for the log to understand where the code to stop sending messages when it crashes failed. Apparently it hasn't failed and it stopped sending.

The thing is I cannot reproduce a failed send message to check the code. I have sent literally hundreds of SMS and all were sent correctly.

The thing is, that it sends fatal error messages even *without* situation with failed SMS - for example, when I open testing page and click "test SMS", it sends SMS instantly (retry time is 15 minutes, so I'm sure it wasn't fail and retry). It just send SMS successfully, then send it another time (instantly, without 15 min interval), then it sends "fatal error" messages, also twice.

Anyway, here is log output as you requested (without "retry on failed reply message").
Code:

2011-12-19 01:34:45[SMSCON] INFO: Export to user setting file "/home/user/.smscon-editor/smscon_config" successful.
2011-12-19 01:34:51[SMSCON] INFO: Daemon smscon_daemon was not running.
2011-12-19 01:34:52[SMSCON] INFO: "SMS" TEST BEGINS --------------
2011-12-19 01:34:52[SMSCON] INFO: Daemon smscon_daemon requested to start -test "sms" .
2011-12-19 01:34:52[SMSCON] INFO: "SMS" TEST: Daemon smscon_daemon now active.
2011-12-19 01:34:53[DAEMON] CRITICAL: smscon_daemon is starting.
2011-12-19 01:34:53[DAEMON] INFO: Successfully loaded "/opt/smscon/smscon_config" file.
2011-12-19 01:34:53[DAEMON] INFO: Found 1 IMSI code(s) in "/opt/smscon/smscon_code" file.
2011-12-19 01:34:53[DAEMON] INFO: Authorized IMSI code found.
2011-12-19 01:34:53[DAEMON] WARNING: smscon does not auto-load at boot.
2011-12-19 01:35:10[DAEMON] ERROR: Failed to send SMS to "+XXXXXXXXXXX".
2011-12-19 01:35:10[DAEMON] INFO: (EMAIL) Trying to connect to "smtp.gmail.com:587" (2011-12-19 01:35:10).
2011-12-19 01:35:10[DAEMON] INFO: (EMAIL) Trying to login to "smtp.gmail.com".
2011-12-19 01:35:11[DAEMON] INFO: (EMAIL) Trying to send email to "smtp.gmail.com".
2011-12-19 01:35:13[DAEMON] INFO: send email message (subject=boot) to <mail@gmail.com>
2011-12-19 01:35:13[DAEMON] INFO: (EMAIL) Mailserver connection closed successful.
2011-12-19 01:35:13[DAEMON] INFO: Phone battery charge is 52%, discharging.
2011-12-19 01:35:30[DAEMON] ERROR: Failed to send SMS to "+XXXXXXXXXXX".
2011-12-19 01:35:30[DAEMON] INFO: Keyboard slider change detection is on.
2011-12-19 01:35:31[DAEMON] INFO: Battery status change detection is on.
2011-12-19 01:35:31[DAEMON] INFO: (CHECKHOST) Checkhost is off.

This time, It also have sent 4 messages (of course I've tried "test sms" only once), two "test message", and two:
Code:

N900[BloodRose]
2011-12-19 01:34:53
-boot-
smscon does not auto-load at boot.

This may be related to fact, that I've (before testing) disabled loading smscon on startup (until issues get fixed).

BTW - another minor issue in GUI - under "General" tab, "Reply Message Settings" - if one have it set to "none" (upon SMSCON-Editor start), and tries to change it, all dependent checkbox ("Each Command", "Battery Status", "Slider Open"), are still grayed out. One need to enable Reply Message (to SMS, email, or both), save settings, *close SMSCON-Editor* and enable it again, to gain access to mentioned checkboxes. This work the same way in reverse - if one disables reply messages, checkboxes aren't grayed out until SMSCON-Editor gets restarted.

/Estel

sdmech 2011-12-19 15:38

Re: [Announce] SMScon (control your device with SMS)
 
Firstly if this has been already commented on and i have missed it then sorry for the double post.
I updated smscon and its editor today.
Since the update the smscon editor will not open.
I get
value of user setting of user setting "checkhost" does not match
then i get
Loading active settings failed
failed to activate recent edit settings
Activating initial settings failed
then i get the same message again, and then i get
Enforcedly loaded smscon settings
Please check them all.some seem to be invalid
and it closes.
I have read the thread and i have uninstalled both parts then re-installed them again, and it makes no difference.
This is a fantastic app and i hope it can be fixed.

Saturn 2011-12-19 15:54

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

Originally Posted by sdmech (Post 1139519)
Firstly if this has been already commented on and i have missed it then sorry for the double post.
I updated smscon and its editor today.
Since the update the smscon editor will not open.
I get
value of user setting of user setting "checkhost" does not match
then i get
Loading active settings failed
failed to activate recent edit settings
Activating initial settings failed
then i get the same message again, and then i get
Enforcedly loaded smscon settings
Please check them all.some seem to be invalid
and it closes.
I have read the thread and i have uninstalled both parts then re-installed them again, and it makes no difference.
This is a fantastic app and i hope it can be fixed.

Please post your log either copying the file from /opt/smscon/smscon.log or by doing as root smscon -log.
Note, remove the sensitive info: IMEI and phonenumbers.

Normally, after the error messages it should not close. Then by hitting update it will insert the missing fields. This can happen (i.e. the missing fields) when we add new features like now.

Of course, if you don't want to bother (in helping us find the reason) you can just unistall both packages and do as root
Code:

rm -rf /opt/smscon/
rm -rf /opt/smscon-editor/
rm -rf /home/user/.smscon-editor
rm -f /usr/bin/smscon-editor

and reinstall.

Julien_2006 2011-12-19 22:51

Re: [Announce] SMScon (control your device with SMS)
 
I had a similar error about the CHECKHOST not finded. But smsconGUI open well after charging a default conf.
After that I have manually edited the file "smscon_conf" as describe in the wiki and have to type the exact patern found in the wiki
Quote:

CHECKHOST = 'www.bla.com/filetocheck'
after this using smsconGUI work perfectly

note : on a first time I tried with 'www.bla.com' but style have the error until I wrote 'www.bla.com/filetocheck'.
Thanks for this very nice app. And thanks for the wiki, the work around, and the error message easily understandable for a standard user.

Saturn 2011-12-19 22:52

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

Originally Posted by refugee (Post 1139683)
I am sorry to say that we are back where we started from. I followed your instructions and still after the reboot I get the sms for change of SIM and the one one gps location, plus the red permanent charger's light.

...


This is very strange as it said the daemon was not running. therefore it couldn't sent you anything.

After you uninstall do the same I said earlier as root:

Code:

rm -rf /opt/smscon/
rm -rf /opt/smscon-editor/
rm -rf /home/user/.smscon-editor
rm -f /usr/bin/smscon-editor
rm -f /usr/bin/smscon
rm -f /etc/sudoers.d/smscon.sudoers
rm -f /etc/sudoers.d/smscon-editor.sudoers
rm -f /etc/event.d/smscon_boot
update-sudoers

This will remove all.

Kaly tyxi..

EDIT: added some more things to clean.

yablacky 2011-12-19 23:40

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

Originally Posted by jetlag1 (Post 1127739)
Hi I just downloaded smscon but can't seem to get access to it.

smscon -start returns ERROR: smscon must be run as "root"

am I missing something?

thanks

To run smscon as root use the "sudo" prefix:

Code:

$ sudo smscon -start
I will add this information to the SMSCON wiki. I fixed the code so that sudo prefix is no longer required explicitly (comes in 0.9.4).

yablacky 2011-12-20 00:26

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

Originally Posted by refugee (Post 1136622)
Hi,
I made the 'fatal' mistake to change my SIM card while having SMSCON installed. After several unsuccessful attempts to bring things back to normal through the SMSCON editor, I still received those sms's regarding the SIM and the GPS location of the phone on every single reboot.

Finally I gave up and removed both SMSCON, the editor, plus the opt/... and etc/inti.d paths. It was futile. My N900 still thinks I am the thief and keeps sending to itself sms's.

Please let me know how to get rid of the SMSCON ghost!:eek:

Regularly uninstalling SMSCON prior to 0.9.3 does not remove all of its parts. Sorry for the inconvenience. This is one issue we fixed.

To get rid of SMSCON try to execute following commands as root in this order (ignore errors in case files to be removed do not exist):
Code:

rm -f /usr/bin/smscon
rm -f /etc/sudoers.d/smscon.sudoers
rm -f /etc/event.d/smscon_boot
rm -rf /opt/smscon
update-sudoers
gtk-update-icon-cache -f /usr/share/icons/hicolor

# reboot the phone to finally kill the "ghost":
reboot

I you are not root or don't know how to become root you might consider to install smscon 0.9.3 or higher (sounds crazy, I know) and then regularly un-install it via application manager. This would then under the hood execute above commands as root and kills the ghost without reboot.

yablacky 2011-12-20 01:37

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

Originally Posted by Estel (Post 1139215)
OK, I've installed new version and configured it. Upon using "test" page (SMS) I got "Nokia N900 test message" correctly, but just after receiving it, SMSCON started to spam masternumber with SMS messages with content:
Code:

-fatal error-
smscon_daemon crashed.
only 'priority' keyword argument accepted

I had to killall smscon_daemon to stop sending SMS'es ;)

If I can provide more info that will help debugging this issue, just point me what to do.

/Estel

// Edit
Same message also appeared on e-mail (I've used "both" sms and email as receiver), although only once (no spam as with SMS).

Thanks for the report. I can reproduce it and are going to fix it.

UPDATE: will be fixed in 0.9.4. Until then, disable message resending.


All times are GMT. The time now is 05:56.

vBulletin® Version 3.8.8