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 2011-12-28 12:57

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

Originally Posted by emotion (Post 1142554)
I typed one for one. Is there any solution? Please help me.

I believe you miss-typed one of the last commands and instead of deleting the "/etc/sudoers.d/smscon.sudoers" you deleted "/etc/sudoers" or something like that.

This is major problem. To correct it, it is too much effort and most important requires an advanced expertise level in the operating system.

Similarly to what yablacky said above, I hope you have a recent backup. After the reflash, restore the backup. If this works then you will have many things back.

I suggest you search about putty/ssh and set this up. If you would like to mess with your device it is better to do it from a real keyboard/screen.

yablacky 2011-12-28 13:25

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

if you had ssh/sshd installed before trouble begins and you know your root password then you can try

Code:

$ ssh root@localhost

l_bratch 2011-12-28 15:21

Re: [Announce] SMScon (control your device with SMS)
 
Doing the following tests in SMSCON results an error being SMSed and emailed to me (and the tests do not actually work):

Email
Email with picture
Location
Track ON
Initiate SSH

Other tests (Call, SMS, Execute Script) work fine.

The error is always:

Code:

-fatal error-
smscon_daemon crashed.
need more than 3 values to unpack

Any ideas?

Thanks!

Edit:
All fixed now after doing something unknown. I had already tried re-setting SMSCON and rebooting the device which had not helped, but things are indeed now!

yablacky 2011-12-28 15:42

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

Originally Posted by l_bratch (Post 1142749)
The error is always:

Code:

-fatal error-
smscon_daemon crashed.
need more than 3 values to unpack

Any ideas?

Thanks!

Which version are you using?

l_bratch 2011-12-28 15:46

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

Originally Posted by yablacky (Post 1142755)
Which version are you using?

Sorry, 0.9.8.

fw190 2011-12-28 15:55

Re: [Announce] SMScon (control your device with SMS)
 
I've got a problem. While initialising it hangs. I cant make any tests and even when I reset the settings it keeps sending messages to my default number. How to debug/provide usefull info for you?

Saturn 2011-12-28 16:36

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

Originally Posted by ade (Post 1141725)
...

I have installed bash and gnu tools, maybe that has overwritten the ps symlink, because I am not aware I have replaced ps for a non busybox one.

...

Hi,

Could you please tell me which packages exactly you have installed?

The ps you have is not compatible with iDont's busybox power or the default one. The usual gnu tools they don't replace the default binaries.
Maybe you've added them yourself to $PATH?

We would like to revert the changes done to fix your case because they break SMSCON for those people with the busybox power installed.

Cheers

ade 2011-12-28 17:38

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

Originally Posted by Saturn (Post 1142777)
Hi,

Could you please tell me which packages exactly you have installed?

The ps you have is not compatible with iDont's busybox power or the default one. The usual gnu tools they don't replace the default binaries.
Maybe you've added them yourself to $PATH?

We would like to revert the changes done to fix your case because they break SMSCON for those people with the busybox power installed.

Cheers

