C++_SDK Quick start
Last updated
Last updated
Go to the link below to download the sample
This routine introduces how to use the serial port of the Microsoft Visual Studio platform to connect to the Modbus protocol of WITMOTION serial port, and then directly print data, receive sensor data and communicate with the sensor through Microsoft Visual Studio debugging;
Before viewing this routine, please read the relevant sensor manual to understand the protocol used by the sensor and the basic functions of the sensor
First prepare WITMOTION standard sensor, here take WT901C485 as an example, 3-in-1 serial port module. Wiring:
Physical wiring diagram:
First use Microsoft Visual Studio to open the project WitSimulate.sln file
After opening the software, click the local Window debugger
pop up
Find the serial number
Right-click the window in the lower left corner, click Device Manager
Click on the port to find the serial port number
Go back to the running interface and enter the serial port number
After entering the serial port number, click Enter to receive the data, and the shaking sensor data will be sent back and displayed in real time
For other operations, please refer to the sensor manual