Remote data transmission terminal and system, and encoding and decoding methods of remote data transmission protocol
A technology of remote data transmission and encoding method, which is applied in the field of industrial Internet of Things data transmission, can solve problems such as unfavorable development of industrial Internet of Things, inability to store special characters, complex escape, etc., to reduce access workload, improve integration efficiency, The effect of fast transfer rate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example Embodiment
[0024] Example one
[0025] Such as figure 1 As shown, the encoding method of a remote data transmission protocol provided in this embodiment includes:
[0026] Step S11: Obtain all the fields in the first line of the encoded content, and perform ASCII code conversion on the fields in order from left to right to obtain the field string corresponding to each field, and compose all the field strings into the line string of the first line , Where each two adjacent field strings in the line string of the first line are separated by 0x01 characters, and the end of the line string of the first line is 0x02 characters, and the line string of the first line As a temporary string;
[0027] Step S12: Obtain the next line of the encoded content and encode the next line of the string, and add the next line of the string to the temporary string, until all the fields of the encoded content are encoded, the final result will be obtained The temporary character string is sent as SelectHelp data.
...
Example Embodiment
[0045] Example two
[0046] Based on the same inventive concept as the above encoding method, this embodiment provides a method for decoding remote data transmission protocols, such as figure 2 Shown, including:
[0047] Step S21: Receive SelectHelp data.
[0048] In step S22, the row coordinates and column coordinates of the storage address are both set to zero. This is the storage address initialization step.
[0049] Step S23: Read the characters in the SelectHelp data. If the character is not 0x01 and the character is not 0x02, then the character is stored in the second string; if the character is 0x01, the second string is converted into text data and stored in storage Address, the column coordinate of the storage address plus 1; if the character is 0x02, the second character string is converted into text data and stored in the storage address, the row coordinate of the storage address is increased by 1, and the column coordinate of the storage address is changed to 0.
[0050] ...
Example Embodiment
[0056] Example three
[0057] Based on the same inventive concept as the foregoing encoding method, this embodiment also provides a remote data transmission terminal 5, such as image 3 As shown, it includes: a collection interface 1, a data preprocessing module 2, an encoding module 3, and a communication module 4. The acquisition interface 1 is used to connect with the data output interface of the device. The data preprocessing module 2 is used to preprocess the data output by the device to obtain the encoded content. The preprocessing is mainly to convert the format of the data output by the device to meet the requirements of the encoding protocol. Encoding module 3 is used to obtain all the fields in the first line of the encoded content, and convert the fields from left to right to ASCII code to obtain the field string corresponding to each field, and all the field strings form the first line of the line Character string, where every two adjacent field strings in the line s...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap