CN114697355B - Data processing method and gateway equipment of Internet of things - Google Patents

Data processing method and gateway equipment of Internet of things Download PDF

Info

Publication number
CN114697355B
CN114697355B CN202011583037.3A CN202011583037A CN114697355B CN 114697355 B CN114697355 B CN 114697355B CN 202011583037 A CN202011583037 A CN 202011583037A CN 114697355 B CN114697355 B CN 114697355B
Authority
CN
China
Prior art keywords
internet
data
equipment
things
target equipment
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.)
Active
Application number
CN202011583037.3A
Other languages
Chinese (zh)
Other versions
CN114697355A (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN202011583037.3A priority Critical patent/CN114697355B/en
Publication of CN114697355A publication Critical patent/CN114697355A/en
Application granted granted Critical
Publication of CN114697355B publication Critical patent/CN114697355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a data processing method, which is applied to gateway equipment of the Internet of things, and comprises the following steps: receiving a data message sent by target equipment, wherein the data message comprises state data representing the working state of the target equipment; analyzing the data message through a communication protocol corresponding to the target equipment to obtain the state data; and encrypting the state data and sending the encrypted state data to a target server, wherein the Internet of things platform is used for monitoring the working state of the target equipment, and the target equipment is accessed to the Internet of things platform through a corresponding object model.

Description

Data processing method and gateway equipment of Internet of things
Technical Field
The disclosure relates to the technical field of internet of things, and more particularly, to a data processing method and gateway equipment.
Background
In the field of rail transit, state data of internet of things (IOT, theInternetofThings) equipment in a station can be monitored through a rail transit internet of things platform generally, and a remote control instruction is sent to the equipment, so that a user can monitor and manage the internet of things equipment in the station conveniently.
At present, a rail transit internet of things platform generally performs data interaction with all internet of things devices through an internet of things gateway. In the existing gateway of the internet of things, only a message queue telemetry transmission protocol (MQTT, messageQueuingTelemetryTransport) is generally supported to execute the functions of equipment data acquisition and instruction issuing, and the supported protocol is single; in addition, when the existing internet of things gateway performs data interaction with the internet of things platform, the existing internet of things gateway is generally based on plaintext transmission, and potential safety hazards of data leakage exist.
Therefore, in the field of rail transit, the internet of things gateway used by the existing rail transit internet of things platform at least has the problems of single support protocol and possible data leakage.
Disclosure of Invention
In a first aspect of the present disclosure, a data processing method is provided, applied to an internet of things gateway device, where the method includes:
Receiving a data message sent by target equipment, wherein the data message comprises state data representing the working state of the target equipment;
analyzing the data message through a communication protocol corresponding to the target equipment to obtain the state data;
and encrypting the state data and sending the encrypted state data to an Internet of things platform, wherein the Internet of things platform is used for monitoring the working state of the target equipment, and the target equipment is accessed to the Internet of things platform through a corresponding object model.
Optionally, the analyzing the data packet through a communication protocol corresponding to the target device to obtain the status data includes:
Carrying out message analysis processing on the data message by using a communication protocol corresponding to the target equipment to obtain data to be subjected to semantic analysis;
carrying out semantic analysis processing on the data to be subjected to semantic analysis to obtain semantic data corresponding to the target equipment;
And generating the state data according to the semantic data.
Optionally, the encrypting the status data and sending the encrypted status data to an internet of things platform includes:
And encrypting the state data by using a preset data encryption algorithm, and sending the encrypted state data to the Internet of things platform.
Optionally, the method further comprises:
acquiring a first encrypted control instruction sent by the Internet of things platform, wherein the first control instruction corresponds to the target equipment;
Decrypting the encrypted first control instruction by using a preset data encryption algorithm to obtain the first control instruction;
And sending the first control instruction to the target equipment.
Optionally, the sending the first control instruction to the target device includes:
Encoding the first control instruction by using a communication protocol corresponding to the target equipment to obtain an instruction issuing data message corresponding to the first control instruction;
And sending the instruction sending data message to the target equipment.
Optionally, before executing the step of encrypting the status data and sending the encrypted status data to the platform of the internet of things, the method further includes:
Acquiring a network connection state with the Internet of things platform;
storing the state data in case the network connection state characterizes a network connection disconnection; and
And receiving a second control instruction aiming at the target equipment, and sending the second control instruction to the target equipment.
Optionally, in the case that the network connection state characterizes that the network connection is connected, the method further comprises:
When the historical state data corresponding to the target equipment is stored in the gateway equipment of the Internet of things, the historical state data is sent to the platform of the Internet of things; and
And clearing the historical state data.
Optionally, before executing the step of receiving the data message sent by the target device, the method further includes:
Receiving a first equipment access request sent by the target equipment;
And responding to the first equipment access request, and performing equipment access processing on the target equipment.
Optionally, the responding to the first device access request performs device access processing on the target device, including:
obtaining the equipment type of the target equipment from the equipment access request;
According to the equipment type, sending a second equipment access request to the internet of things platform, wherein the internet of things platform is used for determining an object model corresponding to the target equipment and performing access authentication on the target equipment according to the equipment type;
And under the condition that the second response message provided by the Internet of things platform represents that the access is successful, sending a first response message representing that the access is successful to the target equipment, wherein the second response message corresponds to the second equipment access request, and the first response message corresponds to the first equipment access request.
In a second aspect of the present disclosure, there is also provided an internet of things gateway device, including: a memory for storing executable instructions; a processor for executing the electronic device according to the control of the instructions to perform the method according to the first aspect of the present disclosure.
According to the embodiment of the disclosure, the gateway device of the internet of things can integrate various communication protocols corresponding to the access device, and after receiving the data message sent by the target device, the gateway device of the internet of things can analyze the data message by using the communication protocol corresponding to the target device so as to obtain the state data of the target device; meanwhile, in order to ensure the safety during data transmission and avoid the risk of data leakage, the gateway equipment can encrypt the state data when sending the state data to the target equipment and send the encrypted state data to the internet of things platform. The method can enable the gateway equipment of the Internet of things to conveniently collect the state data of various equipment and improve the safety during data transmission.
Other features of the present disclosure and its advantages will become apparent from the following detailed description of exemplary embodiments of the disclosure, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart of a data processing method according to an embodiment of the disclosure.
Fig. 2 is a schematic structural diagram of an internet of things gateway device according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of data processing in an internet of things gateway device according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of another gateway device for internet of things according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless it is specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
< Method example >
Fig. 1 is a schematic flow chart of a data processing method provided by an embodiment of the present disclosure, where the method may be applied to the field of rail transit, and in particular, to an internet of things gateway device of an internet of things platform for rail transit; the gateway device of the internet of things can shield complex interaction between the device layer and the platform, provide functions such as mass device access and device data forwarding, for example, can be used for receiving a data message sent by the internet of things device in a station, sending state data of the internet of things device to the platform through analyzing the data message, receiving a control instruction issued by the platform and used for controlling the internet of things device, and issuing the control instruction to the corresponding internet of things device, so that a user can conveniently and rapidly monitor and manage the internet of things device in the station.
As shown in fig. 1, the method of the present embodiment may include the following steps S1100-S1300, which are described in detail below.
Step S1100, receiving a data packet sent by a target device, where the data packet includes status data representing a working status of the target device.
In this embodiment, the target device refers to an internet of things device, which may specifically be an internet of things device in one yard or multiple yards in the rail traffic field, and in different professions and different service systems in multiple train operation lines, for example, the target device may be an internet of things device such as a camera, a gate, a barrier gate, an entrance guard, a lighting device, an air conditioner, a remote control device, and the like, which is not limited in particular herein.
It should be noted that, before implementing the step S1100, that is, before receiving the data packet sent by the target device, the target device needs to be accessed to the internet of things platform first, specifically, the internet of things gateway device described in this embodiment may receive the device access request of the target device, and perform the device access processing on the target device.
That is, in this embodiment, before executing the step of receiving the data packet sent by the target device, the method further includes: receiving a first equipment access request sent by the target equipment; and responding to the first equipment access request, and performing equipment access processing on the target equipment.
In the implementation, the target device and the gateway of the internet of things can be connected through a wireless or wired network, and then the target device is controlled to enter a device access mode so as to send the first device access request to the gateway of the internet of things; after receiving the first device access request, the internet of things gateway device can perform access verification on the device through communication with an internet of things platform, for example, a rail transit internet of things platform.
In this embodiment, the responding to the first device access request performs a device access process on the target device, including: obtaining the equipment type of the target equipment from the equipment access request; according to the equipment type, sending a second equipment access request to the internet of things platform, wherein the internet of things platform is used for determining an object model corresponding to the target equipment and performing access authentication on the target equipment according to the equipment type; and under the condition that the second response message provided by the Internet of things platform represents that the access is successful, sending a first response message representing that the access is successful to the target equipment, wherein the second response message corresponds to the second equipment access request, and the first response message corresponds to the first equipment access request.
The gateway equipment is different from the existing gateway equipment of the internet of things, and needs to perform function upgrading aiming at each type of newly-added equipment, so that the problem of inconvenient use exists. In order to improve the application range of the internet of things gateway, in this embodiment, an object model (TSL, thingSpecificationLanguage) is introduced into an internet of things platform corresponding to the internet of things gateway device, for example, the rail transit internet of things platform in this embodiment, so that when a device is accessed, an association can be established between an actual device and the corresponding object model, and further dynamic configuration and access of the device are realized.
The object model specifically refers to a data model obtained by digitizing the device in the physical space, and specifically can be a JSON file, which can generally describe what the device is, what can do and which information can be provided externally from three dimensions of attributes, services and events. When the object model is used for performing the device access processing, the device can be dynamically configured according to the need, for example, when the device node in the object model corresponding to the target device is determined according to the device type of the target device, the object model can be dynamically expanded according to a communication protocol corresponding to the target device, for example, a Modbus communication protocol, wherein the Modbus communication protocol is a communication protocol which is commonly used by devices in the industrial field, and because the detailed description in the prior art is omitted here.
After the target equipment is accessed to the internet of things platform through the processing, the internet of things gateway equipment can be used for receiving the data message sent by the target equipment to obtain the state data of the target equipment, and the control instruction sent by the internet of things platform and used for controlling the target equipment is received and sent to the target equipment.
In this embodiment, the data packet sent by the target device may be generated by encoding, according to the communication protocol corresponding to the data packet, state data representing the working state of the device; in specific implementation, the status data may be time sequence data generated according to fixed time intervals, early warning data or event data, etc. according to different device types and different device configurations.
Please refer to fig. 2, which is a schematic structural diagram of an internet of things gateway device provided in an embodiment of the present disclosure. As shown in fig. 2, the gateway device of the internet of things according to the embodiment may include a first communication module, where the first communication module may include a first communication sub-module, and the first communication sub-module may be configured to receive a data packet sent by a target device in a manner of serial port communication, socket communication, bacnet, 103/104 protocol, and the like; in addition, the first communication module may further include application middleware (ApplicationMiddleware) that may be configured to receive state data transmitted in JSON format sent by the internet of things device via a protocol such as hypertext transfer protocol (HTTP, hyperTextTransferProtocol).
In the implementation, the internet of things platform can receive the data message sent by the target device through the first communication module, and directly receive the state data in the JSON format sent by the internet of things device, and the specific communication process is not described herein.
After step S1100, step S1200 is performed to parse the data packet through a communication protocol corresponding to the target device, so as to obtain the status data.
Referring to fig. 2 and fig. 3, fig. 3 is a schematic diagram of data processing in an internet of things gateway device according to an embodiment of the disclosure. As shown in fig. 2 and fig. 3, the gateway device of the internet of things may include a data parsing module, where the data parsing module may be a module supporting device communication protocols in various industrial fields, for example, may support communication protocols such as MQTT protocol, opcua protocol, modbus protocol, rola protocol, and the like, and is specifically configured to parse a data packet sent by a target device through a communication protocol corresponding to the target device, that is, decode the data packet, and obtain status data of the target device through further semantic parsing.
Specifically, the parsing the data packet through a communication protocol corresponding to the target device to obtain the status data includes: carrying out message analysis processing on the data message by using a communication protocol corresponding to the target equipment to obtain data to be subjected to semantic analysis; carrying out semantic analysis processing on the data to be subjected to semantic analysis to obtain semantic data corresponding to the target equipment; and generating the state data according to the semantic data.
Namely, after the gateway device of the internet of things receives the data message sent by the target device, the gateway device of the internet of things can firstly perform unshelling treatment through a transmission protocol to obtain an actual message; and then by using a corresponding communication protocol, for example, when the target equipment uses the Modbus protocol to carry out data communication, the gateway equipment of the Internet of things can carry out message analysis processing on the received data message subjected to the transmission protocol unshelling processing by using the Modbus, and carry out semantic translation on the data to be subjected to semantic analysis obtained by analysis to obtain state data representing the working state of the target equipment.
The semantic analysis processing is performed on the data to be semantically analyzed to obtain semantic data corresponding to the target device, and the method specifically comprises the following steps: and acquiring semantic analysis configuration information corresponding to the target equipment, and according to the semantic analysis configuration information, obtaining engineering data parameters, namely physical data parameters, such as voltage and current data of the equipment, of the target equipment by carrying out semantic translation on data in the data to be subjected to semantic analysis.
In the implementation, when the voice analysis configuration information corresponding to the target device is acquired, the device identifier of the target device can be acquired from the data to be semantically analyzed, and then the voice analysis configuration information corresponding to the target device is acquired according to the corresponding relation between the preset device identifier and the semantic analysis configuration information through the device identifier.
After the semantic analysis data of the target device is obtained through analysis, an object model corresponding to the device can be determined according to the device identification of the target device, and object packaging or objectification merging processing can be carried out on the semantic analysis data to obtain the state data.
After step S1200, step S1300 is executed to encrypt the status data, and send the encrypted status data to an internet of things platform, where the internet of things platform is used to monitor the working status of the target device, and the target device accesses the internet of things platform through a corresponding object model.
As shown in fig. 2 and fig. 3, in this embodiment, in order to improve security during data transmission, the gateway device of the internet of things may further include a second communication module, where the second communication module is configured to encrypt, after decoding, the state data of the target device by using a preset encryption algorithm, and send the encrypted state data to the platform of the internet of things, so as to avoid possible risk of data leakage during plaintext transmission.
The encrypting the state data and sending the encrypted state data to an internet of things platform comprises the following steps: and encrypting the state data by using a preset data encryption algorithm, and sending the encrypted state data to the Internet of things platform.
The preset data encryption algorithm may be a symmetric encryption algorithm, an asymmetric encryption algorithm, or the like, and is not particularly limited herein.
It should be noted that, the gateway device of the internet of things may also receive a control instruction for the target device sent by the platform of the internet of things and send the control instruction to the target device, that is, in this embodiment, the method further includes: acquiring a first encrypted control instruction sent by the Internet of things platform, wherein the first control instruction corresponds to the target equipment; decrypting the encrypted first control instruction by using a preset data encryption algorithm to obtain the first control instruction; and sending the first control instruction to the target equipment.
Wherein the sending the first control instruction to the target device includes: encoding the first control instruction by using a communication protocol corresponding to the target equipment to obtain an instruction issuing data message corresponding to the first control instruction; and sending the instruction sending data message to the target equipment.
That is, the control command may be encoded by driving the reverse encoding/interface as shown in fig. 2, and sending the command-issued data message to the target device.
As shown in fig. 3, in the implementation, the second communication module of the gateway device of the internet of things performs data interaction with the platform of the internet of things, that is, sends device state data to the platform of the internet of things, or receives a control instruction sent by the platform of the internet of things, and then performs data interaction with the platform of the internet of things in a manner of transmitting the encrypted JSON string through the industrial control real-time interface shown in fig. 3 by installing data synchronization application software in the gateway device of the internet of things.
It should be noted that in practice, the gateway device of the internet of things and the platform of the internet of things are often in a tight coupling relationship, that is, when the platform of the internet of things stops serving, the device state data collected by the gateway device of the internet of things cannot be normally sent to the platform of the internet of things, so that the problem that the data is interrupted in time sequence may be caused; during the period, the internet of things platform stops serving, and a user cannot remotely issue a control instruction to control the target device through the internet of things platform, so that the problem of inconvenient use and influence on user experience may exist.
For this problem, as shown in fig. 2, in the implementation, the internet of things gateway device and the internet of things platform may be decoupled, that is, an edge computing module may be integrated in the internet of things gateway device according to this embodiment, where the edge computing module may provide a device data storage and a simple control instruction issuing function during a period when the internet of things platform stops serving.
That is, in this embodiment, before executing the step of encrypting the state data and sending the encrypted state data to the platform of the internet of things, the method further includes: acquiring a network connection state with the Internet of things platform; storing the state data in case the network connection state characterizes a network connection disconnection; and receiving a second control instruction aiming at the target equipment, and sending the second control instruction to the target equipment.
In this embodiment, in case the network connection status characterizes that a network connection is connected, the method further comprises: when the Internet of things gateway equipment stores historical state data corresponding to the target equipment, the historical state data is sent to the Internet of things platform; and, emptying the historical state data.
That is, the edge computing module can be used as an edge computing node of the internet of things platform, and has the capabilities of field data processing and simple service processing as a part of the internet of things platform, and provides a field self-sustaining function when the internet of things platform fails, so that a user can continuously monitor and control target equipment. And after the fault of the internet of things platform is relieved and service is restored, in order to ensure that monitoring data in the internet of things platform is continuous in time sequence, an edge calculation module in the gateway equipment of the internet of things can send historical state data of the target equipment stored during the fault of the platform to the internet of things platform, and after the sending is completed, the historical state data is emptied.
It should be noted that, the above is an embodiment for implementing the edge computing function provided by the gateway of the internet of things according to the embodiments of the present disclosure, and in a specific implementation, other functions may be integrated in the edge computing module of the gateway of the internet of things, so as to provide better services for users, which is not described herein.
As can be seen from the foregoing, in the data processing method provided in this embodiment, by integrating the first communication module, the data analysis module, the edge calculation module, the second communication module and other modules in the gateway device of the internet of things, after the gateway device of the internet of things receives the data packet sent by the target device, the communication protocol corresponding to the target device can be used to analyze the data packet, so as to obtain the state data of the target device; meanwhile, in order to ensure the safety during data transmission and avoid the risk of data leakage, the gateway equipment can encrypt the state data when sending the state data to the target equipment and send the encrypted state data to the internet of things platform. According to the method, the gateway equipment of the Internet of things can conveniently collect state data of various equipment and improve safety in data transmission, and when the platform of the Internet of things breaks down, station-level self-holding capacity can be achieved through the edge computing module, so that user experience is improved.
< Device example >
In this embodiment, as shown in fig. 4, the gateway device 4000 of the internet of things may include a processor 4200 and a memory 4000, where the memory 4100 is configured to store executable instructions; the processor 400 is configured to operate the gateway device according to control of instructions to perform a data processing method according to any embodiment of the present disclosure.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the technical improvement in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims (7)

1. The data processing method is characterized by being applied to the gateway equipment of the Internet of things, wherein the gateway equipment of the Internet of things is integrated with a plurality of communication protocols corresponding to the access equipment, and the method comprises the following steps:
Receiving a data message sent by target equipment, wherein the data message comprises state data representing the working state of the target equipment;
Analyzing the data message through a communication protocol corresponding to the target equipment to obtain the state data; the state data is obtained according to semantic data corresponding to the target equipment, the semantic data is obtained by carrying out semantic translation on data to be subjected to semantic analysis according to semantic analysis configuration information, the semantic analysis configuration information is obtained according to the corresponding relation between equipment identification of the target equipment and the semantic analysis configuration information in the data to be subjected to semantic analysis, and the data to be subjected to semantic analysis is obtained by carrying out message analysis processing on the data message through a communication protocol corresponding to the target equipment;
encrypting the state data and sending the encrypted state data to an internet of things platform, wherein the internet of things platform is used for monitoring the working state of the target equipment, and the target equipment is accessed to the internet of things platform through a corresponding object model;
Before executing the step of receiving the data message sent by the target device, the method further includes:
Receiving a first equipment access request sent by the target equipment;
Obtaining the equipment type of the target equipment from the first equipment access request;
According to the equipment type, sending a second equipment access request to the internet of things platform, wherein the internet of things platform is used for determining an object model corresponding to the target equipment and performing access authentication on the target equipment according to the equipment type;
And under the condition that the second response message provided by the Internet of things platform represents that the access is successful, sending a first response message representing that the access is successful to the target equipment, wherein the second response message corresponds to the second equipment access request, and the first response message corresponds to the first equipment access request.
2. The method of claim 1, wherein encrypting the status data and transmitting the encrypted status data to an internet of things platform comprises:
And encrypting the state data by using a preset data encryption algorithm, and sending the encrypted state data to the Internet of things platform.
3. The method according to claim 1, wherein the method further comprises:
acquiring a first encrypted control instruction sent by the Internet of things platform, wherein the first control instruction corresponds to the target equipment;
Decrypting the encrypted first control instruction by using a preset data encryption algorithm to obtain the first control instruction;
And sending the first control instruction to the target equipment.
4. The method of claim 3, wherein transmitting the first control instruction to the target device comprises:
Encoding the first control instruction by using a communication protocol corresponding to the target equipment to obtain an instruction issuing data message corresponding to the first control instruction;
And sending the instruction sending data message to the target equipment.
5. The method of claim 1, wherein prior to performing the step of encrypting the status data and transmitting the encrypted status data to an internet of things platform, the method further comprises:
Acquiring a network connection state with the Internet of things platform;
storing the state data in case the network connection state characterizes a network connection disconnection; and
And receiving a second control instruction aiming at the target equipment, and sending the second control instruction to the target equipment.
6. The method of claim 5, wherein in the event that the network connection status characterizes that a network connection is connected, the method further comprises:
When the historical state data corresponding to the target equipment is stored in the gateway equipment of the Internet of things, the historical state data is sent to the platform of the Internet of things; and
And clearing the historical state data.
7. The gateway equipment of the internet of things is characterized by comprising:
A memory for storing executable instructions;
a processor for executing the gateway device according to the control of the instructions to perform the method of any of claims 1-6.
CN202011583037.3A 2020-12-28 2020-12-28 Data processing method and gateway equipment of Internet of things Active CN114697355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011583037.3A CN114697355B (en) 2020-12-28 2020-12-28 Data processing method and gateway equipment of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011583037.3A CN114697355B (en) 2020-12-28 2020-12-28 Data processing method and gateway equipment of Internet of things

Publications (2)

Publication Number Publication Date
CN114697355A CN114697355A (en) 2022-07-01
CN114697355B true CN114697355B (en) 2024-05-07

Family

ID=82129519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011583037.3A Active CN114697355B (en) 2020-12-28 2020-12-28 Data processing method and gateway equipment of Internet of things

Country Status (1)

Country Link
CN (1) CN114697355B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116170481A (en) * 2023-02-03 2023-05-26 武汉慧联无限科技有限公司 Access method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790605A (en) * 2016-12-29 2017-05-31 深圳新基点智能股份有限公司 A kind of things-internet gateway system and its implementation
CN109743349A (en) * 2018-11-29 2019-05-10 比亚迪股份有限公司 File management method, system and its equipment based on rail traffic
US10291690B1 (en) * 2015-07-22 2019-05-14 Activity Monitoring Technologies S.A. de C.V. Heterogeneous device communication system
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium
CN110495149A (en) * 2017-05-26 2019-11-22 西门子股份公司 Data transmission method and device
EP3618388A1 (en) * 2018-08-30 2020-03-04 Nagravision SA Local decision making
KR20200084388A (en) * 2018-12-20 2020-07-13 한국과학기술원 Apparatus and method for open and private iot gateway using intel sgx

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10291690B1 (en) * 2015-07-22 2019-05-14 Activity Monitoring Technologies S.A. de C.V. Heterogeneous device communication system
CN106790605A (en) * 2016-12-29 2017-05-31 深圳新基点智能股份有限公司 A kind of things-internet gateway system and its implementation
CN110495149A (en) * 2017-05-26 2019-11-22 西门子股份公司 Data transmission method and device
EP3618388A1 (en) * 2018-08-30 2020-03-04 Nagravision SA Local decision making
CN109743349A (en) * 2018-11-29 2019-05-10 比亚迪股份有限公司 File management method, system and its equipment based on rail traffic
KR20200084388A (en) * 2018-12-20 2020-07-13 한국과학기술원 Apparatus and method for open and private iot gateway using intel sgx
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Web服务以物为中心的物联网中间件的研究与设计;郑树泉;王倩;丁志刚;;计算机应用;20130701(第07期);全文 *

Also Published As

Publication number Publication date
CN114697355A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US10715639B2 (en) Data processing method and apparatus for performing protocol parsing in a cloud
US11620609B2 (en) Delivery method, device, system, unmanned vehicle and computer readable storage medium
CN109818910B (en) Data transmission method, device and medium
CN104935454A (en) Capability monitoring in a service oriented architecture
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN107005453B (en) Method and system for secure two-way communication of industrial devices
JP6433578B2 (en) Information self-registration method, apparatus, system, and computer storage medium
CN114697355B (en) Data processing method and gateway equipment of Internet of things
CN111433773B (en) Updating gateways in substations
KR101933638B1 (en) Wellness service system using security-enhanced residential gateway device
CN111211894B (en) Data transmission method, device and system
CN110598431A (en) Internet of things data processing method and device, server and storage medium
CN113886870A (en) Data processing method, device, equipment and storage medium
WO2020103477A1 (en) Method and apparatus for controlling mobile robot, and control system
US20180322165A1 (en) Systems and methods for database active monitoring
CN107342981B (en) Sensor data transmission method and device and virtual reality head-mounted equipment
CN112995305B (en) Remote power monitoring method based on IEC104 protocol, and system, device and medium thereof
CN113992734A (en) Session connection method, device and equipment
CN113079055B (en) AGV operation data dynamic acquisition method and device
CN109474478B (en) Method, device and system for monitoring transmission data abnormity
JP2013507707A (en) Communication device management via communication network
CN112148324A (en) Method, apparatus and computer-readable storage medium for upgrading electronic device
CN108259229B (en) Equipment management method, device and system
CN110581888A (en) management method, gateway and system for terminal security session of Internet of things
EP3229162A1 (en) Access management for digital content

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