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 16990 times)
Re: SMS
Reply #15 - Jul 7th, 2009, 8:59am
 
im not sure what it is, but i've checked google and it seems its a known problem in case you are under windows and using rxtx

check this:
http://www.google.pt/search?q=smslib+rxtx+error+0x1&ie=utf-8&oe=utf-8&aq=t&rls=o...

what to do
check the sms library folder, see if you have any rt files there, the dll files or jars.. move them.. just leave javacom and should be fine..

if you ever go around the problem or get to know it better, please post it down here so the rest could know about it
Re: SMS
Reply #16 - Jul 7th, 2009, 9:25am
 
hmm removing them doesnt change anything. I will continue working on this project in 3-4 weeks so i guess i will try to find a solution then or at least come back to ask for help Smiley

but seems like a known problem.
They talked about removing flush() calls and some recently added parameters...
http://code.google.com/p/smslib/issues/detail?id=31

Re: SMS
Reply #17 - Jul 9th, 2009, 7:03am
 
V wrote on Jul 5th, 2009, 1:29pm:
yes, the problem is just like the error messages says. mac and java 1.6
i have recompiled the lib to 1.5, download it from the sample place, same file.

have fun.

thanks it works!
Re: SMS
Reply #18 - Jul 9th, 2009, 10:46am
 
I am on a macbook pro and I have a Nokia 6126. I am pretty lost as to how to get this working.

The example of    gw = new SerialModemGateway( "Nokia 6126", "COM4", 57600, "Nokia","6126" );

Has a value for the com port of COM4 but this is different for OSX and I am not sure where I look this up.

Also, should I be using a special program for connecting to the Nokia? If not, are there any instructions on setting up prefferences to talk to it? Using the system prefs I can connect and browse files on the Nokia but I am not sure how to set it up as a modem.
I m trying to avoid letting the macbook use my nokia to browse the internet through it, obviously I just want it to interface to the phone to receive txt messages via the normal phone service.

Any help is appreciated!
Re: SMS
Reply #19 - Jul 9th, 2009, 12:02pm
 
I dont have any experience using macs, i use a pc, but arent they called different on macs and not com ports? i made that experience when I worked with arduino and tried to make it work.
Re: SMS
Reply #20 - Aug 22nd, 2009, 6:53pm
 
For everyone having the same problems i had earlier in this threat. You can avoid the error Message
Error 0x1 at /home/bob/foo/rxtx-devel/build/../src/termios.c(2497): Unzulässige Funktion.

by setting SERIAL_NOFLUSH to true. you do that by adding

Code:
    srv.getSettings().SERIAL_NOFLUSH = true; 






Re: SMS
Reply #21 - Aug 31st, 2009, 1:07am
 
intellijel:

I am also using mac os 10.5+, Processing 1.05, and nokia phone E60, I would like to know your setup of mac to establish the connection, you chose Modem or RS2-3-2?
Can you specify the specific mac address or device name to send the sms?
Re: SMS
Reply #22 - Sep 13th, 2009, 4:24pm
 
V wrote on Jun 8th, 2009, 7:50am:
i have compiled the smslib and got brian's sample to work.

ive placed the library and the example online for you.



Hi there,

can you (or anyone else who downloaded these files) make them available again the server seems down.


Thanks.
Re: SMS
Reply #23 - Sep 13th, 2009, 4:36pm
 
pixelnerve server has been having problems and going offline often. hopefully it will be back online very soon after they get to solve it and you can get the files from the usual place.

have fun.
Re: SMS
Reply #24 - Sep 14th, 2009, 8:14am
 
server is up again. i'm sorry for any inconvenience. hopefully moving to new servers will help.

have fun.
Re: SMS
Reply #25 - Sep 14th, 2009, 9:01am
 
Got the files, thanks a lot!

I get the same log4j Warnings, but the Script itself seems to be working. Some troubles though as it doesn't read all the messages yet. msgList.size(); doesn't seem to be working correct on the Nokia Phone I use.


