# BeltTearing TCP Protocol Test This Qt/C++ page is a Windows-only client for the `BeltTearingServer` TCP protocol. Control, configuration, and point-cloud data use the same `tcpPort` (default `5800`) connection. JSON frames and `0x05` point-cloud binary frames are multiplexed on that connection. The 5800 protocol uses: ```text ##START# + 8 ASCII digits + JSON + #END ``` After connecting, the page automatically sends `GET_PROTOCOL_INFO`. It supports `SET_REALTIME`, full `GET_CONFIG`/`SET_CONFIG` parameter testing, point-cloud display through `CloudView3D`, CSV output, and optional `CloudUtils` laser-scan file output. The `DETECT_RESULT 测试` tab shows the server broadcasts that do not depend on `SET_REALTIME`: detection time, `alarm`, `count`, the historical maximum fields (`max`/`maxLength`/`maxWidth`/`maxId`), the `tears` table and the `visimg` result image. The page layout lives in `detectresultpage.ui`. Build with the Windows MSVC Qt kit, for example: ```bat qmake BeltTearingTcpProtocolTest.pro nmake ``` Package the Qt runtime from the repository root: ```bat GrabBagPrj\pkg_belttearingtcpprotocoltest.bat ``` The package is written to `GrabBagPrj\buildwin\BeltTearingTcpProtocolTest`.