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-02-09 21:27

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

Originally Posted by Brian_7 (Post 937848)
Hi Saturn, did you find where is the issue?.

Sorry couldn't think of anything more.

Digitalvoid is experimenting with other ways to send the SMS. Maybe that will help people with the issue. It would be nice to understand why it fails though..

In general, we are both really occupied at this moment in time and things go a little bit slow. If anyone has a patch to propose is welcome.

Saturn 2011-02-09 21:35

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

Originally Posted by OperationNT (Post 939751)
Hello everybody,

I installed SMSCon (with its editor) on my device and try it little bit. I have one issue and 3 questions (requests).

My issue is that when my front camera starts, the image is very dark and it takes about 3 seconds to become "viewable" (I can see this when I start video calls). When I try to use the functionality in SMSCon for send a picture from the front camera, it seems that it starts camera and take a picture without any wait time. So the image I get from e-mail is only a black rectangle. Is it possible to set a wait timer at camera start before the picture is token ?

My 3 questions are for a steal case :
- Is it possible to add a functionality to delete all personnal information (contacts, received SMS and calls, registered accounts and e-mail addresses) ?
- Is it possible to add a functionality to get by SMS all information saved on phone (thief's contacts and called numbers) by SMS and e-mail ?
- To be more discrete with the "Call Me" functionality (avoid callings proof when the thief receive its bill), is it possible to add a functionality which automatically answer to next call without ringing ? (when you have unlimited calls on another phone, it could be useful and the thief couldn't know he is spied)

Thank you for your answers ;).

Hi,

Can't do much about the front camera. It seems it is a limitation of the N900. Other people have tried too to make it get the proper adjustments before getting a picture but haven't reached to something usable.

The first two requests you could fullfil with a script but in the correct place (i.e. /opt/smscon/smscon_script). Check also this thread for info on delete commands that you could place in this script: http://talk.maemo.org/showthread.php?t=69518

The third request unfortunately cannot be done as it requires access to closed source components of Maemo.

Brian_7 2011-02-10 00:13

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

Originally Posted by Saturn (Post 940357)
Sorry couldn't think of anything more.

Digitalvoid is experimenting with other ways to send the SMS. Maybe that will help people with the issue. It would be nice to understand why it fails though..

In general, we are both really occupied at this moment in time and things go a little bit slow. If anyone has a patch to propose is welcome.

You can use "smssend" to send sms via command line.

OperationNT 2011-02-10 08:50

Re: [Announce] SMScon (control your device with SMS)
 
Thank you for your answer ;).

I will try to create a script which can do what I want. But the 2 first functionality must be done by different scripts (or same script with some arguments to switch between states "Destroy everything" and "Get some personal data by SMS and e-mail").

Do you see a way to switch between those states ? (maybe by the possibility to execute a command line)

In addition, there is something I don't understand about command line by SMS. When you set this possibility in the configuration file, it seems to be a single possible command line. Am I right ?

Saturn 2011-02-10 20:17

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

Originally Posted by OperationNT (Post 940728)
Thank you for your answer ;).

I will try to create a script which can do what I want. But the 2 first functionality must be done by different scripts (or same script with some arguments to switch between states "Destroy everything" and "Get some personal data by SMS and e-mail").

Do you see a way to switch between those states ? (maybe by the possibility to execute a command line)

In addition, there is something I don't understand about command line by SMS. When you set this possibility in the configuration file, it seems to be a single possible command line. Am I right ?

You might think of a better way but a simple one is to have/create a dummy file somewhere you know. The script can chech for its existance and if true then execute the delete part. Else will zip and send the files you want to spy.

OperationNT 2011-02-10 20:51

Re: [Announce] SMScon (control your device with SMS)
 
Yes, I think the dummy file solution is the simpliest way: if the dummy file exists, delete all personal data and the dummy file, else send all contacts and calls by SMS.

