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

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.

Active Publication Date: 2018-05-04
CHINA STANDARD SOFTWARE
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the one hand, some professional and expensive oscilloscopes will increase the cost of development
On the other hand, although the way of using the application to record logs is simple, it lacks a unified standard. Due to format issues and the evolution of the log program architecture between different development versions, it will make it difficult to merge and maintain multiple versions.
At present, the application serial port log code is copied and pasted everywhere, and the log function is continuously developed repeatedly, which increases the maintenance cost of the software, resulting in poor stability of software development

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 data filtering system and method
  • Serial port data filtering system and method
  • Serial port data filtering system and method

Examples

Experimental program
Comparison scheme
Effect test

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. ...

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 serial data filtration system and method which achieve the purpose of unified and standardized serial data processing. The filtration system is applied to filtration of communication data between a business application program and a serial hardware device, and comprises a configurable file module, an application calling interface and a serial filtration module, wherein the configurable file module is used for configuring a user-state filtration rule for processing the serial data and storing the rule to a configurable file; the application calling interface is used for extracting the configurable file from the configurable file module and sending the configurable file to the serial filtration module; the serial filtration module is used for receiving the configurable file and storing the configuration file; and the user-state filtration rule configured in the configuration file is used for filtering and sending the serial data.

Description

technical field [0001] The invention relates to the technical field of serial port communication, in particular to a serial port data filtering system and method. Background technique [0002] The serial bus is a communication method using a pair of simple twisted-pair wires. This method uses fewer data lines, which can save communication costs in long-distance communication. It can be connected to a computer to achieve multi-point, two-way communication and data acquisition. Simple and inexpensive, it offers noise immunity, relatively high data rates, and reliability. Because of this, the serial bus system is widely used in industrial data acquisition and control, instrumentation, automotive electronics, telecommunication equipment and other fields. Using the serial interface to connect measurement and automation equipment, get rid of the additional hardware requirements for the ISA (Industrial Standard Architecture, industry standard structure bus) or PCI (Peripheral Comp...

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/42
CPCG06F13/4282
Inventor 劳生夏磊刘艳彬宋潇豫乔咏申利飞
Owner CHINA STANDARD SOFTWARE