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)

knypek3 2010-09-12 11:07

Re: [Announce] SMScon (control your device with SMS)
 
Sorry, everything isn't working :/
it's stupid - i create a config using editor and when i reboot n900
and typ in xterm smscon -config - the file don't have my data!
There are xxxxx everywhere :/ WTF?!

Saturn 2010-09-12 11:37

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

Originally Posted by knypek3 (Post 814010)
Sorry, everything isn't working :/
it's stupid - i create a config using editor and when i reboot n900
and typ in xterm smscon -config - the file don't have my data!
There are xxxxx everywhere :/ WTF?!

Hi,
where did you see the command smscon -config?
please read the wiki page for the available commands.

Beware that you should not try to edit the file from the editor and manually and that the command smscon -init rewrites the config file with the default.

If you still have problems do the following:
Code:

root
smscon -stop
smscon -unboot
apt-get remove --purge smscon smscon_editor
exit

then install again the latest versions and use the editor to edit the config file.

knypek3 2010-09-12 11:58

Re: [Announce] SMScon (control your device with SMS)
 
I delete and uninstall everything smscon smcon editor smscon configuration
smscon logs
apt-get remove --purge smscon smscon_editor
everything

Than open on n900 site smscon.garage.maemo.org
Install smscon newest ver.
install smscon editor newest version.
go to opt/smscon_editor/smscon_editor.py
Set everything, and set autoload on boot and start smscon than i
Reboot phone
Than in xterm i type
root
smscon -status

and what?
replay is:
smscon_daemon is off
I do everything what i should but it still don't working :/

ps. There is an option in smscon - config - to show config
i try it and i see that is empty - everywhere are xxxxxx.
ehh

Edit:
I found the bug.
smscon editor don't save a smscon_config to usr/bin but to /home/user.
When i delete smscon_config from home/user and create new using smscon_editor it save it only to home/user but not to usr/bin.

Saturn 2010-09-12 12:08

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

Do you open the editor as root from xterm? This is not anymore needed (version >0.4.3-6). (I will put a check in the next release to forbit that.)
You can open directly from the applications menu.

knypek3 2010-09-12 12:11

Re: [Announce] SMScon (control your device with SMS)
 
Edit:
I found the bug.
smscon editor don't save a smscon_config to usr/bin but to /home/user.
When i delete smscon_config from home/user and create new using smscon_editor it save it only to home/user but not to usr/bin.

@ Saturn
yes i opened it as root :/ ;p
i can't open it from menu - window disappear...

Saturn 2010-09-12 12:23

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

Originally Posted by knypek3 (Post 814063)
Edit:
I found the bug.
smscon editor don't save a smscon_config to usr/bin but to /home/user.
When i delete smscon_config from home/user and create new using smscon_editor it save it only to home/user but not to usr/bin.

That's not a bug. That is how it should work. The files in /home/user are temporarily storage to avoid messing the config used. When the edit completes it replaces the live one.

Quote:

Originally Posted by knypek3 (Post 814063)
@ Saturn
yes i opened it as root :/ ;p
i can't open it from menu - window disappear...

