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

Serial port time sharing multiplexing method and system

A time-division multiplexing and serial port technology, applied in the field of communication, can solve problems such as communication conflicts

Inactive Publication Date: 2013-10-23
HUAWEI TECH CO LTD
View PDF7 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor found that the prior art has at least the following problems: when there is only one serial port in the embedded system, communication conflicts will occur when the application program in the system communicates with other devices outside the system through the serial port

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
  • Serial port time sharing multiplexing method and system
  • Serial port time sharing multiplexing method and system
  • Serial port time sharing multiplexing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0075] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0076] On the one hand, the embodiment of the present invention provides a method for time-division multiplexing of serial ports. Exemplarily, the method of the embodiment of the present invention can be applied to an embedded operating system. The serial port is a very common resource in the embedded system, which is used for data transmission with the external devices of the embedded operating system. For example, see figure 1 , is a hardware device diagram...

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 embodiment of the invention discloses a serial port time sharing multiplexing method and a system and relates to the field of communication. According to the serial port time sharing multiplexing method and the system, a console stops to access the serial port when an application program accesses the serial port through leading out a prohibitive interface, an enabling interface and providing a set of second serial driver in an embedded operating system; when the application program stops to access the serial port, the console recovers to access the serial port, so that the console and the application program can multiplex the serial port in a time-sharing manner, and the communication conflicts are avoided. The method of the embodiment comprises the following steps: the prohibitive interface and the enabling interface are led out by the first serial driver; when the application program requires to access the serial port, the console is informed to suspend to access the serial port by the second serial driver through the prohibitive interface; the application program accesses the serial port through the second serial driver; when the application program is not required to access the serial port, the application program stops to access the serial port, the console is informed to recover to access the serial port by the second serial driver through the enabling interface.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and system for time-division multiplexing of serial ports. Background technique [0002] The serial port has the advantages of simplicity and ease of use, for example: the serial port does not require additional operations such as wiring and setting IP, making it a common resource in embedded systems. [0003] Generally, after the embedded system is started, the serial port will be occupied, and the serial port will be used as the console. The console will capture and echo the data received from the serial port, and at the same time output the system’s print information to the serial port; when the console is running in the foreground, it will parse the data it receives from the serial port as a command. In an embedded system with only one serial port, if the application program wants to communicate with other devices outside the embedded system through the serial port without...

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/10
CPCG06F13/10
Inventor 朱涛
Owner HUAWEI TECH CO LTD
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