CN112749117A - Data transmission module and data transmission method of Internet of things equipment and platform - Google Patents

Data transmission module and data transmission method of Internet of things equipment and platform Download PDF

Info

Publication number
CN112749117A
CN112749117A CN202011618920.1A CN202011618920A CN112749117A CN 112749117 A CN112749117 A CN 112749117A CN 202011618920 A CN202011618920 A CN 202011618920A CN 112749117 A CN112749117 A CN 112749117A
Authority
CN
China
Prior art keywords
data
module
equipment
data conversion
internet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011618920.1A
Other languages
Chinese (zh)
Other versions
CN112749117B (en
Inventor
温小斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo Haida Iot Technology Co ltd
Original Assignee
Ningbo Haida Iot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo Haida Iot Technology Co ltd filed Critical Ningbo Haida Iot Technology Co ltd
Priority to CN202011618920.1A priority Critical patent/CN112749117B/en
Publication of CN112749117A publication Critical patent/CN112749117A/en
Application granted granted Critical
Publication of CN112749117B publication Critical patent/CN112749117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Abstract

The invention discloses a data transmission module and a data transmission method of Internet of things equipment and a platform, which are characterized by comprising a data receiving and transmitting module, an identification module, an event transponder, a matching module, a data conversion management module and a plurality of data conversion modules which are preset on a user platform and respectively correspond to different equipment models; the data conversion module is independent of the platform and the Internet of things equipment, can be freely modified, and develops corresponding data conversion modules respectively according to different models of the Internet of things equipment in advance; can realize the data conversion function of pluggable formula, the simple and convenient swift flexibility of operation of pluggable formula, when newly-increased or change data conversion module, the code of platform and thing networking device communication module all need not change, can last normal operating, and the fortune dimension efficiency is higher.

Description

Data transmission module and data transmission method of Internet of things equipment and platform
Technical Field
The invention relates to a data transmission module and a data transmission method, in particular to a data transmission module and a data transmission method of Internet of things equipment and a platform.
Background
The original serial port data of the internet of things equipment does not have readability, generally are byte data, and can be applied to a user platform after being analyzed and converted, and the conversion work can be realized by a communication module or a platform end of the internet of things equipment.
If the data conversion is realized by the internet of things equipment communication module, different communication modules are assembled on different internet of things equipment models, so that the communication modules cannot be unified and standardized; if the platform end realizes data conversion, because the platform needs to be accessed to various Internet of things devices of different models, the various Internet of things devices of different models have different serial port data protocols, if a new Internet of things device model is accessed or the original serial port data protocol of the Internet of things device is modified, the platform end needs to modify codes and restart the service, and if the serial port data protocol of the Internet of things device changes frequently, the platform is frequently restarted, and the operation and maintenance efficiency is low.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a data transmission module and a data transmission method of Internet of things equipment and a platform, which realize a pluggable data conversion function and are simple, convenient, quick and flexible to operate.
The technical scheme adopted by the invention for solving the technical problems is as follows: a data transmission module of Internet of things equipment and a platform comprises a data receiving and transmitting module, an identification module, an event repeater, a matching module, a data conversion management module and a plurality of data conversion modules which are preset on a user platform and respectively correspond to different equipment models;
the data transceiver module is used for receiving equipment data which are reported by the Internet of things equipment and contain equipment model information and have a specific data format;
the identification module is used for acquiring equipment model information from the equipment data with the specific data format received by the data transceiver module and sending the equipment model information to the matching module;
the user platform sends the received information to the data conversion management module through the event transponder when the data transceiver module receives the device data;
the data conversion management module is provided with a cache pool, and is used for downloading a plurality of preset data conversion modules which respectively correspond to different equipment models in advance on the user platform, and after the downloading is finished, the data conversion management module loads the downloaded data conversion modules into the cache pool to obtain corresponding data conversion examples;
after the data conversion management module receives the received information, a data conversion example matched with the received equipment model information is searched in the cache pool through the matching module, then the data receiving and sending module sends the equipment data with a specific data format to the matched data conversion example, the data conversion example is used for analyzing the received equipment data with the specific data format and converting the equipment data into a general data format which can be identified by the user platform to obtain general data, and then the general data is sent to the user platform, and the user platform is used for receiving the general data;
the user platform is further used for sending a control instruction in a general data format to the matched data conversion example, the matched data conversion example is used for analyzing the received control instruction in the general data format, converting the control instruction into equipment control information in a specific data format which can be recognized by the internet of things equipment, and sending the equipment control information in the specific data format to the data transceiver module, and the data transceiver module is used for sending the equipment control information in the specific data format to the internet of things equipment.
The general data format is JSON format.
The specific process of the data conversion management module loading the downloaded data conversion module to the cache pool to obtain the data conversion example is as follows: the data conversion management module constructs a JAVA virtual machine, class loading operation is carried out on the downloaded data conversion module and then the downloaded data conversion module is loaded into the JAVA virtual machine, the JAVA virtual machine instantiates the loaded data conversion module by utilizing reflection operation to obtain a data conversion example, and finally the data conversion example is placed into a cache pool to complete the loading process of the data conversion module.
The data transmission method using the data transmission module of the internet of things equipment and platform comprises the following steps:
step 1): the data receiving and transmitting module receives equipment data which are reported by the Internet of things equipment and contain equipment model information and have a specific data format;
step 2): the identification module acquires equipment model information from the equipment data in the specific data format received by the data transceiver module and sends the equipment model information to the matching module;
step 3): the user platform sends the received information to the data conversion management module through the event forwarder when the data receiving and sending module receives the equipment data;
step 4): after the data conversion management module receives the received information, a data conversion example matched with the received equipment model information is searched in the cache pool through the matching module, and then the data receiving and transmitting module sends the equipment data with the specific data format to the matched data conversion example;
step 5): the data conversion example analyzes the received equipment data with the specific data format and converts the equipment data into a universal data format which can be recognized by the user platform to obtain universal data, the universal data is sent to the user platform, and the user platform receives the universal data to complete the data transmission process from the equipment of the internet of things to the user platform;
step 6): the user platform sends a control instruction in a general data format to the matched data conversion example, the matched data conversion example analyzes the received control instruction in the general data format, converts the received control instruction in the general data format into equipment control information in a specific data format which can be identified by the Internet of things equipment and sends the equipment control information to the data transceiving module, and the data transceiving module sends the equipment control information in the specific data format to the Internet of things equipment to complete a data transmission process from the user platform to the Internet of things equipment.
Compared with the prior art, the data conversion method has the advantages that the data conversion work between the user platform and the Internet of things equipment is independently extracted to form the data conversion module, the data conversion module is independent of the platform and the Internet of things equipment, can be freely modified, and corresponding data conversion modules are respectively developed in advance according to different models of the Internet of things equipment;
the data conversion module can add and update user platform in real time, when the serial port data agreement of certain thing networking equipment model changes, only need modify the data conversion module that this model corresponds after upload again to user platform can, the data conversion module can replace old data conversion module with it, but realize the data conversion function of plug-in, the simple and convenient swift flexibility of operation of plug-in, when newly-increased or change data conversion module, the code of platform and thing networking equipment communication module all need not change, can last normal operating, fortune dimension efficiency is higher.
Drawings
Fig. 1 is a schematic block diagram of a first embodiment.
Detailed Description
The invention is described in further detail below with reference to the accompanying examples.
The first embodiment is as follows: a data transmission module of Internet of things equipment and platform comprises a data transceiver module 1, an identification module 2, an event transponder 3, a matching module 4, a data conversion management module 5 and a plurality of data conversion modules 71 which are preset on a user platform 6 and respectively correspond to different equipment models, wherein the data transceiver module 1 is used for receiving equipment data which are reported by the Internet of things equipment 8 and contain equipment model information and have a specific data format, the identification module 2 is used for acquiring the equipment model information from the equipment data which are received by the data transceiver module 1 and are in the specific data format and sending the equipment model information to the matching module 4, the user platform 6 sends the received information to the data conversion management module 5 through the event transponder 3 when the data transceiver module 1 receives the equipment data, the data conversion management module 5 is provided with a cache pool 51, the data conversion management module 5 is used for downloading a plurality of preset data conversion modules 71 which respectively correspond to different equipment models in advance on the user platform 6, after downloading, the data conversion management module 5 loads the downloaded data conversion module 71 to the cache pool 51 to obtain a corresponding data conversion instance 72, after the data conversion management module 5 receives the received information, the matching module 4 searches the data conversion instance 72 matched with the received equipment model information in the cache pool 51, then the data transceiver module 1 sends the equipment data with the specific data format to the matched data conversion instance 72, the data conversion instance 72 is used for analyzing the received equipment data with the specific data format and converting the equipment data into a universal data format recognizable by the user platform 6 to obtain universal data, and then the universal data is sent to the user platform 6, and the user platform 6 is used for receiving the universal data;
the user platform 6 is further configured to send a control instruction in a generic data format to the matched data conversion instance 72, where the matched data conversion instance 72 is configured to parse the received control instruction in the generic data format, convert the control instruction into device control information in a specific data format that can be recognized by the internet of things device 8, and send the device control information in the specific data format to the data transceiver module 1, and the data transceiver module 1 is configured to send the device control information in the specific data format to the internet of things device 8.
Wherein, the general data format is JSON format.
The specific process of the data conversion management module 5 loading the downloaded data conversion module 71 into the cache pool 51 to obtain the data conversion instance 72 is as follows: the data conversion management module 5 constructs a JAVA virtual machine, then performs class loading operation on the downloaded data conversion module 71 and loads the same into the JAVA virtual machine, the JAVA virtual machine instantiates the loaded data conversion module 71 by using reflection operation to obtain a data conversion instance 72, and finally places the data conversion instance 72 into the cache pool 51 to complete the loading process of the data conversion module 71.
Example two: the data transmission method using the data transmission module of the internet of things device and platform according to the first embodiment includes the following steps:
step 1): the data receiving and transmitting module 1 receives equipment data which are reported by the Internet of things equipment 8 and contain equipment model information and have a specific data format;
step 2): the identification module 2 acquires equipment model information from the equipment data in the specific data format received by the data transceiver module 1 and sends the equipment model information to the matching module 4;
step 3): the user platform 6 sends the received information to the data conversion management module 5 through the event transponder 3 when the data transceiver module 1 receives the device data;
step 4): after the data conversion management module 5 receives the received information, the matching module 4 searches a data conversion example 72 matched with the received equipment model information in the cache pool 51, and then the data transceiver module 1 sends the equipment data with the specific data format to the matched data conversion example 72;
step 5): the data conversion example 72 analyzes the received device data with the specific data format and converts the device data into a general data format recognizable by the user platform 6 to obtain general data, and then sends the general data to the user platform 6, and the user platform 6 receives the general data to complete the data transmission process from the internet of things device 8 to the user platform 6;
step 6): the user platform 6 sends a control instruction in a general data format to the matched data conversion instance 72, the matched data conversion instance 72 analyzes the received control instruction in the general data format, converts the control instruction into device control information in a specific data format which can be recognized by the internet of things device 8, and sends the device control information in the specific data format to the data transceiver module 1, and the data transceiver module 1 sends the device control information in the specific data format to the internet of things device 8, so that the data transmission process from the user platform 6 to the internet of things device 8 is completed.

