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 2010-10-27 20:43

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

Originally Posted by slewis1972 (Post 854187)
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

username = mailaddress for gmail

and read the wiki for the correct port number..

slewis1972 2010-10-27 21:07

Re: [Announce] SMScon (control your device with SMS)
 
gmail says smtp port number for them is 465

Saturn 2010-10-27 23:16

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

Originally Posted by slewis1972 (Post 854231)
gmail says smtp port number for them is 465

Not really..
http://mail.google.com/support/bin/a...n&answer=13287

hqh 2010-10-29 12:14

Re: [Announce] SMScon (control your device with SMS)
 
I receive every SMS sent by smscon six times. Had to change MaxRetry from GSMmodem to 1.

Also autolock does not work, it just brings a prompt to enter the lock code before locking the device. If the prompt is bypassed the device won't get locked.

Using version 0.5-9

zerocool2k 2010-10-29 19:19

Re: [Announce] SMScon (control your device with SMS)
 
Hey, just a question. Where is the picture taken by the front camera saved? (on the N900). I have some failed attempts at sending email, so I just want to know where to clean up those pics. Thanks.

digitalvoid 2010-10-30 19:32

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

Originally Posted by zerocool2k (Post 856992)
Hey, just a question. Where is the picture taken by the front camera saved? (on the N900). I have some failed attempts at sending email, so I just want to know where to clean up those pics. Thanks.

All (smscon.log, smscon_boot.log, taken camera picture, created GoogleMap image) are in /tmp. And so will be deleted after a reboot.

Aleena 2010-11-01 14:18

Re: [Announce] SMScon (control your device with SMS)
 
Hi, i have installed SMSCON and Editor ver 0.6-3, running on PR1.3. It is a cool application!!! One issue is that i keep getting several "battery warning - phone battery is now at ...." SMS on my contact mobile number. any advise on how to fix this?

digitalvoid 2010-11-01 18:47

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

Originally Posted by Aleena (Post 859670)
Hi, i have installed SMSCON and Editor ver 0.6-3, running on PR1.3. It is a cool application!!! One issue is that i keep getting several "battery warning - phone battery is now at ...." SMS on my contact mobile number. any advise on how to fix this?

It's (not a bug it's) a feature and can be switched of in /opt/smscon/smscon.config.

Look for this:

Code:

# Auto battery status SMS report
# (sends SMS when SMSCON is active & battery is depleting: 'yes' / 'no')
AUTOBATREPORT    = 'yes'

And set it to 'no'

The above is not true!!
In 0.5-9 it this isn't configurable (in upcomming 0.5-10 it will)!

dekin 2010-11-01 19:01

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

Originally Posted by NerdKnight (Post 851225)
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

i guess this is where my problem is coming from.i have set my phone number correctly and yet i dont receive any sms when i test it. please can you look into this and update in the next release? thanks

digitalvoid 2010-11-01 21:35

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

Originally Posted by dekin (Post 860018)
i guess this is where my problem is coming from.i have set my phone number correctly and yet i dont receive any sms when i test it. please can you look into this and update in the next release? thanks

Yes, it will be in 0.5-10.

ivyking 2010-11-01 22:49

Re: [Announce] SMScon (control your device with SMS)
 
Is it possible to run a custom command through sms , also instead of only renaming commands in the command list , please add an option to create your own command .

I will give examples ,

1-running direct commands via sms

I want to write an sms like the following :
XXXXXX:echo dummy_message >> /home/user/dummyfile

where XXXXXX is a predefined key that the script scans the message for , to verify the sender .

the script would execute the command after XXXXXX: no matter what it is .

the above commant simply adds a line to a file ,this is just an example , I want to run any command this way .

-------------------

2-creating a custom command

in the commands tab , I want to be able to add a custom command and give it a custom name ,

example , create a command called change_cpu_profile

and the example command would be :sudo kernel-config load starving .

again this is just an example , just need to execute any command .

Thanks a lot for your efforts .

handaxe 2010-11-01 23:30

Re: [Announce] SMScon (control your device with SMS)
 
There may be a peculiarity of the n900 gps system that makes a config choice of 3 or less gps fixes unwise. I encountered this during a field test, in which my wife sms'ed "Location" to my phone whilst I was hiking (we intend to use smscon as a safety backup for solo hiking in areas with gprs coverage - I disappear, wife sends sms, gets coords, wife sends undertakers or some such...)