Had a look at it. It comes from the package "procps". It is a 'standard' package in the debian world and can be found in the fremantle repo (http://maemo.org/packages/view/procps/)
It provides:
Code:

/bin/kill
/bin/ps
/etc/init.d/procps
/etc/sysctl.conf
/lib/libproc-3.2.7.so
/sbin/sysctl
/usr/bin/free
/usr/bin/pgrep
/usr/bin/pkill
/usr/bin/pmap
/usr/bin/pwdx
/usr/bin/skill
/usr/bin/slabtop
/usr/bin/snice
/usr/bin/tload
/usr/bin/top
/usr/bin/uptime
/usr/bin/vmstat
/usr/bin/w.procps
/usr/bin/watch

I think I installed it a long time ago because I needed vmstat, watch or some other tool. Didn't realize it also replaced ps.

But to be honest I got quite used to this ps. It offers me some parameters I regularly use (and it's compatible with my Linux desktop ps).

It's not always wise to rely on output of tools, because it can change on new releases I know from my own experience. But I also know it is hard to avoid a lot of times.

What is the dilemma you are facing? That there are two different outputs?
Couldn't that be solved by a construction like:
Code:

if /bin/ps = regular file then:
  # expect procps output
if /bin/ps = symlink to busybox then:
  # expect busybox output

Or are matters more complicated? I did not see the particular part of the code.

If it is too complicated, please remove the support for the procps ps tool. Then it is up to me to chose between smscon or procps ps. Now knowing why smscon behaved in that way is already a nice bonus :)

yablacky 2011-12-28 19:03

Re: [Announce] SMScon (control your device with SMS)
 
Hi all,
to fix the ps-problem the next version will call it this way:

$ busybox ps

This (only) assumes that busybox is (still) installed even when other packages set /bin/ps to what ever.

Can everybody readin this please confirm that above command displays PID in 1st column on his/her device?

ade 2011-12-28 19:18

Re: [Announce] SMScon (control your device with SMS)
 
That's an even better solution!

Running the latest busybox beta from iDont:
Code:

BusyBox v1.19.3 (Debian 1.19.3power3~envparser) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ busybox ps
  PID USER      VSZ STAT COMMAND
    1 root      1740 S    /sbin/init


Saturn 2011-12-28 19:34

Re: [Announce] SMScon (control your device with SMS)
 
Release of SMSCON Editor 0.9.8-1 in extras-devel

Changelog:
0.9.8:
NEW: Added several info boxes in the UI to assist the user with the settings choices.
CHANGE: Remove of the "Update Settings" buttons on all windows; settings are updated every time the window is closed.
CHANGE: The Daemon is restarted every time the application closes.
CHANGE: The RESENDTIME and CHECKTIME entry fields are replaced with QDoubleSpinBox type.
CHANGE: Information messages in the banners are not displayed by default.

0.9.7:
NEW: Added fields REMOTELISTENIP, REMOTELISTENPORT, REMOTE2LOCALPORT in SSH config.
NEW: Added r/o field SENDERNUMBER in the General config; shows the last number that requested an action.
NEW: Added field COM_LOG in the Commands config; will reply the smscon.log.
NEW: Added field COM_CUSTOMLOG in the Commands config; will reply the COM_CUSTOM output.
NEW: Added several info boxes to assist the user with the different settings choices.
CHANGE: The settings CHECKTIME, RESENDTIME, GPSTIMEOUT and GPSINTERVAL have been changed from float to int.
CHANGE: The CHECKTIME, RESENDTIME, RESENDMAXTRY, GPSTIMEOUT, GPSPOLLING, REMOTEPORT, REMOTELISTENPORT and REMOTE2LOCALPORT entry fields are replaced with a QSpinBox type.
CHANGE: Make more resilient the discovery if the Daemon is running.

Saturn 2011-12-28 19:37

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

Originally Posted by yablacky (Post 1142833)
Hi all,
to fix the ps-problem the next version will call it this way:

$ busybox ps

This (only) assumes that busybox is (still) installed even when other packages set /bin/ps to what ever.

Can everybody readin this please confirm that above command displays PID in 1st column on his/her device?

Also with BusyBox v1.19.3 (Debian 1.19.3power1) works great.
Excellent solution.

yablacky 2011-12-28 21:35

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

Originally Posted by ade (Post 1142842)
That's an even better solution!

Running the latest busybox beta from iDont:
Code:

BusyBox v1.19.3 (Debian 1.19.3power3~envparser) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ busybox ps
  PID USER      VSZ STAT COMMAND
    1 root      1740 S    /sbin/init


Does your "busybox ps" only show this single process or did you - hopefully - cut away lines of ps-output in your post?

ade 2011-12-28 21:41

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

Originally Posted by yablacky (Post 1142887)
Does your "busybox ps" only show this single process or did you - hopefully - cut away lines of ps-output in your post?

Sorry for the confusion, it showed the total process list, not just the init process.

yablacky 2011-12-28 22:13

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

Originally Posted by l_bratch (Post 1142749)
Doing the following tests in SMSCON results an error being SMSed and emailed to me (and the tests do not actually work):

Email
Email with picture
Location
Track ON
Initiate SSH

Other tests (Call, SMS, Execute Script) work fine.

The error is always:

Code:

-fatal error-
smscon_daemon crashed.
need more than 3 values to unpack

Any ideas?

Thanks!

Edit:
All fixed now after doing something unknown. I had already tried re-setting SMSCON and rebooting the device which had not helped, but things are indeed now!

Thank you for the report. I hopefully found the bug and it will be fixed in next version. It seems to happen if the phone is in transition of GPRS network to WLAN network while executing a smscon-command.

fw190 2011-12-28 22:45

Re: [Announce] SMScon (control your device with SMS)
 
with the latest version I get the error as above: sms_daemon crashed. need more than 3 values. I'm on kp49 and power busy box

yablacky 2011-12-28 22:49

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

Originally Posted by fw190 (Post 1142908)
with the latest version I get the error as above: sms_daemon crashed. need more than 3 values. I'm on kp49 and power busy box

For now I assume its the same as in my last post. So this is probably fixed in next version (if things come not tooo bad, this will be this night :)

fw190 2011-12-28 23:01

Re: [Announce] SMScon (control your device with SMS)
 
1 Attachment(s)
thank you for yours and Saturns work on this. If this is helpful I've attached the error pop up after trying to initialise

Saturn 2011-12-28 23:07

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

Originally Posted by fw190 (Post 1142913)
thank you for yours and Saturns work on this. If this is helpful I've attached the error pop up after trying to initialise

That's the ps errors discussion we had earlier with ade.

yablacky will fix this too!! :)

