Go Down

Topic: Error inside Serial.serialEvent() (Read 3800 times) previous topic - next topic

bsjeon

Jan 28, 2008, 04:05 am Last Edit: Jan 28, 2008, 04:09 am by bsjeon Reason: 1
Hi,

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)
------------------------------------------------------------------------------------------------


mellis

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?

bsjeon

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!!!

mellis

Do you have the same problem if you only have one Arduino connected to the hub?  What if you connect the Arduino directly to the computer?

bsjeon

I tried only one arduino without the hub and the same thing happened.  But not all the time, but occasionally.  Thank!!!

Davide

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)

Any advices?

Davide

It happens on both arduino 11 & 12

I'm running an arduino 2009 on Xp Sp3.

Oddly enough it seems to work, unless I check on the serial monitor

:-/

rxgvhqkrywq6cxdjoar

Hey guys,

Found this thread while trying to find information regarding the error posted above.

Wanted to post my solution for those that encounter this.

Turns out there was a short circuit between the 3.3 volt and ground in the Power set of pins. Check your pins labeled Power.

Cheers,

rx

cherub66696

My board is shorting out on both gnd's when connected to 3.3V. How can i fix this short. cant see any shorts unless their in the board layers!!

thanks.

Go Up