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)

Estel 2012-03-23 17:02

Re: [Announce] SMScon (control your device with SMS)
 
sixwheeledbeast, remember, that You can also try it with your own number as master number (i.e. foe testing purposes, provide number that sit inside N900 as master number - You'll send and receive commands on same device).

/Estel

sixwheeledbeast 2012-03-23 17:12

Re: [Announce] SMScon (control your device with SMS)
 
@Estel
I did know, but had forgotten. Thanks.
I don't want to change anything incase I can't reproduce it.

sixwheeledbeast 2012-03-26 22:45

Re: [Announce] SMScon (control your device with SMS)
 
Here's the output the master seems to get two identical messages.
Although I didn't get two messages this time.
I haven't changed a thing since last time.
Note:- I anon'ed the email a bit more than just the domain.
Code:

==========================================================
2012-03-26 23:24:04[SMSCON] INFO: Updated user setting "DEBUGFLAGS" (DAEMON).
2012-03-26 23:24:05[SMSCON] INFO: Daemon smscon_daemon requested to start.
2012-03-26 23:24:07[SMSCON] INFO: Daemon smscon_daemon started [PID=3659].
2012-03-26 23:24:09[DAEMON] CRITICAL: smscon_daemon is starting.
2012-03-26 23:24:09[DAEMON] DEBUG: Debug logging enabled.
2012-03-26 23:24:09[DAEMON] INFO: Successfully loaded "/opt/smscon/smscon_config" file.
2012-03-26 23:24:10[DAEMON] INFO: Found 1 IMSI code(s) in "/opt/smscon/smscon_code" file.
2012-03-26 23:24:10[DAEMON] INFO: Authorized IMSI code found.
2012-03-26 23:24:10[DAEMON] WARNING: example.com: No property example.com on device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0
2012-03-26 23:24:10[DAEMON] INFO: Phone battery charge is 3% (almost empty!).
2012-03-26 23:24:11[DAEMON] INFO: GPS query interval is 120 sec.
2012-03-26 23:24:11[DAEMON] INFO: Keyboard slider change detection is off.
2012-03-26 23:24:11[DAEMON] INFO: Battery status change detection is off.
2012-03-26 23:24:11[DAEMON] INFO: (CHECKHOST) Checkhost is off.
2012-03-26 23:24:11[DAEMON] INFO: smscon auto-loads at boot. OK.
2012-03-26 23:24:42[DAEMON] DEBUG: DeOctifyMessage: have outputText: [u'/', u'f', u'i', u'n', u'd', u'm', u'e', u'/', u'O', u'w', u'n', u'e', u'r']
2012-03-26 23:24:42[DAEMON] DEBUG: SMS Message Chars:0x2F[/], 0x66[f], 0x69[i], 0x6E[n], 0x64[d], 0x6D[m], 0x65[e], 0x2F[/], 0x4F[O], 0x77[w], 0x6E[n], 0x65[e], 0x72[r]
2012-03-26 23:24:42[DAEMON] DEBUG: SMS received:'/findme/Owner'
2012-03-26 23:24:42[DAEMON] INFO: Received smscon command [Owner] via SMS from +00123456789 (the master) . Acknowledge message disabled.
2012-03-26 23:24:42[DAEMON] WARNING: example.com: No property example.com on device with id /org/freedesktop/Hal/devices/computer_power_supply_battery_bq27200_0
2012-03-26 23:24:42[DAEMON] INFO: Phone battery charge is 3% (almost empty!).
2012-03-26 23:24:42[DAEMON] WARNING: (SILENCE) Silencing is disabled: Phone probably not silent while controlled remotely.
2012-03-26 23:24:43[DAEMON] INFO: File "/opt/smscon/example.com" now deleted.
2012-03-26 23:24:43[DAEMON] INFO: Script file (/opt/smscon/smscon_script) executes in BG.
2012-03-26 23:24:51[DAEMON] DEBUG: GSM modem response "+CMGS:" timeout.
2012-03-26 23:25:01[DAEMON] DEBUG: GSM modem response "+CMGS:" timeout.
2012-03-26 23:25:01[DAEMON] ERROR: Failed to send SMS to "+00123456789".
2012-03-26 23:25:01[DAEMON] INFO: (EMAIL) Trying to connect to "example.com:587" (2012-03-26 23:25:01).
2012-03-26 23:25:02[DAEMON] INFO: (EMAIL) Trying to login to "example.com".
2012-03-26 23:25:04[DAEMON] INFO: (EMAIL) Trying to send email to "example.com".
2012-03-26 23:25:06[DAEMON] INFO: send email message (subject=script) to <xxxxxxxxxxxxx@example.com>
2012-03-26 23:25:06[DAEMON] INFO: (EMAIL) Mailserver connection closed successful.
2012-03-26 23:26:22[DAEMON] CRITICAL: smscon_daemon is stopping on signal 15.
2012-03-26 23:26:22[DAEMON] CRITICAL: smscon_daemon is stopping on KeyboardInterrupt.
2012-03-26 23:26:22[SMSCON] INFO: Daemon smscon_daemon stopped [PID=3659].
2012-03-26 23:26:23[SMSCON] INFO: Script smscon_script was not running.
2012-03-26 23:26:24[SMSCON] INFO: Updated user setting "DEBUGFLAGS" ().


yablacky 2012-03-28 21:20

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

Originally Posted by sixwheeledbeast (Post 1184433)
Here's the output the master seems to get two identical messages.
Although I didn't get two messages this time.
I haven't changed a thing since last time.
Note:- I anon'ed the email a bit more than just the domain.
...

Thank you for the report! It helps me a lot to localize the problem: In the SMS modem protocol there was a repeated timeout after the SMS content has been transferred. Since it does not happen in older version I will do some further investigations. Please be patient until a few days after Easter.

yablacky 2012-04-14 07:51

Re: [Announce] SMScon (control your device with SMS)
 
New release SMSCON 0.9.17-1 has been queued for loading into fremantle extras-devel repository!

Changes:

FIX: Notification SMS were sent twice some times due to a too short timeout value. Now a longer timeout will hopefully fix that.

nicholes 2012-04-14 08:27

Re: [Announce] SMScon (control your device with SMS)
 
Deos new smscon sends sms without changing the SIM? Like before i hv reported(when slider open is checked)?

Is there any way that we can use two or more script? Script1 script2 etc. If not, i think it is good thing for next update to add.

yablacky 2012-04-14 08:36

Re: [Announce] SMScon (control your device with SMS)
 
I just worked on the twice sms problem. Nothing else changed yet.

Since I could never reproduce the twice sms problem by myself, I would like those to test the devel-version who have had the problem in the past. Thanks!

willi6868 2012-04-14 10:01

Re: [Announce] SMScon (control your device with SMS)
 
Will someone port SMScon to Nokia N9 in the future? :)

