Active Topics

 



Notices


Reply
Thread Tools
Posts: 219 | Thanked: 21 times | Joined on May 2010
#431
Originally Posted by JohnLF View Post
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?
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#432
@ Zimon:

Is the new version (0.5-9) working for you?
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)
 
NerdKnight's Avatar
Posts: 113 | Thanked: 334 times | Joined on Oct 2010 @ Argentina
#433
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
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#434
@ 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
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)
 
NerdKnight's Avatar
Posts: 113 | Thanked: 334 times | Joined on Oct 2010 @ Argentina
#435
Originally Posted by digitalvoid View Post
@ 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
 
Posts: 200 | Thanked: 300 times | Joined on Nov 2009 @ The Netherlands
#436
@ NerdKnight:

Thanks for explaining. I will put this in release 0.5-10.
__________________
SMSCON wiki (tutorial, changelog etc.)
SMSCON package (package information)
SMSCON-editor (GUI editor for SMSCON)
 
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#437
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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#438
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's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#439
Originally Posted by slewis1972 View Post
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.
 

The Following User Says Thank You to Saturn For This Useful Post:
Posts: 171 | Thanked: 13 times | Joined on Nov 2009
#440
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:21.