Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Programming Questions & Help >> Integration >> Processing to Wiring Serial transfer
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1281616079

Message started by PatMonk on 08/12/10 at 12:27:59

Title: Processing to Wiring Serial transfer
Post by PatMonk on 08/12/10 at 12:27:59
While checking the Examples for serial communication between Processing and Wiring I find the wiring output example works but the input does not.  Apparently the program running on the Wiring board stops when Processing starts the transfer.

Title: Re: Processing to Wiring Serial transfer
Post by barragan on 08/13/10 at 06:13:03
hi, please check this example: http://wiring.org.co/learning/libraries/serialreadprocessing.html
in the Processing code section, it does a onetime delay in the draw before start receiving. When processing opens the serial port it resets the Wiring board, if processing starts sending data immediately, the Wiring board might interpret this data as a new program, so the delay gives time for the Wiring program to start accordingly. Please let me know if this works for you.

Title: Re: Processing to Wiring Serial transfer
Post by PatMonk on 08/13/10 at 12:35:55
Thanks, the delay makes the transfer work.  I guess I will have to use this delay in any programs involving inputs in the future.

Pat

Title: Re: Processing to Wiring Serial transfer
Post by barragan on 08/14/10 at 00:52:02
I'll try to reduce to zero the bootloader wait time after running some tests to see if things work properly, it is tricky with some OS's and particular configurations people have in their computers, for example right now for 0026 the auto-reset feature when uploading is not working properly on Windows 7, 0027 will be addressing that issue.

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.