Communication method and system for transmitting multiple groups of information through serial ports
A communication system and communication method technology, applied in climate sustainability, instruments, electrical digital data processing, etc., can solve the problems of missing data transmission, missing data, and inability to guarantee reliability, and achieve the effect of ensuring reliability.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] Below in conjunction with specific embodiment the present invention is described in further detail:
[0021] Using one master and four slaves, the master and slaves are configured identically. Each machine uses STM32 and Xtend, STM32 is used for processing data, Xtend is used for sending and receiving data and networking, STM32 and Xtend use serial port communication, send 1byte data using 96N81 format, and Xtend of the host and slave uses broadcasting networking. What needs to be sent are four sets of arrays, and the lengths of the arrays are 3, 5, 2, and 3 respectively. Array one is [0x62,0x65,0x76], array two is [0x66,0x67,0x64,0x75,0x59], array three is [0x69,0x76], and array four is [0x35,0x30,0x30]. Before sending, the array length information and the array have been stored in the STM32 of the host.
[0022] The host sends the byte data format of the first array:
[0023] start code data end code 0x01 data 0x02
[0024] 0x01 is define...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