nicholes 2012-04-14 11:24

Re: [Announce] SMScon (control your device with SMS)
 
i would install and test new version.

BTW what about running more than one script in new update?

sixwheeledbeast 2012-04-14 11:36

Re: [Announce] SMScon (control your device with SMS)
 
Installed will test ASAP. Thanks for the update.
If I run your script again and post the output, will that be useful?

yablacky 2012-04-15 20:11

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

Originally Posted by nicholes (Post 1191981)
i would install and test new version.

yes please, cant wait for feedback!

Quote:

Originally Posted by nicholes (Post 1191981)
BTW what about running more than one script in new update?

probably one of the next things to work on :)

yablacky 2012-04-15 20:20

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

Originally Posted by sixwheeledbeast (Post 1191984)
Installed will test ASAP. Thanks for the update.
If I run your script again and post the output, will that be useful?

Please force smscon to send some sms. If no double sms occur anymore, its all done. Only if you still got doubles it could help me to run my script again. Thanx for testing.

saponga 2012-04-15 21:01

Re: [Announce] SMScon (control your device with SMS)
 
Problem solved. No more double sms. Thanks yablacky

Edit: just to remember... if you use the master number without the area code, when smscom receive a msg from that number it will "understand" like a different number and will send another sms to tha number. So you will receive 2 sms: one for xxxx-xxxx and another for yy xxxx-xxxx.
Hope someone culd understand my poor english.

