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)

digitalvoid 2010-10-14 08:20

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

Originally Posted by Aranel (Post 840202)
Thanks for this awesome application, here's some feature requests to make it the best AIO Anti-Theft software ever:

* 1)Alarm Mode: afaik, as of current SMSCON release, It sends SMS to target number if IMSI code is changed while booting up. Problem is, what if your mobile is out of GSM covered area or SMS failed for some reason? Then you will not notice it's stolen until you find out yourself. I think Alarm Mode would be better option, I mean, if IMSI code is changed, instead of a single SMS sent to single target number, try to use all possible connection methods to deliver information to multiple targets and keep doing it until receiving valid SMS command to stop it.

* 2)Data Wiping: I understand that maybe developer of SMSCON (or any developer here) doesn't really want to introduce this function, because it could brick N900 easily if something goes wrong, but I think it's an essential function. Just make it an "option" with proper warning messages, and It would be beyond awesome if you make it customizable so we could wipe /home/user/MyDocs/somethingveryimportant and /home/user/.stupidplaintextpasswordfile instead of wiping/bricking the whole system.

* 3)Stealth: I guess It's not going to be easy, but as for current SMSCON release it shows up every incoming/outgoing SMS on Conversations, notifies the thief about it, shows up messages if you try to use reverse ssh and shows up the Call UI if you make your device call you. If Joe The Thief is not the dumbest person ever seen in the face of the earth, he will notice that you're trying to remote access your device and he will power it off, take SIM Card away or even throw away/destroy your device.

* 4)Advanced Tracking: It's not essential but making it possible to notify about Incoming/Outgoing calls (and their numbers) would help the owner A LOT about getting his device back. And maybe sending a copy of received/sent SMS messages to the owner could help too.

* 5)Remove it from Menu: I'm pretty sure that It wouldn't be hard to add an option to remove smscon and smscon-editor from menu, because we already have an X Terminal, It is possible to start GUI apps from that terminal and most of thieves are not Linux guru's and in fact mostly they don't even know what XTerm is, but they do know to push buttons, select SMSCON from the menu or google it to see what it is. So, I would prefer removing smscon related things from the menu and start it from XTerm, if you think that it's not user-friendly enough, make it an option.

* 6)Wi-Fi Autoconnect: afaik SMSCON supports 3G Internet but why not make use of Wi-Fi, since it's already a built-in feature of N900 and there's still some ppl out there using unsecured connections. This feature could be enabled by SMS or Alarm Mode (see: first idea) and It would try to connect to unsecured Wi-Fi access points to send valuable information to owner and allow reverse ssh, since It's using a Wi-Fi point, It means It has an IP address, so you can track that address too.

* 7)Server File Check: Prey already implements this feature and I think it's useful, why not make SMSCON check a file from my webserver often to see if it's 0 (OK) or 1 (Stolen) and if it's 1, send information to backup number or enable the Alarm Mode (see: first idea) You can implement this feature as an option, since 3G Internet is not that cheap in some countries.

Well.. It seems like It would take a year or two to implement all of this things, I just wanted to notify you about "SMSCON of my dreams" and maybe help you if you liked any of this ideas and if they're easy to do, maybe you can add some of them in future releases :)

Thanks for this great app,

Thanks for you input!

1) I will look in to this. I can try to make it so, that if sending fails, it will try a later time again.
2) I will implement a wipe function (it will run a batch script, if available, where users can put in directories they want to delete.
3) If somebody knows howto do this/has a solution, please mail me.
4) Thecnically it can be implemented, maybe I will.
5) As of v0.5-6 all user settings can be changed by SMSCON (crypted & uncrypted). The command is: smscon -set <name> "<value>", so strictly you don't need SMSCON-editor if you want to (to keep it pure a command-line application) and keep it more hidden.
6) I personnaly think WiFi is unreliable for this; connections easely can be lost (if your phone is moving or coverage is limited). For some 3G Internet maybe costly, but losing a phone will also be costly. If the cell reception is unavailable, well then it over.
7) This is a nice idea, I maybe will try to implement this in a future release.

digitalvoid 2010-10-14 08:23

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

