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

Serial port time-sharing multiplexing method in embedded system

An embedded system, time-division multiplexing technology, applied in the direction of instruments, electrical digital data processing, etc., can solve the problem that serial ports cannot be used effectively

Active Publication Date: 2013-01-09
北京神戎科技有限公司
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method can only switch related functions in different periods of time, restricting each other, and the serial port cannot be used effectively

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The data applied to the control field is generally an agreed command frame with a frame header and a frame tail, but because the method according to the present invention can obviously also be applied to the screening and application of other data, for different data, its frame length and The frame headers all have normative definitions, therefore, the required target data can be obtained by matching different data types by applying the method of the present invention.

[0022] In the following content, the command frame is taken as an example for illustration, because the data in the control field is generally an agreed command frame with a frame header and a frame tail, and it is relatively the most important. It should be understood that, in the Figures 1 to 3 In the process shown, for the acquisition of command frame data and the exclusion of other data, it can be known that various types of data also exist in the control field, and it can also be known that the ac...

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 serial port time-sharing multiplexing method in an embedded system, comprising the following steps of: 1) screening target data on a drive layer according to the frame head and the frame tail of the received data; 2) feeding the screened target data in a data buffer; 3) invoking ioctl () function to copy the target data of the data buffer to an application layer; and 4) obtaining the target data from the application layer. Via the serial port time-sharing multiplexing method disclosed by the invention, the purpose of directly obtaining serial port data is realized in case of no influence on the original circuit procedure, thus realizing serial port multiplexing.

Description

technical field [0001] The invention relates to a serial port time-division multiplexing method. Background technique [0002] Serial port, that is, serial interface, is widely used in communication terminal equipment and industrial control, such as RS-232, RS-242, RS485, etc. Serial port multiplexing refers to the realization of multiple data link connections (DLC) on one physical serial interface, so that multiple sessions, such as voice, data, USSD, etc., can exist on one serial interface at the same time. Time-division multiplexing (TDMA, Time Division Multiplex Access) is applied in the network to transmit multiple channels of data with one line, based on the technology of applying lines in time divisions. Divide into multiple time periods, and then use the time periods of each job to interleave, so that it seems that multiple jobs are running at the same time. [0003] With the development of digital intelligence, the embedded industry is developing rapidly, and a la...

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/38
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