yablacky 2011-12-28 23:08

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

Originally Posted by fw190 (Post 1142913)
thank you for yours and Saturns work on this. If this is helpful I've attached the error pop up after trying to initialise

Thank you for the report. This is the "ps-command" mess and will be fixed in next version.

yablacky 2011-12-29 02:03

Re: [Announce] SMScon (control your device with SMS)
 
NEW RELEASE OF SMSCON VERSION 0.9.9-1

smscon 0.9.9-1 has been queued for loading into fremantle extras-devel repository

Changes:
  • CHANGE: Deamon does no longer need to restart for switching between test mode and normal operation mode.
  • FIX: Daemon now reads test command requests from a named pipe and works them off sequentially (allows to quickly start several tests in a short time).
  • FIX: Fixed that COM_REMOTEOFF command did not work.
  • FIX: Fixed daemon crash ("need more than 3 values to unpack")
  • FIX (AGAIN): Force using busybox ps-command to ensure that process information like PID is at expected place.

bvaibhav 2011-12-29 03:35

Re: [Announce] SMScon (control your device with SMS)
 
I have observed that if the master no and the last sender no is same, the application sends 2 sms to the same number. Can you please confirm whether this is bug or its only me that is facing this issue.

Also the commands received by sms are seen in conversations, i.e. they are not hidden. So in case if my n900 gets stolen and I send commands like Trackon, Call etc... the thief will come to know that a mobile tracking app is installed and will try to remove it.

yablacky 2011-12-29 09:40

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

Originally Posted by fw190 (Post 1142764)
I've got a problem. While initialising it hangs. I cant make any tests and even when I reset the settings it keeps sending messages to my default number. How to debug/provide usefull info for you?

Bug (hanging on initialisation) confirmed. Happens in editor version 0.9.8 as well. I guess Saturn will take a look :)

I will look for keep sending sms problem.

yablacky 2011-12-29 09:52

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

Originally Posted by bvaibhav (Post 1142980)
I have observed that if the master no and the last sender no is same, the application sends 2 sms to the same number. Can you please confirm whether this is bug or its only me that is facing this issue.

...

Are the two sms completely identically? This should not happen. But if the 1st sms is a command-receive acknowledge and the 2nd sms contains the answer of the command, then this is by design. You can disable the 1st one in General settings.

l_bratch 2011-12-29 12:25

Re: [Announce] SMScon (control your device with SMS)
 
Since 0.9.9, COM_REMOTEON and COM_CAMERA don't seem to work.

In both cases, the command shows up in smscon -log, does not work, and stops SMScon from processing further commands until sms -restart is issued.

COM_REMOTEON does not connect and there are no failed login attempts visible on server side either.

COM_CAMERA appears to nothing, unless after starting smscon in the terminal, in which case the following is output:

Code:

ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 214, in
maybe_handle_message
    self._handler(*args, **kwargs)
  File "/opt/smscon/smscon_service.py", line 157, in OnSmsReceived
  File "/opt/smscon/smscon_service.py", line 591, in ProcessCommand
  File "/opt/smscon/smscon_service.py", line 1029, in