Originally Posted by paulkoan (Post 840060)
Would it be possible to add the ability to issue an arbitrary command with smscon?

That way we could use it for anything. I am interested in using it for SMS based push for email and IM (where my server would monitor specific email folders and sms me if there is something interesting, then smscon would issue the dbus command to send/recieve email, which would establish a data connection).

The purpose of SMSCON is to retrieve your phone when it's lost or stolen, so your idea would not fit in this profile.

digitalvoid 2010-10-14 08:32

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

Originally Posted by kiwirus (Post 840543)
Hi, a few notes. It is a good idea to check if is is Wifi connection already acitvie - then send email via that connection, if not then first try to activate wireless , if not succeed, then enable gprs and send it through it.
lock command always send reply even config deifne "no"
EnableDeviceLock(True) I've changed it to EnableDeviceLock()
Good idea to update it.
Also I've receiving 6 messages for any command, but from log I can see
DAEMON ERROR: failed to send SMS to "+6421......"
It is look like the sms got send but reporting some error. How to debug it?

+5 for Stealth mode should be ON. any way to remove received sms?

This will be solved in release 0.5-8. In some cases the amount of characters will exeed the 160 character limit of SMS messages (in previous versions there was no check for that) In 0.5-8 it will auto-split messages if more than 160 characters in message.

For debug look at:
Code:

/tmp/smscon.log

rikisky 2010-10-14 09:45

Re: [Announce] SMScon (control your device with SMS)
 
ok guys, i'm gonna need some serious help, i feel like such a noob cause i can't seem to make this awesome app work.... i've downloaded both the app and the editor, i change the default number, and i don't know if it's because i don't live in USA or anything but the test doesn't work, it won't call back....:/ i even tried country prefixes like +58 for venezuela... also it's not mailing me anything even tho i put everything, i'm using hotmail so maybe i got the mail server or the port wrong? i don't know...is "smtp.live.com" right? and what is the SSH for? i know i won't be using it so i don't know what to put there.... i'm not sure if it's a version bug or i'm just dumb so any help would be apprecieted... also, even tho i click the 'update settings' icon its still red, is that normal? :/ thanks in advance :(

kiwirus 2010-10-14 18:12

Re: [Announce] SMScon (control your device with SMS)
 
Re: Stealth some ideas
remove incoming sms from event db using sqlite3
sqlite3 /home/user/.rtcom-eventlogger/el.db
not sure what sql to run.
Someone may know how to do it. Will spend some time later on to browse through forums...

bowen 2010-10-15 08:32

Re: [Announce] SMScon (control your device with SMS)
 
Very nice app! :)

But for me it is missing two things..

1. If possible under the maemo OS, SMSCON should be triggered (to send GPS coords and email a mugshot?) whenever someone attempts to unlock the device and fails (enters the wrong unlock code).
I have tried myself to monitor for this via D-BUS and it doesn't seem possible. Anyone know a way?

2. It would be very nice if there were a few commands to execute user-defined scripts - This would also save the headache involved in implementing the featue a few others requested - a command to wipe the device. Any user who wants such a thing can write their own script for it and point SMSCON to the correct file.

Ragnar79 2010-10-15 13:16

Re: [Announce] SMScon (control your device with SMS)
 
When I try to send a test sms from smscon I get this error:
Code:

[2|user@Nokia-N900|~]/opt/smscon-editor/smscon-editor
sudo: smscon: command not found


knypek3 2010-10-15 14:07

Re: [Announce] SMScon (control your device with SMS)
 
it's strange. I get a 3-5 replay messages.

NokiaRocks 2010-10-16 02:38

Re: [Announce] SMScon (control your device with SMS)
 
I don't get any messages from my N900 when sending an SMS with an specific command but all tests are running fine.
Really don't know what the problem could be.

kiwirus 2010-10-16 09:22

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

To find last sms message from event db we can use sqlite3:
sqlite3 /home/user/.rtcom-eventlogger/el.db ( or el-v1.db )
then use command:
select * from Events where event_type_id=7 order by -end_time limit 1;

to delete it should be something like
delete from...
not sure about syntax.

it is a good program to browse through event db - glogarchive.

NOt sure how to disable display received sms in status bar

Aranel 2010-10-16 10:35

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

Originally Posted by digitalvoid (Post 840682)
Thanks for you input!

1) I will look in to this. I can try to make it so, that if sending fails, it will try a later time again.
2) I will implement a wipe function (it will run a batch script, if available, where users can put in directories they want to delete.
3) If somebody knows howto do this/has a solution, please mail me.
4) Thecnically it can be implemented, maybe I will.
5) As of v0.5-6 all user settings can be changed by SMSCON (crypted & uncrypted). The command is: smscon -set <name> "<value>", so strictly you don't need SMSCON-editor if you want to (to keep it pure a command-line application) and keep it more hidden.
6) I personnaly think WiFi is unreliable for this; connections easely can be lost (if your phone is moving or coverage is limited). For some 3G Internet maybe costly, but losing a phone will also be costly. If the cell reception is unavailable, well then it over.
7) This is a nice idea, I maybe will try to implement this in a future release.

Thanks, I have some ideas about how to do them, probably you already know it but It wouldn't hurt to talk about it anyway :) :

1) afaik crontab, or something crontab-like is already installable on N900. So creating a script to trigger notifying owner function, then adding it to crontab if IMSI check is failed (and removing it if smscon gets verified IMSI later or valid stop command received) would work. Then It's all about changing single target number to multiple targets, which I guess is not a hard thing to do.

2) As already said by other users, I think giving them an option to call another script if SMS command received/IMSI check failed (depends on user preference) would be a better idea, so they can add new options to it. (playing a sound, twitting about it via CLI twitter client, wiping data..)

3) @kiwirus suggested a nice solution for it, but I don't know how/or if its even possible to bypass a notification box, anyway I google'd about it and found something, I don't know exactly if it works or even if it's related to this matter but anyway: http://talk.maemo.org/showthread.php?t=62593 I looked at it for a very limited time and it seems like changing some .conf files makes it possible to remove those yellow boxes. So, making an option "If IMSI check is failed, Disable All Notifications" and changing that file according to it maybe could help. Maybe It would be possible to making changes in mce.ini, so blue led notification could be removed too.

5) I think that adding an option to smscon-editor to remove it from menu would be better, so I don't need to install/remove it everytime I want to make changes, with a proper GUI, plus removing a .desktop file looks like an easy thing to do. (again, I don't know anything about details =)

7) Maybe wget or curl could help you about doing it.

It's nice to know that you care :) Hope those help you about smscon.

vkelim 2010-10-17 10:40

Re: [Announce] SMScon (control your device with SMS)
 
I have just installed smscon 0.5-7 and smscon-editor 0.6-1

Some of smscon works well, but other parts not so well!

For a start, smscon can be found in /opt/smscon/smscon
but the smscon executable is not in the path, and so the command 'smscon' cannot be executed from the command line without prepending '/opt/smscon'. Trying to start smscon from smscon-editor does not work, perhaps because smscon is not in the default path?

Issuing the command 'check' to my N900 results in about a dozen SMSs being sent back! All commands the commands I have tried (check, location and camera) result in two acknowledgements. Check also sends a command list which is broken into three separate SMSs, each of which is sent about four or five times!

The smscon -log does twice show
DAEMON ERROR: failed to send SMS to "+xxxxxxxxxx"

after receiving the check command.

smscon also failed to send the location details (after GPS position was acquired) to the mobile phone issuing the command, although it did send the command acknowledgment to the same phone and also correctly sent the google map picture to the nominated e-mail address.

despite my complaints, this program is really cool!

david.

dashavoo 2010-10-17 14:46

Re: [Announce] SMScon (control your device with SMS)
 
I've not tried SMScon yet, and look forward to doing so soon, but I was wondering... I'm sure there used to be another app with the same general idea behind it as this. Infact, I had it installed a while ago, although have since reflashed my device. So, what happened to that?

Dinho 2010-10-17 15:21

Re: [Announce] SMScon (control your device with SMS)
 
I foolishly edited the smscon_config file and I can't start the smscon editor anymore - it gives me "fatal error" message.

Will replacing the smscon_config file with the original fix the problem. If so, could someone send me one?

digitalvoid 2010-10-17 17:56

