Data serialization method for Internet of Things equipment communication
A technology for IoT devices and data, which is applied in the direction of link quality-based transmission modification, digital transmission system, and channel coding adjustment. , the parsing speed is fast, the effect of small footprint
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Such as figure 1 As shown, a data serialization method for IoT device communication of the present invention includes the following steps:
[0031] S1. Obtain the data packet to be processed, and read the data in the data packet to be processed;
[0032] S2. Encode according to the data type of the data in the data packet using a preset data encoding method, and serialize and store the encoded data.
[0033] Further preferably, the data in the data packet includes a type code ID and an element value for distinguishing each data type.
[0034] Further preferably, the data types of the data in the data packet include basic data types and composite data types; wherein, the basic data types include Boolean data, integer data, floating point data, character data and byte stream data; composite data Types include arrays and objects.
[0035] Further preferably, the array includes an array of objects and an array of basic types; wherein, the array of objects includes a plur...
Embodiment 2
[0038] On the basis of Embodiment 1, the data types of this embodiment are basic data types, and basic data types include Boolean data, integer data, floating point data, character data and byte stream data, wherein Boolean data , Integer data and floating-point data have a fixed value length, while character data and byte stream data have a variable length. Therefore, in this embodiment, two encoding methods are divided according to whether the value length is fixed or not.
[0039] When the data is a type with a fixed value length, that is, when the data type in the data packet is Boolean data, integer data or floating point data, the preset data encoding method is: Boolean data, integer data or Encoding ID of floating-point data plus data value. Among them, the encoding ID and value are as follows.
[0040]
[0041] When the data type is a type whose value length is not fixed, that is, when the data type in the data packet is character data or byte stream data, the pre...
Embodiment 3
[0044] On the basis of Embodiment 1, this embodiment provides an encoding method for data types. Wherein, the object includes multiple fields whose data types are basic data types, arrays or objects.
[0045] When the data type of the data in the data packet is an object, the preset data encoding method is: the encoding ID of the object + the total length of the encoding + the number of fields + each field encoding; where the format of each field encoding is: field serial number + field encoding, The encoded ID of the object is 0. Since the types of each field can be different, the type of each field can be a basic data type, an array, or an object, and the value of the field can be empty. Therefore, the field encoding here is basic data type encoding, array encoding or object encoding. If the field is a basic data type, refer to Embodiment 2 for field encoding. If the field is an array, the field encoding reference
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - 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