SetNetworkConnectionType
  File "/opt/smscon/smscon_service.py", line 1086, in GetGPRSname
TypeError: can only concatenate tuple (not "list") to tuple


bvaibhav 2011-12-29 12:26

Re: [Announce] SMScon (control your device with SMS)
 
Yes both the messages are identical and it happens when I enter wrong password or change the password. Havent yet checked for command response/acknowledgement.

yablacky 2011-12-29 16:00

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

Originally Posted by bvaibhav (Post 1143101)
Yes both the messages are identical and it happens when I enter wrong password or change the password. Havent yet checked for command response/acknowledgement.

This is really strange because both, the on-wrong-pasword-sms and the password-got-changed-sms are only and explicitly sent to the masternumber (if one is defined - which is not the case on initial use).

Are other sms notifications (when initiated by you through sms-commands from master phone number) also sent twice?

yablacky 2011-12-29 16:03

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

Originally Posted by l_bratch (Post 1143100)
Since 0.9.9, COM_REMOTEON and COM_CAMERA don't seem to work.
...

Sorry, at least the crash should be fixed now. This is major problem, so I release the fix asap. Thank your for the report.

yablacky 2011-12-29 16:28

Re: [Announce] SMScon (control your device with SMS)
 
The last reported crash makes me release asap:

NEW RELEASE SMSCON 0.9.10-1 AVAILABLE soon.

smscon 0.9.10-1 has been queued for loading into fremantle extras-devel repository

Changes:
  • FIX: If called in user mode (without sudo), prevent -export or -export! option to create/write files that user has no permission to create or write and further make user owner of the target file.
  • FIX: Fixed crash: TypeError: can only concatenate tuple (not "list") to tuple (sorry for that mistake...)

yablacky 2011-12-29 22:36

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

NEW RELEASE SMSCON 0.9.11-2 AVAILABLE soon.

smscon 0.9.11-2 has been queued for loading into fremantle extras-devel repository

Changes:
  • FIX: Fixed repeated resending of sms or email in almost zero-time intervals in case resend-time interval was configured to less than 1 minute.
  • ADD: Anonymized log files. Can be used to post logs in bug reports etc. Works like this:

    Logfile shown by command "smscon -log" is now anonymized by default (phone numbers, host names, IP-addresses)

    IMPORTANT NOTE(1):
    Anonymizing takes place with ABSOLUTELY NO guarantee!

    IMPORTANT NOTE(2):
    It is NOT A BUG if there is too much or "wrong" anonymizing.
  • If new option "-pw password" was seen on command line before -log, then logfile is shown un-anonymized as before. The master number is the password.

    And of course a super user has not limits anyway.
  • CHANGE: Logfile is no longer readable by normal user.
  • FIX(MINOR): Fixed typos and added more comments.

Some OFF TOPIC statements:

Thank you to all who were helping to make this app better by providing bug reports and ideas. :) :)

Tomorrow I will go skiing in switzerland for about 10 days and my online presence will be rare...

See you next year.

-- yablack

Saturn 2011-12-29 22:41

Re: [Announce] SMScon (control your device with SMS)
 
Release of SMSCON Editor 0.9.9-1 in extras-devel

Changelog:

NEW: Added in the test window a stop button for the Reverse SSH Connection.
NEW: Added more explanation/info boxes.
FIX: On closing the application the daemon is restarted only if it was running. Otherwise it leaves it off.
FIX: On the Initialise window the Init button was freezing the application instead of closing.
CHANGE: Several UI modifications.
CHANGE: Dependency to SMSCON was raised to 0.9.9-1 or higher.

Estel 2011-12-29 22:50

Re: [Announce] SMScon (control your device with SMS)
 
Thanks for this shower of updates, and have a nice new year (and skiing yablacky :) )! Can't wait to test them.

miroslav_s 2012-01-01 18:43

Re: [Announce] SMScon (control your device with SMS)
 
Hi,
perhaps a stupid question but...:
I was trying to set up my SMSCon and I am having problem with the email setting because when I do the test the phone does not send any email, cause I have not received any from the phone, so I guess my email setting is wrong. My question: what is the emailserver is to be put? Is it incoming (Hotmail Incoming Mail Server (POP3) - pop3.live.com, mail server port: 995) or outgoing ( Hotmail Outgoing Mail Server (SMTP) - smtp.live.com, port 587).I tried both of them but with no luck.
Thanks in advance!
Best regards,
M

