always display Serialport is busy,

every time,the info always display serialport is buy,I had to press the reset button to upload success

some info:

processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:141)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.Sketch.upload(Sketch.java:1186)
at processing.app.Sketch.exportApplet(Sketch.java:1160)
at processing.app.Sketch.exportApplet(Sketch.java:1132)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2381)
at java.lang.Thread.run(Thread.java:745)
Caused by: processing.app.SerialException: 接触串口 'COM4' 释出错。
at processing.app.Serial.touchForCDCReset(Serial.java:87)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:130)
... 6 more
Caused by: jssc.SerialPortException: Port name - COM4; Method name - openPort(); Exception type - Port busy.
at jssc.SerialPort.openPort(SerialPort.java:164)
at processing.app.Serial.touchForCDCReset(Serial.java:81)
... 7 more

Which IDE version are you using? If you are on 1.6.8 could you try testing 1.6.7 and see if it still happens?

facchinm:
Which IDE version are you using? If you are on 1.6.8 could you try testing 1.6.7 and see if it still happens?

right, thx for your help :slight_smile:

So it's not happening in 1.6.7? If so, could you also test this build?

@facchinm

1.6.7 is right,but 1.6.8 shows 'port is busy ' or 'not available'.

the test build is same as 1.6.8. but, sometime is right,it'sstrange

sometime,after uploading,the tool>serialport don't show 101's port.

this time, reupload,IDE would display error info.

hope info is helpful.

Is this on Windows 10? I saw the same thing on a Win 10 VM with 1.6.8. I couldn't upload or even open serial monitor. 1.6.7 is fine. Even in 1.6.7, Win 10 seems sluggish in dealing with ports but it could be because I was on a VM.

bbaltz:
Is this on Windows 10? I saw the same thing on a Win 10 VM with 1.6.8. I couldn't upload or even open serial monitor. 1.6.7 is fine. Even in 1.6.7, Win 10 seems sluggish in dealing with ports but it could be because I was on a VM.

yes,i'm on win10,i don’t have other os~

Hi coloz,
could you test this build? Rework serial ports handling by facchinm · Pull Request #4792 · arduino/Arduino · GitHub
It should solve the "port busy" problem.
Remember to post here the results :wink:
Thanks