I am testing my arduino NG with ComPort# 4 on WinXP (as well as on Vista), but I got the error message below a couple of times. The error message comes up while I send a command (ex: value=1) to the arduino board through the serial monitor (on both XP and Vista). I have tested 5 arduinos I have and they occour all the same problem. (Not all the time, but ocasionally.)
Just to let you know, there was no error while I successfully uploaded my sample code to the arduino.
Any suggest or comment on it? Thank!!!
Error inside Serial.serialEvent()
java.io.IOException: Bad file descriptor in nativeavailable
at gnu.io.RXTXPort.nativeavailable(Native Method)
at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
at processing.app.Serial.serialEvent(Serial.java:206)
at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
at gnu.io.RXTXPort.eventLoop(Native Method)
at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
Weird. Maybe something else is trying to read the serial port once you've opened it? If you get that error, what happens if you turn off the serial monitor and then turn it back on?
When it happens, I cannot turn off the serial monitor because the arduino software freezes out. So what I nomally do is restarting the software and then do the same thing. Another thing I have to report is that I am using 4 arduinos (all NGs) connected to one usb hub and the hub is connected to the computer. Any idea? thanks!!!
It's happening to me to.
While I was checking for a serial read from a IR I had to check from the same number from a potentiometer.
The pot happened to start smoking :o
After that time I though I burned the board for some reason.
But blink was doing well
when I changed pot and went on in analizing the changing value in serial monitor when I increase the value this long red not appears on the screen.
Error inside Serial.serialEvent()
java.io.IOException: Bad file descriptor in nativeavailable
at gnu.io.RXTXPort.nativeavailable(Native Method)
at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
at processing.app.Serial.serialEvent(Serial.java:206)
at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
at gnu.io.RXTXPort.eventLoop(Native Method)
at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)