CN117914738A - Gateway management method and device, electronic equipment and storage medium - Google Patents

Gateway management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117914738A
CN117914738A CN202410070230.9A CN202410070230A CN117914738A CN 117914738 A CN117914738 A CN 117914738A CN 202410070230 A CN202410070230 A CN 202410070230A CN 117914738 A CN117914738 A CN 117914738A
Authority
CN
China
Prior art keywords
target equipment
target
equipment
gateway
data
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.)
Pending
Application number
CN202410070230.9A
Other languages
Chinese (zh)
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.)
Beijing Micro Control Industrial Gateway Technology Co ltd
Original Assignee
Beijing Micro Control Industrial Gateway Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Micro Control Industrial Gateway Technology Co ltd filed Critical Beijing Micro Control Industrial Gateway Technology Co ltd
Priority to CN202410070230.9A priority Critical patent/CN117914738A/en
Publication of CN117914738A publication Critical patent/CN117914738A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a gateway management method, a gateway management device, gateway management equipment and a storage medium. The method comprises the following steps: after the equipment identity information passes the authentication, creating target equipment on the gateway, wherein the creating of the target equipment comprises setting a communication address, a data packet length, a storage address, a maximum reply time length and byte sequencing of the target equipment; performing data detection on the target equipment based on the communication address and the maximum reply time length of the target equipment, wherein the data detection comprises detecting whether the target equipment can normally communicate; if the target equipment can normally communicate, configuring a matching target database for the target equipment based on the storage address of the target equipment so as to store the data information of the target equipment in the target database; generating a file packet corresponding to the target equipment based on the data information of the target equipment, and issuing the file packet to the corresponding terminal according to the preset frequency. The embodiment of the application realizes the efficient management between the equipment and the gateway, improves the comprehensiveness of gateway configuration and improves the user experience.

Description

Gateway management method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communication networks, and in particular, to a gateway management method and apparatus, an electronic device, a computer readable storage medium, and a computer program product.
Background
With the development of industrial technology, the application of industrial internet technology is becoming more and more widespread. The industrial Internet architecture is generally composed of industrial equipment, a gateway, an edge computing device and a cloud platform, wherein the gateway is used for collecting field data of the industrial equipment and receiving feedback information of the edge computing device, and is high in distribution performance and zero in maintenance of a client. The method has the advantages that the method can perform service processing such as inquiry, browsing and the like at any time and any place as long as the network and the browser exist, is simple and convenient to maintain, and can realize synchronous update of all users only by changing the webpage. Every time a new device is created, a corresponding gateway needs to be deployed for the device and a terminal for receiving a file packet corresponding to the device, so how to manage between the gateway and the newly-built device is a technical problem to be solved at present.
Disclosure of Invention
In order to solve the technical problems, embodiments of the present application provide a gateway management method and apparatus, an electronic device, and a computer readable storage medium.
According to an aspect of an embodiment of the present application, there is provided a gateway management method, including: after the equipment identity information passes the authentication, creating target equipment on the gateway, wherein the creating of the target equipment comprises setting a communication address, a data packet length, a storage address, a maximum reply time length and byte sequence of the target equipment; performing data detection on the target equipment based on the communication address and the maximum reply time length of the target equipment, wherein the data detection comprises detecting whether the target equipment can normally communicate; if the target equipment can normally communicate, configuring a matching target database for the target equipment based on the storage address of the target equipment so as to store the data information of the target equipment in the target database; generating a file packet corresponding to the target equipment based on the data information of the target equipment, and issuing the file packet to the corresponding terminal according to a preset frequency.
According to an aspect of the embodiment of the present application, the data detection for the target device based on the communication address and the maximum reply time length of the target device includes detecting whether the target device can normally communicate, including: sending communication test information to the communication address of the target equipment; and if the target equipment is detected to receive the communication test information within the maximum reply time, the target equipment is characterized to be capable of communicating normally.
According to an aspect of the embodiment of the present application, the configuring a matching target database for the target device based on the storage address of the target device includes: selecting the storage type of the target equipment and the identity of a data acquisition point; and if the storage type of the target equipment comprises a change storage type, matching the target database based on the identity of the data acquisition point and the change amplitude of the change storage type.
According to an aspect of the embodiment of the present application, the method further includes: if the storage type of the target device comprises a cyclic storage type, determining the storage frequency of the cyclic storage type based on byte order and maximum reply duration of the target device; and periodically storing the data generated by the target equipment based on the storage frequency.
According to an aspect of the embodiment of the present application, the method further includes: monitoring the running state of the target equipment in the configuration mode of the gateway; if the target equipment generates a preset alarm running state, generating corresponding alarm information; prompting the alarm information based on at least one of a webpage prompt, a mail prompt and a personal account push prompt.
According to an aspect of the embodiment of the present application, the method further includes: determining an alarm node of the target equipment in a configuration mode of the gateway, wherein the alarm node is a corresponding variable in communication information of the target equipment; and setting alarm threshold information of the alarm node so as to generate alarm information corresponding to the variable based on the alarm threshold information.
According to an aspect of the embodiment of the present application, before the device identity information passes the authentication, the method further includes: and if the gateway is successfully accessed based on the communication parameters, the communication point table and the physical link of the equipment, the identity information authentication of the equipment is represented to pass.
According to an aspect of an embodiment of the present application, there is provided a gateway management apparatus including: the system comprises a creation module, a gateway and a storage module, wherein the creation module is used for creating target equipment on the gateway after equipment identity information authentication is passed, and the creation of the target equipment comprises setting a communication address, a data packet length, a storage address, a maximum reply time length and byte sequence of the target equipment; the detection module is used for carrying out data detection on the target equipment based on the communication address and the maximum reply time length of the target equipment, wherein the data detection comprises the step of detecting whether the target equipment can normally communicate; the configuration module is used for configuring a matched target database for the target equipment based on the storage address of the target equipment if the target equipment can normally communicate, so as to store the data information of the target equipment in the target database; and the sending module is used for generating a file packet corresponding to the target equipment based on the data information of the target equipment and sending the file packet to the corresponding terminal according to the preset frequency.
According to an aspect of an embodiment of the present application, there is provided an electronic apparatus including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the electronic device to implement the gateway management method as described above.
According to an aspect of an embodiment of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions, which when executed by a processor of a computer, cause the computer to perform the gateway management method as described above.
In the technical scheme provided by the embodiment of the application, after the equipment identity authentication is passed, the target equipment is created in the gateway, the creation of the target equipment comprises setting the communication address, the length of the data packet, the storage address, the maximum reply time length and the byte sequence of the target equipment, then the data monitoring can be carried out on the target equipment according to the communication address and the maximum reply time length of the target equipment so as to detect whether the target equipment can normally communicate, and when the target equipment communicates normally, a database is configured for the target equipment so as to store the data information corresponding to the target equipment through the database, further, a file packet corresponding to the target equipment is generated based on the data information of the target equipment and sent to a corresponding terminal according to the preset frequency, thereby realizing the efficient management between the equipment and the gateway, improving the comprehensiveness of the gateway configuration and improving the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is evident that the drawings in the following description are only some embodiments of the present application and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram illustrating the connection of a gateway to a device in accordance with an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of an implementation environment for gateway management during navigation as illustrated in an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a gateway management method according to an exemplary embodiment of the application;
FIG. 4 is a flow chart of a gateway management method according to another exemplary embodiment of the present application;
fig. 5 is a flow chart of a gateway management method according to another exemplary embodiment of the present application;
fig. 6 is a flow chart of a gateway management method according to another exemplary embodiment of the present application;
Fig. 7 is a flowchart illustrating a gateway management method according to another exemplary embodiment of the present application;
fig. 8 is a flowchart illustrating a gateway management method according to another exemplary embodiment of the present application;
fig. 9 is a block diagram of a gateway management apparatus according to an exemplary embodiment of the present application;
Fig. 10 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the present application, the term "plurality" means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted that, a Gateway (Gateway) is also called an Gateway connector and a protocol converter, and is a complex network interconnection device, and is used for interconnection of two networks with different higher-layer protocols. The gateway realizes network interconnection above the network layer, and can be used for wide area network interconnection and local area network interconnection. It repacks the received information to accommodate the needs of the destination system.
With the development of industrial technology, the application of industrial internet technology is becoming more and more widespread. The industrial internet architecture generally comprises industrial equipment, a gateway, an edge computing device and a cloud platform, wherein the gateway is used for collecting field data of the industrial equipment and receiving feedback information of the edge computing device, so that a large amount of data can be generated, and a communication address, a data packet length, a storage address, a maximum reply time length and byte sequencing corresponding to the equipment are required to be configured on the gateway so as to process the data generated by the equipment.
Fig. 1 is a schematic diagram of an implementation environment of gateway linking according to an exemplary embodiment of the present application, that is, a micro-control gateway is connected to multiple corresponding configuration terminals through a switch.
Fig. 2 is a schematic diagram of a real-time environment for gateway management, according to an exemplary embodiment of the present application. As shown in fig. 2, in the process of establishing a connection between a device and a gateway, after device identity information authentication is passed through a terminal 210, a target device is created on the gateway through a server 220, where the creating of the target device includes setting a communication address, a data packet length, a storage address, a maximum reply duration and byte sequencing of the target device; therefore, the data detection can be carried out on the target equipment based on the communication address and the maximum reply time length of the target equipment, and the data detection comprises the step of detecting whether the target equipment can normally communicate; if the target equipment can normally communicate, configuring a matching target database for the target equipment based on the storage address of the target equipment so as to store the data information of the target equipment in the target database; and generating a file packet corresponding to the target device based on the data information of the target device, and issuing the file packet to the corresponding terminal 210 according to a preset frequency. Therefore, the management between the equipment and the gateway is realized, and the management efficiency is improved.
The smart terminal 210 shown in fig. 2 may be any terminal device supporting installation of navigation map software, such as a smart phone, a vehicle-mounted computer, a tablet computer, a notebook computer, or a wearable device, but is not limited thereto. the navigation server 220 shown in fig. 2 may be a navigation server, for example, an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and an artificial intelligence platform, which are not limited herein. The intelligent terminal 210 may communicate with the navigation server 220 through a wireless network such as 3G (third generation mobile information technology), 4G (fourth generation mobile information technology), 5G (fifth generation mobile information technology), and the like, which is not limited herein.
With the development of industrial technology, the application of industrial internet technology is becoming more and more widespread. The industrial Internet architecture is generally composed of industrial equipment, a gateway, an edge computing device and a cloud platform, wherein the gateway is used for collecting field data of the industrial equipment and receiving feedback information of the edge computing device, and is high in distribution performance and zero in maintenance of a client. The method has the advantages that the method can perform service processing such as inquiry, browsing and the like at any time and any place as long as the network and the browser exist, is simple and convenient to maintain, and can realize synchronous update of all users only by changing the webpage. Every time a new device is created, a corresponding gateway needs to be deployed for the device and a terminal for receiving a file packet corresponding to the device, so how to manage between the gateway and the newly-built device is a technical problem to be solved at present.
The problems indicated above have general applicability in connection with general-purpose devices and gateways, and in order to solve these problems, embodiments of the present application respectively propose a gateway management method, a gateway management apparatus, an electronic device, a computer-readable storage medium, and a computer program product, and these embodiments will be described in detail below.
Referring to fig. 3, fig. 3 is a flowchart illustrating a gateway management method according to an exemplary embodiment of the present application. The method may be applied to the implementation environment shown in fig. 2 and is specifically performed by gateway 220 in the implementation environment. It should be understood that the method may be adapted to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and the implementation environments to which the method is adapted are not limited by the present embodiment.
As shown in fig. 3, in an exemplary embodiment, the gateway management method at least includes steps S310 to S340, which are described in detail as follows:
Step S310, after the equipment identity information passes the authentication, creating the target equipment on the gateway, wherein the creating the target equipment comprises setting the communication address, the data packet length, the storage address, the maximum reply time length and the byte order of the target equipment.
Specifically, if the device needs to establish connection with the gateway, authentication is required to be performed on the identity information of the device, so that a target device is created on the gateway after the identity information of the device passes authentication, wherein the creation of the target device comprises setting a communication address, a data packet length, a storage address, a maximum reply duration and byte sequencing of the target device.
Byte Order refers to the storage sequence of each Byte when multi-Byte data is stored in a computer memory or transmitted by a network. In the computer, each address corresponds to one byte, one byte 8bit, in bytes. In a computer system, when the physical unit is greater than 1 byte in length, byte order is distinguished. There are two common byte orders: big end (Big-endian) and small end (Little-endian).
For example, after the identity information of the device passes the authentication, the target device information corresponding to the device may be created on the gateway, so as to set a communication address, a data packet length, a corresponding data storage address, a maximum reply duration, a byte word sequence, and the like corresponding to the target device in the target device information.
Step S320, performing data detection on the target device based on the communication address and the maximum reply time of the target device, where the data detection includes detecting whether the target device can normally communicate.
In the foregoing embodiment, after the target device is successfully created on the gateway, the data detection may be performed on the target device according to the communication address and the maximum reply time length that are set correspondingly to the target device, where the content of the data detection includes detecting whether the target device can normally communicate.
The method includes the steps that a test heartbeat packet is sent to the equipment according to preset frequency, response information returned by the equipment is received, if the equipment returns the response information within the maximum response time, the communication of the equipment is indicated to be normal, and if the equipment does not return the response information within the maximum response time, the communication of the equipment is indicated to be abnormal.
Further, the data detection further includes detecting whether the communication address of the device is accurate, for example, if the device does not receive the response information within the maximum reply time, whether the communication connection of the device is normal is judged, if the communication connection of the device is normal, the communication address error of the device is determined.
Step S330, if the target device can communicate normally, a matching target database is configured for the target device based on the storage address of the target device, so as to store the data information of the target device in the target database.
In the foregoing embodiment, if the target device is tested to be capable of communicating normally according to the scheme of the foregoing embodiment, the target device is matched with the target database based on the storage address of the target device, where the data information generated by the target device is stored in the target database, where the data information generated by the target device includes all data information generated by the target device during the connection with the gateway.
For example, according to the storage address set by the target device, the storage address may be matched with the corresponding target database, so that data generated during the operation of the target device may be stored in the target device. If the target equipment fails, the corresponding failure information can be stored in the target equipment, so that the failure information corresponding to the target equipment can be obtained from a target database, and the failure point can be repaired as soon as possible.
Step S340, generating a file packet corresponding to the target device based on the data information of the target device, and issuing the file packet to the corresponding terminal according to the preset frequency.
Further, according to the preset frequency, the data information corresponding to the target device may be obtained from the target database, and the file packet corresponding to the target device may be generated and sent to the corresponding terminal device, where the terminal device may be a terminal device corresponding to the target device client or the target device itself.
After the device identity authentication of the gateway to be accessed passes, a corresponding target device can be created on the gateway and corresponding to the device to obtain a communication address, a data packet length, a storage address, a maximum reply time length, a byte word order and the like corresponding to the target device, so that data detection can be performed on the target device according to the set communication address and the maximum reply time length of the target device to determine whether the target device can normally communicate, if so, a corresponding target database can be matched according to the storage address of the target device to store data information corresponding to the target device in the target database, the data information can be data generated by the target device in the process of accessing the gateway, the data in the target database can be packaged, and the packaged data can be sent to the corresponding terminal device, wherein the terminal device can be other terminal devices except the target device.
In this embodiment, after the device identity authentication is passed, a target device is created in the gateway, where the creation of the target device includes setting a communication address of the target device, a length of a data packet, a storage address, a maximum reply duration and a byte sequence, and then the target device can be monitored according to the communication address and the maximum reply duration of the target device to detect whether the target device can normally communicate, and when the target device communicates normally, a database is configured for the target device, so that data information corresponding to the target device is stored in the database, and further a file packet corresponding to the target device is generated based on the data information of the target device, and the file packet is sent to a corresponding terminal according to a preset frequency, thereby realizing efficient management between the device and the gateway, improving the comprehensiveness of gateway configuration, and improving the user experience.
Further, based on the above embodiment, referring to fig. 4, in one exemplary embodiment of the present application, the data detection is performed on the target device based on the communication address and the maximum reply time of the target device, where the specific implementation process of the data detection includes detecting whether the target device can normally communicate may further include step S410 and step S420, which are described in detail below:
step S410, sending communication test information to the communication address of the target equipment;
And step S420, if the target equipment is detected to receive the communication test information within the maximum reply time, the target equipment is characterized to be capable of normally communicating.
Specifically, in this embodiment, communication test information may be sent to a communication address corresponding to the target device, where the communication test information may be a heartbeat packet to be detected, so as to determine whether the target device can normally communicate by receiving response information of the target device to the heartbeat packet to be detected. If the response information replied to the heartbeat packet is received within the maximum reply time of the target device, the target device is characterized as being capable of normal communication.
Where a heartbeat packet is a data packet that is typically sent by the client to the server at intervals to inform the server that itself is still online and to transmit some of the data that may be necessary. The heartbeat packet is used for detecting the health condition of the network connection and detecting whether the equipment, the process or the network element is operating normally. In a TCP connection, a heartbeat packet may be implemented by any one party for detecting the status of the other party. If either party crashes accidentally, the machine is on-line, the network line is disconnected, or the router fails, the other party cannot learn that the TCP connection has failed unless continuing to send data over this connection results in an erroneous return. Therefore, by periodically transmitting the heartbeat packet, an abnormal disconnection of one party can be effectively detected in time. Implementation of the heartbeat packet may be done by the TCP protocol layer or the application layer. The heartbeat of a TCP protocol layer implementation is called Keepalive, while the heartbeat packet of an application layer implementation is called heartbeat packet. TCP defaults to not turning on Keepalive functions because turning on Keepalive functions requires additional bandwidth and traffic, but in some cases, such as in a per-traffic billing environment, increases costs. On the other hand, keep alive setup may break healthy TCP connections due to short network fluctuations when it is not reasonable.
A typical protocol using heartbeat packets is an IM (instant messaging) protocol, such as QQ/MSN/flyby, among others. Clients of these protocols need to send heartbeat packets to the server at regular times to tell the server that they are online. Although the TCP/IP bottom layer provides an optional KeepAlive mechanism, these protocols still implement higher layer heartbeat packets.
In summary, heartbeat packets are a technique for detecting network connection health and application process running status, and may be implemented by the TCP protocol layer or the application layer. In instant messaging and other scenarios where real-time detection of status is required, heartbeat packets are widely used.
In this embodiment, whether the target device can communicate normally is determined by sending test information to the communication address of the target device, so as to ensure the validity of the device access gateway.
Further, based on the above embodiment, referring to fig. 5, in one exemplary embodiment of the present application, the specific implementation process of configuring the matching target database for the target device based on the storage address of the target device may further include step S510 and step S520, which are described in detail below:
step S510, selecting the storage type of the target equipment and the identity of the data acquisition point;
Step S520, if the storage type of the target device includes a change storage type, the change range of the change storage type is matched with the target database based on the identity of the data acquisition point.
Specifically, a storage type of the target device and a data acquisition point corresponding to the target device are determined according to a storage address corresponding to the target device, wherein the storage type comprises a plurality of modes such as memory storage, hard disk storage, network storage, cloud storage, online storage, near line storage, offline storage, off-site protection and the like. The data acquisition point may be a preset data acquisition point in the operation process of the target device, that is, in the operation process of the target device, corresponding data on the preset data acquisition point is acquired, and the acquired data is stored in the target database. In some possible embodiments, the corresponding target database may also be determined according to the identity identifier corresponding to the data acquisition point. The change amplitude corresponding to the storage type of the target device can also be matched with the target database.
It should be noted that a data point is an instance or an item in data, and may be in the form of a number, text, a picture, a video, or the like. In data analysis, data points are often aggregated, analyzed, and processed to find rules and trends in the data. The data points are represented in the dataset as each numerical value or item in each data record. Depending on the nature and purpose of the data, the data points may be of different types, such as: type of read/write: read-only data points, writable data points, alarm data points, fault data points, and the like. Data type: boolean values, enumeration, values, extensions, etc. Data series: the data points may form a series of data, each data point corresponding to cell data in a data region, the series of data corresponding to a row or column of data, forming a pattern of dot lines, planes, etc. Relative index: the method is calculated by absolute indexes and used for assisting analysis, and multidimensional analysis can be used for making deep insight into the internal connection of data.
As the data storage type may vary according to different requirements and scenarios, the following are some common variations: structured data and unstructured data: structured data refers to data that is stored in a database and can be logically implemented in a two-dimensional table structure. Unstructured data refers to data that cannot be represented by a unified structure, including text, images, audio, video, and the like; text storage and binary storage: text storage generally stores data in a text form, and is convenient to read and edit; the binary storage stores the data in the form of binary codes, so that the speed is high but the data is not easy to understand; distributed storage and centralized storage: the distributed storage is to store data in a scattered manner on a plurality of servers, so that load balancing and fault tolerance can be realized. The centralized storage is to store the data on a server, so that the management is convenient but the management is easy to become a bottleneck; block storage, file storage, and object storage: the block storage is to store data in units of blocks, and has high speed but is not easy to expand. The file storage is to store data in units of files, so that the management and the access are convenient; the object storage is to store data in units of objects, so that the expandability is high and the management is easy. Cold storage and hot storage: cold storage is the low frequency storage of data that is not frequently accessed, while hot storage is the high frequency storage of data that is frequently accessed.
That is, the corresponding target database may be determined according to the data acquisition point corresponding to the target device, the change amplitude of the change storage type, and the change policy.
In the embodiment, the data acquisition point and the storage type are matched with the target database, so that the effectiveness of the device access gateway and the intelligence of data storage are ensured, and the experience of gateway use is improved.
Further, based on the above embodiment, referring to fig. 6, in one exemplary embodiment of the present application, a specific implementation process of the gateway management method may further include step S610 and step S620, which are described in detail below:
Step S610, if the storage type of the target device includes a cyclic storage type, determining a storage frequency of the cyclic storage type based on a byte order and a maximum reply time length of the target device;
step S620, periodically storing the data generated by the target device based on the storage frequency.
It should be noted that, in data storage, loop storage is a common storage manner, and is mainly applied to data processing of a loop structure. The circular memory structure typically stores data in a certain order and reads and processes the data sequentially in a circular manner as it is processed. Common circular storage structures include arrays, linked lists, and the like. An array is a linear data structure with a fixed length, and elements in the array can be accessed by an index. The linked list is a dynamic data structure, and elements can be added or deleted at any time. In circular storage, the linked list typically connects elements in a certain order to form a circular linked list. In the loop storage, the storage order and the processing mode of data are key factors. Different cyclic storage schemes may be selected according to different needs and scenarios, e.g. in time order, in space order, in importance order, etc. Meanwhile, when processing the circularly stored data, a proper method and algorithm are also required to be selected according to specific requirements and scenes so as to improve the data processing efficiency and accuracy. In summary, loop storage is a common storage mode suitable for processing data having a loop structure. In practical application, a proper cyclic storage mode and a proper processing method are required to be selected according to specific requirements and scenes so as to improve the data processing efficiency and accuracy.
Specifically, if the storage mode of the target device includes a cyclic storage type, a storage frequency corresponding to the cyclic storage type may be determined according to a byte sequence corresponding to the target device and a maximum reply time length, where the byte sequence of the target device and the corresponding byte storage frequency of the target device are in a positive correlation, and the byte sequence of the target device and the maximum reply time length are in a negative correlation, so that data generated by the target device is periodically stored according to the storage frequency.
In this embodiment, the target device determines the storage frequency of the cyclic storage of the data corresponding to the target device according to the maximum reply duration and byte order, so as to improve the intelligence of the data storage corresponding to the device on the gateway and improve the user experience.
Further, based on the above embodiment, referring to fig. 7, in one exemplary embodiment of the present application, the specific implementation process of the gateway management method may further include steps S710 to S730, which are described in detail below:
step S710, monitoring the operation state of the target device in the configuration mode of the gateway;
step S720, if the target equipment generates a preset alarm running state, corresponding alarm information is generated;
Step S730, prompting the alarm information based on at least one of a web page prompt, a mail prompt and a personal account push prompt.
Firstly, it should be noted that the configuration mode of the gateway refers to a mode of configuring, managing and optimizing the gateway through specific software or tools. According to different requirements and scenes, the configuration modes of the gateway can be divided into the following modes: command Line Interface (CLI): the gateway is configured and managed by inputting instructions in a command line mode, and the mode needs to have a certain technical background and experience; graphical interface (GUI): the configuration and the management are carried out through the graphical interface, the mode is relatively easy to operate, and the method is suitable for users without technical background; remote management interface (Remote MANAGEMENT INTERFACE): the gateway is managed and configured in a remote mode, and the remote management and monitoring can be conveniently realized in the mode; API interface: the gateway is programmed and configured through the API interface, and the method is suitable for users with certain technical capabilities to use; in practical application, an appropriate configuration mode needs to be selected according to specific requirements and scenes so as to realize efficient, stable and safe network communication and data processing. Meanwhile, the safety and stability of the gateway are required to be paid attention to, so that the gateway can resist network attacks and accidents, and the safety and the integrity of data are ensured.
The method comprises the steps of monitoring the running state of target equipment in a configuration mode of a gateway, generating corresponding alarm information when the preset alarm running state of the target equipment is monitored, sending the alarm information to a corresponding terminal, prompting the terminal in a webpage prompting mode, a mail prompting mode and a personal account pushing mode, so that related personnel can timely process the target equipment with faults, the fault processing capability is improved, and normal use can be guaranteed.
Further, based on the above embodiment, referring to fig. 8, in one exemplary embodiment of the present application, a specific implementation process of the gateway management method may further include step S810 and step S820, which are described in detail below:
Step 810, determining an alarm node of the target device in the configuration mode of the gateway, wherein the alarm node is a corresponding variable in the communication information of the target device;
Step S820 sets alarm threshold information of the alarm node, so as to generate alarm information corresponding to the variable based on the alarm threshold information.
Specifically, in the configuration mode of the gateway, the alarm node of the target device is set, wherein the property of the target device is different, the function is different, the operation mode is different, and the set alarm node is different, so that the alarm node is a corresponding variable in the communication information of the target device, alarm threshold information corresponding to the alarm node is set, and after the operation information of the target device is monitored to be above the alarm threshold information, corresponding alarm information is generated and sent to a corresponding terminal.
The method includes the steps of determining an alarm node of target equipment according to the property of the target equipment, setting alarm threshold information of a variable corresponding to the alarm node, and generating corresponding alarm information and sending the alarm information to a corresponding terminal when the variable on the early-warning node reaches above a corresponding alarm threshold.
In the embodiment, the alarm node and the alarm threshold information are set, so that the alarm information can be efficiently and quickly generated when equipment fails, the flexibility and adaptability of the gateway to alarm prompts of different equipment can be ensured by setting the alarm threshold, and the intelligence of the gateway is improved.
Further, based on the above embodiment, in one exemplary embodiment provided by the present application, before the device identity information passes the authentication, the method further includes the following steps, which are described in detail below:
And if the gateway is successfully accessed based on the communication parameters, the communication point table and the physical link of the equipment, the identity information authentication of the equipment is represented to pass.
And through the communication parameters of the equipment, the communication node and the physical link can be successfully accessed to the gateway, and the identity information authentication of the equipment is represented to pass. The gateway stores the corresponding device whitelist in the gateway, and the communication parameters of the device, the communication node and the physical link can be compared with the corresponding communication parameters in the device whitelist, if the comparison result indicates the communication parameters of the device, the communication node and the physical link are the same as those in the device whitelist, the result indicating the passing of the identity authentication of the device can be obtained.
In this embodiment, by comparing the communication parameters of the device accessing the gateway, the communication node and the physical link, the device accessing the gateway is ensured to be the device passing the identity authentication, and the security of the gateway is ensured.
Fig. 9 is a block diagram of a gateway management apparatus according to an exemplary embodiment of the present application. The apparatus may be applied to the implementation environment shown in fig. 2 and is specifically configured in gateway 220. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 9, the exemplary gateway management apparatus 900 includes: a creating module 910, configured to create a target device on the gateway after the device identity information passes the authentication, where the creating the target device includes setting a communication address, a packet length, a storage address, a maximum reply duration, and a byte order of the target device; the detection module 920 is configured to perform data detection on the target device based on the communication address and the maximum reply time length of the target device, where the data detection includes detecting whether the target device can normally communicate; a configuration module 930, configured to configure a matching target database for the target device based on the storage address of the target device if the target device is capable of communicating normally, so as to store data information of the target device in the target database; and the sending module 940 is configured to generate a file packet corresponding to the target device based on the data information of the target device, and send the file packet to the corresponding terminal according to a preset frequency.
According to an aspect of the embodiment of the present application, the detection module 920 further specifically includes: the sending unit is used for sending communication test information to the communication address of the target equipment; and the detection unit is used for characterizing that the target equipment can normally communicate if the target equipment receives the communication test information within the maximum reply time.
According to an aspect of the embodiment of the present application, the configuration module 930 further specifically includes: the selection unit is used for selecting the storage type of the target equipment and the identity of the data acquisition point; and the matching unit is used for matching the target database based on the identity of the data acquisition point and the change amplitude of the change storage type if the storage type of the target equipment comprises the change storage type.
According to an aspect of the embodiment of the present application, the gateway management apparatus further includes: the determining module is used for determining the storage frequency of the circulating storage type based on the byte sequence and the maximum replying duration of the target equipment if the storage type of the target equipment comprises the circulating storage type; and the storage module is used for periodically storing the data generated by the target equipment based on the storage frequency.
According to an aspect of the embodiment of the present application, the gateway management apparatus further includes: the monitoring module is used for monitoring the running state of the target equipment in the configuration mode of the gateway; the generating module is used for generating corresponding alarm information if the target equipment generates a preset alarm running state; and the prompt module is used for prompting the alarm information based on at least one of a webpage prompt, a mail prompt and a personal account push prompt.
According to an aspect of the embodiment of the present application, the gateway management apparatus further includes: the alarm node module is used for determining an alarm node of the target equipment in the configuration mode of the gateway, wherein the alarm node is a corresponding variable in the communication information of the target equipment; and the setting module is used for setting the alarm threshold information of the alarm node so as to generate alarm information corresponding to the variable based on the alarm threshold information.
According to an aspect of the embodiment of the present application, the gateway management apparatus further includes: and the authentication module is used for representing that the identity information authentication of the equipment passes if the gateway is successfully accessed based on the communication parameters, the communication point table and the physical link of the equipment.
It should be noted that, the gateway management apparatus provided in the foregoing embodiment and the gateway management method provided in the foregoing embodiment belong to the same concept, and a specific manner in which each module and unit perform an operation has been described in detail in the method embodiment, which is not described herein again. In practical application, the gateway management device provided in the above embodiment may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the electronic device to implement the gateway management method provided in the above embodiments.
Fig. 10 shows a schematic diagram of a computer system suitable for use in implementing an embodiment of the application. It should be noted that, the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 10, the computer system 1000 includes a central processing unit (Central Processing Unit, CPU) 1001 that can perform various appropriate actions and processes, such as performing the method described in the above embodiment, according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage portion 1008 into a random access memory (Random Access Memory, RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other by a bus 1004. An Input/Output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN (Local Area Network ) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed on the drive 1010 as needed, so that a computer program read out therefrom is installed into the storage section 1008 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. When executed by a Central Processing Unit (CPU) 1001, the computer program performs various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory, EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a gateway management method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the gateway management method provided in the above-described respective embodiments.
The foregoing is merely illustrative of the preferred embodiments of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make corresponding variations or modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be defined by the claims.

Claims (10)

1. A gateway management method, comprising:
after the equipment identity information passes the authentication, creating target equipment on the gateway, wherein the creating of the target equipment comprises setting a communication address, a data packet length, a storage address, a maximum reply time length and byte sequence of the target equipment;
Performing data detection on the target equipment based on the communication address and the maximum reply time length of the target equipment, wherein the data detection comprises detecting whether the target equipment can normally communicate;
If the target equipment can normally communicate, configuring a matching target database for the target equipment based on the storage address of the target equipment so as to store the data information of the target equipment in the target database;
Generating a file packet corresponding to the target equipment based on the data information of the target equipment, and issuing the file packet to the corresponding terminal according to a preset frequency.
2. The method of claim 1, wherein the data detection of the target device based on the communication address of the target device and a maximum reply time period includes detecting whether the target device is capable of normal communication, comprising:
sending communication test information to the communication address of the target equipment;
And if the target equipment is detected to receive the communication test information within the maximum reply time, the target equipment is characterized to be capable of communicating normally.
3. The method of claim 1, wherein the configuring a matching target database for the target device based on the storage address of the target device comprises:
Selecting the storage type of the target equipment and the identity of a data acquisition point;
and if the storage type of the target equipment comprises a change storage type, matching the target database based on the identity of the data acquisition point and the change amplitude of the change storage type.
4. A method as claimed in claim 3, wherein the method further comprises:
If the storage type of the target device comprises a cyclic storage type, determining the storage frequency of the cyclic storage type based on byte order and maximum reply duration of the target device;
and periodically storing the data generated by the target equipment based on the storage frequency.
5. The method of claim 1, wherein the method further comprises:
Monitoring the running state of the target equipment in the configuration mode of the gateway;
If the target equipment generates a preset alarm running state, generating corresponding alarm information;
Prompting the alarm information based on at least one of a webpage prompt, a mail prompt and a personal account push prompt.
6. The method of claim 5, wherein the method further comprises:
Determining an alarm node of the target equipment in a configuration mode of the gateway, wherein the alarm node is a corresponding variable in communication information of the target equipment;
And setting alarm threshold information of the alarm node so as to generate alarm information corresponding to the variable based on the alarm threshold information.
7. The method of claim 1, wherein before the device identity information is authenticated, the method further comprises:
And if the gateway is successfully accessed based on the communication parameters, the communication point table and the physical link of the equipment, the identity information authentication of the equipment is represented to pass.
8. A gateway management apparatus, the apparatus comprising:
The system comprises a creation module, a gateway and a storage module, wherein the creation module is used for creating target equipment on the gateway after equipment identity information authentication is passed, and the creation of the target equipment comprises setting a communication address, a data packet length, a storage address, a maximum reply time length and byte sequence of the target equipment;
The detection module is used for carrying out data detection on the target equipment based on the communication address and the maximum reply time length of the target equipment, wherein the data detection comprises the step of detecting whether the target equipment can normally communicate;
the configuration module is used for configuring a matched target database for the target equipment based on the storage address of the target equipment if the target equipment can normally communicate, so as to store the data information of the target equipment in the target database;
And the sending module is used for generating a file packet corresponding to the target equipment based on the data information of the target equipment and sending the file packet to the corresponding terminal according to the preset frequency.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the gateway management method of any of claims 1-7.
10. A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the gateway management method of any of claims 1 to 7.
CN202410070230.9A 2024-01-18 2024-01-18 Gateway management method and device, electronic equipment and storage medium Pending CN117914738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410070230.9A CN117914738A (en) 2024-01-18 2024-01-18 Gateway management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410070230.9A CN117914738A (en) 2024-01-18 2024-01-18 Gateway management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117914738A true CN117914738A (en) 2024-04-19

Family

ID=90688647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410070230.9A Pending CN117914738A (en) 2024-01-18 2024-01-18 Gateway management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117914738A (en)

Similar Documents

Publication Publication Date Title
US11805180B2 (en) Native activity tracking using credential and authentication management in scalable data networks
US11936652B2 (en) Proxied multi-factor authentication using credential and authentication management in scalable data networks
US10785222B2 (en) Credential and authentication management in scalable data networks
KR102566892B1 (en) Blockchain consensus method, device and system
US10263850B2 (en) Network testing device for automated topology validation
US10795744B2 (en) Identifying failed customer experience in distributed computer systems
CN114024972B (en) Long connection communication method, system, device, equipment and storage medium
US10986020B2 (en) Reconstructing message flows based on hash values
CN114465741B (en) Abnormality detection method, abnormality detection device, computer equipment and storage medium
CN108337163B (en) Method and apparatus for aggregating links
Biswas et al. A novel leader election algorithm based on resources for ring networks
WO2002025870A1 (en) Method, system, and computer program product for managing storage resources
US10904327B2 (en) Method, electronic device and computer program product for searching for node
CN117914738A (en) Gateway management method and device, electronic equipment and storage medium
CN113778709B (en) Interface calling method, device, server and storage medium
CN113778780B (en) Application stability determining method and device, electronic equipment and storage medium
CN114756301A (en) Log processing method, device and system
CN114706774A (en) Interface test method, device, equipment and storage medium
KR102137798B1 (en) Method for Basic Distributed Social Group Configuration with Semantic Web-based IoT Device and IoT Device thereof
CN115604160A (en) Network detection processing method and device, electronic equipment and storage medium
CN116760741B (en) Data state monitoring method, device, equipment and medium
CN114650252B (en) Routing method and device based on enterprise service bus and computer equipment
CN115967564B (en) Data content protection method and storage medium
US20230421577A1 (en) Techniques for malicious entity discovery
US11258687B2 (en) Method for generating requests for the segmentation of the monitoring of an interconnection network and associated hardware

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