Claims (4)

1. A data transmission module of Internet of things equipment and a platform is characterized by comprising a data receiving and transmitting module, an identification module, an event transponder, a matching module, a data conversion management module and a plurality of data conversion modules which are preset on a user platform and respectively correspond to different equipment models;
the data transceiver module is used for receiving equipment data which are reported by the Internet of things equipment and contain equipment model information and have a specific data format;
the identification module is used for acquiring equipment model information from the equipment data with the specific data format received by the data transceiver module and sending the equipment model information to the matching module;
the user platform sends the received information to the data conversion management module through the event transponder when the data transceiver module receives the device data;
the data conversion management module is provided with a cache pool, and is used for downloading a plurality of preset data conversion modules which respectively correspond to different equipment models in advance on the user platform, and after the downloading is finished, the data conversion management module loads the downloaded data conversion modules into the cache pool to obtain corresponding data conversion examples;
after the data conversion management module receives the received information, a data conversion example matched with the received equipment model information is searched in the cache pool through the matching module, then the data receiving and sending module sends the equipment data with a specific data format to the matched data conversion example, the data conversion example is used for analyzing the received equipment data with the specific data format and converting the equipment data into a general data format which can be identified by the user platform to obtain general data, and then the general data is sent to the user platform, and the user platform is used for receiving the general data;
the user platform is further used for sending a control instruction in a general data format to the matched data conversion example, the matched data conversion example is used for analyzing the received control instruction in the general data format, converting the control instruction into equipment control information in a specific data format which can be recognized by the internet of things equipment, and sending the equipment control information in the specific data format to the data transceiver module, and the data transceiver module is used for sending the equipment control information in the specific data format to the internet of things equipment.
2. The data transmission module of the internet of things equipment and platform according to claim 1, wherein the general data format is JSON format.
3. The data transmission module of the internet of things device and platform according to claim 1, wherein the specific process of the data conversion management module loading the downloaded data conversion module to the cache pool to obtain the data conversion instance is as follows: the data conversion management module constructs a JAVA virtual machine, class loading operation is carried out on the downloaded data conversion module and then the downloaded data conversion module is loaded into the JAVA virtual machine, the JAVA virtual machine instantiates the loaded data conversion module by utilizing reflection operation to obtain a data conversion example, and finally the data conversion example is placed into a cache pool to complete the loading process of the data conversion module.
4. The data transmission method using the data transmission module of the internet of things device and platform according to claim 1, comprising the steps of:
step 1): the data receiving and transmitting module receives equipment data which are reported by the Internet of things equipment and contain equipment model information and have a specific data format;
step 2): the identification module acquires equipment model information from the equipment data in the specific data format received by the data transceiver module and sends the equipment model information to the matching module;
step 3): the user platform sends the received information to the data conversion management module through the event forwarder when the data receiving and sending module receives the equipment data;
step 4): after the data conversion management module receives the received information, a data conversion example matched with the received equipment model information is searched in the cache pool through the matching module, and then the data receiving and transmitting module sends the equipment data with the specific data format to the matched data conversion example;
step 5): the data conversion example analyzes the received equipment data with the specific data format and converts the equipment data into a universal data format which can be recognized by the user platform to obtain universal data, the universal data is sent to the user platform, and the user platform receives the universal data to complete the data transmission process from the equipment of the internet of things to the user platform;
step 6): the user platform sends a control instruction in a general data format to the matched data conversion example, the matched data conversion example analyzes the received control instruction in the general data format, converts the received control instruction in the general data format into equipment control information in a specific data format which can be identified by the Internet of things equipment and sends the equipment control information to the data transceiving module, and the data transceiving module sends the equipment control information in the specific data format to the Internet of things equipment to complete a data transmission process from the user platform to the Internet of things equipment.
CN202011618920.1A 2020-12-30 2020-12-30 Data transmission module and data transmission method of Internet of things equipment and platform Active CN112749117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011618920.1A CN112749117B (en) 2020-12-30 2020-12-30 Data transmission module and data transmission method of Internet of things equipment and platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011618920.1A CN112749117B (en) 2020-12-30 2020-12-30 Data transmission module and data transmission method of Internet of things equipment and platform