Estel 2012-01-01 22:12

Re: [Announce] SMScon (control your device with SMS)
 
Definitely outgoing one. I'm using it with gmail, and it works flawlessly. Get sure that there are no typos, and if hotmail haven't changed ports.

/Estel

Saturn 2012-01-01 22:35

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

Originally Posted by miroslav_s (Post 1144254)
Hi,
perhaps a stupid question but...:
I was trying to set up my SMSCon and I am having problem with the email setting because when I do the test the phone does not send any email, cause I have not received any from the phone, so I guess my email setting is wrong. My question: what is the emailserver is to be put? Is it incoming (Hotmail Incoming Mail Server (POP3) - pop3.live.com, mail server port: 995) or outgoing ( Hotmail Outgoing Mail Server (SMTP) - smtp.live.com, port 587).I tried both of them but with no luck.
Thanks in advance!
Best regards,
M

It's outgoing but noone has reported working for him with something other than gmail.

Please let us know what settings you have used if successful or the messages in the log.

Good luck.

Saturn 2012-01-01 22:57

Re: [Announce] SMScon (control your device with SMS)
 
Happy New Year to all!!!

Basically I hated the previous ui changes and the white boxes. So here is a release to fix all that..


Release of SMSCON Editor 0.9.10-1 in extras-devel

Changelog:
  • CHANGE: Several UI modifications (aka beautifications): changed the appearence of the info boxes; set calibri as the global font.
  • FIX: Removed actions for when closing the application; normal and test modes are unified in latest SMSCON - a restart might cause loss of a pending action/test.

miroslav_s 2012-01-01 23:39

Re: [Announce] SMScon (control your device with SMS)
 
Hi Saturn,
you were right about hotmail. Tried with outgoing smtp.live.com port 587 but with no luck. With gmail it worked. BUT: I tried sending email with picture and I received email but with no picture, the space that should show picture is grey. How to fix that?
best regards and thanks in advance.
And of course Happy New Year!

Estel 2012-01-02 01:30

Re: [Announce] SMScon (control your device with SMS)
 
As for mail with picture from front camera - I noticed this bug as well, but forget to report it (it was during 1st bug reporting campaing for SMSCON).

In fact, it is't just "gray space". I've tested it many times, and it *does* contain some... things? that resemble lines of my face. Sometimes. So, it is somehow related to data from camera sensor. But, it is indeed gray, and it have nothing to do with bad light conditions etc. It seems that creating image (for sending in mail) from front camera, by SMSCON is incorrectly implemented - at least for test mode.

Also, it is 100% reproducible, in my case.

/Estel

Saturn 2012-01-02 02:03

Re: [Announce] SMScon (control your device with SMS)
 
I'm sorry this has been discussed in excess and many intelligent people have tried to solve it. There are also parallel threads that others experimented with this camera, but nothing came out in the end/yet.

At the moment this is considered a limitation of the front camera.
If you are in daylight and with plenty of light, you can get a greenish picture. In all other cases it is unusable.

If you want to test, take a picture of a light bulb.

Estel 2012-01-02 02:52

Re: [Announce] SMScon (control your device with SMS)
 
Thanks for info. It's quite strange, cause if I use camera-ui (from CSSU) in front-camera mode, resulting picture is ok. Same apply for Smartcam using front camera to transmit video over network, to my desktop (allowing to use N900 front and back camera as... well, camera, for both Linux and windows applications like VoIP or goddamned Skype).

Photo took in exact same conditions using SMSCON are gray/green/addict dream or, most of the time, just plain unusable. So, it seems that somehow it's related to method (command?) of taking picture. Maybe reverse-engineering camera-ui Open source version code (related to capturing photos in font camera mode) can bring solution?

If no, I'm out of ideas - unfortunately, as I'm pretty sure it is *not* hardware limitation. The front camera isn't producing good quality pictures, and can be quit terrible in non-optimal lighting conditions, but it is not *that* bad.

/Estel


All times are GMT. The time now is 04:25.

vBulletin® Version 3.8.8