Internet of Things equipment data format conversion system and method based on JavaScript

A technology for data format conversion and IoT devices, applied in the direction of program code conversion, etc., can solve problems such as low efficiency and many application procedures, and achieve the effect of improving conversion performance, wide application range, and eliminating loading time.

Pending Publication Date: 2021-01-29
深圳虹川科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] One of the purposes of the present invention is to solve the above-mentioned deficiencies, and provide a JavaScript-based Internet of Things device data format conversion system to solve the problem in the prior art that different data formats of the same protocol need to be written to achieve this problem, resulting in Many application procedures, low efficiency and other technical problems

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
  • Internet of Things equipment data format conversion system and method based on JavaScript
  • Internet of Things equipment data format conversion system and method based on JavaScript

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be further elaborated below in conjunction with the accompanying drawings.

[0035] One embodiment of the present invention is a JavaScript-based Internet of Things device data format conversion system, the system includes a core service module, a simulation service module, a script engine module, a converter module and a sandbox module, and the relationship between each module is as follows figure 1 As shown, the following JS scripts are JavaScript scripts. combine figure 2 shown, where:

[0036] The simulation service module is used to receive the JS script of the client, and check and judge the current JS script. If the judgment result is yes, the core service module will be called to store the current JS script as a draft, otherwise, it will be returned to the client Prompt; and, the simulation service module is also used to receive simulation data after the current JS script is stored as a draft, and transmit the current JS script and ...

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 Internet of Things equipment data format conversion system based on JavaScript, and belongs to an Internet of Things equipment data format conversion method. The method comprises the steps that a user compiles a JS script and analog data for one kind of equipment through a browser, and after the JS script passes execution of the analog data in a sandbox through a JS engine, a core service is called for persistent storage; the JS scripts which do not pass the execution can only be stored as draft states; a converter loads the JS script (formal) and an equipment identifier; and the equipment side accesses the system through the protocol gateway, and the protocol gateway performs data conversion through the converter to complete interaction.

Description

technical field [0001] The present invention relates to a data format conversion method of an Internet of Things device, and more specifically, the present invention mainly relates to a JavaScript-based Internet of Things device data format conversion system. Background technique [0002] With the rise of IoT applications, various sensing devices emerge in an endless stream. Due to different usage scenarios, access networks and protocols are also different, such as NB-IoT, LoRa, Wi-Fi, and 4G are the most commonly used. Commonly used IoT application layer protocols include MQTT, HTTP, XMPP, CoAP, etc., among which MQTT application is more common. Taking the MQTT protocol as an example, different devices have different data formats, such as JSON and binary. The current practice is hard-coded conversion, and a set of code logic is written to process different device data formats; in the requirements stage, at least the type of device and related protocols and data formats mu...

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): G06F8/40
CPCG06F8/40
Inventor 罗涛李俊敏沈小朋万晓
Owner 深圳虹川科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products