Publications (2)

Publication Number Publication Date
CN112749117A true CN112749117A (en) 2021-05-04
CN112749117B CN112749117B (en) 2023-04-07

Family

ID=75650162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011618920.1A Active CN112749117B (en) 2020-12-30 2020-12-30 Data transmission module and data transmission method of Internet of things equipment and platform

Country Status (1)

Country Link
CN (1) CN112749117B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500648A (en) * 2022-01-17 2022-05-13 徐工汉云技术股份有限公司 Tower crane data multi-form conversion forwarding method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187233A (en) * 2015-08-05 2015-12-23 广东长天思源环保科技股份有限公司 System for reporting terminal data of IOT (Internet of Things) and working method thereof
CN107342920A (en) * 2017-04-24 2017-11-10 南京龙渊微电子科技有限公司 Things-internet gateway access device and its data interactive method
CN108021434A (en) * 2017-12-06 2018-05-11 浪潮软件集团有限公司 Data processing apparatus, method of processing data thereof, medium, and storage controller
CN108769165A (en) * 2018-05-17 2018-11-06 深圳市信锐网科技术有限公司 Data processing method, Internet of Things access system in a kind of Internet of Things
CN108933830A (en) * 2018-07-16 2018-12-04 广东亿迅科技有限公司 Data assemblage method and device based on nb-iot
CN111083225A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Data processing method and device in Internet of things platform and Internet of things platform
CN111654498A (en) * 2020-06-03 2020-09-11 深圳市信锐网科技术有限公司 Equipment adding method and Internet of things platform
CN111953752A (en) * 2020-07-30 2020-11-17 绮耘科技(浙江)股份有限公司 Internet of things platform equipment interaction control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187233A (en) * 2015-08-05 2015-12-23 广东长天思源环保科技股份有限公司 System for reporting terminal data of IOT (Internet of Things) and working method thereof
CN107342920A (en) * 2017-04-24 2017-11-10 南京龙渊微电子科技有限公司 Things-internet gateway access device and its data interactive method
CN108021434A (en) * 2017-12-06 2018-05-11 浪潮软件集团有限公司 Data processing apparatus, method of processing data thereof, medium, and storage controller
CN108769165A (en) * 2018-05-17 2018-11-06 深圳市信锐网科技术有限公司 Data processing method, Internet of Things access system in a kind of Internet of Things
CN108933830A (en) * 2018-07-16 2018-12-04 广东亿迅科技有限公司 Data assemblage method and device based on nb-iot
CN111083225A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Data processing method and device in Internet of things platform and Internet of things platform
CN111654498A (en) * 2020-06-03 2020-09-11 深圳市信锐网科技术有限公司 Equipment adding method and Internet of things platform
CN111953752A (en) * 2020-07-30 2020-11-17 绮耘科技(浙江)股份有限公司 Internet of things platform equipment interaction control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500648A (en) * 2022-01-17 2022-05-13 徐工汉云技术股份有限公司 Tower crane data multi-form conversion forwarding method and system