The script delete part seems easy (following the topic you give me). But the SMS send part seems more difficult to perform.

I think calls are saved in "/home/user/.rtcom-eventlogger/el-v1.db". But I cannot find the file where contacts are stored. In addition, my SQL knowledge is very limited...

It's not this topic purpose so maybe I should ask help in another topic.

Thank you very much Saturn for your help ;).

xabier 2011-02-10 23:23

Re: [Announce] SMScon (control your device with SMS)
 
It's not properly working for me. Test sms and email work fine.

The phone sends me sms when I insert a non allowed card, I can use the "check" command, and it sends me the full command list to my phone but I can't get anything else working. Front cam picture, remote calling, remotepower off .... are not working.

I might be doing something wrong but I can't find anywhere a detailed guide about its use.

I am running latest smscon and editor

kaos_king 2011-02-11 16:21

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

I'm having problems getting SSH working and I was wondering if people would be able to help me. I've checked the log and it reports a ping error and that it couldnt connect to my ip, so i did a ping in xterm and sure enough, it doesnt get a response (100% packet loss).

The thing thats confusing me is, the server is definately up and running as I can VNC to it, but its not responding to any pings - why could this be?

kaos_king 2011-02-11 21:35

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

Originally Posted by kaos_king (Post 942682)
Hiya guys,

I'm having problems getting SSH working and I was wondering if people would be able to help me. I've checked the log and it reports a ping error and that it couldnt connect to my ip, so i did a ping in xterm and sure enough, it doesnt get a response (100% packet loss).

The thing thats confusing me is, the server is definately up and running as I can VNC to it, but its not responding to any pings - why could this be?

OK i sorted this, damn windows firewall. Disabled it and i can get a connection now.

However im still unsure how to connect to the n900 once its connected to my windows 7 box running ssh server. I tried afew connections in putty but couldnt really get anywhere. Im new to ssh, any guidace would be greatly appreciated.

pavi.kant 2011-02-11 22:40

Re: [Announce] SMScon (control your device with SMS)
 
i installed SMScon and it asked me for a password on installation... it is not accepting this password and has someplace stored the rouge password and even if i try and reinstall i cant set a new password... any help?

Brian_7 2011-02-12 00:30

Re: [Announce] SMScon (control your device with SMS)
 
the default password is 12345.

kaos_king 2011-02-12 11:21

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

Originally Posted by kaos_king (Post 943238)
OK i sorted this, damn windows firewall. Disabled it and i can get a connection now.

However im still unsure how to connect to the n900 once its connected to my windows 7 box running ssh server. I tried afew connections in putty but couldnt really get anywhere. Im new to ssh, any guidace would be greatly appreciated.

Figured it.


** Edit **
Last question now, maybe i'll figure this one out before someone responds like the others, but I've been searching and trying different things for a while now and cant get it.

I want to be able to copy files from the N900 to either my local machine (thats running putty connected to my dedicated server, and then connected to the n900) or copy the files to my dedicated server - either is fine with me.

I can get files to copy to other locations with scp but i cant get the files to my local. Im using the command like this:

Code:

scp root@localhost:/home/user/MyDocs/somefile.txt .
Now I know the trailing dot means to drop the file in the current directory but the current directory through putty is on the n900. So i can successfully copy files around on the n900, but the way I was trying to get the files to local is like this:

Code:

scp root@localhost:/home/user/MyDocs/somefile.txt remote@MyServerIP:/home/remote
This requests my n900's root password and then reports:

Code:

Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password,keyboard-interactive).
lost connection
Nokia-N900:~#

Is this something to do with me needing to add a key to a file? I've seen that mentioned around alot, but I'm not sure what key and add it to what file (server/n900/local machine?) or if im even on the right lines with adding a key - is there something else Im missing?

As always, help would be appreciated, i've spent many hours on this now and im all out of ideas.

Also, should I be able to log in to the n900 straight from the server? I cant seem to be able to. Cheers, kaos.

