Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Multipath asynchronous serial communication automatic switching method and device

An asynchronous serial communication and automatic switching technology, which is applied in the field of electronic technology applications, can solve the problems of inability to realize automatic communication switching, asynchronous serial communication RS-232 cannot realize one-to-multiple communication, etc., and achieves stable communication signals. The effect of low transmission power consumption and avoidance of peripheral resources

Inactive Publication Date: 2020-05-29
湖南捷飞科技有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a multi-channel asynchronous serial communication automatic switching method and its device capable of automatic communication switching, so as to solve the problem that the asynchronous serial communication RS-232 proposed in the above-mentioned background technology cannot realize one-to-multiple communication , and the problem that it is impossible to realize the automatic switching of communication

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
  • Multipath asynchronous serial communication automatic switching method and device
  • Multipath asynchronous serial communication automatic switching method and device
  • Multipath asynchronous serial communication automatic switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0025] Embodiment: The present invention provides a technical solution: a multi-channel asynchronous serial communication automatic switching method, comprising the following steps:

[0026] S1, converting multiple RS-232 communication levels into corresponding TTL communication levels;

[0027] S2. The TTL communication level converted in step S1 is transmitted to the signal selector, and the signal selector is controlled by the single-chip controller to control the level change of its pin to selectively output the required TTL signal;

[0028] S3, converting the TTL signal obtained by outputting in step S2 into an RS-232 signal;

[0029] S4. Communicatively transmit the RS-232 signal converted in step S3 to the master device.

[0030] The above single-chip controller uses polling to control the signal selector to selectively output the required TTL signal.

[0031] see Figure 1-5 , the present invention further provides a multi-channel asynchronous serial communication a...

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 the field of electronic technology application, in particular to a multipath asynchronous serial communication automatic switching method, which comprises the following stepsof converting a plurality of RS-232 communication levels into corresponding TTL communication levels; transmitting the converted TTL communication level to a signal selector, wherein the signal selector is controlled by a single-chip microcomputer controller control instruction to control the level change of a pin of the signal selector so as to selectively output a required TTL signal; convertingthe obtained TTL signal into an RS-232 signal; and transmitting the converted RS-232 signal to the main equipment in a communication manner. The invention further provides a multi-channel asynchronous serial communication automatic switching device. The multipath asynchronous serial communication automatic switching device comprises an RS-232-to-TTL converter, a signal selector and a TTL-to-RS-232 converter. According to the invention, a one-to-many communication mode of the RS-232 interface is realized, the expansion of peripheral resources of the CPU is effectively avoided, the cost is reduced, and the method and device has the advantages of stable communication signals and low transmission power consumption.

Description

technical field [0001] The invention relates to the application field of electronic technology, in particular to a multi-channel asynchronous serial communication automatic switching method and a device thereof. Background technique [0002] At present, asynchronous serial communication RS-232 is the most widely used serial communication interface in embedded systems. It has the advantages of low cost and easy use, and is suitable for short-distance communication. [0003] Due to the problem that the traditional RS-232 interface can only communicate one-to-one, it cannot automatically switch between the slave device and the master device according to user needs, which makes it unsuitable in some scenarios. In the prior art, some designers use to expand the CPU peripherals and increase the multi-channel RS-232 communication interface to make up for the above defects, which increases the production cost virtually; The RS-232 serial port is changed to RS-485 or RS-422 serial p...

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): G06F13/42
CPCG06F13/4286G06F2213/0002Y02D10/00
Inventor 李勇徐旺李柏婵
Owner 湖南捷飞科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products