Also Published As

Publication number Publication date
CN112749117B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN109768970B (en) Configurable universal protocol generation method
US10002008B2 (en) Manual, a method, apparatus and a computer program product for configuring a frequency converter
CN105978860B (en) A kind of implementation method of electric system software interface adapter
CN111343020A (en) Unified management method and device for multi-protocol Internet of things equipment
CN112749117B (en) Data transmission module and data transmission method of Internet of things equipment and platform
CN103902305A (en) Software long-distance loading and solidifying method based on TI DSP
CN101795270A (en) Server control method based on serial port
CN112087426B (en) Dynamic control protocol analysis method based on Internet of things and IOT (Internet of things) equipment
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN112612475B (en) Method for realizing simulation of Internet of things equipment
CN101739575A (en) Data processing method for multi-hardware equipment centralized management in radio frequency identification system
CN104901990B (en) Sensor flexibility access system and its flexible cut-in method based on Internet of Things
US9182961B1 (en) System and method for providing computer code to obtain data from devices optionally using a web services interface
CN114157732B (en) Remote measurement data analysis method and system for large and medium-sized fixed wing unmanned aerial vehicle
CN105453522B (en) Method and system for providing a function in a computer system of a vehicle
CN115549757A (en) Satellite communication software online upgrading method
CN210745571U (en) Wireless communication module and embedded equipment
CN103199902A (en) Method and system of accessing bluetooth device
CN113965599A (en) Equipment management system and method based on universal management service model
CN110445857B (en) Garbage disposal equipment real-time data processing method based on cloud pushing
CN115580534B (en) Data acquisition and transmission method, system, equipment and gateway
KR20190094737A (en) Method and Apparatus for Linkage of Data
CN101420768B (en) Adaptive parsing method for network management monitoring protocol of repeater
US20220311644A1 (en) Data transmission method and device, electronic apparatus and storage medium
CN110727616A (en) Method, system, equipment and storage medium for code system data driving

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant