CN112395014B - Gateway service implementation method, device, equipment and storage medium - Google Patents

Gateway service implementation method, device, equipment and storage medium Download PDF

Info

Publication number
CN112395014B
CN112395014B CN202011279921.8A CN202011279921A CN112395014B CN 112395014 B CN112395014 B CN 112395014B CN 202011279921 A CN202011279921 A CN 202011279921A CN 112395014 B CN112395014 B CN 112395014B
Authority
CN
China
Prior art keywords
gateway
sub
equipment
module
driver module
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
CN202011279921.8A
Other languages
Chinese (zh)
Other versions
CN112395014A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011279921.8A priority Critical patent/CN112395014B/en
Publication of CN112395014A publication Critical patent/CN112395014A/en
Application granted granted Critical
Publication of CN112395014B publication Critical patent/CN112395014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to the technical field of cloud, and discloses a gateway service implementation method, device, equipment and storage medium. The method comprises the following steps: after the configuration information and the driver library of the gateway equipment and each piece of sub-equipment are loaded, dividing the gateway equipment and each piece of sub-equipment into a gateway client module and a sub-equipment client module for realizing communication with a cloud end, and a gateway driver module and a sub-equipment driver module for realizing communication with terminal equipment; registering a corresponding message routing channel for communication between a client module and a driver module of the gateway device or the same sub-device; the gateway service instruction issued by the cloud is received through the client module, the gateway service instruction is exchanged to the target driver module through the message routing channel, and the gateway service is realized through the target driver module. The invention also relates to a block chain technology, and the configuration information and the driving stock are stored in the block chain. The invention realizes the independent communication of a plurality of sub-devices in the gateway and reduces the influence on other sub-devices when each sub-device is controlled.

Description

