Pages: [1]   Go Down
Author Topic: Error inside Serial.serialEvent()  (Read 2756 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

« Last Edit: January 27, 2008, 10:09:05 pm by bsjeon » Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 9
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Forum Administrator
Torino, Italia
Offline Offline
Sr. Member
*****
Karma: 4
Posts: 386
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Forum Administrator
Torino, Italia
Offline Offline
Sr. Member
*****
Karma: 4
Posts: 386
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

 :-/
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: