The new Xsens DOT PC SDK to develop PC-based applications is now ready! It is possible to download it from our Xsens DOT developer page (https://www.xsens.com/developer). The Xsens DOT Server, an example code for the BLE service specification, is then archived.
Xsens DOT Server is a simple web server that can scan, connect and start measurement with Xsens DOT on Windows, macOS and Raspberry Pi. The system is built using Node.js in combination with Noble.
Functions
Get more information about Xsens DOT in Develepor Page and Base.
Install Python 3.8.3 from the Micfrosoft Store package
Install Node.js-v12.16.2-x64
npm -v
in command prompt to check if the installation is successful.Install node-gyp
npm install -g node-gyp
Install all the required tools and configurations using Microsoft's windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator)
npm install --global --production windows-build-tools
Install Zadig to setup WinUSB driver:
Find Bluetooth adapter inforamtion in Device Manager
Open Zadig, goto Options, enable "List All Devices"
Find your Bluetooth adapter, change the driver to WinUSB. Then click Replace Driver
Note: please retry several times if the intallation fails. Or restart the computer and try again.
Note: For some operating systems (e.g. macOS), the address is not available unless a connection has been established first. If this is the case, the address of the peripheral is set to a counter. This address will be used until the server is restarted and the sensor is discovered again.
Install dependcies
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
sudo apt-get install build-essential checkinstall libssl-dev
Download Node.js 8.x:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
npm
:
sudo apt-get install npm
sudo npm install -g n
sudo n 8.11.1
node -v
git clone https://github.com/xsens/xsens_dot_server.git
cd ./xsens_dot_server
and install the dependency package npm install
node xsensDotServer
sudo node xsensDotServer
If you encounter Error: No compatible USB Bluetooth 4.0 device found!
when try to run Xsens DOT Sever on Windows, it means you need to add your Bluetooth adapter to the USB device list:
Run Xsens DOT Server again.
After replacing the Bluetooth adapter with WinUSB driver, you cannot connect to Bluetooth devices with your PC. Here is the way to reinstall the Bluetooth adapter:
All feedback is welcome and helps us to improve!
Please report all bugs by rasing an issue.
You can also raise app development questions and feature requests of Xsens DOT in our Community Forum.