Gateway service implementation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of cloud technologies, and in particular, to a method, an apparatus, a device, and a storage medium for implementing a gateway service.
Background
An IoT (Internet of Things) equipment gateway is an important application scene in the field of the Internet of Things, and provides the capability of uniformly accessing terminal sub-equipment to the cloud, and different sub-equipment can realize functions such as sub-equipment monitoring, sub-equipment linkage, edge calculation and the like by driving an access layer to access the gateway. In view of the complexity and diversity of the sub-devices, the gateway device not only needs to be compatible with different communication types of the sub-devices, such as serial port, CAN, IO, AIO, TCP/IP, etc., but also needs to consider communication protocols of different sub-devices, such as MODBUS, HTTP, etc., and also needs to be compatible with different cloud protocols, such as MQTT, HTTP, COAP, etc.
When receiving a cloud control instruction to add, delete or update configuration, a conventional IoT device gateway mounted sub-device may affect communication between itself and other sub-devices, or even require the gateway device to restart to perform configuration reloading, for example, updating a communication port number of a certain sub-device or updating a driver packet that depends on the certain sub-device may cause the other sub-devices in the same gateway to disconnect communication with the cloud, which may increase use and operation and maintenance costs of the system, and increase a failure rate of the system. Therefore, the existing gateway service technology cannot isolate communication and control among different sub-devices.
Disclosure of Invention
The invention mainly aims to solve the problem that the existing gateway service technology cannot isolate communication and control among different sub-devices.
The first aspect of the present invention provides a gateway service implementation method, including:
loading configuration information of the gateway equipment and each piece of sub-equipment to a configuration center from a preset storage center, and loading a drive library of the gateway equipment and each piece of sub-equipment to a drive center;
according to the configuration information and the drive library, dividing the gateway device and each sub-device into a client module and a driver module respectively, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
registering message routing channels of the gateway client module, the gateway driver module, the sub-device client modules and the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of the gateway device or the same sub-device;
the method comprises the steps of receiving a gateway service instruction issued by a cloud end through the client module, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
Optionally, in a first implementation manner of the first aspect of the present invention, the gateway service instruction includes a deployment instruction of a newly added sub-device, the receiving, by the client module, a gateway service instruction issued by a cloud, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing, by the target driver module, the gateway service instruction to implement a gateway service includes:
receiving the deployment instruction issued by a cloud end through the gateway client module, and exchanging the deployment instruction to the gateway driver module through an information routing channel of the gateway driver module;
loading configuration information and a drive library of the newly added sub-equipment from a preset storage center through the target gateway driver module based on the deployment instruction;
and dividing the newly added sub-equipment into a newly added sub-equipment dirver module and a newly added sub-equipment client module based on the configuration information and the drive library of the newly added sub-equipment, and registering message routing channels of the newly added sub-equipment dirver module and the newly added sub-equipment client module.
Optionally, in a second implementation manner of the first aspect of the present invention, the gateway service instruction includes an update instruction of a sub device, the receiving, by the client module, a gateway service instruction issued by a cloud, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing, by the target driver module, the gateway service instruction to implement a gateway service further includes:
receiving an update instruction issued by a cloud end through the gateway client module, and exchanging the update instruction to the gateway driver module through an information routing channel of the gateway driver module;
and determining the identity identification information of the sub-equipment to be updated according to the updating instruction, and reloading new configuration information and driving information of the sub-equipment to be updated from a preset storage center through the gateway driver module based on the identity identification information.
Optionally, in a third implementation manner of the first aspect of the present invention, the gateway service instruction includes a logout instruction of a sub device, the receiving, by the client module, a gateway service instruction issued by a cloud, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing, by the target driver module, the gateway service instruction to implement a gateway service further includes:
receiving a logout instruction issued by a cloud end through the gateway client module, and exchanging the logout instruction to the gateway driver module through an information routing channel of the gateway driver module;
and based on the logout instruction, logging out the client module of the sub-device to be logged out, the driver module of the sub-device to be logged out and the message routing channel, the configuration information and the driving information corresponding to the sub-device to be logged out through the gateway driver module.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the method for implementing a gateway service further includes:
receiving an equipment management and control request uploaded by the sub-equipment through a sub-equipment driver module, and exchanging the equipment management and control request to a management and control sub-equipment client module through an information routing channel of the management and control sub-equipment;
and uploading the equipment management and control request to a cloud end through the management and control sub-equipment client module so as to generate a corresponding gateway service instruction.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after registering a message routing channel of the gateway client module, the gateway driver module, each sub-device client module, and each sub-device driver module, where the message routing channel is used for communication between a client module and a driver module of a gateway device or the same sub-device, the method further includes:
acquiring the health monitoring state of each piece of sub-equipment through the sub-equipment driver module, and respectively exchanging the health monitoring state of each piece of sub-equipment to a corresponding sub-equipment client module through the message routing channel;
uploading each health monitoring state to a preset equipment control center through each sub-equipment client module;
and based on the health monitoring state, screening out the sub-equipment with the normal health monitoring state and screening out the sub-equipment with the abnormal health monitoring state through the equipment management and control center.
Optionally, in a sixth implementation manner of the first aspect of the present invention, before the loading the configuration information of the gateway device and each of the sub devices from the preset storage center to the configuration center, and loading the driver libraries of the gateway device and each of the sub devices to the driver center, the method further includes:
acquiring initial configuration information and an initial drive library of gateway equipment and each piece of sub-equipment;
abstracting each initial configuration information and the initial driving library information into a corresponding configuration object model and a corresponding driving object model;
and storing each configuration object model as configuration information in the storage center, and storing each driving object model as a driving stock in the storage center.
A second aspect of the present invention provides a gateway service implementing apparatus, including:
the loading module is used for loading the configuration information of the gateway equipment and each piece of sub-equipment from the preset storage center to the configuration center and loading the drive libraries of the gateway equipment and each piece of sub-equipment to the drive center;
the dividing module is used for dividing the gateway device and each piece of sub-device into a client module and a driver module according to the configuration information and the driver library, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
the registration module is used for registering the gateway client module, the gateway driver module, each sub-device client module and the message routing channel of each sub-device driver module, wherein the message routing channel is used for communication between the client module and the driver module of the gateway device or the same sub-device;
the gateway service module is used for receiving a gateway service instruction issued by a cloud end through the client module, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
Optionally, in a first implementation manner of the second aspect of the present invention, the gateway service module includes a deployment unit, and the deployment unit is configured to:
receiving the deployment instruction issued by a cloud end through the gateway client module, and exchanging the deployment instruction to the gateway driver module through an information routing channel of the gateway driver module;
loading configuration information and a drive library of the newly added sub-equipment from a preset storage center through the target gateway driver module based on the deployment instruction;
and dividing the newly added sub-equipment into a newly added sub-equipment dirver module and a newly added sub-equipment client module based on the configuration information and the drive library of the newly added sub-equipment, and registering message routing channels of the newly added sub-equipment dirver module and the newly added sub-equipment client module.
Optionally, in a second implementation manner of the second aspect of the present invention, the gateway service module further includes an updating unit, where the updating unit is configured to:
receiving an update instruction issued by a cloud end through the gateway client module, and exchanging the update instruction to the gateway driver module through an information routing channel of the gateway driver module;
and determining the identity identification information of the sub-equipment to be updated according to the updating instruction, and reloading new configuration information and driving information of the sub-equipment to be updated from a preset storage center through the gateway driver module based on the identity identification information.
Optionally, in a third implementation manner of the second aspect of the present invention, the gateway service module further includes a logout unit, where the logout unit is configured to:
receiving a logout instruction issued by a cloud end through the gateway client module, and exchanging the logout instruction to the gateway driver module through an information routing channel of the gateway driver module;
and based on the logout instruction, logging out the client module of the sub-device to be logged out, the driver module of the sub-device to be logged out and the message routing channel, the configuration information and the driving information corresponding to the sub-device to be logged out through the gateway driver module.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the gateway service implementing apparatus further includes an instruction generating module, where the instruction generating module is configured to:
receiving an equipment control request uploaded by the sub-equipment through a sub-equipment driver module, and exchanging the equipment control request to a control sub-equipment client module through an information routing channel of the control sub-equipment;
and uploading the equipment management and control request to a cloud end through the management and control sub-equipment client module so as to generate a corresponding gateway service instruction.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the gateway service implementation apparatus further includes a health monitoring module, where the health monitoring module is configured to:
acquiring the health monitoring state of each piece of sub-equipment through the sub-equipment driver module, and respectively exchanging the health monitoring state of each piece of sub-equipment to a corresponding sub-equipment client module through the message routing channel;
uploading each health monitoring state to a preset equipment control center through each sub-equipment client module;
and screening out the sub-equipment with the normal health monitoring state and the sub-equipment with the abnormal health monitoring state through the equipment control center based on the health monitoring state.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the gateway service implementing apparatus further includes a device access module, where the device access module is configured to:
acquiring initial configuration information and an initial drive library of gateway equipment and each piece of sub-equipment;
abstracting each initial configuration information and the initial driving library information into a corresponding configuration object model and a corresponding driving object model;
and storing each configuration object model as configuration information in the storage center, and storing each driving object model as a driving stock in the storage center.
A third aspect of the present invention provides a gateway service implementing apparatus, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the gateway service implementing device to perform the gateway service implementing method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-mentioned gateway service implementation method.
According to the technical scheme provided by the invention, the gateway device and each sub-device are divided into a gateway client module, a sub-device client module, a gateway driver module and a sub-device driver module respectively through configuration information and a drive library of the gateway device and each sub-device, wherein the client module is used for realizing communication with a cloud end, and the driver module is used for realizing communication with a terminal device; then registering message routing channels of the gateway client module, the gateway driver module, the sub-device client modules and the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of the gateway device or the same sub-device; and finally, for the gateway service instruction issued by the cloud, exchanging the gateway service instruction in the gateway equipment according to the registered message routing channel to realize the gateway service, so that the communication between different sub-equipment is not interfered with each other, and the normal operation of the gateway equipment is not influenced when the sub-equipment is managed and controlled.
Drawings
Fig. 1 is a schematic diagram of a first embodiment of a gateway service implementation method in an embodiment of the present invention;
fig. 2 is a schematic diagram of a second embodiment of a gateway service implementation method in an embodiment of the present invention;
fig. 3 is a schematic diagram of a third embodiment of a gateway service implementation method in an embodiment of the present invention;
fig. 4 is a schematic diagram of a fourth embodiment of a gateway service implementation method in an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a gateway service implementing apparatus according to the embodiment of the present invention;
fig. 6 is a schematic diagram of another embodiment of a gateway service implementing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of an embodiment of a gateway service implementing apparatus in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a gateway service implementation method, a gateway service implementation device, gateway service implementation equipment and a storage medium, wherein after configuration information and a drive library of gateway equipment and sub-equipment are loaded, the gateway equipment and the sub-equipment are divided into a gateway client module and a sub-equipment client module for realizing communication with a cloud end, and the gateway driver module and the sub-equipment driver module are used for realizing communication with terminal equipment; registering a corresponding message routing channel for communication between a client module and a driver module of the gateway device or the same sub-device; the gateway service instruction issued by the cloud is received through the client module, the gateway service instruction is exchanged to the target driver module through the message routing channel, and the gateway service is realized through the target driver module. The independent communication of a plurality of sub-devices in the gateway is realized, and the mutual influence degree of each sub-device in the configuration process is reduced.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and referring to fig. 1, a first embodiment of a gateway service implementation method in the embodiment of the present invention includes:
101. loading configuration information of the gateway equipment and each piece of sub equipment to a configuration center from a preset storage center, and loading a drive library of the gateway equipment and each piece of sub equipment to a drive center;
it is to be understood that the executing subject of the present invention may be a gateway service implementing apparatus, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject. The gateway is the server below. It should be emphasized that, in order to further ensure the privacy and security of the configuration information and the driver library, the configuration information and the driver library may also be stored in a node of a block chain.
In this embodiment, a gateway is first system-initialized, configuration information and a driver library stored in a preset storage center are loaded to the configuration center and the driver center, respectively, where one child device corresponds to one driver library and configuration information, and the configuration information and the driver library are both stored in the form of an Object model, and the gateway device and each child device (both collectively referred to as a device) are digitized to describe attributes, services, and events of the gateway device and each child device, and are specifically stored in a JSON (JS Object Notation) file format.
102. According to the configuration information and the drive library, dividing the gateway device and each sub-device into a client module and a driver module respectively, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
in this embodiment, the gateway device is mapped to the message route through the driver library of the gateway device, and is presented in the form of a gateway driver module; registering a gateway client module according to the configuration information of the gateway equipment; respectively mapping each sub-device to a corresponding sub-device driver module through a drive library of each sub-device; and registering each sub-equipment client module according to the configuration information of each sub-equipment.
The Driver module is connected with a uniform device access layer in the gateway, the gateway device and each sub-device are abstracted into an object model, the gateway device and each sub-device have three characteristics of service, event and attribute, all functions of the device can be described, the uniform device access layer specifies that interfaces driven by different devices are realized to be in accordance with standard object model interfaces, and the Driver module can communicate with different devices through the uniform device access layer. It should be noted that, when providing the device driver, the user needs to develop the device driver according to the interface defined by the standard object model, and the gateway device also performs analysis according to the standard object model interface, which is the communication protocol between the two parties.
The Client module is connected with a unified service access layer inside the gateway, cloud communication protocols (such as HTTP, COAP and MQTT) corresponding to different devices also need to comply with the definition of the object model, and the unified service access layer analyzes according to the object model and accesses the gateway through the Client module to transmit information.
103. Registering message routing channels of the gateway client module, the gateway driver module, the sub-device client modules and the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of the gateway device or the same sub-device;
in this implementation, for a driver module and a client module between the same devices, communication is performed through a message route, and data exchange is implemented, where exchanged data in the message route, such as instructions, communication protocols, and function configurations, are accessed through a unified device access layer and a unified service access layer in the route, and data formats are consistent.
The configuration information comprises client identity information of the equipment, an equipment communication address, a port number, a drive number and the like, and a message routing channel of a gateway client module is registered based on the client identity information of the gateway equipment; respectively registering a message routing channel of each sub-equipment client module based on the client identity information of each sub-equipment; registering a message routing channel of a gateway driver module based on the drive number of the gateway equipment; respectively registering the message routing channels of the driver modules of the sub-devices based on the drive numbers of the sub-devices; wherein, the message routing channel of each sub-device independently exists.
Specifically, for example, when the instruction is issued at the cloud, the instruction is mapped to the message routing channel of the gateway client module through the unified service access layer, and then the message routing channel points to the device target according to the instruction, and the instruction is further exchanged to other driver modules through other message routing channels in the message routing.
104. The method comprises the steps of receiving a gateway service instruction issued by a cloud end through the client module, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
In this embodiment, when a gateway service instruction is issued by the cloud, the gateway service instruction is mapped into a message routing channel of a gateway client module through a unified service access module, and the gateway service instruction describes a type of a gateway service and a target sub-device of the gateway service, where the type of the gateway service includes addition of the sub-device, configuration or drive update of the sub-device, logout of the sub-device, and the like; and exchanging a gateway service instruction from the gateway client module to the gateway driver module through the message routing channel, and adding, updating or canceling the corresponding sub-equipment through the gateway equipment.
In the embodiment of the invention, after the configuration information and the drive library of the gateway device and each sub-device are loaded, the gateway device and each sub-device are divided into a gateway client module and a sub-device client module for realizing communication with a cloud end, and a gateway driver module and a sub-device driver module for realizing communication with a terminal device; registering a corresponding message routing channel for communication between the client module and the driver module of the gateway device or the same sub-device; the gateway service instruction issued by the cloud is received through the client module, the gateway service instruction is exchanged to the target driver module through the message routing channel, and the gateway service is achieved through the target driver module. The independent communication of a plurality of sub-devices in the gateway is realized, and the mutual influence degree of each sub-device in the configuration process is reduced.
Referring to fig. 2, a second embodiment of a gateway service implementation method according to the embodiment of the present invention includes:
201. loading configuration information of the gateway equipment and each piece of sub-equipment to a configuration center from a preset storage center, and loading a drive library of the gateway equipment and each piece of sub-equipment to a drive center;
202. according to the configuration information and the driver library, dividing the gateway device and each sub-device into a client module and a driver module respectively, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
203. registering message routing channels of the gateway client module, the gateway driver module, the sub-device client modules and the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of the gateway device or the same sub-device;
204. receiving the deployment instruction issued by a cloud end through the gateway client module, and exchanging the deployment instruction to the gateway driver module through an information routing channel of the gateway driver module;
in the embodiment, when the cloud terminal issues a deployment instruction, the deployment instruction is mapped into the gateway client module through the unified service access layer, and the deployment instruction is issued to the gateway driver module through the message routing channel, before that, the configuration information of the newly added sub-equipment is downloaded from the cloud terminal through the gateway client module and is stored in the preset storage center, wherein the configuration information comprises sub-equipment client identity information used for cloud terminal access, equipment communication address and port number, drive number and the like; and downloading a driving library of the newly added sub-equipment from the cloud end through the gateway client module and storing the driving library into a preset storage center, wherein the configuration information and the driving information of the newly added sub-equipment realize the object model related interface.
205. Loading the configuration information and the driver library of the newly added sub-equipment from a preset storage center through the target gateway driver module based on the deployment instruction;
206. dividing the newly added sub-equipment into a newly added sub-equipment dirver module and a newly added sub-equipment client module based on the configuration information and the drive library of the newly added sub-equipment, and registering message routing channels of the newly added sub-equipment dirver module and the newly added sub-equipment client module;
in this embodiment, according to configuration information and a driver library of a new self-set device downloaded to a preset storage center in advance, and according to rules during initialization of a gateway system, a new sub-device is divided into a new device driver module and a new sub-device client module, and a corresponding message routing channel is registered.
207. Receiving an updating instruction issued by a cloud end through the gateway client module, and exchanging the updating instruction to the gateway driver module through an information routing channel of the gateway driver module;
208. determining identity identification information of the sub-equipment to be updated according to the updating instruction, and reloading new configuration information and driving information of the sub-equipment to be updated from a preset storage center through the gateway driver module based on the identity identification information;
in this embodiment, when the cloud issues the update instruction, the update instruction is mapped to the message routing channel corresponding to the gateway client module through the unified service access layer, and then is exchanged to the gateway driver module through the message routing channel of the gateway driver module; the updating command carries identity information of the sub-equipment to be updated, such as a drive number, a communication port number and the like, and the gateway device is controlled to update the corresponding sub-equipment in the gateway driver module.
209. Receiving a logout instruction issued by a cloud end through the gateway client module, and exchanging the logout instruction to the gateway driver module through an information routing channel of the gateway driver module;
210. and based on the logout instruction, logging out the client module of the sub-device to be logged out, the driver module of the sub-device to be logged out and the message routing channel, the configuration information and the driving information corresponding to the sub-device to be logged out through the gateway driver module.
In this embodiment, when the cloud issues a logout instruction of a sub-device, the logout instruction is mapped to a short message routing channel corresponding to a gateway client module through a unified service access layer, and then is exchanged into a gateway driver module, and according to the identity information of the sub-device to be logged recorded in the logout instruction, the driver module is used to logout the client module, the driver module, the message routing channel, the configuration information and the drive information of the sub-device to be logged out in the gateway device.
In the embodiment of the invention, when a deployment instruction, an update instruction or a logout instruction of a cloud terminal is received, the instructions are received through a gateway client module and exchanged in a gateway through a message routing channel, and because the message routing channels between the devices independently exist, only the target sub-device is configured without influencing the communication between the routing device and other sub-devices.
Referring to fig. 3, a third embodiment of a gateway service implementation method according to the embodiment of the present invention includes:
301. receiving an equipment control request uploaded by the sub-equipment through a sub-equipment driver module, and exchanging the equipment control request to a control sub-equipment client module through an information routing channel of the control sub-equipment;
in this embodiment, when a user manages and controls a child device, the child device is uploaded in the form of a device management and control request, and the device management and control request is mapped to a message routing channel of a driver module of the child device through a unified device access layer and exchanged to a client module (a client module of the managed and controlled child device) of the child device. The device management and control request contains identity identification information of the sub-devices, and can be used for determining corresponding management and control sub-device driver modules and management and control sub-device client modules.
302. Uploading the equipment management and control request to a cloud end through the management and control sub-equipment client module to generate a corresponding gateway service instruction;
in this embodiment, the management and control sub-device client module uploads the device management and control request to the cloud through the unified service access layer, and the cloud verifies the device management and control request to generate a corresponding gateway service instruction, and then the gateway service instruction is issued to the gateway, so as to control the gateway device to perform corresponding configuration on the management and control sub-device.
303. Loading configuration information of the gateway equipment and each piece of sub-equipment to a configuration center from a preset storage center, and loading a drive library of the gateway equipment and each piece of sub-equipment to a drive center;
304. according to the configuration information and the drive library, dividing the gateway device and each sub-device into a client module and a driver module respectively, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
305. registering message routing channels of the gateway client module, the gateway driver module, the sub-device client modules and the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of the gateway device or the same sub-device;
306. acquiring the health monitoring state of each piece of sub-equipment through the sub-equipment driver module, and respectively exchanging the health monitoring state of each piece of sub-equipment to a corresponding sub-equipment client module through the message routing channel;
in this embodiment, in order to ensure the network security of the whole routing system constructed by the routing device and other sub-devices, after each sub-device accesses the routing device, the sub-device communicates with the sub-device through the driver module of the sub-device, the sub-device is triggered to perform health check, and after the health check of the sub-device is completed, the health monitoring state of the sub-device is acquired through the unified device access layer, and then the health monitoring state is exchanged to the client module of the sub-device through the identity identification information of the sub-device.
307. Uploading each health monitoring state to a preset equipment control center through each sub-equipment client module;
in this embodiment, the device management and control center uniformly manages and controls the running states of the gateway device and each sub-device, including the health monitoring states of each sub-device, and after the sub-device is connected to the cloud, including after the system initialization stage and the new sub-device are added, and after the sub-device is updated, the health check of the sub-device is required, and the sub-device is uploaded to the device management and control center for backup.
308. Screening out the sub-equipment with the normal health monitoring state and screening out the sub-equipment with the abnormal health monitoring state through the equipment management and control center based on the health monitoring state;
in this embodiment, for a sub-device with an abnormal health state, the device management and control center may issue a health check command to the sub-device again, or directly issue a logout command of the sub-device, so as to ensure the communication security of the entire gateway system. And for the sub-equipment with the normal health monitoring state, subsequent operation is not required to be executed, and after the system is initialized, the sub-equipment is newly added or the sub-equipment is updated, if the gateway equipment does not receive any instruction issued by the equipment control center, no operation is carried out on the corresponding sub-equipment.
309. The method comprises the steps of receiving a gateway service instruction issued by a cloud end through the client module, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
In the embodiment of the invention, the control on the sub-equipment is introduced in detail, on one hand, when the user controls the sub-equipment, the control sub-equipment is configured relatively through an independent message routing channel, and the influence on other sub-equipment is not ensured; on the other hand, the newly accessed sub-equipment needs to be subjected to safety inspection, and a safety monitoring state is uploaded to the equipment management and control center, so that the sub-equipment with higher potential safety hazard is screened out, and the safety of the whole gateway system is ensured.
Referring to fig. 4, a fourth embodiment of a gateway service implementation method according to the embodiments of the present invention includes:
401. acquiring initial configuration information and an initial drive library of gateway equipment and each piece of sub-equipment;
402. abstracting each initial configuration information and the initial driving library information into a corresponding configuration object model and a corresponding driving object model;
in this embodiment, the file format of the initial configuration information is a common configuration file format, such as Properties, JSON, YAML, HOCON9, and the like; the file format of the initial driver library is also a common configuration file format, such as DRV, INF, ENU, ACM, SYS, IME, and the like;
for different types of initial configuration information and initial driving libraries, the initial configuration information and the initial driving libraries can be described in the form of an object model, and are expressed in three dimensions of attributes, services and events, wherein the attributes are used for describing the running state of equipment, such as the current ambient temperature read by the sub-equipment, and can initiate the reading and setting requests of the attributes; the service refers to the capability or method that the device can be called externally, can set input parameters and output parameters, and can realize more complex business logic through instructions, such as executing a certain specific task; an event typically contains notification information that needs to be perceived and processed externally and may contain a number of output parameters. Events may be subscribed to and pushed, such as information about the completion of a task, or the temperature at which a device has failed or is alerted.
403. Storing each configuration object model as configuration information in a preset storage center, and storing each driving object model as a driving stock in the storage center;
in this embodiment, the configuration information is stored in the preset storage center in the form of the configuration object model, and the driver library is stored in the driver center in the form of the driver model, so that when subsequent system initialization, device update, and device addition are performed, the gateway can be directly loaded from the preset storage center, and the gateway service efficiency is increased.
404. Loading the configuration information of the gateway equipment and each piece of sub equipment to a configuration center from the storage center, and loading a drive library of the gateway equipment and each piece of sub equipment to a drive center;
405. according to the configuration information and the driver library, dividing the gateway device and each sub-device into a client module and a driver module respectively, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
406. registering message routing channels of the gateway client module, the gateway driver module, the sub-device client modules and the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of the gateway device or the same sub-device;
407. the method comprises the steps of receiving a gateway service instruction issued by a cloud end through the client module, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
In the embodiment of the invention, the initial configuration information and the initial driver library of the equipment are abstracted in advance to obtain the configuration object model and the driver model in the unified object model format, and the configuration object model and the driver model are stored and preset in the storage center for subsequent loading, so that the service efficiency of the gateway is improved.
In the above description of the gateway service implementation method in the embodiment of the present invention, referring to fig. 5, a gateway service implementation apparatus in the embodiment of the present invention is described below, where an embodiment of the gateway service implementation apparatus in the embodiment of the present invention includes:
a loading module 501, configured to load configuration information of the gateway device and each sub device from a preset storage center to the configuration center, and load a driver library of the gateway device and each sub device to the driver center;
the dividing module 502 is configured to divide the gateway device and each of the sub devices into a client module and a driver module according to the configuration information and the driver library, where the client module includes the gateway client module and the sub device client module and is configured to implement communication with a cloud end, and the driver module includes the gateway driver module and the sub device driver module and is configured to implement communication with a terminal device;
a registering module 503, configured to register the gateway client module, the gateway driver module, the sub-device client modules, and message routing channels of the sub-device driver modules, where the message routing channels are used for communication between the client module and the driver module of a gateway device or the same sub-device;
the gateway service module 504 is configured to receive a gateway service instruction issued by a cloud through the client module, exchange the gateway service instruction to a target driver module through the message routing channel, and execute the gateway service instruction through the target driver module to implement a gateway service.
In the embodiment of the invention, after the configuration information and the drive library of the gateway device and each sub-device are loaded, the gateway device and each sub-device are divided into a gateway client module and a sub-device client module for realizing communication with a cloud end, and a gateway driver module and a sub-device driver module for realizing communication with a terminal device; registering a corresponding message routing channel for communication between a client module and a driver module of the gateway device or the same sub-device; the gateway service instruction issued by the cloud is received through the client module, the gateway service instruction is exchanged to the target driver module through the message routing channel, and the gateway service is achieved through the target driver module. The independent communication of a plurality of sub-devices in the gateway is realized, and the mutual influence degree of each sub-device in the configuration process is reduced.
Referring to fig. 6, another embodiment of a gateway service implementing apparatus according to the embodiment of the present invention includes:
a loading module 501, configured to load configuration information of the gateway device and each sub device from a preset storage center to the configuration center, and load a driver library of the gateway device and each sub device to the driver center;
the dividing module 502 is configured to divide the gateway device and each piece of sub-device into a client module and a driver module according to the configuration information and the driver library, where the client module includes a gateway client module and a sub-device client module and is configured to implement communication with a cloud, and the driver module includes a gateway driver module and a sub-device driver module and is configured to implement communication with a terminal device;
a registering module 503, configured to register the gateway client module, the gateway driver module, the sub-device client modules, and message routing channels of the sub-device driver modules, where the message routing channels are used for communication between the client module and the driver module of a gateway device or the same sub-device;
the gateway service module 504 is configured to receive a gateway service instruction issued by a cloud through the client module, exchange the gateway service instruction to a target driver module through the message routing channel, and execute the gateway service instruction through the target driver module to implement a gateway service.
Specifically, the gateway service module includes a deployment unit 5041, where the deployment unit 5041 is configured to:
receiving the deployment instruction issued by a cloud end through the gateway client module, and exchanging the deployment instruction to the gateway driver module through an information routing channel of the gateway driver module;
loading configuration information and a drive library of the newly added sub-equipment from a preset storage center through the target gateway driver module based on the deployment instruction;
and dividing the newly added sub-equipment into a newly added sub-equipment dirver module and a newly added sub-equipment client module based on the configuration information and the drive library of the newly added sub-equipment, and registering message routing channels of the newly added sub-equipment dirver module and the newly added sub-equipment client module.
Specifically, the gateway service module further includes an updating unit 5042, and the updating unit 5042 is configured to:
receiving an update instruction issued by a cloud end through the gateway client module, and exchanging the update instruction to the gateway driver module through an information routing channel of the gateway driver module;
and determining the identity identification information of the sub-equipment to be updated according to the updating instruction, and reloading new configuration information and driving information of the sub-equipment to be updated from a preset storage center through the gateway driver module based on the identity identification information.
Specifically, the gateway service module further includes a logout unit 5043, where the logout unit 5043 is configured to:
receiving a logout instruction issued by a cloud end through the gateway client module, and exchanging the logout instruction to the gateway driver module through an information routing channel of the gateway driver module;
and based on the logout instruction, logging out the client module of the sub-device to be logged out, the driver module of the sub-device to be logged out and the message routing channel, the configuration information and the driving information corresponding to the sub-device to be logged out through the gateway driver module.
Specifically, the gateway service implementing apparatus further includes an instruction generating module 505, where the instruction generating module 505 is configured to:
receiving an equipment control request uploaded by the sub-equipment through a sub-equipment driver module, and exchanging the equipment control request to a control sub-equipment client module through an information routing channel of the control sub-equipment;
and uploading the equipment management and control request to a cloud end through the management and control sub-equipment client module so as to generate a corresponding gateway service instruction.
Specifically, the gateway service implementing apparatus further includes a health monitoring module 506, where the health monitoring module 506 is configured to:
acquiring the health monitoring state of each piece of sub-equipment through the sub-equipment driver module, and respectively exchanging the health monitoring state of each piece of sub-equipment to a corresponding sub-equipment client module through the message routing channel;
uploading each health monitoring state to a preset equipment control center through each sub-equipment client module;
and based on the health monitoring state, screening out the sub-equipment with the normal health monitoring state and screening out the sub-equipment with the abnormal health monitoring state through the equipment management and control center.
Specifically, the gateway service implementing apparatus further includes an equipment access module 507, where the equipment access module 507 is configured to:
acquiring initial configuration information and an initial drive library of gateway equipment and each piece of sub-equipment;
abstracting each initial configuration information and the initial driving library information into a corresponding configuration object model and a corresponding driving object model;
and storing each configuration object model as configuration information in the storage center, and storing each driving object model as a driving object in the storage center.
In the embodiment of the invention, when a deployment instruction, an update instruction or a logout instruction of a cloud terminal is received, only a target sub-device is configured through an independent message routing channel among all devices without influencing the communication between the routing device and other sub-devices; then, on one hand, when the user manages and controls the sub-equipment, the related configuration is carried out on the sub-equipment through the independent message routing channel, and the influence on other sub-equipment is not ensured; on the other hand, the method introduces that newly accessed sub-equipment needs to be subjected to safety inspection and uploads a safety monitoring state to an equipment management and control center so as to screen out the sub-equipment with higher potential safety hazard and ensure the safety of the whole gateway system; then, the method introduces that the initial configuration information and the initial driving library of the equipment are abstracted in advance to obtain a configuration object model and a driving object model in a unified object model format, and the configuration object model and the driving object model are stored and preset in a storage center for subsequent loading, so that the service efficiency of the gateway is improved.
Fig. 5 and fig. 6 describe the gateway service implementation apparatus in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the gateway service implementation device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 7 is a schematic structural diagram of a gateway service implementing apparatus 700 according to an embodiment of the present invention, where the gateway service implementing apparatus 700 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 710 (e.g., one or more processors) and a memory 720, and one or more storage media 730 (e.g., one or more mass storage devices) for storing applications 733 or data 732. Memory 720 and storage medium 730 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations for the gateway service implementing apparatus 700. Further, the processor 710 may be configured to communicate with the storage medium 730 to execute a series of instruction operations in the storage medium 730 on the gateway service implementing apparatus 700.
The gateway service implementing apparatus 700 may also include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input-output interfaces 760, and/or one or more operating systems 731, such as Windows Server, mac OS X, unix, linux, freeBSD, etc. Those skilled in the art will appreciate that the gateway service implementing apparatus configuration shown in fig. 7 does not constitute a limitation of the gateway service implementing apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The present invention further provides a gateway service implementing device, where the gateway service implementing device includes a memory and a processor, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the gateway service implementing method in the foregoing embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the gateway service implementing method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, which is used for verifying the validity (anti-counterfeiting) of the information and generating a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A gateway service implementation method is characterized in that the gateway service implementation method comprises the following steps:
loading configuration information of the gateway equipment and each piece of sub equipment to a configuration center from a preset storage center, and loading a drive library of the gateway equipment and each piece of sub equipment to a drive center;
according to the configuration information and the drive library, dividing the gateway device and each sub-device into a client module and a driver module respectively, wherein the client module comprises a gateway client module and a sub-device client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-device driver module and is used for realizing communication with a terminal device;
registering the gateway client module, the gateway driver module, each sub-device client module and a message routing channel of each sub-device driver module, wherein the message routing channel is used for communication between the client module and the driver module of the gateway device or the same sub-device;
the method comprises the steps of receiving a gateway service instruction issued by a cloud end through the client module, exchanging the gateway service instruction to a target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
2. The method according to claim 1, wherein the gateway service instruction includes a deployment instruction of a newly added sub-device, the receiving, by the client module, a gateway service instruction issued by a cloud, the exchanging, by the message routing channel, the gateway service instruction to a target driver module, and the executing, by the target driver module, the gateway service instruction to implement a gateway service includes:
receiving the deployment instruction issued by a cloud end through the gateway client module, and exchanging the deployment instruction to the gateway driver module through an information routing channel of the gateway driver module;
loading the configuration information and the driver library of the newly added sub-equipment from a preset storage center through the gateway driver module based on the deployment instruction;
and dividing the newly added sub-equipment into a newly added sub-equipment dirver module and a newly added sub-equipment client module based on the configuration information and the drive library of the newly added sub-equipment, and registering message routing channels of the newly added sub-equipment dirver module and the newly added sub-equipment client module.
3. The method according to claim 1, wherein the gateway service instruction includes an update instruction of a sub device, the receiving, by the client module, a gateway service instruction issued by a cloud, the exchanging, by the message routing channel, the gateway service instruction to a target driver module, and the executing, by the target driver module, the gateway service instruction to implement a gateway service further includes:
receiving an update instruction issued by a cloud end through the gateway client module, and exchanging the update instruction to the gateway driver module through an information routing channel of the gateway driver module;
and determining the identity identification information of the sub-equipment to be updated according to the updating instruction, and reloading new configuration information and driving information of the sub-equipment to be updated from a preset storage center through the gateway driver module based on the identity identification information.
4. The method as claimed in claim 1, wherein the gateway service instruction includes a logout instruction of a sub-device, the receiving a gateway service instruction from a cloud via the client module, exchanging the gateway service instruction to a target driver module via the message routing channel, and executing the gateway service instruction via the target driver module to implement a gateway service further includes:
receiving a logout instruction issued by a cloud end through the gateway client module, and exchanging the logout instruction to the gateway driver module through an information routing channel of the gateway driver module;
and based on the logout instruction, logging out the client module of the sub-device to be logged out, the driver module of the sub-device to be logged out and the message routing channel, the configuration information and the driving information corresponding to the sub-device to be logged out through the gateway driver module.
5. The gateway service implementing method of claim 1, wherein the gateway service implementing method further comprises:
receiving an equipment management and control request uploaded by the sub-equipment through a sub-equipment driver module, and exchanging the equipment management and control request to a management and control sub-equipment client module through an information routing channel of the management and control sub-equipment;
and uploading the equipment management and control request to a cloud end through the management and control sub-equipment client module so as to generate a corresponding gateway service instruction.
6. The gateway service implementing method according to claim 1, wherein after registering the message routing channels of the gateway client module, the gateway driver module, each of the sub-device client modules, and each of the sub-device driver modules, wherein the message routing channels are used for communication between the client module and the driver module of a gateway device or the same sub-device, the method further comprises:
acquiring the health monitoring state of each piece of sub-equipment through the sub-equipment driver module, and respectively exchanging the health monitoring state of each piece of sub-equipment to a corresponding sub-equipment client module through the message routing channel;
uploading the health monitoring state to a preset equipment control center through each sub-equipment client module;
and screening out the sub-equipment with the normal health monitoring state and the sub-equipment with the abnormal health monitoring state through the equipment control center based on the health monitoring state.
7. The gateway service implementing method according to any one of claims 1 to 6, wherein before the loading the configuration information of the gateway device and each sub-device from the preset storage center to the configuration center, and loading the driver library of the gateway device and each sub-device to the driver center, further comprising:
acquiring initial configuration information and an initial drive library of gateway equipment and each piece of sub-equipment;
abstracting the initial configuration information and the initial driver library into a corresponding configuration object model and a corresponding driver model;
and storing the configuration object model as configuration information in the storage center, and storing the driving object model as a driving stock in the storage center.
8. A gateway service implementing apparatus, characterized in that the gateway service implementing apparatus comprises:
the loading module is used for loading the configuration information of the gateway equipment and each piece of sub equipment from the preset storage center to the configuration center and loading the driving libraries of the gateway equipment and each piece of sub equipment to the driving center;
the dividing module is used for dividing the gateway device and each piece of sub-equipment into a client module and a driver module according to the configuration information and the driver library, wherein the client module comprises a gateway client module and a sub-equipment client module and is used for realizing communication with a cloud end, and the driver module comprises a gateway driver module and a sub-equipment driver module and is used for realizing communication with terminal equipment;
the registration module is used for registering the gateway client module, the gateway driver module, each sub-device client module and a message routing channel of each sub-device driver module, wherein the message routing channel is used for communication between the client module and the driver module of the gateway device or the same sub-device;
and the gateway service module is used for receiving a gateway service instruction issued by the cloud end through the client module, exchanging the gateway service instruction to the target driver module through the message routing channel, and executing the gateway service instruction through the target driver module to realize gateway service.
9. A gateway service implementing device, characterized in that the gateway service implementing device comprises: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invokes the instructions in the memory to cause the gateway service implementation device to perform the gateway service implementation method of any of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the gateway service implementation method of any one of claims 1-7.
CN202011279921.8A 2020-11-16 2020-11-16 Gateway service implementation method, device, equipment and storage medium Active CN112395014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011279921.8A CN112395014B (en) 2020-11-16 2020-11-16 Gateway service implementation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011279921.8A CN112395014B (en) 2020-11-16 2020-11-16 Gateway service implementation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112395014A CN112395014A (en) 2021-02-23
CN112395014B true CN112395014B (en) 2023-04-07