Try to open it from xterm as user (don't become root) by
Code:

/opt/smscon_editor/smscon_editor.py
and let me know if you see any messages. Maybe some dependency is missing.

Give me also the output of:
Code:

ls -al /opt/smscon_editor/

knypek3 2010-09-12 12:39

Re: [Announce] SMScon (control your device with SMS)
 
I can run it not as root.
command /opt/smscon_editor/smscon_editor.py open smscon_editor
in xterm i don't have any errors

Code:

$ ls -al /opt/smscon_editor/
total 128
drwxr-xr-x  2 root root  4096 2010-09-12 13:48 .
drwxr-xr-x 33 root root  4096 2010-09-12 13:47 ..
-rwxr-xr-x  1 root root 20608 2010-09-12 12:27 smscon_editor.py
-rw-rw-rw-  1 user root 58320 2010-09-12 12:27 smscon_gui_elements.py
-rw-r--r--  1 root root 29166 2010-09-12 13:48 smscon_gui_elements.pyo

bad chmod?

Saturn 2010-09-12 12:52

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

No it's not bad. Some small problem as you started it once as root.
Do the following to correct:

Code:

root
rm /opt/smscon_editor/smscon_gui_elements.pyo

Try to open after that from the application menu.
if it doesn't work show me again the ls output.

knypek3 2010-09-12 13:18

Re: [Announce] SMScon (control your device with SMS)
 
I remove it.
I try to open it from menu
window disappera again
ls output
Code:

$ ls -al /opt/smscon_editor/
total 96
drwxr-xr-x  2 root root  4096 2010-09-12 15:15 .
drwxr-xr-x 33 root root  4096 2010-09-12 13:47 ..
-rwxr-xr-x  1 root root 20608 2010-09-12 12:27 smscon_editor.py
-rw-rw-rw-  1 user root 58320 2010-09-12 12:27 smscon_gui_elements.py


onasre 2010-09-12 13:48

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

i tried it , i inserted new Sim Card and tested and then i recived a message with the new Sim info ..

My quastion is if i want to lock or turn off the phone by sending SMS from another phone , what is the command line or wht do i need to write in the message .

thx

Abemelek 2010-09-12 13:52

Re: [Announce] SMScon (control your device with SMS)
 
Please read the wiki
http://wiki.maemo.org/SMSCON

onasre 2010-09-12 14:04

Re: [Announce] SMScon (control your device with SMS)
 
i did , and i tried to send an sms message from another phone with this command .

COM_POWEROFF = 'Poweroff'

Sent to my n900 and just recived the message and nothing happened

Saturn 2010-09-12 14:57

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

Originally Posted by onasre (Post 814126)
i did , and i tried to send an sms message from another phone with this command .

COM_POWEROFF = 'Poweroff'

Sent to my n900 and just recived the message and nothing happened

Just send "Poweroff" (without the quotes). If you need something else you can rename this command using the editor or editing the config file.

knypek3 2010-09-12 15:08

Re: [Announce] SMScon (control your device with SMS)
 
@ Saturn, digitalvoid
Can you help me?
Why it isn't working for me?
http://talk.maemo.org/showpost.php?p...&postcount=170

Saturn 2010-09-12 16:05

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

Originally Posted by knypek3 (Post 814158)
@ Saturn, digitalvoid
Can you help me?
Why it isn't working for me?
http://talk.maemo.org/showpost.php?p...&postcount=170

Haven't forgotten you, but I'm out of ideas for the moment. I'll make a new release later with some more protections and i'll send you instructions to do a complete wipeout of settings and files. Maybe you have some leftovers from older versions.

I got the following mail with questions and I think it's better to answer here:
Quote:

I apologize for asking stupid questions. I guess the Wiki isn't too clear, cause I have read the wiki and tried to make sense of it all. What follows may be answered already, I am just not clear, so pardon me if they have been answered. I haven't been able to test this because I only have one phone.
Quote:

I got the impression from looking through the configuration file that only one phone number could send SMS messages to smscon and that smscon would only reply to that number. So, whatever phone sends the message will get the reply from the n900?
The default number you'll configure is the number that it will receive an sms if the SIM gets echanged.
It will also get replaced with a new number when a phone requests a command to be executed.

Quote:

I have also read the wiki and it wasn't really clear about what would trigger smscon. So if anyone was to send me a message with one of the commands in it they would be able to control it? Isn't there some form of password protection / code words that will trigger smscon_d?
In short yes. If a valid command arrives (valid commands are defined in the config file) will control your phone.
The protection you have is that you can rename the commands with you own (and secret) phrases/words.

Quote:

I would like to be able to do both simultaneously: email and sms replies.
that's a feature request; I will pass it to digitalvoid for consideration.

Quote:

Device lock. I'm not sure from what I am reading what lock is and how one unlocks the phone. Is that just a lock screen meaning the user just has to swip screen to unlock or is it a password or a sim lock?
It triggers the phone lock and it is resilient to reflashes. You need to change it from the default (12345) in the settings menu > Device Lock.

Quote:

reset. I am not sure about the factory default. What does this do? Does it reset the phone and wipe all of the databases, etc???? or does it reset the smscon to its defaults?
It only resets smscon. That is, kills the process, deletes the config, removes itself from the boot sequence and kills any open reverse-ssh connection.

Quote:

Again, apologies if I should have understood this from the wiki.
Thanks, we'll try to improve it.

onasre 2010-09-12 19:56

Re: [Announce] SMScon (control your device with SMS)
 
thx , the command works now , i also have the probelm that when click smscon icon it just open the xterm then disappear , but when click the smscon editor icon it opens and i can edit the setting from GUI menu but it never Start the Smscon daemon after reboot. i enabled it from ' Enable Smscon on device boot ' setting . but each time i reboot the N900 and check the status i find it always Off and having to enable it .

Saturn 2010-09-12 20:06

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

Originally Posted by onasre (Post 814360)
thx , the command works now , i also have the probelm that when click smscon icon it just open the xterm then disappear , but when click the smscon editor icon it opens and i can edit the setting from GUI menu but it never Start the Smscon daemon after reboot. i enabled it from ' Enable Smscon on device boot ' setting . but each time i reboot the N900 and check the status i find it always Off and having to enable it .

That boot option is in the known and confirmed issues (see wiki).
The icon in the application menu for the SMSCON will be removed or transformed to do something else in the future. Now it doesn't do much (just displays the commands) and the window closes.

digitalvoid 2010-09-12 20:09

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

Originally Posted by onasre (Post 814360)
thx , the command works now , i also have the probelm that when click smscon icon it just open the xterm then disappear , but when click the smscon editor icon it opens and i can edit the setting from GUI menu but it never Start the Smscon daemon after reboot. i enabled it from ' Enable Smscon on device boot ' setting . but each time i reboot the N900 and check the status i find it always Off and having to enable it .

The smscon icon has no real purpose (was only made for testing).
In future release the icon will open X-terminal (in root) and will shows smscon commandline options. Otherwise use the smscon config editor (separate package).

@ all:

I will release a new package soon, were a lot of bugs are solved. When release is there, wiki also will be updated.

Saturn 2010-09-12 20:37

Re: [Announce] SMScon (control your device with SMS)
 
New release of the SMSCON Editor (version 0.4.3-9).

changelog:
- added block on starting the UI as root (it should only be started as user)
- the editor will quit after calling the init or reset commands (after informing user).
- added slightly modified icons.
- added settings and permissions in sudoers file.
- cleanup of postinst instructions
- cleanup of commented out code.

You can find it in garage.

onasre 2010-09-12 22:21

Re: [Announce] SMScon (control your device with SMS)
 
thx for updating us . :)