nicholes 2012-04-16 07:16

Re: [Announce] SMScon (control your device with SMS)
 
i installed the latest version today
my smtp sever was empity so i put it there

i test sms, it worked perfectly but when i checked each command, battery status,slider open. smscon sends smses every time when keyboard slider is open or close.(this is annoying) so i unchecked them.
email also worked fine for me.

BTW there is no double sms.

yablacky 2012-04-16 22:18

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

Originally Posted by willi6868 (Post 1191966)
Will someone port SMScon to Nokia N9 in the future? :)

I can't speak for other maintainers. But I will use my N900 as long as possible. I'm no friend of MeeGo. If time comes I will check if it is possible to run pure Maemo on N9. Only in this case I would spend effort to port smscon.

yablacky 2012-04-16 22:41

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

Originally Posted by saponga (Post 1192564)
Problem solved. No more double sms. Thanks yablacky

Edit: just to remember... if you use the master number without the area code, when smscom receive a msg from that number it will "understand" like a different number and will send another sms to tha number. So you will receive 2 sms: one for xxxx-xxxx and another for yy xxxx-xxxx.
Hope someone culd understand my poor english.

Thank you for testing the fix. The other thing (master number w/o area code) is a different issue. It's not a bug. Just enter the master number with area-code and it works. Its not a workaround to do so. Phone numbers w/o area code are ambiguous and smscon wants to be precise. Its important should you loose your N900 in a different country: then sms to a masternumber w/o area code would fail.

yablacky 2012-04-16 22:46

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

Originally Posted by nicholes (Post 1192649)
i installed the latest version today
my smtp sever was empity so i put it there

i test sms, it worked perfectly but when i checked each command, battery status,slider open. smscon sends smses every time when keyboard slider is open or close.(this is annoying) so i unchecked them.
email also worked fine for me.

BTW there is no double sms.

Thank you for testing the fix. The other things you noticed are on the wish list.

sixwheeledbeast 2012-04-22 09:15

Re: [Announce] SMScon (control your device with SMS)
 
Thanks for the fix all working great.
One message, one reply, one e-mail.
Can't find any errors in the log file, eithier.

yablacky 2012-04-30 13:33

Re: [Announce] SMScon (control your device with SMS)
 
Hi everyone,
could those who have tested the fix of sending multiple sms please vote for this version in extras-testing?

Following this link and give it a thumb-up would be fine:

extras-testing/smscon/0.9.17-1/

Thank you!

ktrev 2012-05-08 00:43

Re: [Announce] SMScon (control your device with SMS)
 
Just got a call that my house was broken into and I am not sure if my n900 was stolen. I havent used it since i got my n9 a month back, but i had smscon installed on it. the sim card i used in my n900 is now in my n9. will this fact affect my ability to use smscon? i know sms messages are the way to activate and use smscon, but since a working sim isnt in my n900 will i have no way to interact with my phone? its been a while since I messed around with smscon

thanks

Estel 2012-05-08 03:38

Re: [Announce] SMScon (control your device with SMS)
 
If smscon is active (i.e starting on boot etc.), when someone inserts new SIM card, You'll get SMS send *to* Your master number specified in SMSCON (in case it was Your own number, You'll get it into N9, but You need to recall what You've put there), containing number of *new* SIM card inserted. So, you'll be able to control device.

It would be funny/awesome to catch burglars due to N900 and SMSCON. don't get high hopes, though.

/Estel

// Edit

Of course all of this will happen, *if* and only *if* You've set SMSCON to disable asking for lock code (*not* PIN code) when unregistered SIM is inserted (or, if You haven't used lock code at all). Otherwise, new "owner" will need to reflash FIASCO+COMBINED before using device, wiping out SMSCON.

ktrev 2012-05-08 04:25

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

thanks for the info, i sure do hope that had all that set up correctly. if anything pops up, ill be sure to post.

zimon 2012-05-08 07:53

Re: [Announce] SMScon (control your device with SMS)
 
There should be a way (a switch in a kernel or boot code) to selective delay the security code asking until the phone has fully booted up. I'd like to have the security code asking mode ON always when the device is booted, but it does make smscon fail.

yablacky 2012-05-08 08:39

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

Originally Posted by ktrev (Post 1203286)
Just got a call that my house was broken into and I am not sure if my n900 was stolen. ....

Things happen on a changed SIM have been explained by Estel. But there may be a chance to control the phone via "Remote Host". This works with any sms if only the new sms allows the phone to connect the internet. Hopefully you've setup "Remote Host"...

Estel 2012-05-08 21:50

Re: [Announce] SMScon (control your device with SMS)
 
^above
SIM
replace
SMS

yablacky 2012-05-11 09:53

SMScon (control your device via web?)
 
Just an idea:

What about a web site that provides a web browser based front end to control registered N900 phones via SMSCON's accordingly configured "Remote Host" feature? Since hosting web sites is not free, would anybody pay a moderate fee to use such a service?

Estel 2012-05-11 10:08

Re: [Announce] SMScon (control your device with SMS)
 
Sounds cool, as long as it does bets use of all available data, i.e. automatically places GPS position in map, etc. Of course it also depends on how high this fee would be, but if it would allow such service running + acted like small donation to SMSCON devs, why not?

After all, it's still possible to use SMSCON without that, and I can imagine, that developing non-web features wouldn't get hurt/slow down.

yablacky 2012-05-13 00:36

Re: [Announce] SMScon (control your device with SMS)
 
smscon 0.9.18-1 has been queued for loading into fremantle extras-devel repository.

New features for COM_CUSTOM and COM_SHELL commands:
  • Multiple custom scripts.
  • Parameters for shell command.
  • Above features allow to set SMSCON parameters remotely via SMS.

Read http://wiki.maemo.org/SMSCON#List_of_known_sms_commands for details.

In the wiki there is a smscon_script that demonstrates usage of new features. Beside other things, it shows how to set smscon settings via sms.

The new features do not require changes in smscon_editor.

yablacky 2012-05-23 02:33

Re: [Announce] SMScon (control your device with SMS)
 
smscon 0.9.19-1 has been queued for loading into fremantle extras-devel repository
  • Fix poor image quality on COM_CAMERA command.
  • Now SMSCON keeps on running if no SIM detected.
  • New function to let front camera send a live video that can be watched on a different computer.

See wiki.maemo.org/SMSCON#COM_CAMERA:_How_to_select_picture_or_video for details.

nicholes 2012-05-23 07:11

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

Originally Posted by yablacky (Post 1211123)
smscon 0.9.19-1 has been queued for loading into fremantle extras-devel repository
  • Fix poor image quality on COM_CAMERA command.
  • Now SMSCON keeps on running if no SIM detected.
  • New function to let front camera send a live video that can be watched on a different computer.

See wiki.maemo.org/SMSCON#COM_CAMERA:_How_to_select_picture_or_video for details.

is it possible to send a video to email(as a photo is sent) one or two min (user defined)in the next version?

i mean it would be easy to use for a noob.

yablacky 2012-05-23 07:25

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

Originally Posted by nicholes (Post 1211201)
is it possible to send a video to email(as a photo is sent) one or two min (user defined)in the next version?

i mean it would be easy to use for a noob.

This would a pretty alternative, let's see :)

yablacky 2012-05-23 07:35

Re: [Announce] SMScon (control your device with SMS)
 
REVOCATION: The 0.9.19 version replies with wrong attachment if
COM_CAMERA is asked to take live video. Don't use it. It isn't the viewr application yet. Wait for version 0.9.20 !!


FORGET ABOVE. IT'S NOT TRUE, FORTUNATELY. Sorry for confusion :o .

yablacky 2012-05-23 10:05

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

Originally Posted by yablacky (Post 1211209)
REVOCATION: The 0.9.19 version replies with wrong attachment if
COM_CAMERA is asked to take live video. Don't use it. It isn't the viewr application yet. Wait for version 0.9.20 !!

Above is not true, fortunately. I'm very sorry for the confusion. :rolleyes: The released version 0.9.19 attaches the correct viewer application file. It was a mistake in my development environment only ...

yablacky 2012-05-30 20:45

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

Recent SMSCON devel version proposed better front cam image quality. Is there anybody who has tested new quality of front camera images already? Are you satisfied?

Estel 2012-05-30 21:23

Re: [Announce] SMScon (control your device with SMS)
 
I'll test it ASAP and post result here. Meanwhile, little bug I've discovered, when I forget to add IMSI of SIM card before inserting it into my N900:

Despite having "unlock on new sim" selected, my device still asked for lock code on every reboot, with unauthorized sim card inserted.

Also, I got messaged about "phone now unlocked", despite fact that I haven't set anything like that in SMSCON-Editor (message on keyboard slide-out disabled, etc).

/Estel

saponga 2012-05-30 22:53

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

Originally Posted by yablacky (Post 1215178)
QUESTION

Recent SMSCON devel version proposed better front cam image quality. Is there anybody who has tested new quality of front camera images already? Are you satisfied?

Seems that the image is a litle lighter but i had tested only indoor. I just could see my face and I remember many images before that i didn't see nothing but a black screen. Anyway, i' sure that the problem is actually a hardware limitation. The N900's front cam just sucks !
Thanks yablacky !

yablacky 2012-05-31 07:56

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

Originally Posted by saponga (Post 1215242)
... problem is actually a hardware limitation...

While I worked on improving the image quality I played around with several camera parameters (gain, exposure time, contrast, gamma, ...). My impression is that these parameters have so strong impact on image quality that hardware limitations (resolution, sensitivity, ...) play a minor role. Fortunately. We can't change hardware but can play with software parameters :)

nicholes 2012-05-31 11:18

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

Originally Posted by yablacky (Post 1215374)
While I worked on improving the image quality I played around with several camera parameters (gain, exposure time, contrast, gamma, ...). My impression is that these parameters have so strong impact on image quality that hardware limitations (resolution, sensitivity, ...) play a minor role. Fortunately. We can't change hardware but can play with software parameters :)

thats true.but in previus version of smscon if you get black image we can play with contrast, gamma etc with that black image.i have tasted that black images taken with smscon using adobe photoshop.you can normally see face clearly if you increase contrast and brightness of that black image.

zimon 2012-05-31 12:16

Re: [Announce] SMScon (control your device with SMS)
 
For the longest time I tried couple of tests with SMSCON-editor.
The front camera photo seems to be more readable (lighter) now, thanks.

The GPS-coordinates test was able to lock only to the center of the country I am in. I'd prefer, if it would not send anything if the accuracy is not under some sensible limit (like 10 km). Now it says in the report:
Quote:

Accuracy: 600000.0 mtr
Duration: 239.9 sec
Not very useful in case of the lost or stolen device. I'd rather had it in the settings waiting as long as it takes to get a GPS lock and then send only.

yablacky 2012-05-31 17:11

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

Originally Posted by nicholes (Post 1215435)
thats true.but in previus version of smscon if you get black image we can play with contrast, gamma etc with that black image.i have tasted that black images taken with smscon using adobe photoshop.you can normally see face clearly if you increase contrast and brightness of that black image.

That's interesting. I never tried to load the earlier almost black images into a retouch program to find out if they contain more useful information or to make 'em better... should do it.


All times are GMT. The time now is 05:53.

vBulletin® Version 3.8.8