Serial port data filtering system and method
A serial port data and serial port technology, which is applied in the field of serial port data filtering system, can solve the problems of multi-version merging and maintenance difficulties, increasing costs, increasing software maintenance costs, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0079] Figure 4 A flow chart showing the overall initialization of the serial data filtering system according to one embodiment of the present invention. see Figure 4 , the process includes the following steps S402 to S412.
[0080] Step S402, the Linux operating system is started, that is, after the CPU (central processing unit) of the machine is powered on, the BIOS (Basic Input Output System, Basic Input Output System) is first started, and the boot code of the operating system is run.
[0081] Step S404, memory frame initialization, that is, Linux initializes the memory management frame to switch to protection mode, and establishes a free memory management mechanism.
[0082] In step S406, the serial port hardware device is initialized, that is, the serial port hardware device detection executes the initialization code of the serial port hardware device, and the device interrupts registration.
[0083] In step S408, the serial port filter module is initialized, that i...
Embodiment 2
[0088] Figure 5 A flow chart of a method for filtering serial port data according to an embodiment of the present invention is shown. see Figure 5 , the process includes the following steps S502 to S524.
[0089] Step S502, saving the original configuration of the serial port, that is, the serial port is a shared resource of the system, and the original configuration parameters of the serial port are saved first without affecting other users of the system.
[0090] Step S504, perform serial port configuration, that is, serial port communication must ensure that the baud rate, data bit, parity bit, stop bit, etc. of both communication parties are consistent. Set the minimum characters and waiting time. If there is no special requirement for receiving characters and waiting time, it can be set to 0.
[0091] Step S506, activating the serial port configuration, that is, after the configuration is completed, the configuration needs to be activated to make it take effect, and ...
Embodiment 3
[0104] Figure 6 A flow chart of a method for filtering serial port data according to another embodiment of the present invention is shown. see Figure 6 , the process includes the following steps S602 to S624.
[0105] Step S602, the serial port hardware device receives the data, and the peripheral system sends the second data through the serial port, triggering the serial port hardware device to generate an operating system interrupt.
[0106] Step S604, the Linux interrupt system, that is, Linux invokes a common interrupt system service routine according to the interrupt source and the interrupt number set by the system.
[0107] Step S606, interrupt the system service routine, find the specific serial device driver according to the interrupt source, and call the serial device driver.
[0108] Step S608, the serial port device driver obtains the second data through the serial port hardware command register, and transmits the second data to the serial port filter module. ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


