Serial port data processing method for Unity 3D platform

A serial port data and processing method technology, applied in the direction of electrical digital data processing, data transformation, generation of response errors, etc., can solve problems such as reading data errors, data loss, and affecting data use

Active Publication Date: 2017-02-22
济南超感智能科技有限公司
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the serial port is used for communication testing, there are some errors in reading data, which affect the use of data. For example, the most common occurrence is that the data read in each frame is not a complete frame of data. In most cases, such as data The combination of the second half of the data that should have been the previous frame and the first half of the data that should have been this frame of data has been collected, and the read data is

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 processing method for Unity 3D platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described and defined below in conjunction with the accompanying drawings and specific embodiments.

[0024] A method for processing serial port data on a Unity3D platform. The specific steps of the method are: 1. calibrate the frame header byte and frame tail byte of the data; 2. convert all the frame byte data into a string; 3. check Whether the first byte of a frame of data received in the current frame is a frame header character, and whether the frame tail is a frame tail character; 4. If the comparison between the frame header and frame tail characters is correct, temporarily put this frame data into a pre-defined In the complete data set; 5. If the comparison is wrong, first traverse the string to check whether there is a string connected at the end of the frame and the head of the frame in this frame data. separated. At this time, if the first frame reads data, create two new strings str01 and str02, destroy the previous da...

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 data processing method for a Unity 3D platform. The serial port data processing method for the Unity 3D platform is capable of, through fusion and correction, converting the error data read by the serial port in the Unity 3D platform to the correct available data. Through performing the secondary filtering to the processed data, uncorrected null data can be filtered. In the Unity 3D platform, automatic dynamic adaptive hardware configuration can be realized by the mode of developing multithreading or the open of the multithreading is controlled by the mode of setting time threshold value so as to achieve the rate of manual regulating receiving data.

Description

technical field [0001] The invention relates to a serial port data processing method of a Unity3D platform, and belongs to the technical field of serial port communication development of the Unity3D platform. Background technique [0002] The serial interface is called serial port for short, also called serial communication interface or serial communication interface (commonly referred to as COM interface), which is an extended interface using serial communication. Its characteristic is that the communication line is simple, as long as a pair of transmission lines can realize two-way communication, thus greatly reducing the cost, it is especially suitable for long-distance communication, but the transmission speed is relatively slow. Because the serial port is easy to use and low in cost, it is now widely used in product development and testing. [0003] At present, the serial port reading interface provided by the Unity3D platform can read serial port data at the smallest ...

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): G06F5/06G06F11/00G06F11/08
CPCG06F5/06G06F11/004G06F11/08
Inventor 耿直王吉庆王可柳秀喆李亮亮马宁王威杨延荣
Owner 济南超感智能科技有限公司
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