UT-308, Custom Protocol Converters, Communication Protocol for Serial Dongle
Certification:CE,FCC,ROHS
UT-308, Custom Protocol Converters, Communication Protocol for Serial Dongle
Description:
1. Command message (control ID code – description of data or action type) and response message (to return ER table).
The first two characters represent its function and also it is the command to be sent. The data after some of the two characters are in decimal system. For details, please refer to the following:
Host send:
|
No. |
1 |
2 |
3 |
4 |
5 |
|
Bytes |
1 |
2 |
LENGTH |
1 |
1 |
|
Format |
SOH |
Receiver |
DATA |
BCC |
EOT |
Client response:
|
No. |
1 |
2 |
3 |
4 |
5 |
|
Bytes |
1 |
2 |
LENGTH |
1 |
1 |
|
Format |
SOH |
Receiver |
DATA |
BCC |
EOT |
<SOH> : Header code of the title when data sending begins. (ASCII HEX 01)
<EOT> : End code when data sending ends. (ASCII HEX 04)
<receiver>: The two ASCII characters (“01-FE”) represent the address information of the receiver.
<BCC> : This is for validation to calculate and validate (chksum) from <receiver> to <DATA>, and BCC is the residue after the total of the characters mod by 128. If the resulted residue is less or equals to 32, then another 32 shall be added for supplement.
VB application sample
UPD$=”01ZWABCD”
OrgBuf$ = Chr(1) + UPD$ + CheckSum(UPD$) + Chr(4) ‘Merge command
MSComm1.Output = OrgBuf$ ‘Send command
Public Function CheckSum(Buf As String) As String
Dim i%, OrgBuf$
Dim CKValue%
CKValue = &H0
OrgBuf = Buf
CKValue = 0
For i = 1 To Len(Buf)
CKValue = CKValue + Asc(Mid(Buf, i, 1)) And &H7F
Next i
If CKValue <= 32 Then
CKValue = CKValue + 32
End If
CheckSum = Chr(CKValue)
End Function
<bps> : for baud rate setting, 1 ASCII character “0-4”.
<type> : device type, 2 ASCII character “00-99”.
<rev> : software version of the client, 2 ASCII character “00-99”.
<data> : command data between <Receiver> and <BCC>.
Specifications:
All the communication commands are included in DATA to be transferred in ASCII format.
Send Inquiry to This Supplier
You May Also Like
-
Protection Car Speed Radar 360 Degree Garmin GPS Radar Detector Laser Detection Voice Safety AlertUS$ 1 - 100MOQ: 100 Pieces
-
High Quality Inner Rearview Mirror for JMC Transit V348 Auto PartsNegotiableMOQ: 1 Piece
-
Glass Jewelry BoxUS$ 1 - 100MOQ: 500 Boxes
-
4G Mobile App Remote Real-time Positioning Video Cloud Driving Recorder 24-hour Monitoring Mobile App Remote Viewing Playback High-definition RecorderUS$ 39 - 59MOQ: 2 Combos
-
Car Dvr Car Black Box Car Car RecorderUS$ 58 - 72MOQ: 1 Set
-
4 Channel 1080P SD Video Recorder DVR GPS 4G WIFI With USB VGA PortUS$ 140 - 250MOQ: 1 Piece
-
Factory Wholesale Ai Mdvr DVR 4 CH Mdvr 1080P Mobile DVR With 4G GPS WiFi for VehicleUS$ 60 - 65MOQ: 1 Set
-
2/4/6/8 Channel SD HD 1080P Fleet Dash Cam With GPS CHINA Manufacturer YuweiUS$ 300 - 500MOQ: 20 Bags
-
Automotive Power Filter Eliminate Display Interference Filter Automotive Display Anti-interference FilterUS$ 2 - 5MOQ: 100 Pieces
-
Dash Cam Car Digital Cam Multi ChannelNegotiableMOQ: 1000 Pieces