Re: [Announce] SMScon (control your device with SMS)
 
Tomorrow I will push a new update (0.5-9) to the auto-builder, which will solve a few problems some users had with SMS sending. (I had made internal changes in the previous code which had more repercussions that I had anticipated).

Quote:

Originally Posted by bowen (Post 841713)
Very nice app! :)

....

It would be very nice if there were a few commands to execute user-defined scripts - This would also save the headache involved in implementing the featue a few others requested - a command to wipe the device. Any user who wants such a thing can write their own script for it and point SMSCON to the correct file.

Version 0.5-9 will also add the use of a user-defined shell script file (/opt/smscon/smscon_script) so that user can run other programs, delete files etc. How this works see the wiki when released.

Changelog:

0.5-9
  • NEW: added new smscon command: COM_CUSTOM to run a user configurable shell script (/opt/smscon/smscon_script)
  • NEW: if user setting REMOTEUSER, REMOTEPASSWORD is empty, "Remoteon" & "Remoteoff" function is disabled in smscon.
  • NEW: smscon will send automatically a SMS message when smscon is activated & device battery is depleting.
  • EXPERIMENTAL/NEW: when new SIM card inserted ("thief SIM card swap") & no cell reception available, smscon will retry to send SMS after 900 seconds, until sending was successful (cell reception available again).
  • CHANGE: added time notation in GPS email & SMS messages.
  • CHANGE: improved the way smscon reads user settings from smscon_config file.
  • EXPERIMENTAL/FIX: change in getting the right GPRS connections; MMS & WAP will be discarded in available GPRS network list. (thanks to Zimon)
  • FIX: picture of frontcam & GoogleMap image are named wrong & placed therefore in wrong directory.
  • FIX: smscon fails to send SMS message when message is too long (> 160 chars.).

mangal_sk8erboy 2010-10-19 20:25

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

Theres a small flaw to this app.
If you've installed this app on your phone, MAKE SURE YOU DO NOT HAVE A SECURITY LOCK ON YOUR PHONE.

