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

Multichannel data transmission method and system based on asynchronous serial port of single chip microcomputer

A data transmission method and technology of a data transmission system, applied in the direction of digital transmission systems, transmission systems, electrical components, etc., can solve the problems of data receiving and processing time extension, channel waste, etc., to reduce receiving and processing time, avoid waste, improve responsiveness

Active Publication Date: 2015-05-27
CHONQING HUASHU ROBOT CO LTD
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the method of defining the number of fixed channels in the software according to the maximum number of data channels required is mostly used. However, when the data type is smaller than the number of fixed channels in this way, it will not only cause waste of channels, but also prolong the time of data receiving and processing.

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
  • Multichannel data transmission method and system based on asynchronous serial port of single chip microcomputer
  • Multichannel data transmission method and system based on asynchronous serial port of single chip microcomputer
  • Multichannel data transmission method and system based on asynchronous serial port of single chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0039] Such as figure 1 Shown, a kind of multi-channel data transmission method based on single-chip microcomputer asynchronous serial port, comprises the following steps:

[0040] Step 1, configure the asynchronous serial port of the microcontroller:

[0041] The specific implementation of this step on STM32 is: configure the STM32 asynchronous serial port to full-duplex transceiver mode: the first step is to enable the asynchronous serial port clock enable, and the GPIO clock is enabled; the second step is to reset the asynchronous serial port; the second step Three-step GPIO port mode change, configure the asynchronous serial port receiving pin as floating input or pull-up input, and configure the asynchronous s...

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 relates to a multichannel data transmission method and system based on an asynchronous serial port of a single chip microcomputer. The method comprises the following steps: configuring the asynchronous serial port of the single chip microcomputer; receiving first data by the single chip microcomputer; judging whether the first data is analyzed or not according to the condition whether the number of data address numbers of first data is equal to data length codes or not; if so, analyzing the first data, otherwise, entering a receiving state of the next first data; determining the number of data channels which are equal in number according to the data length codes of the first data, determining second data to be collected and transmitted according to the data address numbers of the first data and endowing the collected second data to variables in the data channels to form channel data; and generating an integral frame of message by using the channel data and transmitting the channel data to a host. According to the method and system provided by the invention, the number of the data channels is consistent with the data length codes all the way, the waste of the data channels is avoided, the data receiving and processing times are shortened, and the response speed is increased.

Description

technical field [0001] The invention relates to the field of single-chip microcomputer data transmission, in particular to a single-chip microcomputer-based asynchronous serial port multi-channel data transmission method and system. Background technique [0002] In recent years, single-chip microcomputer technology has developed rapidly and is widely used in the field of industrial control. For example: the ARM Cortex-M3 core specially designed by STMicroelectronics for embedded applications requiring high performance, low cost, and low power consumption. The maximum clock frequency can reach 72MHZ, and the code is executed from the flash memory. The lowest power consumption on the market. At the same time, STM32 can support up to 5 serial ports, has a fractional baud rate generator, and supports synchronous single-wire communication and half-duplex single-wire communication. The serial port of STM32 can work at a maximum of 115200pbs in full-duplex mode, which can meet th...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L1/00
Inventor 肖敏夏亮谭先锋李显成曾海杨海滨
Owner CHONQING HUASHU ROBOT CO LTD