Notices


Reply
Thread Tools
Posts: 1,100 | Thanked: 2,797 times | Joined on Apr 2011 @ Netherlands
#871
Originally Posted by Saturn View Post
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

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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#872
Originally Posted by Estel View Post
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.

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.

// 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.

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.

+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.

Last edited by Saturn; 2011-12-19 at 00:09.
 

The Following User Says Thank You to Saturn For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#873
Originally Posted by Saturn View Post
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.

Originally Posted by Saturn View Post
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
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Posts: 2 | Thanked: 4 times | Joined on Dec 2011
#874
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.
 

The Following User Says Thank You to sdmech For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#875
Originally Posted by sdmech View Post
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.

Last edited by Saturn; 2011-12-19 at 15:59.
 

The Following 2 Users Say Thank You to Saturn For This Useful Post:
Posts: 27 | Thanked: 12 times | Joined on Sep 2010 @ Paris
#876
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
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.
 

The Following User Says Thank You to Julien_2006 For This Useful Post:
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#877
Originally Posted by refugee View Post
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.

Last edited by Saturn; 2011-12-19 at 23:39.
 

The Following User Says Thank You to Saturn For This Useful Post:
Posts: 155 | Thanked: 315 times | Joined on Jun 2010 @ DE
#878
Originally Posted by jetlag1 View Post
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).
 

The Following 2 Users Say Thank You to yablacky For This Useful Post:
Posts: 155 | Thanked: 315 times | Joined on Jun 2010 @ DE
#879
Originally Posted by refugee View Post
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!
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.
 

The Following 2 Users Say Thank You to yablacky For This Useful Post:
Posts: 155 | Thanked: 315 times | Joined on Jun 2010 @ DE
#880
Originally Posted by Estel View Post
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.

Last edited by yablacky; 2011-12-20 at 02:59.
 

The Following 3 Users Say Thank You to yablacky For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:53.