My n900 was stolen yesterday :(.. I had a security lock code on my phone. And because of that, i wont be getting my phone back :(.

The thing is guys, the thief would take the battery out as soon as possible. Once he reboots the phone with a new sim or no sim at all, then the security lock code appears..hence he is forced to reformat the phone. and thus, the point of this software is gone.
If i hadnt put a lock code, the thief would have probably sold it to another person, and in turn, my friend wouldve gotten an sms on the imei number change.
I COULDVE CAUGHT THAT M*THERF**KER!!
Learn from my mistake guys.

You NEVER know when your phone can be stolen.
(TRUST ME..I AM ONE OF THE MOST CAREFUL PEOPLE EVER.
I CHECK MY POCKETS EVERY 20 MINUTES.I JUST GOT HUSTLED BY THE ROBBER..)
Ive been a religious member of this forum. But now, i think its time to say good bye :(..(wont be able to afford a new n900)
Its been really nice knowing all of you guys here.

the phone always had surprises. Every day a new app would pop up my news feed.

Any ways, moral of the story is to make sure you dont have a security lock code if you have this app installed people. It could cancel out the sole purpose of the app.


**** this phone was good :(

Goodbye guys,

Love,

Mangal

digitalvoid 2010-10-20 09:48

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

Originally Posted by mangal_sk8erboy (Post 845387)
Hey guys,

Theres a small flaw to this app.
If you've installed this app on your phone, MAKE SURE YOU DO NOT HAVE A SECURITY LOCK ON YOUR PHONE.

My n900 was stolen yesterday :(.. I had a security lock code on my phone. And because of that, i wont be getting my phone back :(.

The thing is guys, the thief would take the battery out as soon as possible. Once he reboots the phone with a new sim or no sim at all, then the security lock code appears..hence he is forced to reformat the phone. and thus, the point of this software is gone.
If i hadnt put a lock code, the thief would have probably sold it to another person, and in turn, my friend wouldve gotten an sms on the imei number change.
I COULDVE CAUGHT THAT M*THERF**KER!!
Learn from my mistake guys.

You NEVER know when your phone can be stolen.
(TRUST ME..I AM ONE OF THE MOST CAREFUL PEOPLE EVER.
I CHECK MY POCKETS EVERY 20 MINUTES.I JUST GOT HUSTLED BY THE ROBBER..)
Ive been a religious member of this forum. But now, i think its time to say good bye :(..(wont be able to afford a new n900)
Its been really nice knowing all of you guys here.

the phone always had surprises. Every day a new app would pop up my news feed.

Any ways, moral of the story is to make sure you dont have a security lock code if you have this app installed people. It could cancel out the sole purpose of the app.


**** this phone was good :(

Goodbye guys,

Love,

Mangal

That's a big bummer :mad:, it would be really really great if SMSCON would have helped you to retrieve your phone.

Did you try to send an SMSCON command to you phone?

For the development of SMSCON I will look if I can think out a scenario in a future release (possible idea: if SIM card has been swapped (different IMSI number) automatically unlock the phone)

digitalvoid 2010-10-20 09:59

Re: [Announce] SMScon (control your device with SMS)
 
New update released (v0.5-9)

WARNING:
The install package will re-initialize the smscon_config file if you are updating a previous version of SMSCON; due to new SMSCON command (COM_CUSTOM). SMSCON-editor 0.6-1 will not be able to edit this command, so for now use a text editor on your phone or use the
Code:

smscon -set
command to change the user variable.

Saturn will eventually release a new version of SMSCON-editor which will have a the ability to edit this new user variable.

Default value of new SMSCON command:

Code:

COM_CUSTOM = "Script"
Change log:

0.5-9
  • NEW: added new smscon command: COM_CUSTOM to run a user configurable shell script (/opt/smscon/smscon_script)
  • NEW: if user setting REMOTEUSER, REMOTEPASSWORD is empty, "Remoteon" & "Remoteoff" function is disabled in smscon.
  • NEW: smscon will send automatically a SMS message when smscon is activated & device battery is depleting.
  • CHANGE: added new options in smscon menu.
  • CHANGE: added time notation in GPS email & SMS messages.
  • CHANGE: improved the way smscon reads user settings from smscon_config file.
  • EXPERIMENTAL/CHANGE: when smscon fails to send SMS message (no cell reception) it will retry after 900 seconds.
  • EXPERIMENTAL/FIX: change in getting the right GPRS connections; MMS & WAP will be discarded in available GPRS network list.
  • FIX: picture of frontcam & GoogleMap image are named wrong & placed therefore in wrong directory.
  • FIX: smscon fails to send SMS message when message is too long (> 160 chars.)

mangal_sk8erboy 2010-10-20 13:29

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

Originally Posted by digitalvoid (Post 845905)
That's a big bummer :mad:, it would be really really great if SMSCON would have helped you to retrieve your phone.

Did you try to send an SMSCON command to you phone?

For the development of SMSCON I will look if I can think out a scenario in a future release (possible idea: if SIM card has been swapped (different IMSI number) automatically unlock the phone)

yeah thats the 1st thing that came into my mind.
Trackon

but my phone was already off by then.
And for the message to deliver, it needs to be switched on, on the same sim card, which is sort of impossible.
atleast I would have gotten the imsi number if i hadnt locked my phone :(.
any ways, is there a way to get my phone back through my IMEI number?
the imei number is printed on the box that comes with the phone.
Can you help me please?

I really love my phone!

digitalvoid 2010-10-20 14:21

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

Originally Posted by mangal_sk8erboy (Post 846077)
yeah thats the 1st thing that came into my mind.
Trackon

but my phone was already off by then.
And for the message to deliver, it needs to be switched on, on the same sim card, which is sort of impossible.
atleast I would have gotten the imsi number if i hadnt locked my phone :(.
any ways, is there a way to get my phone back through my IMEI number?
the imei number is printed on the box that comes with the phone.
Can you help me please?

I really love my phone!

With your IMEI your telecom operator can block the usage of your phone.

PS: What you wrote (in red) is not true, if phone is unlocked and swapped with other SIM card, this SIM cards phone connection is used to send you a SMS with it's number, IMSI number & telecom operator.

mangal_sk8erboy 2010-10-20 14:37

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

Originally Posted by digitalvoid (Post 846125)
With your IMEI your telecom operator can block the usage of your phone.

PS: What you wrote (in red) is not true, if phone is unlocked and swapped with other SIM card, this SIM cards phone connection is used to send you a SMS with it's number, IMSI number & telecom operator.

yeah i know the fact that the app would send an sms from the new sim..
damn, that means that my LOCK code messed me up..
how ironic huh?

just let me know what i should do with my imei number.

i have all my files from my phone backed up.
anything useful?

the worst part is, i KNEW that the lock code would prevent smscon from working completely, but i never thought that my PHONE would ever be stolen.
anyways,
please advise.

You can use this opportunity as an "on the job" training for your app :P

and you would save my life too!

imei number?
i really dont wanna give up.

richwhite 2010-10-20 14:44

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

Originally Posted by mangal_sk8erboy (Post 846136)
yeah i know the fact that the app would send an sms from the new sim..
damn, that means that my LOCK code messed me up..
how ironic huh?

just let me know what i should do with my imei number.

i have all my files from my phone backed up.
anything useful?

the worst part is, i KNEW that the lock code would prevent smscon from working completely, but i never thought that my PHONE would ever be stolen.
anyways,
please advise.

You can use this opportunity as an "on the job" training for your app :P

and you would save my life too!

imei number?
i really dont wanna give up.

Wow. i have a lock code too in case it gets stolen, not using SMS con yet but i would certainly want both.

Is your phone insured?

mangal_sk8erboy 2010-10-20 15:06

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

Originally Posted by richwhite (Post 846141)
Wow. i have a lock code too in case it gets stolen, not using SMS con yet but i would certainly want both.

Is your phone insured?

no man.
i bought my phone from Dubai. ( i live there.)
but now i live in scotland, (my university)
and it got stolen here in scotland.
theres NOTHING you can do with the imei number??

richwhite 2010-10-20 15:11

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

Originally Posted by mangal_sk8erboy (Post 846158)
no man.
i bought my phone from Dubai. ( i live there.)
but now i live in scotland, (my university)
and it got stolen here in scotland.
theres NOTHING you can do with the imei number??

No, IMEI is just a point of reference really, it isn't a tracking tool.

It might not be of any help now, but for future reference you can insure a phone in another country.

smoothc 2010-10-20 15:31

Re: [Announce] SMScon (control your device with SMS)
 
You can go to the police. They can ask vodafone and the other operators if your IMEI has been used and get the number and name from the person who is using it. Other thing is that they have time to do it. Unfortunately a stolen phone is not top priority :(

richwhite 2010-10-20 15:33

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

Originally Posted by smoothc (Post 846171)
You can go to the police. They can ask vodafone and the other operators if your IMEI has been used and get the number and name from the person who is using it. Other thing is that they have time to do it. Unfortunately a stolen phone is not top priority :(

How can they get the person's name?

mangal_sk8erboy 2010-10-20 15:48

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

Originally Posted by smoothc (Post 846171)
You can go to the police. They can ask vodafone and the other operators if your IMEI has been used and get the number and name from the person who is using it. Other thing is that they have time to do it. Unfortunately a stolen phone is not top priority :(

SERIOUSLY??
if i report my imei number to the police they can get that done through service providers??
i will do that STRAIGHT AWAY THEN!
btw, im in scotland, so will that help?

smoothc 2010-10-20 15:52

Re: [Announce] SMScon (control your device with SMS)
 
Where i live if you want to have a sim card you have to provide your name, you are right, in Scotland may be different.

If you report it has been stolen they CAN do that, but i am not so sure they will actually DO it.

mangal_sk8erboy 2010-10-20 21:30

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

Originally Posted by smoothc (Post 846196)
Where i live if you want to have a sim card you have to provide your name, you are right, in Scotland may be different.

If you report it has been stolen they CAN do that, but i am not so sure they will actually DO it.

Ive just reported it to the police.
im getting my imei number most probably by tomorrow.
ill give that to the police too..
lets see what happens.
ill keep you guys updated!

JohnLF 2010-10-20 22:54

Re: [Announce] SMScon (control your device with SMS)
 
Remind them it was a £500 device, so it's not that insignificant a crime...

mangal_sk8erboy 2010-10-20 23:45

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

Originally Posted by JohnLF (Post 846538)
Remind them it was a £500 device, so it's not that insignificant a crime...

done that. they were very kind and helpful.
They said that they would call me for my imei number in a day or two.
What do you guys say? would i get it back?

digitalvoid 2010-10-22 09:14

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

Is the new version (0.5-9) working for you?

NerdKnight 2010-10-26 03:37

Re: [Announce] SMScon (control your device with SMS)
 
Hi digitalvoid,
I was reading the source code of smscon_daemon to learn about receiving and sending sms, and I found a possibly bug:
In the function SMSreceive, the index that you use to trim the PDUMessage (19) depends on the length of the sender's number that is before the sms message in the array, I made a test with that function sending an sms to my phone from a web page, and the sender number was shorter so the message was not decoded correctly.
I suggest to calculate the begin index as follow:
Code:

n=int(PDUmessage[1])
n=n//2+n%2+13
MessageArray  = PDUmessage[n:len(arr)]

that worked for me

digitalvoid 2010-10-26 15:13

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

I didn't develop the SMSreceive code myself (It found it on maemo.org).

Could you explain to more?

In The Netherlands we use a 10 digit number: 06-12345678 (locally used, 06 is prefix for mobile number)

In international format this is: 0031-612345678 or +31-612345678

NerdKnight 2010-10-26 19:15

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

Originally Posted by digitalvoid (Post 851938)
@ NerdKnight:

I didn't develop the SMSreceive code myself (It found it on maemo.org).

Could you explain to more?

In The Netherlands we use a 10 digit number: 06-12345678 (locally used, 06 is prefix for mobile number)

In international format this is: 0031-612345678 or +31-612345678

In Argentine we use 10 digits too, but if the sender's number length change (international numbers or send-free-sms webpages) will not work.
Here is the full specifications of the PDU messages:
http://www.dreamfabric.com/sms/
It seems that the tree first parts are not used on n900, so at 2nd. position in the array is the length of the senders number (in decimal digits, 2 digits per octet)
Code:

n=int(PDUmessage[1])
so we can calculate the starting position of the message as follow:
Code:

n=n//2+n%2+13
13 are the fixed positions before the message and we have to add the length in octets of the sender's number.
To support different sender number lengths, I suggest the function should be like this:
Code:

def SMSreceive(PDUmessage, MessageCenter, SomeString, Number):
    """
    Receive SMS command and execute command.
    """
    n=int(PDUmessage[1])
    n=n//2+n%2+13
    MessageArray  = PDUmessage[n:len(PDUmessage)]

    Message = DeOctifyMessage(MessageArray) # decode sms message as plain text

    ProcessCommand(Message, Number) # process sms command


digitalvoid 2010-10-27 17:34

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

Thanks for explaining. I will put this in release 0.5-10.

slewis1972 2010-10-27 19:00

Re: [Announce] SMScon (control your device with SMS)
 
ok, on 1.3 firmware, using smscon editor, I am trying to enter details into the encrypted fields, eg username and password and nothings being shown in the fields. Any ideas?

Saturn 2010-10-27 19:50

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

This version brings an a new field to rename the command to initiate the execution of the script and all needed changes with the new QT of PR1.3.

Because of the new version of the QT libraries some things will work better but differently.
One important change is that on the fields requiring numbers it is not needed anymore to press the fn button before entering. The selection of numbers or characters is done already for you.

Please check and report possible omissions/problems.

Saturn 2010-10-27 19:53

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

Originally Posted by slewis1972 (Post 854032)
ok, on 1.3 firmware, using smscon editor, I am trying to enter details into the encrypted fields, eg username and password and nothings being shown in the fields. Any ideas?

Wait for the new version - it solves this problem.

slewis1972 2010-10-27 20:39

Re: [Announce] SMScon (control your device with SMS)
 
Thanks - it has.

Now, question, any additional settings I need to alter by using gmails smtp server settings

smtp.gmail.com
port:465

as so far no emails working.

Scott


All times are GMT. The time now is 18:23.

vBulletin® Version 3.8.8