detect USB port using names
in
Integration and Hardware
•
1 year ago
Hi, I need to make an arduino to speak with processing without manually setting the com port. I can't use expression like this one:
arduinoPort = new Serial(this, Serial.list()[13], 9600) ;
because I can't know on wich port arduino is attached to, and people that uses my program may be do not know what port they must set.
I thought to scan all the port to find the one with the arduino attached to, but when I try to speak with a busy port an exception arises. Do you know if there is a way to know the device name attached to the COM from processing?
thanks
arduinoPort = new Serial(this, Serial.list()[13], 9600) ;
because I can't know on wich port arduino is attached to, and people that uses my program may be do not know what port they must set.
I thought to scan all the port to find the one with the arduino attached to, but when I try to speak with a busy port an exception arises. Do you know if there is a way to know the device name attached to the COM from processing?
thanks
1