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)

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 12:06.

vBulletin® Version 3.8.8