knypek3 2010-09-13 07:03

Re: [Announce] SMScon (control your device with SMS)
 
omg... I didn't see editor icon only smscon...
Now working for me...

But still when i reboot the phone daemon is switching off and log file is empty :( only config file is good this time.

I also cannot change sending replies using: SMS
When i set "send replies using: email" save it and open one more time editor - This is a "sms" back...

digitalvoid 2010-09-13 10:57

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

In upcoming new release 0.4.3-2 the following will be fixed:

- FIX: smscon doesn't load at boot.
- FIX: sms commands can't use spaces.
- FIX: "Trackon" (& "Trackoff") command doesn't work.
- FIX: bug in selecting the right GPS mode if GPRS data network is available (use AGPS (faster) or GPS (slower)).
- FIX: when using command "Location" GPRS data network is not automatically enabled.
- FIX: GPSTIMEOUT routine doesn't work as expected/intended.

knypek3 2010-09-13 11:07

Re: [Announce] SMScon (control your device with SMS)
 
@ digitalvoid
THANKS :D
I've a question:
How to remotely enable gprs for agps? It will be a command for that?
Why did he not use only agps? Standard gps is much more slower.

Maybe you can create command only for connect to internet?
Or command eg. locationagps and locationgps ?

mrbiggzz79 2010-09-15 16:44

Re: [Announce] SMScon (control your device with SMS)
 
good looking guys thanks for the app looking forward to usin it and any more updates;)

digitalvoid 2010-09-15 20:43

Re: [Announce] SMScon (control your device with SMS)
 
In upcoming new smscon & smscon_editor release 0.4.4 the following will be fixed:

- FIX1: smscon doesn't load at boot.
- FIX2: sms commands can't use spaces.
- FIX3: "Trackon" (& "Trackoff") command doesn't work.
- FIX4: bug in selecting the right GPS mode if GPRS data network is available (use AGPS (faster) or GPS (slower)).
- FIX5: when using command "Location" GPRS data network is not automatically enabled.
- FIX6: GPSTIMEOUT routine in GPS control doesn't work as expected/intended.
- FIX7: When "Location" & "Trackon" commands are used, internal smscon events are discarted/hold until GPS is finished.
- FIX8: Discovered a initial GPS control design flaw in smscon. This is fixed now and makes FIX4 obsolete.

- NEW: send reply sms when keyboard is used (keyboard slider opens or closes) after a valid control sms command is send to phone. (will be a config option)

digitalvoid 2010-09-17 11:45

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

SMSCON v0.4.4-2 is now available in Extra-devel repository (http://maemo.org/packages/view/smscon/)

For all information see http://wiki.maemo.org/SMSCON

mrbiggzz79 2010-09-17 14:26

Re: [Announce] SMScon (control your device with SMS)
 
good day sir first off thanks for the app. i uninstall the older version and updated to the one thats in app man now my problen is when i try to open the smscon editor it says settings succesfully loaded but the thats it . it doesn't give me the option to do any kind of setting editin like be for any ideas

Saturn 2010-09-17 14:53

Re: [Announce] SMScon (control your device with SMS)
 
Find the new version of the SMSCON Editor v. 0.4.4-9 in extras too.
http://maemo.org/packages/view/smscon-editor/

Cumulative updates since previous garage version:
* Added checks on the configuration file existence and messages to the use
* Addition of a new tickbox to provide "Reply On Keybord Open" settings option.
* Update of code reading the config file to include spaces in commands (provided by digitalvoid).
* Corrected canvas of the main window to fit better the N900 screensize.
* Increased the width of commands line enter.
* Corrected the .desktop file to point in the correct iconset
* Added explicit permissions in the postinst script for the gui elements file.

Some more information/screenshots in the wiki page of SMSCON Editor (needs work still!)

Before you install anything I propose you do the following actions in xterm as root:
Code:


apt-get remove --purge smscon
apt-get remove --purge smscon_editor
apt-get remove --purge smscon_configuration
rm /usr/bin/smscon*

Then open the application manager an enjoy the hassle free installation :D

Edit: the Editor is already in extras-testing and soon will be also the main app.
The usual warning on extras-devel applies here too!

Saturn 2010-09-17 18:49

Re: [Announce] SMScon (control your device with SMS)
 
Both applications have been promoted in extras-testing.

Please test and report issues here.

If any work to your liking feel free to vote for their promotion in extras too. Here are the links:

SMSCON

SMSCON Editor

digitalvoid 2010-09-18 08:56

Re: [Announce] SMScon (control your device with SMS)
 
New update available (0.4.4-4) with bugfixes.

SaintGermain 2010-09-18 13:04

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

Thanks for this useful app.
Here are a few feedbacks:
  1. After receiving a 'Lock' command, if the device is unlocked with the correct password, smscon continues to send updates about the Keyboard being opened or closed. I don't know if it is an intended behavior or not.
  2. A "Wipe device" feature would be very interesting (I think that the chances of finding your device when lost/stolen are quite slim...)
  3. My openSSH server use public key authentification as it is more secure. Can you add an option to use this kind of connection ?
  4. I haven't managed to make the reverse-SSH connection works, though I can manage to connect directly by using "ssh -p port_number user@ip_address". Is there a way for me to debug the connection problem ? Using smscon -log, I can see that the GPRS connection is successful but the connection to the SSH server is refused (DAEMON ERROR: ssh connection failure). Server side, I didn't see anything coming from the N900.

dragly 2010-09-18 14:52

Re: [Announce] SMScon (control your device with SMS)
 
I have been trying this application a couple of times now, without luck. I have sent messages with commands like "Check", "Lock" and "Location" to my cell phone number without anything happening.

I have set the phone number to my own phone, and am sending messages from my own phone (but I have tried to send from someone else's as well). All other settings are left as default (i.e. SSH and E-mail are still xxxxxxxx since I just wanted to test the sms features first). Could any of this be the issue? I have both tried to set the settings manually and using the editor.

I was wondering if there is any way I could debug this. Is there supposed to be any log messages about recieved sms messages in smscon? If there is nothing else wrong with my configuration I'm starting to wonder if there is something wrong with my device. I've earlier had some trouble with the Qt mobility libraries in terms of reacting to recieved SMS messages.

digitalvoid 2010-09-18 15:26

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

Originally Posted by SaintGermain (Post 819738)
Hello,

Thanks for this useful app.
Here are a few feedbacks:
  1. After receiving a 'Lock' command, if the device is unlocked with the correct password, smscon continues to send updates about the Keyboard being opened or closed. I don't know if it is an intended behavior or not.
  2. A "Wipe device" feature would be very interesting (I think that the chances of finding your device when lost/stolen are quite slim...)
  3. My openSSH server use public key authentification as it is more secure. Can you add an option to use this kind of connection ?
  4. I haven't managed to make the reverse-SSH connection works, though I can manage to connect directly by using "ssh -p port_number user@ip_address". Is there a way for me to debug the connection problem ? Using smscon -log, I can see that the GPRS connection is successful but the connection to the SSH server is refused (DAEMON ERROR: ssh connection failure). Server side, I didn't see anything coming from the N900.

Thank for your feedback!

1) it is intended (but maybe I will change it to only once).

2) A Wipe feature could be done, but It's very destructive.

