We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 3 
SMS (Read 16991 times)
Re: SMS
Reply #30 - Apr 15th, 2010, 5:56am
 
i tried with another mobile phone (SE Z610i)
and the results are similar

it could read more messages from the phone memory though,
about 50 of them but still finishing with the same error

the number of read messages was different each time i run the example
varying from 50 to 100
anyone knows the reason?

still i can`t capture incomming messages

one more question
on OSX in blutooth preferences
i can setup serial port as modem or rs-232
does this make any difference in this example?
(the example seems to work the same in both cases)


maciej
Re: SMS
Reply #31 - Apr 15th, 2010, 8:38am
 
hello again

browsing through documentation i found out that most of my errors come from the fact that the phone i use is loaded up with hundreds of messages, while it it would be best if the inbox was empty

whenever script calls msgList.size() it takes about 10 secconds to recieve results
i assume that it is because of the high number messages to analyze and low speed of connection

what is more i found out it breaks out on vcards it finds in the inbox
when i deletated all the vcards it finds out much more messages but in fact still can`t manage to read all of them

also i found an information that whenever a message is recieved script again browses through all the messages in the inbox to display them all and that might be the reason why it hangs on recieving a message in my case

the best solution would be to clear the inbox
and delete every message after it is displayed

am i right?

ma
Re: SMS
Reply #32 - Apr 15th, 2010, 9:58am
 
i think the best you could do is compare messages.
if the msg is already in your msgList ignore it and delete it from the phone
think of your phone as a modem.
Re: SMS
Reply #33 - Apr 19th, 2010, 10:28am
 
hello p5forum

i managed to work it out
like i suspected before
cleaning phone memory was the solution for all the errors

i had to erease all messages from inbox, sent and drafts folders and restart the phone

after that everything works seamlessly
i use examples posted by V and in terms of smslib i had to modify only SerialModemGateway part, changing serial port adress and phone name
so the  example works almost "out of the box"
it can recieve messages and delete them afterwards

i used Sony Ericsson  W910i mobile, and processing 1.09 on OSX 10.4.11
...

thanks V for the examples and help

greets

maciej
Pages: 1 2 3