How to determine what port a Propeller ActivityBoard is on
ValeT
Posts: 308
Hi,
I am writing a Java program that interfaces with a Propeller, and I need it to be able to find the COM port a Propeller ActivityBoard is on. I am thinking of using a "brute force" method of just looking at all the first 100 COM ports and sending a message to each of them and then waiting for a return statement from the one COM port with a micro-controller attached.
I would appreciate everyone's thoughts.
Thanks!
I am writing a Java program that interfaces with a Propeller, and I need it to be able to find the COM port a Propeller ActivityBoard is on. I am thinking of using a "brute force" method of just looking at all the first 100 COM ports and sending a message to each of them and then waiting for a return statement from the one COM port with a micro-controller attached.
I would appreciate everyone's thoughts.
Thanks!
Comments
Then just probe those ports for your running Prop program. Also, remember that comm ports above COM9 need to be referred to as \\.\COMxx, where xx is the port number. That's the way I do it from Perl.
-Phil
Everything you need to know about using serial ports from Java, including how to find them.