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.
IndexProgramming Questions & HelpPrograms › Input/output error in writeByte
Page Index Toggle Pages: 1
Input/output error in writeByte (Read 558 times)
Input/output error in writeByte
Sep 19th, 2006, 1:04pm
 
i use a bluetooth serial replacement module to connect to a bluetooth device attached to a microcontroller. i used processing to connect and send data to the microcontroller.

the bluetooth device attached to the microcontoller is set up as a com port that i can connect to like this:   port = new Serial(this, Serial.list()[3], 9600);

when i run my program, everything goes fine and processing connects to the microcontoller. but then when i try to send data by pressing a button (which sends an integer) i get this error:

Code:

No method named actionPerformed was found in root.


java.io.IOException: Input/output error in writeByte


any ideas?
at gnu.io.RXTXPort.writeByte(Native Method)
Re: Input/output error in writeByte
Reply #1 - Sep 22nd, 2006, 4:46am
 
I'm thinking it is expecting to be able to do a "callback"
to a function in your processing code called "actionPerformed".

Just add this to your sketch, and see if that resolves the problem:

void actionPerformed() { }

-- djones
Page Index Toggle Pages: 1