The method of simulating multi-channel full-duplex serial ports under the arm platform linux system

An analog serial port, full-duplex technology, which is applied in the field of simulating multi-channel full-duplex serial ports under the ARM platform LINUX system, can solve the problems of low efficiency of analog serial ports, the baud rate cannot be increased, and increase product costs, so as to increase communication Stability, eliminate bit errors, high real-time effect

Active Publication Date: 2015-12-16
XIAMEN YAXON NETWORKS CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. Increase the serial port by extending the chip, but there is no doubt that the chip will increase the cost of the product; 2. Simulate the serial port by directly using the ordinary interrupt (IRQ). This method is simple, direct, and easy to implement, but the disadvantages are also obvious. Because the entire system scheduling and mutual exclusion of LINUX use the IRQ interrupt mode, the method of closing IRQ to achieve mutual exclusion during system operation can be seen everywhere, which directly leads to the low efficiency of the simulated serial port realized by this method, high bit error rate, The baud rate can't go up, let alone simulate multiple serial ports

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
  • The method of simulating multi-channel full-duplex serial ports under the arm platform linux system
  • The method of simulating multi-channel full-duplex serial ports under the arm platform linux system
  • The method of simulating multi-channel full-duplex serial ports under the arm platform linux system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0011] In order to describe the technical content, structural features, achieved goals and effects of the present invention in detail, the following will be described in detail in conjunction with the embodiments and accompanying drawings.

[0012] The method for simulating a multi-channel full-duplex serial port under a kind of ARM platform LINUX system of the present embodiment, it comprises:

[0013] Fast interrupt (FIQ) environment establishment, including steps:

[0014] A) Define the FIQ interrupt stack space in the form of a static array; the size of the stack here depends on the implementation of the interrupt service program itself. Optimally, the size of the FIQ interrupt stack space in the interrupt environment establishment is not less than 1K to avoid stack overflow .

[0015] B), revise the value of CPSR register, switch system mode and enter FIQ mode;

[0016] C), assign the first address of the FIQ interrupt stack space to the stack register SP of the FIQ;

...

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 method for simulating a multi-circuit dual-full-duplex serial port under an ARM (advanced RISC machine) platform LINUX system. The method is characterized in that by establishing an interrupt environment and initializing a simulated serial port interface, the communication of a simulated serial port can utilize FIQ (fast interruption quest) interrupt to receive and transmit the data, a non-maskable property for the LINUX system can be achieved, the high real-time property can be realized, and the error code problem can be basically prevented under the situation that the appropriate frequency is provided. The entire scheme is established according to a UART (universal asynchronous receiver / transmitter) drive framework under the LINUX system, so that the interface uniformity under the LINUX system can be guaranteed, the simulated serial port is identical to an interface of an ordinary serial port in use, a receiving baud rate and a transmitting baud rate can be respectively arranged, the full fuplex is received and transmitted, convenience can be realized; and only one hardware timer is used on the aspect of the hardware resource, only two ordinary GPIO (general purpose input / output) ports are added for adding multiple serial ports, no additional resource is needed, and the expandability is strong.

Description

technical field [0001] The invention relates to the application field of the LINUX system under the ARM platform, in particular to a method for simulating multi-channel full-duplex serial ports under the ARM platform LINUX system. Background technique [0002] At present, due to ARM's low power consumption, high performance, easy expansion, and LINUX's open source and free, the ARM+LINUX platform has become the hottest supporting platform in the embedded field. Although the ARM platform itself has abundant peripherals, but in some In some cases, when more serial ports are needed to communicate with various peripherals, the number of serial ports is still not enough. There are usually two ways to resolve this situation, [0003] 1. Increase the serial port by extending the chip, but there is no doubt that the chip will increase the cost of the product; 2. Simulate the serial port by directly using the ordinary interrupt (IRQ). This method is simple, direct, and easy to imple...

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): G06F9/455
Inventor 任赋彭勇郑福第黄达福
Owner XIAMEN YAXON NETWORKS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products