Saturn 2011-02-12 18:08

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

Originally Posted by kaos_king (Post 943864)
Figured it.


** Edit **
Last question now, maybe i'll figure this one out before someone responds like the others, but I've been searching and trying different things for a while now and cant get it.

I want to be able to copy files from the N900 to either my local machine (thats running putty connected to my dedicated server, and then connected to the n900) or copy the files to my dedicated server - either is fine with me.

I can get files to copy to other locations with scp but i cant get the files to my local. Im using the command like this:

Code:

scp root@localhost:/home/user/MyDocs/somefile.txt .
...


Use something like cygwin or mobaXterm on your pc and the first scp you wrote will work.
http://mobaxterm.mobatek.net/en/

Another way is to use WinSCP.

kaos_king 2011-02-12 21:00

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

Originally Posted by Saturn (Post 944225)
Use something like cygwin or mobaXterm on your pc and the first scp you wrote will work.
http://mobaxterm.mobatek.net/en/

Another way is to use WinSCP.

Cheers saturn. I was trying to get WinSCP to do it but I was running it on the local machine and i didnt know where to connect to because first i must connect to the server and then to the n900. Should i run it straight on the server? The server is win7 running CopSSH and it has a bash shell but i cant connect to the n900 from that.

Thanks for the link, not heard of mobaXterm, i'll read up on it when I finish work, but if i use that i still am a little confused as to whether i should be running it on the server or my local machine.

Maybe its a little easier to describe to me if I show you my setup:

Code:

Local machine - win7- (internal)192.168.2.4

Server - win7 - sshd - (int)192.168.2.5 - (ext)MyServerIP

N900 - usual setup

At the moment, i cant seem to talk to the n900 from the server, the only way i can get it to work is connecting the local machine to the server via putty and MyServerIP and then logging in, then i use the ssh command for the n900 (ssh -p 8080 localhost -l root), enter my password and im away.

Sorry for going on, but should i be able to do it on the server or am i using the right method using a local machine and the server as a middle man?

Saturn 2011-02-13 01:23

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

Originally Posted by kaos_king (Post 944369)
Cheers saturn. I was trying to get WinSCP to do it but I was running it on the local machine and i didnt know where to connect to because first i must connect to the server and then to the n900. Should i run it straight on the server? The server is win7 running CopSSH and it has a bash shell but i cant connect to the n900 from that.

Thanks for the link, not heard of mobaXterm, i'll read up on it when I finish work, but if i use that i still am a little confused as to whether i should be running it on the server or my local machine.

Maybe its a little easier to describe to me if I show you my setup:

Code:

Local machine - win7- (internal)192.168.2.4

Server - win7 - sshd - (int)192.168.2.5 - (ext)MyServerIP

N900 - usual setup

At the moment, i cant seem to talk to the n900 from the server, the only way i can get it to work is connecting the local machine to the server via putty and MyServerIP and then logging in, then i use the ssh command for the n900 (ssh -p 8080 localhost -l root), enter my password and im away.

Sorry for going on, but should i be able to do it on the server or am i using the right method using a local machine and the server as a middle man?

Sorry, I'm lost and don't understand what you actually need to achieve.
If you just need to copy the files from machine A (n900) to B (local windows PC) execute in mobaXterm (running in your local PC) the scp command as:
Code:

scp user@xxx.xxx.xxx.xxx:/home/user/MyDocs/somefile.txt .
where xxx.xxx.xxx.xxx is the IP of your N900.

flexman 2011-02-13 15:44

Re: [Announce] SMScon (control your device with SMS)
 
How can I stop SMSCON from using at least 6 SMS for each command I send to it. I have a text message limit from my provider and cannot afford to exceed it.... Please help.

Brian_7 2011-02-13 15:50

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

Originally Posted by flexman (Post 945056)
How can I stop SMSCON from using at least 6 SMS for each command I send to it. I have a text message limit from my provider and cannot afford to exceed it.... Please help.

