Home/Support/Support Forum/XBee COM Port Number for Mac using Eclipse
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

XBee COM Port Number for Mac using Eclipse

0 votes
I am using the MainApp.java on Eclipse that Digi provides.
For the section of code where it's necessary to change the port number I can't seem to enter the right string:

/* Constants */

// TODO Replace with the port where your module is connected to.
private static final String PORT = "COM1";
// TODO Replace with the baud rate of your module.
private static final int BAUD_RATE = 9600;

When I copy the port information from the XCTU for my COORD I get usbserial-A104IB9R - 9600/8/N/1/N - API 1. From what I've read I think that PORT = "A104IB9R" but this doesn't actually work. It gives a "no such port error." I haven't used eclipse much and am just getting started with xbee. Thanks!
asked Jun 6, 2016 in USB Serial by seananderson New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
PORT = "/dev/tty.usbserial-**yourXBee**"
answered Jun 7, 2016 by AMAbernathy New to the Community (1 point)
Thanks so much!
Just for clarification... In this example you read "usbserial-A104IB9R" in XCTU's list of Serial/USB ports (or in port information for that module).
Therefore you should set constant string to "/dev/tty.usbserial-A104IB9R", like here:
private static final String PORT = "/dev/tty.usbserial-A104IB9R";
...