Family

ID=74599648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011279921.8A Active CN112395014B (en) 2020-11-16 2020-11-16 Gateway service implementation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112395014B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553849A (en) * 2022-02-22 2022-05-27 北京百度网讯科技有限公司 Drive update method, device, apparatus, medium, and program product
CN115296945B (en) * 2022-06-28 2024-03-22 青岛海尔科技有限公司 Control method, system and device of equipment, storage medium and electronic device
CN115202763B (en) * 2022-09-19 2022-12-09 大方智造(天津)科技有限公司 Acquisition dynamic loading and calling method based on drive

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566314A (en) * 2016-06-30 2018-01-09 阿里巴巴集团控股有限公司 A kind of data transmission system, method and apparatus
CN110413591A (en) * 2019-07-10 2019-11-05 广州博依特智能信息科技有限公司 A kind of industrial data acquisition method and edge calculations gateway

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689430B2 (en) * 2002-12-16 2010-03-30 International Business Machines Corporation Access to web services
US10715354B2 (en) * 2017-02-20 2020-07-14 Lutron Technology Company Llc Integrating and controlling multiple load control systems
US10530867B2 (en) * 2017-02-20 2020-01-07 International Business Machines Corporation Software-defined networking proxy gateway

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566314A (en) * 2016-06-30 2018-01-09 阿里巴巴集团控股有限公司 A kind of data transmission system, method and apparatus
CN110413591A (en) * 2019-07-10 2019-11-05 广州博依特智能信息科技有限公司 A kind of industrial data acquisition method and edge calculations gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能家居网关研究;程海瑞;《信息通信技术 》;20151015;第66-70页 *

