Notices


Reply
Thread Tools
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#451
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 .
 
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#452
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

Last edited by handaxe; 2010-11-03 at 16:18. Reason: thanks
 

The Following User Says Thank You to handaxe For This Useful Post:
Posts: 323 | Thanked: 180 times | Joined on Oct 2009 @ Gent, Belgium
#453
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.
 

The Following User Says Thank You to Netweaver For This Useful Post:
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#454
Originally Posted by Netweaver View Post
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...
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)

Last edited by digitalvoid; 2010-11-03 at 20:00. Reason: possible solution added
 

The Following User Says Thank You to digitalvoid For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Nov 2010
#455
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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#456
Originally Posted by digitalvoid View Post
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.
 
Posts: 16 | Thanked: 5 times | Joined on Feb 2010
#457
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.
 
Posts: 4 | Thanked: 1 time | Joined on Nov 2010
#458
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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#459
Originally Posted by Robbie1999 View Post
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.
 
Posts: 4 | Thanked: 1 time | Joined on Nov 2010
#460
Originally Posted by Saturn View Post
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
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:29.