Supercharge Your Innovation With Domain-Expert AI Agents!

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

Pending Publication Date: 2021-01-22
SHENZHEN TOPBAND CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The former supports multiple attributes, but the three attributes of ITL are fixed-length, which requires more communication traffic; although the latter has less traffic, it has a fixed length and does not support variable attributes, which is not flexible enough.

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
  • Attribute communication encoding and decoding method, encoding device, decoding device and system
  • Attribute communication encoding and decoding method, encoding device, decoding device and system
  • Attribute communication encoding and decoding method, encoding device, decoding device and system

Examples

Experimental program
Comparison scheme
Effect test

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

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 an attribute communication encoding and decoding method, an encoding device, a decoding device and a system. The method comprises an encoding process and a decoding process; wherein the encoding process comprises the following steps: S1, acquiring a to-be-transmitted attribute value; S2, encoding the attribute value to be transmitted according to a preset encoding format toobtain encoded data, wherein the preset coding format is that a plurality of bytes are sequentially arranged to form a string of coding sequence; and the coding sequence comprises an attribute valueindex byte K located at the foremost end of the coding sequence, an attribute value length byte L located behind the attribute value index byte K and an attribute value byte V located behind the attribute value length byte L, wherein the attribute value length byte L is used for representing the value length of the attribute value byte V, and the attribute value byte V is obtained by encoding andcompressing in different encoding modes according to the attribute type of the attribute value to be transmitted. The method supports encoding of different attribute values, the length of the attribute values is variable, use is flexible, and communication flow is small.

Description

technical field [0001] The present invention relates to the technical field of encoding and decoding, in particular to an attribute communication encoding and decoding method, encoding device, decoding device and system. Background technique [0002] At present, with the development of the Internet of Things, various systems (such as smart home systems for home use, monitoring systems for various industrial equipment in industry) usually include various sensors or controllers (such as sensors for collecting temperature, voltage, current, etc.) , the controller used to control the switch), etc., and these sensors or controllers are usually abstracted as attribute points, and then the data generated by the sensors or controllers is the attribute point value, and communication coding is required to transmit these attribute point values. [0003] Commonly used attribute point value (data) communication codes are: IT(L)V mode and CMD+V mode. (1), IT(L)V mode: transmit with attri...

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): H03M13/29H03M13/00
CPCH03M13/29H03M13/00
Inventor 李传飞
Owner SHENZHEN TOPBAND CO LTD
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