Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for coding and decoding IoT device protocols adapted to microservice architecture

An Internet of Things device, codec technology, applied in transmission systems, electrical components, etc., can solve problems such as difficulty, the codec module cannot database, cache interaction, cannot meet the needs of information update and information cache interaction, etc. Normal operation, achieve unified effect

Active Publication Date: 2022-06-07
山东泰华照明科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) It is necessary to build a specific development and deployment environment. For example, the loading and running of OSGI modules depends on the OSGI framework environment. Script development needs to build a script development environment. Module development and distributed deployment are more difficult
[0005] (2) The codec module cannot interact with the database and cache, and cannot meet the interactive requirements for information update and information cache in the business

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
  • Method and device for coding and decoding IoT device protocols adapted to microservice architecture
  • Method and device for coding and decoding IoT device protocols adapted to microservice architecture
  • Method and device for coding and decoding IoT device protocols adapted to microservice architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Combine the following figure 1 , figure 2 and image 3 A specific embodiment of the method for encoding and decoding the protocol of the Internet of Things device adapted to the micro-service architecture according to the present invention is described, and the method includes:

[0052] Step 1: Define the codec interface of the codec microservice module to receive parameters in a uniform format, and return the command encoding structure and data decoding structure in a predefined format according to the type of the issued command and the type of the reported data.

[0053] The encoding interface of the codec interface is defined as follows:

[0054] JSONObject encode(String cmdType, JSONObject params);

[0055] Among them, JSONObject represents the return type is a JSON object, encode represents the encoded interface name, the parameter cmdType is a string, representing the type of the issued command, and the parameter params type is a JSON object, including the par...

Embodiment 2

[0073] Combine the following Figure 4 and Figure 5 A specific embodiment of an apparatus for encoding and decoding an IoT device protocol adapted to a micro-service architecture according to the present invention is described, including:

[0074] The codec interface definition module 201 is used to define the codec interface of the codec microservice module to receive parameters in a unified format, and to return the instruction encoding structure and data decoding structure of the predefined format according to the type of the issued instruction and the type of the reported data; The decoding microservice module can be decoupled from specific business processing, specific databases and caching technologies, avoiding the impact of business changes and technology upgrades on the encoding and decoding microservice module, and realizing the external exposure capability and internal encapsulation of the device protocol encoding and decoding microservice module. Unity of details...

Embodiment 3

[0084] The following describes a specific embodiment of an IoT device access system under a micro-service architecture for IoT device access according to the present invention, where the IoT device is a smart lock device.

[0085]The normal operation of the IoT device access system has been connected to the single lamp device and the environmental monitor device. If the smart lock device is further connected to the device access system, it is necessary to write a codec microservice module for the smart lock device. If the device protocol version used is 1.0, set the unique identifier of the codec microservice module of the smart lock device to smart_lock_1.0. Register the codec microservice module of the smart lock device to the microservice registration center, and add the unique identifier smart_lock_1.0 to the device access system to keep the device access system running normally and avoid affecting the codec service of the connected device.

[0086] Taking reading the hear...

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 method and device for coding and decoding an Internet of Things device protocol adapted to a micro-service architecture. The method includes: defining a coding and decoding interface of a coding and decoding micro-service module; determining a unique identifier of a coding and decoding micro-service module; Assign values ​​to the fields in the instruction encoding structure and data decoding structure to realize the encoding and decoding interface; register the encoding and decoding microservice module to the microservice registration center, add or update the unique identifier for calling the encoding and decoding microservice module; the device access system passes The unique identifier uses the codec interface to dynamically call the codec microservice module from the microservice registration center; the device access system performs parsing and processing according to the assigned instruction encoding structure or data decoding structure returned by the codec microservice module. The present invention realizes the dynamic addition or update of the codec micro-service module, keeps the continuous normal operation of the Internet of Things device access system, and avoids the impact of business changes and technology upgrades on the codec micro-service module.

Description

technical field [0001] The present invention relates to the field of IoT devices, and more particularly, to a method and device for protocol encoding and decoding of IoT devices adapted to a micro-service architecture. Background technique [0002] The IoT device protocol is an information exchange specification for the communication between IoT hardware devices and external programs. Device protocol encoding and decoding refers to the conversion of communication information between human-understandable character data and corresponding device-recognizable byte data. Therefore, instruction encoding is required to issue instructions to the device, converting from human-comprehensible character data to byte data, while the data reported by the device needs to be decoded to convert from byte data to human-comprehensible character data. [0003] Due to the diversity of device access management in the IoT environment, the codec of IoT device protocols often faces custom developmen...

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 Patents(China)
IPC IPC(8): H04L69/22H04L69/18H04L69/06H04L67/12
CPCH04L69/22H04L69/18H04L69/06H04L67/12
Inventor 谢中凯郝敬全王淑平刘大扬林华伟李昂马述杰
Owner 山东泰华照明科技有限公司