You have to edit /opt/smscon/smscon_daemon in this part:


def GSMmodem(Number, Message, Log):
"""
Send message to GSM modem.
"""

Delay = 4 # in sec.
MaxRetry = 3 # number of retries to re-activate GSMm (maybe you have 6)
Retry = 0


Change MaxRetry to 1.

flexman 2011-02-14 01:51

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

Originally Posted by Brian_7 (Post 945061)
You have to edit /opt/smscon/smscon_daemon in this part:


def GSMmodem(Number, Message, Log):
"""
Send message to GSM modem.
"""

Delay = 4 # in sec.
MaxRetry = 3 # number of retries to re-activate GSMm (maybe you have 6)
Retry = 0


Change MaxRetry to 1.

Thanks...How to I get to that file to edit it. I used filebox but cannot open the file..

Brian_7 2011-02-14 04:55

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

Originally Posted by flexman (Post 945615)
Thanks...How to I get to that file to edit it. I used filebox but cannot open the file..

Well, i use vi from the x-terminal. But you can use another text editor or you can copy the file and edit it with notes and then replace it again.

yaniv 2011-02-15 18:40

Re: [Announce] SMScon (control your device with SMS)
 
First @ Digitalvoid & Saturn, kudos on a job very well done!!

Any news regarding hotmail users? Emails sent are not arriving to my hotmail account.
(tried same settings as the phones mail app: e.g. mailserver - smtp.live.com, port - 587/25).
I managed to make it work on gmail account (meaning im not completely clueless..)
Help would be very much appreciated.

nicholes 2011-02-16 04:11

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

Originally Posted by Brian_7 (Post 934998)
I use gmail:

Mail server: smtp.gmail.com

Port: 587

(works great for me)

In password put your email password.

in my case i tried many ports with server"smtp.gmail.com"

not a single mail i recived on my gmail account

now i wonder if smscon can upload all the info to some sites and sends a link via sms??????????

NOMIOMI 2011-03-07 08:41

Re: [Announce] SMScon (control your device with SMS)
 
email with pic is not working its only black pic show in my mail id any solution

digitalvoid 2011-03-07 09:09

Re: [Announce] SMScon (control your device with SMS)
 
Saturn has pointed me to this post (thanks!). A real-life succes story for SMSCON!

Due to lack of time & other reasons I wasn't present on this forum for some time.

I have version 0.8 almost ready (needs testing & some adaptation in SMSCON-editor before release). An alarm sound will be added (by users request) and some changes in sending SMS & email will be implemented...

More news to come soon...

rantom 2011-03-07 10:00

Re: [Announce] SMScon (control your device with SMS)
 
Thank you for this great application. I've now installed it and it seems to run rather well. How much can I expect the battery to drain, since the SMScon-daemon is on from restart?

Also, a minor bug that I noticed whilst in SMSCon Editor : the password-field in SSH is too short. I tried to use my 15-letter password, only 14 letters were kept. So that might be something that could/should/would be improved? :)

I also noticed, that the Location seems to take rather long? Turns out, that I had not applied the Ovi Maps service yet, so that's why it didn't seem to finish. Worked fine after that.

Also, the commands don't seem to work for me with applied prefix. E.g.

Code:

smscon PRE_Check
I just get "unknown option (PRE_Status).

Again, thanks. And yes, the success story got me into using this application.

PS: The reverse-SSH should be available more visibly. I found it from the Wiki but not a word of it from the Editor.

nicholes 2011-03-07 10:21

Re: [Announce] SMScon (control your device with SMS)
 
is there anyone guide how use ssh (i am a noob) i test email with many smtp but did not work me(i use google) how to use(or configure) ssh now ??????
EDIT; i use open ssh(all i know about ssh) (but it needs wifi and does not work on 3g)

ejasmudar 2011-03-08 08:56

