Check patentability & draft patents in minutes with Patsnap Eureka AI!

UNIX type system serial port data framing method, driving device and readable storage medium

A serial port data and data frame technology, which is applied in the field of hardware communication, can solve problems such as slow speed, low performance of serial port data framing at the application layer, and inability to meet the high-performance framing requirements of industrial control, and achieve high timeliness.

Pending Publication Date: 2022-01-14
山东有人物联网股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of the present invention is to provide a method for framing serial port data in UNIX systems, aiming to solve the problem of low performance and slow speed of serial port data framing at the application layer, which cannot meet the high-performance framing requirements of industrial control

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
  • UNIX type system serial port data framing method, driving device and readable storage medium
  • UNIX type system serial port data framing method, driving device and readable storage medium
  • UNIX type system serial port data framing method, driving device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0040] The main solution of the embodiment of the present invention is to frame the serial port data based on the high real-time serial port driver running in the kernel state in a UNIX type system. The driver divides the frames by judging the interval time between bytes, and divides the bytes whose interval time is lower than the set threshold into the same group of data frames, and then the driver pushes the encapsulated data frames to the application program.

[0041] Because the serial port data framing method commonly used in the prior art is framed at the application program layer, it is realized by operating the device file of the serial port. Although the method is relatively simple, the real-time performance of the application program is poor, so the application program is used to frame the serial port data. ...

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 provides a UNIX type system serial port data framing method, a driving device and a readable storage medium, and the UNIX type system serial port data framing method comprises the following steps: adding a data framing function in a driving program; accurately distinguishing the arrival interval time between byte data randomly sent by a serial port by utilizing high real-time performance of a driving program, distributing two bytes which are lower than a preset interval time to the same data frame, and distributing bytes which are higher than the preset interval time to different data frames, so that in a UNIX type non-real-time advanced operating system, the real-time performance of serial port data framing is improved to the level of a real-time operating system. Compared with the real-time performance of serial port data framing on an application program layer of a UNIX type system, the real-time performance is improved to the millisecond level from the hundred millisecond level, meanwhile, industrial control products can be designed on the UNIX type system, the requirement for high timeliness needed by industrial control is met, and high-grade functions of an operating system can be used to complete complex demand design.

Description

technical field [0001] The invention relates to the field of hardware communication, in particular to a UNIX system serial port data framing method, a driving device and a readable storage medium. Background technique [0002] With the development of the industrial Internet and the increasing complexity of industrial application scenarios, traditional serial terminal devices need to be networked more and more. There are many traditional devices that transmit data through serial ports, and some devices such as sensor terminal devices are not suitable for supporting complex network interfaces due to their own needs, so the data of these devices has great limitations in the scope of use. It can only be used locally and cannot be linked with a remote server. Therefore, converting serial port data to network data has become a very common functional requirement. The process from serial port data to network data needs to encapsulate the bytes received by the serial port into fram...

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 Applications(China)
IPC IPC(8): G06F9/48G06F13/10G06F13/42
CPCG06F9/4812G06F13/102G06F13/4282G06F2213/0002
Inventor 古欣王斌温振新邵慧王磊
Owner 山东有人物联网股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More