Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2019-09-06
DALIAN UNIV OF TECH
View PDF10 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If multiple sets of array-like data need to be transmitted, the format cannot tell which set of arrays it is and cannot guarantee reliability
And if the data is transmitted by one-to-many receivers in a broadcast mode, its reliability cannot be guaranteed, and data may be missed or missed, and it cannot be guaranteed to be sent and received completely and correctly.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Communication method and system for transmitting multiple groups of information through serial ports

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication method and system for transmitting multiple groups of information through serial ports, and belongs to the technical field of electronic information. The communication system simultaneously sends a plurality of pieces of information to a plurality of receiving ends through a sending end via serial ports, and comprises a host and a plurality of slaves, wherein the configuration of the host is the same as the configuration of the slaves, and each of the host and the slaves is composed of an STM32 and an Xtend which communicate through the serial ports; thextends of the host and the slaves adopt broadcast networking; and the host sends any data or instructions to all the slaves at the same time. The communication method comprises the steps that the sending end sends a start code, data and an end code, and the receiving ends judge that the received array is the array according to the received start code; and after all the data are sent, the sendingend sends a signal, and the receiving ends send a verification code to the sending end so as to perform verification. The communication method and system has the advantages of being simple and reliable, being able to realize simultaneous transmission of multiple groups of information, and through subsequent verification, being able to completely ensure correct information receiving and transmitting, and guaranteeing the reliability.

Description

technical field [0001] The invention belongs to the technical field of electronic information, and relates to a communication method and system for transmitting multiple sets of information through a serial port, in particular to a communication system and method for sending multiple pieces of information from a sending end to multiple receiving ends through a serial port. Background technique [0002] For scenarios that require absolute reliability, such as aerial typewriters, the transmission of information needs to ensure absolute correctness. At present, the sending and receiving format of the serial port generally adopts the 96N81 (baud rate is 9600, no check digit, 8bits is a set of data transmission, and one stop bit) format. If multiple sets of array-like data need to be transmitted, the format cannot tell which set of arrays it is and cannot guarantee reliability. And if the data is transmitted by one-to-many receivers in a broadcast mode, its reliability cannot be...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F13/42
CPCG06F13/4282Y02D10/00
Inventor 陈晓明李天择高戈李松松
Owner DALIAN UNIV OF TECH