The relevant aspect is that I had used the n900's gps an hour or more before and some distance away from the test locality. The coords received from my n900 by sms came from the position where I had last used the gps (with a quoted error of 29m).

Smscon's GPS polling was set to 2 (mistakenly of course). Such a setting poses a clear problem if the N900 gps system is disposed to dish up old coords under some or other circumstance before delivering real one's. I suggest make it configurable, but from 3 onwards.

Last thing: it would be good to have a config option to keep the gprs connection up or have it closed and whatever was up (if any) reinstated (as is the case in the testing suite?). An established HSDPA/GPRS connection starts seeing weather, email and other progs start polling thus shortening battery life.

And thanks to devs for apps

Netweaver 2010-11-03 14:07

Re: [Announce] SMScon (control your device with SMS)
 
Any possibility to allow a list of 'ALLOWED' IMSIs ?

I have 4 SIM cards, one for each of the 4 countries I'm in potentially in every day/week. Changing the SIM to any of these should not trigger this flood of SMSes,

Thanks.

digitalvoid 2010-11-03 19:55

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

Originally Posted by Netweaver (Post 862183)
Any possibility to allow a list of 'ALLOWED' IMSIs ?

I have 4 SIM cards, one for each of the 4 countries I'm in potentially in every day/week. Changing the SIM to any of these should not trigger this flood of SMSes,

Thanks.

I'm currently trying to implement this, but I think it can only be manually done (edit your own IMSI numbers in smscon_code file).

Smscon can't do it automatically because it doesn't know if one of your cards is a valid card when swapped the first time.

Possible solution: at boot time press a specific key to learn smscon the new SIM card (save new IMSI code as valid in smscon_config file). Don't know if this can be done...

Zyriak 2010-11-04 09:48

Re: [Announce] SMScon (control your device with SMS)
 
Great work! Just what I was looking for!

Just got one problem, is it possible to use hotmail? Have someone managed to get a test mail with hotmail settings? if so, what settings did you use? I tried with smtp.live.com port 25 but it didn't work, nor with port 587.

Saturn 2010-11-04 19:54

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

Originally Posted by digitalvoid (Post 862546)
I'm currently trying to implement this, but I think it can only be manually done (edit your own IMSI numbers in smscon_code file).

Smscon can't do it automatically because it doesn't know if one of your cards is a valid card when swapped the first time.

Possible solution: at boot time press a specific key to learn smscon the new SIM card (save new IMSI code as valid in smscon_config file). Don't know if this can be done...

Hi Digitalvoid,

Some more possibilities for you to consider:

1) The daemon is modified to check more than one file. That is, to accept files like smscon_config, smscon_config1, smscon_config2,... etc. found in its directory.

I could add a button in the editor "Add new IMSI" which will basically move/rename the current config file up to the next available slot.
The user then needs to change the SIM and during booting a new config file will be created automatically.

2) The daemon is modified to check multiple lines in the config file. In that case the add button will append the new IMSI in the file.

meandu229 2010-11-05 09:28

Re: [Announce] SMScon (control your device with SMS)
 
Just to give you guys who use this an idea,
I use this in my custom script

osso-xterm -e "mplayer /home/user/MyDocs/1.mp3"

Which opens a terminal window and plays a mp3 , very useful if you lost your phone in the house and its on silent.

Robbie1999 2010-11-08 13:12

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

I'm new to these forums, I have used smscon and attempted to test the app using nominated phone number. I used the 'poweroff' command and that worked fine. The issue now is that the phone wont turn back on. It starts up to the nokia logo with the hands and then turns off again. I have tried sending other commands but none work while the phone is off. It seems i cannot charge the phone either, it shows the nokia water mark for about 30 seconds then viabrates and turns off and then repeats that. Any help would be greatly appreciated.

Cheers
Robbie

Saturn 2010-11-09 19:03

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

Originally Posted by Robbie1999 (Post 866928)
Hi guys,

I'm new to these forums, I have used smscon and attempted to test the app using nominated phone number. I used the 'poweroff' command and that worked fine. The issue now is that the phone wont turn back on. It starts up to the nokia logo with the hands and then turns off again. I have tried sending other commands but none work while the phone is off. It seems i cannot charge the phone either, it shows the nokia water mark for about 30 seconds then viabrates and turns off and then repeats that. Any help would be greatly appreciated.

Cheers
Robbie

Hi,

Did you have a low battery when you powered off?
Did you make any other changes/installations since the last reboot?
Do you have a special installation like overclocking etc?

If you have the possibility to charge the battery outside the phone then you can eliminate a couple of causes.