3) I tried to use it with public key authentification but somehow I couldn't get it to work.

4) I will add in future release more log on seting up ssh connection.

digitalvoid 2010-09-18 15:29

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

Are you sure that smscon is running?

In X-terminal as root:
Code:

smscon -status

WhiteWolf 2010-09-18 16:20

Re: [Announce] SMScon (control your device with SMS)
 
It always gives me error when trying to install "smscon-editor." I've tried every update and the installation always fails.

Error message:

dpkg: error processingsmscon-editor (- configure): subprocess post-installation script returned error exit status 255
Errors Were Encountered while processing: sms-editor
E: Sub-process / usr / bin / dpkg returned an error code (1)

joshv06 2010-09-18 16:47

Re: [Announce] SMScon (control your device with SMS)
 
^Same here.

Pigro 2010-09-18 16:49

Re: [Announce] SMScon (control your device with SMS)
 
re the reverse ssh and public key - surely, if you have already got public kays set up on N900 and openSSH then when the ssh -R command is run on N900 in response to the SMSCON command, it will use the public key in preference to a password (as long as you have enabled both methods in your sshd_config file, and your N900's public key is in your server's authorized_keys file)?

I have that setup (with password auth disabled) and when I connect to my remote tunnel it first tries using public key auth before it drops back to password. I may have msunderstood how SMSCON sets up the remote SSH - but IIRC there is no option to send a password in the ssh command itself, so as long as your keys are present & correct, it *should* just use the keys without any need for SMSCON to provide a password?

I am thinking of installing SMSCON as an alternative to an "always on" reverse ssh session, so please advise if there's some reason why public key auth couldn't work with it's present setup.

dragly 2010-09-18 17:24

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

Originally Posted by digitalvoid (Post 819841)
@ dragly:

Are you sure that smscon is running?

In X-terminal as root:
Code:

smscon -status

I get the following output:

Code:

# smscon -status
smscon_daemon is running.

So I suppose it is running.

digitalvoid 2010-09-18 17:26

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

SMSCON authenticates the login with a password. Before smscon was developed I couldn't get the ssh thing working with the keys file method. My server side machine is a Windows machine were "OpenSSH for Windows v4.2p1-1" is installed. Visited many tutorials on this but I gave up on the key auth. Password auth. worked right away.

digitalvoid 2010-09-18 17:28

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

Originally Posted by dragly (Post 819917)
I get the following output:

Code:

# smscon -status
smscon_daemon is running.

So I suppose it is running.

It is, please post you log (XXXXX out the sensitive information).


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

vBulletin® Version 3.8.8