Attribute communication encoding and decoding method, encoding device, decoding device and system
A codec method and coding method technology, applied in attribute communication codec method, decoding device, coding device, system field, can solve problems such as not being flexible enough, not supporting variable attributes, more communication traffic, etc., to save communication traffic , flexible use, variable transfer length effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] Such as figure 1 as shown, figure 1 It is a flow chart of the encoding process in the attribute communication encoding and decoding method provided by the embodiment of the present invention. The coding process for this method includes:
[0044] S1: Obtain the attribute value to be transmitted.
[0045] It can be clearly seen from the background technology that the attribute value can be data such as temperature, voltage, current, switch value, time and other data generated by devices in the system such as temperature sensors, voltage sensors, current sensors, controllers for controlling switches, and timers.
[0046] S2: According to the preset encoding format, encode the attribute value to be transmitted to obtain the encoded data;
[0047] Among them, refer to figure 2 , the preset encoding format is: a series of encoding sequences composed of several bytes arranged in sequence; the encoding sequence includes: the attribute value index byte K (Key) at the front ...
Embodiment 2
[0084] refer to image 3 , on the basis of embodiment 1, the difference of this embodiment is:
[0085] In this embodiment, the attribute value index byte K includes: a first part used to indicate the attribute type and a second part used for the attribute index value, the first part is located at the front of the coding sequence, and the second part is located after the first part, wherein The type of the second part is an unsigned integer, which is encoded by varint encoding.
[0086] Preferably, the first part consists of 3 bits (bits, also known as bits), and the numerical range of the 3-bit binary number is sufficient to define common attribute types.
[0087] The following is an example to illustrate, as shown in Table 5:
[0088] table 5
[0089] attribute type The value of the first part (3 bits) unsigned integer 1(001) signed integer 2(010) floating point 3(011) string 0(000) double precision value 5(101)
[0090] It c...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com