Robbie1999 2010-11-09 23:23

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

Originally Posted by Saturn (Post 868320)
Hi,

Did you have a low battery when you powered off?
Did you make any other changes/installations since the last reboot?
Do you have a special installation like overclocking etc?

If you have the possibility to charge the battery outside the phone then you can eliminate a couple of causes.

Saturn,

Thanks for the reply, My battery wasn't low but it wasnt full. I haven't rebooted in a while so I assume that I have made changes/ installations. Yes my phone was overclocked.

I have been reading other forums on flat batteries, my situation looks a lot like a completely flat battery. I have access to another battery, I will attempt to flash the firmware once i can get to flasher and let you know how it goes.

Is there anything else, from the answers to your questions, that might be of help? Again, any help is greatly appreciated.

Cheers
Robbie

Saturn 2010-11-10 01:36

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

Originally Posted by Robbie1999 (Post 868552)
Saturn,

Thanks for the reply, My battery wasn't low but it wasnt full. I haven't rebooted in a while so I assume that I have made changes/ installations. Yes my phone was overclocked.

I have been reading other forums on flat batteries, my situation looks a lot like a completely flat battery. I have access to another battery, I will attempt to flash the firmware once i can get to flasher and let you know how it goes.

Is there anything else, from the answers to your questions, that might be of help? Again, any help is greatly appreciated.

Cheers
Robbie

From your explanation I wasn't able to understand if you're in a reboot loop or if it just doesn't want to complete the boot and switches off.

If the second, try a charged battery first. If you're in a reboot loop, I would reflash definitely. Trying to fix it would be too much effort.

Sorry, I can't help really. By reading the code of SMSCON I can tell you that the command you executed did just a shutdown using the command provided by the operating system - nothing special.

Hope you manage to fix it without too much effort.

Robbie1999 2010-11-10 13:33

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

Cheers for your help, its fixed now. I had to use another battery so i could flash the latest firmware. Initially i guess it was stuck in a boot loop and then the battery ran flat. So all my data was still there just had to reinstall all my apps. Whether this was a result of the smscon command or just coincidence I don't know. Thank anyway.

Cheers
Robbie

digitalvoid 2010-11-11 21:43

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

A new update (0.7-1) will be released somewhere in the upcoming week. I was very busy lately with other things, so I didn't do any development on smscon.

Things I will develop (in next or future updates):

1) multiple allowed IMSI numbers in smscon_config; when using multiple SIM cards in your phone.
2) new SMS command COM_SHELL; running direct shell commands via SMS.
3) new SIMUNLOCK, SILENCEDEVICE & AUTOBATREPORT usersettings.

Zyriak 2010-11-12 09:27

Re: [Announce] SMScon (control your device with SMS)
 
Awesome! Keep up the good work :)

Btw, any idea if I can use hotmail and if so how to configure it? Have not found any information regarding this and got no replies yet.

Saturn 2010-11-12 20:21

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

Would like to ask all people already tested the SMSCON and the Editor packages in the testing repository to vote for their promotion.

SMSCON and SMSCON Editor

It would be good to have a version available for the users before we start testing new features. Thanks.

digitalvoid 2010-11-15 19:31

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

Originally Posted by Saturn (Post 863578)
Hi Digitalvoid,

Some more possibilities for you to consider:

1) The daemon is modified to check more than one file. That is, to accept files like smscon_config, smscon_config1, smscon_config2,... etc. found in its directory.

I could add a button in the editor "Add new IMSI" which will basically move/rename the current config file up to the next available slot.
The user then needs to change the SIM and during booting a new config file will be created automatically.

2) The daemon is modified to check multiple lines in the config file. In that case the add button will append the new IMSI in the file.

Hi Saturn, I'm using option 2 (will send you the code when finished, if needed).

micron 2010-11-15 21:42

Re: [Announce] SMScon (control your device with SMS)
 
First, thanks digitalvoid for writing this neat app. Unfortunately I had a pretty serious incident with it this afternoon that made me decide to uninstall it immediately and post this message of caution.

I had installed the app a couple of days ago and configured everything, worked great. It was great to watch a simple sms trigger a whole chain of events that ended up with a front cam pic in my mailbox.

So this afternoon I showed it to my colleague and asked him to send me the "Camera" text message. The program responded, but when I opened the phone, it asked for an access code. After a couple of tries, I found the one that worked, but in the mean time, my colleague was already getting text message after text message. In the end he probably received about 20 messages(!). IIRC the message he received again and again was something like "status message, phone closed".

