Gateway configuration method and device, electronic equipment, storage medium and computer program product

By generating and configuring configuration files, the problem of poor edge gateway adaptability is solved, configuration and data collection and reporting of multiple devices are realized, and adaptability and operation and maintenance efficiency are improved.

CN118555199APending Publication Date: 2024-08-27EASYLINKIN TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410757460.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In IoT scenarios, edge gateways are only suitable for specific monitoring devices and cannot configure and save sensors from other manufacturers, resulting in poor expansion adaptability.

Method used

By receiving the edge gateway configuration operation, the configuration file is generated and configured, including device information, interface type and downlink service information, and is bound and sent to the gateway management platform to realize the configuration of multiple devices and data collection and reporting.

Benefits of technology

It realizes convenient configuration of a variety of devices, has strong expansion adaptability, simplifies user configuration work, improves operation and maintenance efficiency, and reduces dependence on original manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555199A
    Figure CN118555199A
Patent Text Reader

Abstract

The invention provides a gateway configuration method and device, electronic equipment, a computer readable storage medium and a computer program product. The method is applied to a terminal, and comprises the following steps: receiving an edge gateway configuration operation for first equipment, and obtaining input first configuration information; generating a first configuration file based on the first configuration information; and configuring the first configuration file to an edge gateway. According to the invention, edge gateway configuration can be conveniently carried out on the equipment, and the expansion adaptability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, and in particular to a gateway configuration method, device, electronic device, storage medium and computer program product. Background Art

[0002] In some IoT scenarios, it is necessary to access monitoring devices through edge gateways. However, there are many types of monitoring devices, and each monitoring manufacturer operates independently. Edge gateways are only suitable for specific monitoring devices, and data cannot be interoperable. Edge gateways only support the configuration of their corresponding sensors, and there is no way to configure and save sensors from other manufacturers, and the expansion adaptability is poor. Summary of the invention

[0003] The embodiments of the present application provide a gateway configuration method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can easily configure the device as an edge gateway and have strong expansion adaptability.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The embodiment of the present application provides a gateway configuration method, which is applied to a terminal and includes:

[0006] Receiving an edge gateway configuration operation for a first device, and obtaining input first configuration information;

[0007] Generate a first configuration file based on the first configuration information;

[0008] Configure the first configuration file to the edge gateway.

[0009] In the above solution, the receiving of the edge gateway configuration operation for the first device includes:

[0010] receiving at least three pieces of input information for the first device based on the configuration interface;

[0011] In response to a triggering operation on a configuration function item presented in the configuration interface, first configuration information including the at least two input information is obtained.

[0012] In the above solution, the first configuration information includes at least device information of the first device, an interface type of an edge gateway, and device downlink service information, and the generating of a first configuration file based on the first configuration information includes:

[0013] The device information, the interface type and the device downlink service information are bound to generate the first configuration file.

[0014] In the above scheme, the method further comprises:

[0015] receiving linkage configuration parameters for the first device, where the linkage configuration parameters at least include information of a second device linked to and controlled by the first device;

[0016] The linkage configuration parameters are configured to the edge gateway.

[0017] In the above scheme, the method further includes:

[0018] Sending the first configuration file to the gateway management platform;

[0019] The gateway management platform is used to manage the configuration files sent by at least one terminal.

[0020] In the above scheme, the method further includes:

[0021] Sending a configuration request for a configuration file of a third device to the gateway management platform;

[0022] receiving a configuration file of a third device sent by the gateway management platform in response to the configuration request;

[0023] The configuration file of the third device is configured to the edge gateway.

[0024] In the above scheme, the method further includes:

[0025] Collect corresponding monitoring data through the first device;

[0026] Based on the edge gateway, the monitoring data is reported to the cloud server.

[0027] The embodiment of the present application provides a gateway configuration device, which is applied to a terminal, including:

[0028] A receiving module, configured to receive an edge gateway configuration operation for a first device and obtain input first configuration information;

[0029] A generating module, configured to generate a first configuration file based on the first configuration information;

[0030] A configuration module is used to configure the first configuration file to the edge gateway.

[0031] An embodiment of the present application provides an electronic device, including:

[0032] A memory for storing executable instructions;

[0033] The processor is used to implement the gateway configuration method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0034] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement the gateway configuration method provided in the embodiment of the present application.

[0035] An embodiment of the present application provides a computer program product storing a computer program for implementing the gateway configuration method provided in the embodiment of the present application when executed by a processor.

[0036] The embodiment of the present application receives an edge gateway configuration operation for a first device, obtains input first configuration information, generates a first configuration file based on the first configuration information, and configures the first configuration file to the edge gateway. This makes it easy to configure the edge gateway of the device and has strong extensibility and adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is an optional structural diagram of the gateway configuration system 100 provided in an embodiment of the present application;

[0038] Figure 2 is an optional structural diagram of an electronic device 200 provided in an embodiment of the present application;

[0039] Figure 3 This is an optional flow chart of the gateway configuration method provided in the embodiment of the present application;

[0040] Figure 4A It is an optional schematic diagram of a configuration interface provided in an embodiment of the present application;

[0041] Figure 4B It is an optional schematic diagram of the edge gateway configuration interface provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0043] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0044] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0045] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0046] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0047] 1) RS485 interface: RS485 interface is generally a 4-wire system, namely VCC GND signal A signal B. If the monitoring equipment is not powered through the edge gateway, it is a 3-wire system, namely GND signal A signal B. In the dynamic environment scenario of the computer room, UPS monitoring, battery monitoring, power meter and other intelligent devices all use RS485 interface, and its communication protocol is ModBus protocol.

[0048] 2) DI interface: The full name is Digital Input, which means digital input signal interface. It is divided into two states: disconnection and conduction, corresponding to digital signals 0 and 1. The hardware interface is generally a 2-wire system, divided into Di and COM common terminals. In the dynamic environment scenario of the computer room, only two-state monitoring devices such as water immersion, door magnets, smoke sensors, and infrared all use the DI interface.

[0049] 3) DO interface: The full name is Digital Input, which indicates the digital output signal interface. It is divided into two states: disconnection and conduction, corresponding to digital signals 0 and 1. The hardware interface is generally a 2-wire system, including DO and COM common terminals. In the dynamic environment scenario of the computer room, devices that require output control and have only two states use the DO interface, mainly sound and light alarms. Precision air conditioners can control switches, modes, temperature, etc. Its interface is the RS485 interface, which is controlled through the ModBus protocol.

[0050] The embodiments of the present application provide a gateway configuration method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can easily configure the device as an edge gateway and have strong expansion adaptability.

[0051] First, the gateway configuration system provided in the embodiment of the present application is described. Figure 1 , Figure 1It is an optional structural diagram of the gateway configuration system 100 provided in the embodiment of the present application, and the terminal 101 is connected to the cloud server 103 through the edge gateway 102. The terminal 101 is equipped with a client for gateway configuration. In some embodiments, the terminal 103 can be a laptop, a tablet computer, a desktop computer, a smart phone, a dedicated messaging device, a portable gaming device, an intelligent speaker, a smart watch, etc., but is not limited thereto. The server 101 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network) services, and big data and artificial intelligence platforms. The network 102 can be a wide area network or a local area network, or a combination of the two. The terminal 103 and the server 101 can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiment of the present application.

[0052] Next, the electronic device for implementing the above-mentioned gateway management method provided in the embodiment of the present application is described. Figure 2 , Figure 2 is an optional structural diagram of an electronic device 200 provided in an embodiment of the present application. In practical applications, the electronic device 200 can be implemented as Figure 1 The terminal 103 or server 101 in the embodiment of the present invention is an electronic device. Figure 1 Taking the terminal 103 shown as an example, an electronic device for implementing the gateway management method of an embodiment of the present application is described.

[0053] Figure 2 The electronic device 200 shown includes: at least one processor 201, a memory 205, at least one network interface 202 and a user interface 203. The various components in the electronic device 200 are coupled together via a bus system 204. It is understood that the bus system 204 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 204 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 204 is not described in detail. Figure 2 Various buses are labeled as bus system 204 .

[0054] The processor 201 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0055] The user interface 203 includes one or more output devices 2031 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 203 also includes one or more input devices 2032, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0056] The memory 205 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 205 may optionally include one or more storage devices that are physically remote from the processor 201.

[0057] The memory 205 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 205 described in the embodiment of the present application is intended to include any suitable type of memory.

[0058] In some embodiments, the memory 205 can store data to support various operations. Examples of these data include programs, modules, and data structures, or subsets or supersets thereof. In the embodiment of the present application, the memory 205 stores an operating system 2051, a network communication module 2052, a presentation module 2053, an input processing module 2054, and a gateway management device 2055; specifically,

[0059] Operating system 2051, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0060] A network communication module 2052, for reaching other computing devices via one or more (wired or wireless) network interfaces 202, exemplary network interfaces 202 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);

[0061] a presentation module 2053 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 2031 (e.g., a display screen, a speaker, etc.) associated with the user interface 203;

[0062] The input processing module 2054 is used to detect one or more user inputs or interactions from one of the one or more input devices 2032 and translate the detected inputs or interactions.

[0063] In some embodiments, the gateway management device provided in the embodiments of the present application can be implemented in software. Figure 2 The gateway management device 2055 stored in the memory 205 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: a receiving module 20551, a generating module 20552 and a configuring module 20553. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0064] In other embodiments, the gateway management device provided in the embodiments of the present application can be implemented in hardware. As an example, the gateway management device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the gateway management method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), or other electronic components.

[0065] The gateway configuration method provided in the embodiment of the present application will be described below in conjunction with the exemplary application and implementation of the terminal provided in the embodiment of the present application.

[0066] See also Figure 3 , Figure 3 This is an optional flow chart of the gateway configuration method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0067] Step 301, receiving an edge gateway configuration operation for a first device, and obtaining input first configuration information;

[0068] Step 302: Generate a first configuration file based on the first configuration information;

[0069] Step 303: configure the first configuration file to the edge gateway.

[0070] The embodiment of the present application can be implemented in the dynamic environment monitoring system of the computer room, mainly monitoring the power, environment, safety and other aspects of the information computer room, providing highly stable and reliable monitoring information resources for the operation of various systems and equipment in the computer room, providing real-time data monitoring and necessary intelligent control, and generating a fault alarm when a fault occurs in the computer room, notifying relevant management personnel to handle it in time. In step 301, the first device is a monitoring device, which is used to collect data in the computer room. The edge gateway realizes data conversion and transmission, and the cloud server realizes the application business functions of the dynamic environment of the computer room, including monitoring data display, alarm management, two-dimensional large-screen display, system management and other functions. There are many types of monitoring equipment. The types of monitoring equipment commonly used in the dynamic environment of the computer room are shown in Table 1. The number of each monitoring device used is related to the size of the computer room, the number of infrastructure and the type of monitoring equipment. The monitoring equipment mainly involves three hardware interfaces, namely RS485, DI and DO interfaces.

[0071] Table 1 Monitoring equipment types

[0072]

[0073]

[0074] In the embodiment of the present application, the client set in the terminal supports local offline use, which is a C / S (Client / Server Architecture) architecture, which is installed and run through a software installation package, and mainly realizes the establishment and management of device drivers for monitoring devices, the configuration and debugging of edge gateways, and ensures that edge gateways achieve normal data collection and transmission. Users can set up configuration files for monitoring devices in the local client software to establish a monitoring device driver library, which is saved in the local terminal system by default, and can be used even if the terminal is not connected to the Internet.

[0075] In actual implementation, the edge gateway can collect data from the monitoring device sensors according to the configuration file of the monitoring device, such as collecting data according to the configured collection cycle, such as calculating the conversion data value according to the device attributes, and then uploading the calculated value to the cloud server. For example, the value of the temperature register 0x0000 collected is the hexadecimal value 0x00C8, which is converted to decimal 200, which is converted to a temperature of 20°C (divided by the value by 10), and the humidity register 0x00001 collected is 0x0258, which is converted to decimal 600, which is converted to a temperature of 60%. If the temperature and humidity sensor (a monitoring device) is connected to the first RS485 interface of the edge gateway and the communication address is 2, the data format reported to the cloud server by the edge gateway after collection can be as follows:

[0076]

[0077] After the cloud server receives the reported data, it can parse the data and display it.

[0078] In actual implementation, the terminal receives an edge gateway configuration operation for the first device and obtains the input first configuration information. Here, the terminal presents a corresponding configuration interface in the display interface and presents multiple function items in the configuration interface. In some embodiments, the receiving of the edge gateway configuration operation for the first device includes: receiving at least three input information for the first device based on the configuration interface; and obtaining the first configuration information including the at least two input information in response to a trigger operation for the configuration function items presented in the configuration interface.

[0079] For example, see Figure 4A and Figure 4B , Figure 4A and Figure 4B It is an optional schematic diagram of the configuration interface provided by the embodiment of the present application. Here, the client connects to the edge gateway through the network port, and the device number (i.e. IP) information 401 is displayed at the top of the client's configuration interface. It supports clicking the "Device Selection" function item 402 to switch the selected device, and clicking the "Firmware Upgrade" function item 403 can select the firmware and perform the upgrade operation. Click the "Account Login" function item 404 to enter the account and password to log in to the system. Here, the login account is required to sign in and out the device configuration file, and other functions can be used normally without logging in. The device configuration interface 410 can be presented by triggering the "Device Driver Management" function item 405, and the edge gateway configuration interface 420 can be presented by triggering the "Edge Gateway Configuration" function item 406. Here, the device configuration interface 410 presents functional modules such as the device type module 411, the device model module 412 and the device definition module 413. The device type module 411 is used to select the device type, such as temperature and humidity sensors, USP monitoring, battery monitoring, water immersion monitors and smoke sensors. The device model module 412 is used to select the device model, such as Figure 4A The temperature and humidity sensor shown has four optional device models: manufacturer 1_WSD1, manufacturer 1_WSD2, manufacturer 2_WSD1 and manufacturer 3_WSD1. The device definition module 413 can define the object model, that is, set the monitoring attributes, downlink services, etc., and can also set the device interface type, collection cycle, reporting cycle, change reporting and linkage control.

[0080] In the embodiments of the present application, the device type refers to a set of devices with similar functions, and the device model refers to a device with clear functional parameters. For example, temperature and humidity is a device type that can collect temperature and humidity, and there are many different models of temperature and humidity. The data register address, range and accuracy of different models of temperature and humidity may be quite different, so it is necessary to use the device model to distinguish them, as shown in Table 2 below:

[0081] Table 2 Equipment Model Table

[0082] Device Model Temperature register address Range and accuracy Humidity register address Range and accuracy Temperature and humidity model 1 0x0000 -30-80℃,0.3℃ 0x0001 0-100%RH, 3% Temperature and humidity model 2 0x0010 0-50℃,0.3℃ 0x0011 0-99%RH, 2%

[0083] In actual scenarios, when configuring the configuration file of the first device, the user needs to set the first configuration information of the first device, that is, the object model, which includes monitoring attributes and downlink services. Among them, the monitoring attributes are mainly the monitoring indicators of the device, such as the temperature and humidity sensor will have temperature attributes and humidity attributes, and the downlink service refers to the downlink setting or control function of the device, such as the sound and light alarm has a downlink service for setting the sound and light alarm state to realize the sound and light flashing alarm. As shown in Figure 4, the monitoring attribute definition of the monitoring device first needs to select the device interface type. Different interface types have different data conversion methods. The monitoring attribute needs to define the function name of the attribute and the data conversion related content. When defining the function name, it will give priority to inheriting the monitoring attributes defined in the device type (for the device type, since its function is relatively clear, the administrator will configure the monitoring attributes of the device type in the system). If there is no such a function, it will be customized to ensure that the function name and function identifier of the same monitoring indicator of different device models are consistent, which is convenient for the monitoring platform to identify and analyze data.

[0084] The device attributes can be found in the following example:

[0085] Example 1, RS485 interface device: temperature and humidity sensor. See Table 3:

[0086] Table 3 Equipment attributes of temperature and humidity sensors

[0087]

[0088] Example 2, DI interface device: water immersion monitor. See Table 4:

[0089] Table 4 Equipment attributes of water immersion monitor

[0090]

[0091] Example 3, O interface equipment: sound and light alarm. See Table 5:

[0092] Table 5 Equipment attributes of sound and light alarm

[0093]

[0094]

[0095] From the property definitions of the above three types of devices, it can be seen that the parameters of the device properties of devices with different interface types are consistent, including function name, function identifier, data type, unit and value range, but their data conversion models are different. For example, RS485 devices calculate and convert the byte data of the register address to obtain the collected physical value, while the content of the DI / DO interface type device converts the open / closed state of the hardware interface into digital 0 and 1, and then converts it into normal and alarm states. When defining device properties, it is also necessary to define the collection cycle and reporting cycle of the device. Generally, the collection cycle is in seconds, and the reporting cycle is in minutes. The device will report periodically by default, and the periodic reporting reports data according to the configured period.

[0096] In actual implementation, after obtaining the first configuration information input by the user, a corresponding first configuration file is generated based on the first configuration information, and the first configuration file is configured to the edge gateway. The edge gateway can collect data from the first device based on the first configuration file and report the collected data.

[0097] In some embodiments, the object model further includes a downlink service. Specifically, the first configuration information includes at least device information of the first device, an interface type of an edge gateway, and device downlink service information, and generating a first configuration file based on the first configuration information includes: binding the device information, the interface type, and the device downlink service information to generate the first configuration file.

[0098] For example, the device downlink service can refer to the following examples:

[0099] Sound and light alarm: Set the alarm status. See Table 6:

[0100] Table 6 Downlink services of sound and light alarm

[0101]

[0102] The operation of the device downlink service is similar to the definition of the monitoring attribute. The downlink service contains a service name, a service identifier, and at least one parameter. The parameter is the defined monitoring attribute and can be added directly by selecting the monitoring attribute.

[0103] In some embodiments, the method further includes: receiving linkage configuration parameters for the first device, the linkage configuration parameters at least including information of a second device linked with and controlled by the first device; and configuring the linkage configuration parameters to the edge gateway.

[0104] Here, linkage control is mainly used for local linkage control of edge gateways to ensure that the gateway can also perform local alarms and controls normally when it is not properly connected to the monitoring platform. The linkage control is to control the second device to perform the corresponding action after the data monitored by the first device reaches the corresponding trigger condition. In the dynamic environment scenario of the computer room, linkage control is mainly to link the alarm of the sound and light alarm and the switch of the precision air conditioner. For example, when the water immersion monitor (first device) detects a water leak, the sound and light alarm (second device) is linked to the alarm. When the temperature sensor (first device) detects that the temperature of the computer room reaches the temperature threshold, the precision air conditioner (second device) is turned on for cooling to ensure the safe operation of the computer room. When performing linkage configuration, configure the corresponding trigger conditions and execution actions. Only a single condition is supported in the trigger condition, such as the temperature is greater than 30°C. The trigger condition contains the function name, operator and value. The execution action contains the associated device model, the device's downlink service and service parameters, thereby realizing the control device to execute the action. Supports enabling and disabling operations for configuring linkage control rules. Disabling means that the rule is not effective and the action is not executed even if the trigger condition is met. For example, the linkage control can refer to Table 7:

[0105] Table 7 Linkage control example

[0106] Serial number Function Name Operators value Device Model Equipment Services Service Parameters Enabled state 1 temperature > 30 Model 1 Set alarm status Call the police Enable 2 Flooding = Alerts Model 2 Set alarm status Call the police Disable

[0107] Through the above configuration, the first configuration file of the first device, that is, the driver of the first device, can be generated. The configuration file will contain information such as the device's data definition, downlink service, and data collection linkage. It supports users to establish basic object model definitions according to the table format template, and then import them with one click to achieve creation. It also supports one-click export of configuration files. Device driver management mainly manages the addition and editing of configuration files, and also supports sign-in and sign-out operations. After the device driver is established, you can select the device model and device hardware interface in the edge gateway configuration interface, and download the configuration file to the edge gateway to achieve data collection and reporting of monitoring devices.

[0108] In actual implementation, the client of the terminal can also present an edge gateway configuration interface by triggering an edge gateway configuration operation, and configure the first configuration file of the first device to the edge gateway in the edge gateway configuration interface. Figure 4B , the edge gateway configuration interface 420 is used to implement the configuration of the edge gateway. Clicking the "add monitoring device" function item 421 can add a configuration. By clicking the "query device list" function item 422, the monitoring device list 423 is displayed. The monitoring device list 423 is used to select a device. Among them, Figure 4BThere are 6 pieces of monitoring equipment information in the monitoring equipment list 423. Each piece of monitoring equipment information includes configuration information such as equipment type, equipment model, hardware interface number, address, collection cycle, reporting cycle, and function setting items such as change reporting and linkage control.

[0109] Among them, the hardware interface number is the hardware port of the edge gateway connected to the monitoring device, such as the first RS485 interface is COM1, the second RS485 interface is COM2, and the first DI interface is DI1. Address: It is only required when the device interface type is RS485 interface, because one RS485 interface can connect multiple RS485 devices, and multiple RS485 devices are distinguished by address numbers. The address number range is 1-255. DI and DO interfaces do not require addresses. One DI and DO interface connects to one device. The collection cycle defaults to the collection cycle defined in the device driver, and supports entering a numerical value to modify. The reporting cycle defaults to the reporting cycle defined in the device driver, and supports entering a numerical value to modify. Change reporting is displayed as "Yes" if change reporting is configured in the device driver, otherwise it displays "No". The parameters of the change reporting configuration in the device driver are displayed by default, and you can also click "Edit" to modify it. Linkage control: If linkage control is configured in the device driver, it will display "Yes", otherwise it will display "No". You need to click the "Edit" button to select the device to perform the action. For example, if there is linkage control of the sound and light alarm, you need to select the corresponding sound and light alarm. If not selected, the default is to configure the device model in the linkage control rule and all devices connected to the edge gateway to perform the corresponding action. If there is no corresponding device for the device model, query whether there is a corresponding device for the device type. If so, it will take effect on devices of other device models under the device type. For example, the device model of the sound and light alarm configured in the water immersion linkage sound and light alarm is model 1, and the edge gateway is connected to 2 sound and light alarms with device model 1. Sound and light alarm 1 is connected to the DO1 interface, and sound and light alarm 2 is connected to the DO2 interface. If you do not customize the device selection, it is defaulted that sound and light alarm 1 and sound and light alarm 2 are both within the range. Once the water immersion monitor detects a leak, both sound and light alarms will alarm. If the edge gateway is not connected to the sound and light alarm of model 1, and only one device of sound and light alarm 3 of device model 2 is connected to the DO1 interface, the water leakage monitoring will trigger the sound and light alarm 3 to alarm.

[0110] In addition, each piece of monitoring device information corresponds to a set of operation function items 424. The operation function items 424 include a delete function item, a configuration function item, a read function item, and a control function item. In addition, there are also one-key configuration function items 425 and one-key read function items 426. Among them, the delete function item is used to delete the monitoring device or delete the configuration record, that is, to delete the configuration from the edge gateway. The configuration function item is used to download the configuration to the edge gateway. The read function item is used to test whether the configuration is effective. If there is a connected device, the data can be read correctly after it takes effect, and the returned data can be received in the receiving area of ​​the log. The control function item is used to test whether the configuration is effective. If there is a connected device, the device can be controlled to perform the action correctly after it takes effect, and the returned data can be received in the receiving area of ​​the log. The one-key configuration function item 425 is used to download all device configurations to the edge gateway in order. This configuration can monitor the connection hardware interface and data conversion logic of the edge gateway. The edge gateway will send corresponding instructions according to the configured logic to collect data from the monitoring device of the corresponding hardware interface, and then calculate and convert the collected data according to the data conversion logic, and then upload it to the cloud server. The one-key read function item 426 is used to read the data of all devices in sequence for testing.

[0111] Figure 4B In the example, the “query device list” function item 422 is used to query the configuration records of the monitoring devices that have been configured in the edge gateway, and the “add monitoring device” function item 421 is used to add a monitoring device configuration record. Figure 4B There is also a display area for presenting the log information of the device. The sending area supports inputting data and selecting to send directly or send after verification. At the same time, the receiving area will display the specific return data of the device.

[0112] In some embodiments, the method further includes: sending the first configuration file to a gateway management platform; wherein the gateway management platform is used to manage the configuration file sent by at least one terminal.

[0113] In actual implementation, the terminal is also connected to the gateway management platform. In actual implementation, users can log in to the gateway management platform through the web page. The gateway management platform is a B / S (Browser / Server Architecture) architecture. The system is logged in by entering the account and password through the browser to manage and review the configuration files of all devices. After the terminal is connected to the network and the client software logs in to the account, you can apply for device driver check-in (synchronize from local to gateway management platform) or device driver check-out (synchronize from gateway management platform to local). After the device configuration file is checked in, the administrator needs to review it on the gateway management platform. After the review is successful, all users can use the configuration file of the device.

[0114] In some embodiments, the method further includes: sending a configuration request for a configuration file of a third device to a gateway management platform; receiving a configuration file of the third device sent by the gateway management platform in response to the configuration request; and configuring the configuration file of the third device to an edge gateway.

[0115] Here, the configuration file of the third device is pre-set and signed in to the gateway management platform, and the user can request the configuration file of the third device from the gateway management platform through the client of the terminal, thereby directly configuring the edge gateway. Here, the configuration file of the third device can be a user configuration of other clients and signed in to the gateway management platform.

[0116] In some embodiments, the method further includes: collecting corresponding monitoring data through the first device; and reporting the monitoring data to a cloud server based on the edge gateway.

[0117] Here, the device defaults to periodic reporting, and also supports data change reporting. Data change reporting is reporting data when the value or change of the collected monitoring device data exceeds a certain range, so that abnormal data or alarm data is reported according to the collection period, and normal data is reported according to the reporting period to ensure monitoring safety. There are two ways to report data changes: change reporting and value range reporting. Users can configure according to their needs. Change reporting can be configured by selecting attributes and change values. For example, if the difference between the temperature collected this time and the temperature data collected last time is more than 0.5℃, data will be reported. If the status of the device of the DI / DO interface is inconsistent, data will be reported. Value range reporting can be configured by first selecting whether the value is within the range or outside the range, and then selecting attributes and entering comparison values. For example, if the temperature is greater than 40℃, data will be reported immediately, and if the value is within the range of [30, 40]℃, data will be reported immediately.

[0118] In the embodiment of the present application, the edge gateway supports converting the collected byte data into data in Json format, and generates standard interface data at the same time. The user only needs to configure the data push address to push it to the computer room dynamic environment monitoring platform. Through the embodiment of the present application, the configuration of the equipment can be simplified. The user can reuse the device driver library of the monitoring equipment. It only needs to select the device model, hardware interface number, address and other simple parameters according to the actual hardware wiring situation, and download to complete the configuration of the edge gateway. After the configuration is completed, click "Read" and "Control" to test whether the configuration is effective and realize data collection and transmission. The configuration is extremely simple, which greatly reduces the user's configuration work and improves the operation and maintenance efficiency. It can easily configure the edge gateway of the device, and has strong expansion adaptability.

[0119] In addition, the entire configuration software maintains basic configuration files through the device driver management function, and uses the edge gateway configuration interface to implement edge gateway configuration. By continuously expanding the computer room dynamic environment monitoring device driver library, it is compatible with the monitoring equipment of mainstream computer room dynamic environment manufacturers on the market. At the same time, standard specifications are established, and data specifications for monitoring equipment are specified in later project procurement. The device driver library is reused, which makes it easy to troubleshoot problems in the project, get rid of dependence on the original computer room dynamic environment manufacturer, ensure project operation effect, and reduce project operation and maintenance costs.

[0120] The following continues to describe the exemplary structure of the implementation of the gateway configuration device 2055 provided in the embodiment of the present application as a software module. In some embodiments, the multi-configuration storage communication device includes a main control board and a frame, such as Figure 2 As shown, the software modules stored in the gateway configuration device 2055 of the memory 205 may include:

[0121] The receiving module 20551 is used to receive an edge gateway configuration operation for a first device and obtain input first configuration information;

[0122] A generating module 20552, configured to generate a first configuration file based on the first configuration information;

[0123] Configuration module 20553 is used to configure the first configuration file to the edge gateway.

[0124] In some embodiments, the receiving module 20551 is also used to receive at least three input information for the first device based on the configuration interface; in response to a trigger operation on a configuration function item presented in the configuration interface, obtain first configuration information including the at least two input information.

[0125] In some embodiments, the first configuration information includes at least device information of the first device, an interface type of an edge gateway, and device downlink service information. The generation module 20552 is further used to bind the device information, the interface type, and the device downlink service information to generate the first configuration file.

[0126] In some embodiments, the apparatus further includes: a linkage configuration module, configured to receive linkage configuration parameters for the first device, the linkage configuration parameters at least including information of a second device linked with the first device; and configure the linkage configuration parameters to the edge gateway.

[0127] In some embodiments, the device further includes: a sending module, configured to send the first configuration file to a gateway management platform; wherein the gateway management platform is configured to manage the configuration file sent by at least one terminal.

[0128] In some embodiments, the device also includes: a request module, used to send a configuration request for a configuration file of a third device to a gateway management platform; receive the configuration file of the third device sent by the gateway management platform in response to the configuration request; and configure the configuration file of the third device to the edge gateway.

[0129] In some embodiments, the apparatus further includes: a monitoring module, configured to collect corresponding monitoring data through the first device; and report the monitoring data to a cloud server based on the edge gateway.

[0130] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the gateway configuration method described in the embodiment of the present application.

[0131] An embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein executable instructions are stored. When the executable instructions are executed by a processor, the processor will be caused to execute the gateway configuration method provided in the embodiment of the present application.

[0132] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0133] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0134] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0135] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0136] In summary, the embodiments of the present application can conveniently configure the device as an edge gateway with strong expansion adaptability.

[0137] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A gateway configuration method, characterized in that: Application terminals, including: Receiving an edge gateway configuration operation for a first device, and obtaining input first configuration information; Generate a first configuration file based on the first configuration information; Configure the first configuration file to the edge gateway.

2. The method according to claim 1, characterized in that The receiving an edge gateway configuration operation for the first device includes: receiving at least three pieces of input information for the first device based on the configuration interface; In response to a triggering operation on a configuration function item presented in the configuration interface, first configuration information including the at least two input information is obtained.

3. The method according to claim 1, characterized in that The first configuration information includes at least device information of the first device, an interface type of an edge gateway, and device downlink service information. The generating of a first configuration file based on the first configuration information includes: The device information, the interface type and the device downlink service information are bound to generate the first configuration file.

4. The method according to claim 3, characterized in that The method further comprises: receiving linkage configuration parameters for the first device, where the linkage configuration parameters at least include information of a second device linked to and controlled by the first device; The linkage configuration parameters are configured to the edge gateway.

5. The method according to claim 1, characterized in that The method further comprises: Sending the first configuration file to the gateway management platform; The gateway management platform is used to manage the configuration files sent by at least one terminal.

6. The method according to claim 1, characterized in that The method further comprises: Sending a configuration request for a configuration file of a third device to the gateway management platform; receiving a configuration file of a third device sent by the gateway management platform in response to the configuration request; The configuration file of the third device is configured to the edge gateway.

7. The method according to claim 1, characterized in that The method further comprises: Collecting corresponding monitoring data through the first device; Based on the edge gateway, the monitoring data is reported to the cloud server.

8. A gateway configuration device, characterized in that: Applied to terminals, including: A receiving module, configured to receive an edge gateway configuration operation for a first device and obtain input first configuration information; A generating module, configured to generate a first configuration file based on the first configuration information; A configuration module is used to configure the first configuration file to the edge gateway.

9. An electronic device, characterized in that: include: A memory for storing executable instructions; The processor is used to implement the gateway configuration method according to any one of claims 1 to 7 when executing the executable instructions stored in the memory.

10. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when executed by a processor, the gateway configuration method described in any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that A computer program is stored, which is used to implement the gateway configuration method described in any one of claims 1 to 7 when executed by a processor.