Also Published As

Publication number Publication date
CN112395014A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN112395014B (en) Gateway service implementation method, device, equipment and storage medium
CN108141380B (en) Network-based resource configuration discovery service
JP6860179B2 (en) Systems with managed container instances and how
US10997092B2 (en) Enabling out-of-band hardware management via an in-band communications channel
JP4307448B2 (en) System and method for managing distributed objects as a single representation
US8024446B2 (en) MILARRS systems and methods
US8910129B1 (en) Scalable control system for test execution and monitoring utilizing multiple processors
JP2018156645A (en) Storage system and operation method thereof
CN112104754B (en) Network proxy method, system, device, equipment and storage medium
US20220311661A1 (en) System and method for automated information technology services management
JP2021502624A (en) Computer processing methods, equipment, systems, and programs to access the gateway management console
EP3014817B1 (en) Hardware management communication protocol
CN110932918A (en) Log data acquisition method and device and storage medium
US20140059242A1 (en) Method and system of implementing data load protocols
US20230344800A1 (en) Client Browser to Endpoint Peer to Peer Redirection from Cloud Control Pane
CN114003342A (en) Distributed storage method and device, electronic equipment and storage medium
US11977505B2 (en) Data center asset client bridging via a passthrough device
US20240040001A1 (en) Connectivity Management System Client and Host Aware Extensions for Non-Embedded Use Cases
WO2023157204A1 (en) Configuration inputting device, configuration inputting method and configuration inputting program
CN114500302B (en) ICE service arrangement method, ICE service arrangement device, terminal equipment and storage medium
US11204886B2 (en) Management of zoned storage drives
US20240039795A1 (en) Connectivity Management System Which Optimizes Embedded Connectivity Management System Operations
Söderholm Message queue-based communication in remote administration applications
CN118041861A (en) Flow control system and method based on cloud native gateway and metadata
CN117354368A (en) Client information transparent transmission method, device and equipment under seven-layer proxy and storage medium

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