Re: [Announce] SMScon (control your device with SMS)
 
Sorry I did not read the last 71 pages. I just installed smscon based on a success story in another thread. So, i just set it, configured and tested. Awesome app! A few suggestions though,
The first tone/vibration on sms receipt may be unavoidable but can't the notification be hidden from the phone? This way the theif can't see the commands that we send to the phone?
Secondly, I use phone speaker switch and on call command, the phone goes onto speaker mode and the theif can easily get notified. Can we configure smscon to disable smscon if required?

BTW, if these have been answered before, I am sorry. If so, i am willing to go back and read through the posts.

bugfix178 2011-03-08 09:34

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

Originally Posted by ejasmudar (Post 963010)
The first tone/vibration on sms receipt may be unavoidable but can't the notification be hidden from the phone? This way the theif can't see the commands that we send to the phone?.

One must remember that smscon can not replace the human factor and what seems useful in one case is destructive in another.

Imagine that someone else would send a "trackon" command to you and you wouldn't even notice it?

My recommendation: simply use "human engineering" and set your commands to appear like spam.
e.g.: "Party tonight in ..."

Like this you would be the only one who knows what that SMS really means while the common thief wouldn't suspect anything.


Don't forget to keep a list of your modified commands somewhere safe.

To this matter. patient is also an important factor.
In most cases it wouldn't be the thief that would use the phone but an innocent person who would buy it on ebay.
In my case I think that the fact that the person felt that I actually can follow him played a role in my favor.

lovely greetings

nicholes 2011-03-08 12:34

Re: [Announce] SMScon (control your device with SMS)
 
just two suggestion!
1>As we all know mail sever or port are creating problem for us! And the result

>>>>email does not work for many of us<<<< (including me)
and most Amazing thing in smscon is

"taking picture of the thief"
so my qustion is Can smscon take picture of the thief and upload it to some site and sends the link through sms????(i think this will surly work and easy also as compared to the email)
2> smscon should have an auto answer feature for a particular number. and ringtone should be silent for the number, thus when phone is theft, we can call the thief and phone will start spying and we can hear what is happening around the thief! and thus we can get more info about him

zimon 2011-03-08 15:47

Re: [Announce] SMScon (control your device with SMS)
 
http://imagebin.org/
....could be a place for uploading pics as anonymous and then just send the link via SMS.

But as well as EMail, it needs working Internet access.
But yes, Email needs abit more - access to smtp server from that Internet access settings and many smtp-servers accept post connections only from their local network (same site).

Naccache 2011-03-09 11:02

Re: [Announce] SMScon (control your device with SMS)
 
Hi, just a quick question, I don't feel like reading 71 pages.

What would be really great as an option is a setting that tells the N900 that if a new SIM card gets put in the N900 would automatically send me an email and SMS/MMS with GPS info, photo from both cameras and especially the number of the new SIM.

Is this possible?

smoothc 2011-03-09 11:32

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

Originally Posted by Naccache (Post 963916)
Hi, just a quick question, I don't feel like reading 71 pages.

What would be really great as an option is a setting that tells the N900 that if a new SIM card gets put in the N900 would automatically send me an email and SMS/MMS with GPS info, photo from both cameras and especially the number of the new SIM.

Is this possible?

71 pages is a lot of pages but the wiki is not so hard to read and you can also search within the post.
That feature that you request is already there.

nicholes 2011-03-09 11:39

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

Originally Posted by nicholes (Post 963119)
just two suggestion!
1>As we all know mail sever or port are creating problem for us! And the result

>>>>email does not work for many of us<<<< (including me)
and most Amazing thing in smscon is

"taking picture of the thief"
so my qustion is Can smscon take picture of the thief and upload it to some site and sends the link through sms????(i think this will surly work and easy also as compared to the email)
2> smscon should have an auto answer feature for a particular number. and ringtone should be silent for the number, thus when phone is theft, we can call the thief and phone will start spying and we can hear what is happening around the thief! and thus we can get more info about him

