Go Down

Topic: Arduino serial communication Error! (Read 3910 times) previous topic - next topic

lamela

Jul 14, 2015, 10:00 am Last Edit: Jul 14, 2015, 10:01 am by lamela
Hey! I'm trying to establish serial communication from the Arduino Yun to Labview.. But I'm unable to upload, the error shows:


processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:131)
at processing.app.debug.Compiler.upload(Compiler.java:165)
at processing.app.Sketch.upload(Sketch.java:1167)
at processing.app.Sketch.exportApplet(Sketch.java:1141)
at processing.app.Sketch.exportApplet(Sketch.java:1113)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
at java.lang.Thread.run(Thread.java:745)
Caused by: processing.app.SerialException: Error touching serial port 'COM14'.
at processing.app.Serial.touchForCDCReset(Serial.java:92)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:120)
... 6 more
Caused by: jssc.SerialPortException: Port name - COM14; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:167)
at processing.app.Serial.touchForCDCReset(Serial.java:86)
... 7 more





The code I'm using is just a simple code:

void setup() {
 // put your setup code here, to run once:
Serial.begin(9600);
}

void loop() {
 // put your main code here, to run repeatedly:
Serial.print(analogRead(A0));
}



Really need some help here! Thank you!

Robin2

Code: [Select]
Caused by: jssc.SerialPortException: Port name - COM14; Method name - openPort(); Exception type - Port not found.

This is not a problem with your code.

It is trying to upload to the wrong COM port.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

lamela

#2
Jul 14, 2015, 11:41 am Last Edit: Jul 14, 2015, 11:43 am by lamela
I've checked that my arduino is connected to Serial port COM 14 and I did choose the correct port.. but it said port not found?

sonnyyu

#3
Jul 14, 2015, 03:26 pm Last Edit: Jul 14, 2015, 05:24 pm by sonnyyu
Use "COM1" through "COM9" at Windows box, clean all the unused COM Ports.

http://forum.arduino.cc/index.php?topic=289341.msg2024983#msg2024983


Use Arduino IDE to confirm which port number Yun has ( should be less than 10).









lamela

Yeap. I tried it but it showed the same error :( I'm very certain I chose the correct port and the port is working..

sonnyyu

Test with an other windows box, reinstall Java, OS...

Seeing Yun in IDE Port menu

http://forum.arduino.cc/index.php?topic=188101.msg2089851#msg2089851





ShapeShifter

Try uploading the sketch over the network. (Choose the network port off of the IDE port menu, or use the upload sketch button on the main page of the Yun's configuration web pages.)

It's possible that the bootloader is corrupt on the 32U4 processor. Loading any sketch over the network will cause a fresh copy of the bootloader to be installed.

goosegoose

Hey, so how do I upload the sketch over the network anyhow?
Two or three minutes spent haranguing people on the Internet for answers solves most programming problems

ShapeShifter

Hey, so how do I upload the sketch over the network anyhow?
From the post right above yours:
Choose the network port off of the IDE port menu, or use the upload sketch button on the main page of the Yun's configuration web pages.
Did you have a specific question about one of those two methods?
  • In the Arduino IDE, on the port menu where you normally select your serial port, select your Yun's network address. Then upload the sketch like you normally would.
  • Or, log into your Yun's configuration web page, and the first page contains an "Upload Sketch" section. Click the Browse button and select the .HEX file from the sketch's compilation directory.

Go Up