So please all, beware that misconfigurations or bugs (in any app) can translate to serious loss of money when they happen on a phone. I'm keeping my fingers crossed that I'll only be charged for the 20 messages. Who knows how many the phone may have tried to send.

My advice would be to only use the app on a prepaid sim card until this bug (or something I did wrong?) is resolved. Of course, if there's anything I can do to help find the cause of what happened please let me know.

digitalvoid 2010-11-16 09:59

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

Sorry for this to happen, could you mail me your log file of smscon (is in /tmp/smscon.log) for analysis? (BTW, if you have rebooted your phone after this incident the log file is deleted)

Did you use the last version of smscon (0.5-9) and have you fully configured the smscon_config file before use of smscon?

PS: When smscon is configured to lock the phone after activation & the lock has never been used before on you phone the default code is 12345 (it is wise to change this).

micron 2010-11-16 12:49

Re: [Announce] SMScon (control your device with SMS)
 
No problem, digitalvoid, the risk is part of the deal when using the devel repositories. I was just a little naive regarding the potential consequences. Please don't let it keep you from developing more great apps! :-)

12345 was indeed the code that unlocked the phone. As you can image I kinda freaked out when this happened, so I did reboot the phone, even took the battery out. Is there something like undelete for linux, so that I can try to recover these files?

Not sure what the version was, but I downloaded the app a couple of days ago with the app manager using one of the devel or extras catalogs, so it was probably the latest.

grog 2010-11-16 18:41

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

Originally Posted by digitalvoid (Post 874840)
When smscon is configured to lock the phone after activation & the lock has never been used before on you phone the default code is 12345 (it is wise to change this)

Sorry for the seemingly dumb question :o, but where can we change this code? I can't spot it in the SMScon editor nor in it's config file. TX

Saturn 2010-11-16 21:25

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

Originally Posted by grog (Post 875299)
Sorry for the seemingly dumb question :o, but where can we change this code? I can't spot it in the SMScon editor nor in it's config file. TX

It is in the settings of the N900: menu > settings > device lock.

To all, review the settings of your SMSCON with the Editor and activate the one you need and if you care to avoid costs of SMSs that you don't want to be sent.
e.g. in the config proposed in the wiki page my preferences are more relaxed that the ultimate notification proposed by default.

In short, profit from the effort made to make all those adjustable settings and not fixed in the daemon by tuning it to your preferences.

cheers

digitalvoid 2010-11-16 21:26

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

Under Nokia menu: Settings --> Device lock

(the setting of the lock code has nothing to do with smscon)

(Ha, Saturn was first!)

digitalvoid 2010-11-16 21:48

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

Originally Posted by Saturn (Post 875444)
It is in the settings of the N900: menu > settings > device lock.

To all, review the settings of your SMSCON with the Editor and activate the one you need and if you care to avoid costs of SMSs that you don't want to be sent.
e.g. in the config proposed in the wiki page my preferences are more relaxed that the ultimate notification proposed by default.

In short, profit from the effort made to make all those adjustable settings and not fixed in the daemon by tuning it to your preferences.

cheers

In upcoming 0.7-1 all user settings in smscon_config file will be defaulted to 'no' when a new smscon_config file will be created.



Here is a preview of smscon_config file for 0.7-1 (in red are the new implementations!)

# SMSCON user settings (v0.7-1)

# SMS number
SENDERNUMBER = '+XXXXXXXXXXX'

# SMS commands
COM_CHECK = 'Sms'
COM_REBOOT = 'Reboot'
COM_POWEROFF = 'Poweroff'
COM_POWER = 'Bat'
COM_LOCATION = 'Gps'
COM_REMOTEON = 'Ssh on'
COM_REMOTEOFF = 'Ssh off'
COM_CAMERA = 'Cam'
COM_CALL = 'Call'
COM_LOCK = 'Lock'
COM_UNLOCK = 'Unlock'
COM_TRACKON = 'Gps on'
COM_TRACKOFF = 'Gps off'
COM_CUSTOM = 'Script'
COM_SHELL = 'uptime >> /tmp/log'

# Email settings
EMAILADDRESS = 'XXXXXXXXXXX'
# (encrypted setting)
USER = 'XXXXXXXXXXX'
# (encrypted setting)
PASSWORD = 'XXXXXXXXXXX'
EMAILFROM = 'XXXXXXXXXXX'
MAILSERVER = 'XXXXXXXXXXX'
MAILPORT = 25

# SSH settings
REMOTEHOST = 'bla'
REMOTEPORT = 22
# (encrypted setting)
REMOTEUSER = 'XXXXXXXXXXX'
# (encrypted setting)
REMOTEPASSWORD = 'XXXXXXXXXXX'

# Send acknowledge SMS
# (send acknowledge SMS after receiving valid SMS command: 'yes' / 'no')
COMMANDREPLY = 'no'

# Detect keyboard use
# (send acknowledge SMS if keyboard is slided: 'yes' / 'no')
KEYBOARDDETECT = 'no'

# Device lock
# (lock device after receiving valid SMS command: 'yes' / 'no')
AUTODEVICELOCK = 'no'

# Auto battery status SMS report
# (sends SMS when SMSCON is set active with a SMS command & battery is depleting: 'yes' / 'no')
AUTOBATREPORT = 'no'


# Auto device unlock
# (Unlocks device when new SIM is inserted; 'yes' / 'no')
SIMUNLOCK = 'no'


# Silence the phone
# (disable all phone sounds when SMSCON is set active with a SMS command: 'yes' / 'no')
SILENCEDEVICE = 'no'


# GPS settings
# (if no GPS coordinates after 600 seconds then stop)
GPSTIMEOUT = 600
# (number of GPS coordinates to acquire and use the most accurate in "Location"-mode)
GPSPOLLING = 3
# (time between sending GPS coordinate SMS in "Trackon"-mode: 10 / 20 / 30 / 60 / 120)
GPSINTERVAL = 60
# (method to send GPS coordinates: 'email' / 'sms' / 'both')
GPSSEND = 'sms'

Saturn 2010-11-16 22:12

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

Great, just I would pump up the version since there is no backwards compatibility.
If you don't mind jump to 0.7-x so that we sync.

digitalvoid 2010-11-16 22:42

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

Originally Posted by Saturn (Post 875502)
@Digitalvoid

Great, just I would pump up the version since there is no backwards compatibility.
If you don't mind jump to 0.7-x so that we sync.

Ok, next release will have version number 0.7-1.

grog 2010-11-17 14:45

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

Originally Posted by digitalvoid (Post 875445)
@ Grog:

Under Nokia menu: Settings --> Device lock

(the setting of the lock code has nothing to do with smscon)

(Ha, Saturn was first!)

Thanks for the replies & sorry for my own missplaced question, but I was instead wondering how to change SMScon's own password, not the device's lock code. Or is that one & the same? TX

Saturn 2010-11-17 17:20

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

Originally Posted by grog (Post 876109)
Thanks for the replies & sorry for my own missplaced question, but I was instead wondering how to change SMScon's own password, not the device's lock code. Or is that one & the same? TX

I assume you mean the password to open the SMSCON Editor.
If that's the case, it is the change password button.

cheers.

grog 2010-11-17 20:29

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

Originally Posted by Saturn (Post 876245)
I assume you mean the password to open the SMSCON Editor.
If that's the case, it is the change password button.

cheers.

Now I feel really foolish :o:o:o. I searched around all the settigs tabs but never thought to look for a drop down menu as well.

TX

zimon 2010-11-17 23:05

Re: [Announce] SMScon (control your device with SMS)
 
I haven't followed this thread a while, so maybe someone has already suggested this; but it would be useful to have multiple smtp-servers configured optionally to the settings.

For example, in my country there is basically just three GSM operators which all have their own smtp-servers, which allow only send email if you come from their own network.
So, if the phone is stolen and used in my country, pretty likely the new SIM card will be connected one of the 3 networks, so having all three different smtp-servers configured would be a good thing.
smscon would just try all the smtp servers in the configuration until with one of them it succeeds to send the email.

(And I still think, smscon should have separate SMS password which is used to check quickly and battery efficiently if the income SMS message is meant for smscon; if the first word in sms is the password, process futher, otherwise stop there. Would also simplify things in smscon-editor alot.)

vladimiro 2010-11-18 10:35

Re: [Announce] SMScon (control your device with SMS)
 
Hi everobody.

Can somebody to help me? I have PR 1.3 with smscon 0.5.9 and smscon-editor 0.6.3. All test is working fine, bud don't make any action after receive sms with trigger commnad text. After receive sms is nothing to change in smscon log. Simulate incomming sms is succesfull smscon -test2 "<SMSCON command>", bud real receive trigger by sms no ;(. Please help me...
Thanks


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

vBulletin® Version 3.8.8