anyone intrested ????

hathoda 2011-03-09 13:06

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

Originally Posted by nicholes (Post 963119)
just two suggestion!
1>As we all know mail sever or port are creating problem for us! And the result

>>>>email does not work for many of us<<<< (including me)
and most Amazing thing in smscon is

"taking picture of the thief"
so my qustion is Can smscon take picture of the thief and upload it to some site and sends the link through sms????(i think this will surly work and easy also as compared to the email)
2> smscon should have an auto answer feature for a particular number. and ringtone should be silent for the number, thus when phone is theft, we can call the thief and phone will start spying and we can hear what is happening around the thief! and thus we can get more info about him

email did not work for me too ..hope next update would bring at least ur second suggestion

zimon 2011-03-09 13:19

Re: [Announce] SMScon (control your device with SMS)
 
Email with the front camera pic for me works still good, just tested with smscon-editor. (smscon v0.7-2)

It even worked, when I currently have Dummy-APN in use and N900 is using Internet over Bluetooth-PAN and PC-ADSL.
It correctly switched quckly to GPRS, so it can connect to my 3G-operator's SMTP-server, and then switched back to Bluetooth-Dummy. I couldn't connect that same SMTP-server through the Dummy-APN.

fraaaaanka 2011-03-09 17:23

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

Originally Posted by hathoda (Post 963987)
email did not work for me too ..hope next update would bring at least ur second suggestion

email didnt work for me either using my sky email account so i set up a gmail account and it worked using the settings in the wiki smscon editor.

supersmashinggreat

bugfix178 2011-03-10 12:04

Re: [Announce] SMScon (control your device with SMS)
 
I checked the log in /tmp/smscon.log in my - post theft recovered n900 (full story here) - to realize it was extremely short with hardly any logs.

Could it be that the log file is erased with every phone or deamon restart?

If this is true I think it would be a good idea to keep all smscon logs and maybe even give the option to send it pair e-mail or upload it somewhere as a file etc.)

nicholes 2011-03-10 18:09

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

Originally Posted by bugfix178 (Post 964833)
I checked the log in /tmp/smscon.log in my - post theft recovered n900 (full story here) - to realize it was extremely short with hardly any logs.

Could it be that the log file is erased with every phone or deamon restart?

If this is true I think it would be a good idea to keep all smscon logs and maybe even give the option to send it pair e-mail or upload it somewhere as a file etc.)

so in that long story EMAIL DID NOT WORK for him too!!! anything new for people like us coming here in new update?

flydeep 2011-03-10 21:26

Re: [Announce] SMScon (control your device with SMS)
 
I tried installing the SMScon today and appears I have tried it ages ago. The reason is, it was asking me for a password and I don't have a clue what I gave. How can I reset the SMScon passwd?

Saturn 2011-03-10 22:16

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

Originally Posted by nicholes (Post 965103)
so in that long story EMAIL DID NOT WORK for him too!!! anything new for people like us coming here in new update?

In my opinion, the lesson learnt from the story is that the mail is just an additional feature. We would like to make sure the SMS reply is send no matter what. There is a set of users which didn't work for them or worked wrongly (e.g. multiple mails) from day one and Frank is working on replacing that code.

On the next update (answering also to other people's questions) will come mostly fixes and usability changes. There isn't any significant new features but an effort to establish better what we have.

On your problem, are you allowed to have a gmail.com account from your region? This is know address to work with the settings in the wiki.

Saturn 2011-03-10 22:18

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

Originally Posted by flydeep (Post 965264)
I tried installing the SMScon today and appears I have tried it ages ago. The reason is, it was asking me for a password and I don't have a clue what I gave. How can I reset the SMScon passwd?

Have a look in the wiki. I think you'll appreciate the effort.


All times are GMT. The time now is 09:08.

vBulletin® Version 3.8.8