Go Down

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


Greetings All,

I was working on my Arduino Diecimila this evening and came across an error.  The reason why I am emailing you directly is because I did a search of the forum and found a similar error message from another user to which you started to reply.  

From  Arduino Forum ? Software ? Troubleshooting  
Error inside Serial.serialEvent()
27. Jan 2008 at 23:05  

The error message I am receiving is:
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)

This message repeats.  

What I am doing is trying to measure capacitance.
See code:  

First I looked over the hardware and it seems fine.
Then I tried the simple stuff like unpluging and repluging the Arduino.
Then starting and stopping the Serial Monitor, which i can do
Then restarting the IDE software.

The first person who came across this error said they got it 'occasionally' I get it consistently.

Any thoughts,

Go Up