For OSX Users: You have to find out / set the Name of the Serial Port to connect via BT. Go to the BT Prefs, select the Device and then go to the bottom, and choose Edit Serial Ports (its right next to Plus and Minus in the Task Menu Dropdown). You will then be able to set the Name of the Com Port and more important: See the Path you need to adress it. It should look like /dev/tty.YourComPortName.

I changed V's Script only in two parts:

1. Added srv.getSettings().SERIAL_NOFLUSH = true;
2. Edit the Gateway-Settings like this:

gw = new SerialModemGateway("MobileName", "/dev/tty.whatever", 56700, "Nokia","6310i" );

Don't bother about the MobileName Var, it does not have to be the name of your phone. Whats important to get a connection is the ComPort (/dev/tty.whatever).


Enjoy.
Re: SMS
Reply #26 - Feb 11th, 2010, 11:59am
 
does this work with iPhones?
Re: SMS
Reply #27 - Feb 11th, 2010, 3:11pm
 
I'm using a jail broken iphone and window 7 (I also have a macbook). Connected the iphone to PC via USB connection and it says "Port_#0001.Hub_#0009" under device properties, does this mean I should put "COM1" as name for serial port?

If iphone is not going to work, say I get another GSM cell phone and connect it to PC via USB?

thanks in advance.
Re: SMS
Reply #28 - Apr 14th, 2010, 5:40am
 
hello

i`m trying to get the examples posted above work
on OSX 10.4 with SE W910i mobile

i have set gateway to:
gw = new SerialModemGateway( "bryan", "/dev/tty.W91", 57600, "Sony Ericsson","W910" );

and the example starts with two errors:
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.


(i ve read i should put some file in prcessing folder...but it is probably Win-only solution ............where should i put it on OSX ...in a processing package content directory?...or maybe somewhere in sketchbook folder?)

nevertheless script seemesto be working with this errors
it connects to the phone
phone asks to allow access permission, i click yes
i get phone name, battery level etc. correctly

but when i click in P5 window to start mousePressed() part of code

it prints out this error in the console
..........
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
     at java.lang.String.substring(String.java:1768)
     at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:479)
     at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:179)
     at org.smslib.Service.readMessages(Service.java:458)
     at org.smslib.Service.readMessages(Service.java:346)
     at SMSconnect.mousePressed(SMSconnect.java:89)
     at processing.core.PApplet.handleMouseEvent(PApplet.java:1607)
     at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1544)
     at processing.core.PApplet.handleDraw(PApplet.java:1436)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:613)

...



then i get  the number of 96 messages on the phone (while there is much much more)
and prints 21 first messages (author, date and content)

all is finished with another error:

....

Exception in thread "Animation Thread" java.lang.RuntimeException: getText() not supported
     at org.smslib.InboundBinaryMessage.getText(InboundBinaryMessage.java:38)
     at SMSconnect.mousePressed(SMSconnect.java:100)
     at processing.core.PApplet.handleMouseEvent(PApplet.java:1607)
     at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1544)
     at processing.core.PApplet.handleDraw(PApplet.java:1436)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:613)

.......


when the phone recieves a message there is another error:

Exception in thread "SMSLib-AsyncMessageProcessor : bryan" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
     at java.lang.String.substring(String.java:1768)
     at org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:479)
     at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:179)
     at org.smslib.modem.AModemDriver$AsyncMessageProcessor.run(AModemDriver.java:869)

..........


my goal is to display received messages

is there any documentation with functions for smslib in processing?
the homepage has docs with settings but i can`t find anything with clear explanation and commands to access messages on the phone


any clues what to do?

thanks

maciej
Re: SMS
Reply #29 - Apr 14th, 2010, 5:59am
 
smslib "for processing" is just a pack of the SMSlib made simple enough to copy&paste and get running.

there is no wrapper for smslib for processing, so the documentation should be at smslib website.

as for getting it to work under macosx i wouldn't know, sorry.
just tested on windows OS.
Pages: 1 2 3