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

A non-time-division port multiplexing method and device

A port multiplexing and port technology, applied in the field of non-time-sharing port multiplexing methods and devices, can solve the problems of data loss, difficulty in providing serial ports, and only serial devices can be connected, so as to improve processing capacity and avoid data loss Effect

Active Publication Date: 2018-07-27
WUHAN LAN YAN AUTOMATION APPLY TECHN
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In data communication, such a situation is often encountered: the main control device needs to communicate with multiple peripheral devices at the same time, but the number of communication ports on the main control device is limited, and it is impossible to connect multiple peripheral devices at the same time
For example: 1. The CPU of the GNSS terminal (Global Navigation Satellite System) needs to be connected with GNSS receivers, radios, Bluetooth, GPRS (General Packet Radio Service), computers and other devices. Each device needs one or two serial ports, and the CPU It is very difficult to provide so many serial ports; 2. Bluetooth devices are widely used at present, and MCU or CPU connects peripheral serial devices through Bluetooth devices. A Bluetooth device can only connect to one serial peripheral device, and it cannot connect
This greatly limits the usability of bluetooth
Previously, there was also a device to solve the problem of serial port multiplexing, but it used the principle of time-division multiplexing of analog switches. At a time, only one peripheral device can communicate with the main control device. Once this time slice is missed, Then the data will be lost, and only serial devices can be connected, which cannot really solve the problem of port multiplexing

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
  • A non-time-division port multiplexing method and device
  • A non-time-division port multiplexing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The technical solution of the present invention will be described in detail below with reference to the drawings and embodiments.

[0032] The embodiment of the present invention uses a microprocessor (MCU) to coordinate the data between the port of the main control device and the port of the peripheral device. The main control device and the peripheral device are no longer directly connected, but are forwarded through the MCU. the way is:

[0033] Assign a port on the MCU to connect to the main control device, and then assign a corresponding port to each peripheral device to connect separately;

[0034] After receiving the data from the peripheral device on the MCU, add a "port identification mark" to its data header to distinguish between different ports, and then forward the data with the "port identification mark" header to the main control device;

[0035] After the MCU receives the data from the main control device, it first judges the "port identification mark" in its he...

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 provides a non-time-sharing port multiplexing method and device. A microprocessor MCU is set, and a port is allocated on the MCU to connect with a main control device, which is called a main control port, and a corresponding port is allocated to each peripheral device. The port is connected, called the peripheral port, and the port data flag is preset for each peripheral port; when the master control device sends data to each peripheral device, the "port data flag" of the corresponding peripheral port is added in front of the sent data; MCU Determine whether the master control port has received data, if yes, judge whether the data received by the master control port is an instruction, if it is a configuration instruction of the port, execute the configuration instruction and store the parameters, if it is a reset instruction, reset the MCU directly, otherwise according to the received The "port data flag" carried in the data determines the destination peripheral port for data transmission and forwards it; when the peripheral port receives the data, it adds a "port data flag" to the data header and forwards it to the master port.

Description

Technical field [0001] The invention relates to the technical field of communication devices, in particular to a non-time-sharing port multiplexing method and device. Background technique [0002] In data communication, we often encounter situations where the main control device needs to communicate with multiple peripheral devices at the same time, and the number of communication ports on the main control device is limited, and multiple peripheral devices cannot be connected at the same time. For example: 1. The CPU of the GNSS terminal (Global Navigation Satellite System) needs to be connected with GNSS receivers, radios, Bluetooth, GPRS (General Radio Packet Service), computers and other devices. Each device needs one or two serial ports, and the CPU It is difficult to provide so many serial ports; 2. Bluetooth devices are currently widely used, and MCU or CPU connects to peripheral serial devices through Bluetooth devices. A Bluetooth device can only connect to one serial por...

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 Patents(China)
IPC IPC(8): G06F13/10
Inventor 张涛
Owner WUHAN LAN YAN AUTOMATION APPLY TECHN