Connecting Nexmosphere Devices to a Windows/Linux PC
-
Nexmosphere devices are connected to PCs via USB.
- The newer XN/XC series use a direct USB to USB-mini cable.
- The older XM range use RS232, needing a serial-to-USB adapter.
-
For the purposes of Broox Sensor the devices will present as Serial Ports.
- The device name on Windows is COM#: (COM2:, COM3:...).
- The device name on Linux is /dev/ttyUSB# (e.g. /dev/ttyUSB3).
Checking the COM#: port in Windows.
- Unplug the Nexmosphere module from the PC.
- Open
Device Manager
(Win+R, excutedevmgmt.msc
). -
Locate the
Ports (COM/LPT)
section. -
Note the existing ports.
- Plug back the Nexmosphere device.
-
In due time, a new port will appear.
- If you are using a serial-to-USB adapter (XM range) be sure to install the cable drivers before.
Checking the /dev/ttyUSB# port in Linux.
- Unplug the Nexmosphere module from the PC.
- Open a Terminal shell.
-
Execute
ls /dev/ttyUSB*
-
Note the existing ports.
- Plug back the Nexmosphere device.
-
Execute again
ls /dev/ttyUSB*
and check for a new serial port device.
Checking the RS232 port is connected in Windows
- Ensure Broox Sensor Node is Off.
- Download Termite: a simple RS232 terminal
-
Install and execute (if you don't want to leave it in the PC, there is a portable zip version).
-
Click on
Settings
.-
Select the discovered Nexmosphere Port (e.g. COM6:).
-
Set the
Baud Rate
to115200
andAppend CR+LF
toTransmitted Text
. -
Accept with
Ok
.
-
-
Try to interact with the devices, for example passing an RFID tag nearby, activating a sensor, etc.
-
If the communication works you will see the X-Talk messages on console:
-
The messages are of the form
X001A[1]
or similar. See the X-Talk API Manual for more info.
-
-
If nothing shows, you can try sending a status request to a connected device (e.g. an RFID device on port 1:
D001B[TYPE]
). -
If data appears "garbled", check the Baud Rate settings and that you are connecting to the right port.
- Info for experienced users: Nexmosphere serial ports work at 115200/8N1.
- If no response is received, check the connection.
- Check no other program (Sensor Node, for example) is blocking the port.
Checking the RS232 port is connected in Linux
- Ensure Broox Sensor Node is Off.
- Install miniterm with
sudo apt install python3-serial
-
Start miniterm with
miniterm -e --eol CRLF - 115200
-
Select the discovered port (
3
in our case). -
Try to interact with the devices, for example passing an RFID tag nearby, activating a sensor, etc.
-
If the communication works you will see the X-Talk messages on console:
-
The messages are of the form
X001A[1]
or similar. See the X-Talk API Manual for more info.
-
-
If nothing shows, you can try sending a status request to a connected device (e.g. an RFID device on port 1:
D001B[TYPE]
).