CN111030924B - Gateway equipment, configuration method and working method - Google Patents

Gateway equipment, configuration method and working method Download PDF

Info

Publication number
CN111030924B
CN111030924B CN201911179066.0A CN201911179066A CN111030924B CN 111030924 B CN111030924 B CN 111030924B CN 201911179066 A CN201911179066 A CN 201911179066A CN 111030924 B CN111030924 B CN 111030924B
Authority
CN
China
Prior art keywords
algorithm
processor
configuration
circuit
gateway device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911179066.0A
Other languages
Chinese (zh)
Other versions
CN111030924A (en
Inventor
赵小宝
周育国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Jicheng Yunchuang Technology Co ltd
Zhejiang Geely Holding Group Co Ltd
Original Assignee
Zhejiang Jicheng Yunchuang Technology Co ltd
Zhejiang Geely Holding Group 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 Zhejiang Jicheng Yunchuang Technology Co ltd, Zhejiang Geely Holding Group Co Ltd filed Critical Zhejiang Jicheng Yunchuang Technology Co ltd
Priority to CN201911179066.0A priority Critical patent/CN111030924B/en
Publication of CN111030924A publication Critical patent/CN111030924A/en
Application granted granted Critical
Publication of CN111030924B publication Critical patent/CN111030924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a gateway device, a configuration method and a working method, wherein the gateway device comprises: the device comprises a power management module, a driving circuit, a processor, a memory and a communication circuit. The processor is provided with an embedded algorithm configuration module which is a program framework, and can acquire an algorithm to be configured from a cloud or a terminal and store the algorithm into a memory according to different configuration requirements to configure the algorithm of the processor. The firmware in the gateway equipment only has an operation frame, an algorithm configuration module is embedded in the gateway equipment, personalized setting can be carried out according to user requirements, and the intelligent gateway used by each user working equipment only needs to operate one or more algorithms corresponding to the algorithms configured by the user. Meanwhile, the increase of the management cost of a manufacturer can be avoided, the hardware configuration and the cost are reduced, and the same gateway equipment can be configured for many times.

Description

Gateway equipment, configuration method and working method
Technical Field
The invention relates to the field of intelligent gateways, in particular to gateway equipment, a configuration method and a working method.
Background
The internet of things means that various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and the like are used for acquiring any object or process needing monitoring, connection and interaction in real time, acquiring various required information such as sound, light, heat, electricity, mechanics, chemistry, biology, position and the like, and realizing ubiquitous connection of objects, objects and people through various possible network accesses. Sensing technologies in the internet of things are various, different communication protocols are adopted, and gateway equipment in the internet of things is used as a link for connecting a wireless sensing network and a traditional communication network, so that protocol conversion among the wireless sensing network, the traditional communication network and other different types of networks can be completed, and the method plays an important role in wide connection of the internet of things.
In the prior art, a plurality of protocols, some of which are dozens of protocols, are integrated in the gateway device, so that the hardware configuration is very high, and the types of interfaces are also very many, thereby greatly improving the hardware cost and the development difficulty of products. Each working device of the user only needs to use one communication protocol, but the existing gateway has a plurality of protocols, so the resource utilization rate of the product is very low. If the product has 10 protocols, the user can only use about 10% of the product resources, which is a very large waste of resources. In addition, when a user operates the gateway device, various working devices are available on site, and when a plurality of devices need to be connected, the cost for the user to purchase the gateway device is increased in a multiplied manner.
Disclosure of Invention
The invention provides a gateway device, a configuration method and a working method, which improve the operation efficiency and the utilization rate of the gateway device, can perform personalized setting and reduce the cost.
In one aspect, the present invention provides a gateway device, including: the device comprises a power management module, a driving circuit, a processor, a memory and a communication circuit;
the power management module is electrically connected with the driving circuit and the processor;
the power management module is used for supplying power to the driving circuit and the processor and performing power supply abnormity protection;
the processor is electrically connected with one end of the driving circuit;
the other end of the driving circuit is electrically connected with the communication circuit and external equipment respectively;
the processor is connected with the memory, the memory comprises a flash memory, and the flash memory is used for storing an algorithm to be configured corresponding to the algorithm configuration requirement of the external equipment;
and the processor performs algorithm configuration according to the stored algorithm to be configured.
In another aspect, a method for configuring a gateway device is provided, where the method includes:
acquiring an algorithm to be configured corresponding to the algorithm configuration requirement of the external equipment;
storing the algorithm to be configured in a flash memory;
and performing algorithm configuration on the processor based on an algorithm configuration interface connected with the flash memory.
In another aspect, a method for operating a gateway device is provided, where the method includes:
a processor in the gateway equipment accesses a flash memory and determines that a configured algorithm exists in the flash memory and configuration data corresponding to an algorithm configuration interface connected with the flash memory is normal;
the processor loads the configured algorithm in the flash memory to a running memory for running;
and according to the communication protocol type in the configured algorithm, the gateway equipment and the external equipment carry out real-time uplink communication or downlink communication.
The invention provides a gateway device, a configuration method and a working method, wherein the gateway device comprises: the device comprises a power management module, a driving circuit, a processor, a memory and a communication circuit. The processor is provided with an embedded algorithm configuration module which is a program framework, and can acquire an algorithm to be configured from a cloud or a terminal and store the algorithm into a memory according to different configuration requirements to configure the algorithm of the processor. The firmware in the gateway equipment only has an operation frame, an algorithm configuration module is embedded in the gateway equipment, personalized setting can be carried out according to user requirements, and the intelligent gateway used by each user working equipment only needs to operate one or more algorithms corresponding to the algorithms configured by the user. Meanwhile, the increase of the management cost of a manufacturer can be avoided, the hardware configuration and the cost are reduced, and the same gateway equipment can be configured for multiple times so as to solve the problem of flexible replacement of a user in the using process. The gateway equipment is also integrated with a protocol analysis program, deeply analyzes the characteristics of the user data through an intelligent algorithm, and alarms the user after the abnormity is found.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a gateway device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a processor in a gateway device according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating connection between an algorithm scheduling module and a security module in a gateway device and a processor according to an embodiment of the present invention;
fig. 4 is a flowchart of a configuration method of a gateway device according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating that an algorithm to be configured is obtained by a terminal in a configuration method of a gateway device according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating that an algorithm to be configured is acquired through a cloud in a configuration method of a gateway device according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a method for operating a gateway device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of information transmission of uplink communication in an operating method of a gateway device according to an embodiment of the present invention;
fig. 9 is a schematic diagram of information transmission of downlink communication in a working method of a gateway device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. Moreover, the terms "first," "second," and the like, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
Example 1:
referring to fig. 1, a gateway device is shown, which includes: the device comprises a power management module, a driving circuit, a processor, a memory and a communication circuit;
the power management module is electrically connected with the driving circuit and the processor;
the power management module is used for supplying power to the driving circuit and the processor and performing power supply abnormity protection;
the processor is electrically connected with one end of the driving circuit;
the other end of the driving circuit is electrically connected with the communication circuit and external equipment respectively;
the processor is connected with the memory, the memory comprises a flash memory, and the flash memory is used for storing an algorithm to be configured corresponding to the algorithm configuration requirement of the external equipment;
and the processor performs algorithm configuration according to the stored algorithm to be configured.
Specifically, only the program framework is reserved for the embedded operating system in the processor, and the algorithm running in the processor can be personalized. And storing the algorithm to be configured acquired from the external equipment by using the flash memory, and carrying out corresponding algorithm configuration on the processor. The external devices may include a cloud server, a terminal, and a user work device. When the algorithm configuration is obtained, the algorithm configuration can be obtained from a cloud server and a terminal.
When the gateway equipment does not have an edge computing function, the gateway is a protocol conversion gateway, after a communication port of user working equipment is connected with a communication interface of the gateway equipment, the gateway unpacks a protocol through protocol analysis to analyze available data and temporarily stores the data in a memory, and a processor takes out the data according to a data recombination rule, packs the data again according to a protocol used by a cloud end and then communicates with a cloud server through a cloud end communication interface. When the gateway device has edge computing function, it becomes a special industrial computer. The configuration of a memory and a processor is enhanced, an embedded operating system is embedded, and the computing capacity and the speed are enhanced. The user is provided with a local communication interface, which is generally a standard interface such as USB or ethernet, so that the user can locally enter a debugging or programming mode to perform related algorithm processing, i.e. secondary development.
Further, please refer to fig. 2, the processor includes an embedded algorithm configuration module, and the embedded algorithm configuration module is an application program operation framework for performing algorithm configuration;
the embedded program framework is provided with at least one algorithm configuration interface, and the algorithm configuration interface is connected with the memory.
Specifically, the embedded algorithm configuration module is an application framework in the processor, and is used for accommodating the algorithm during algorithm configuration, and before algorithm configuration, the content in the embedded algorithm configuration module is blank. And a program logic interface of a corresponding standardized algorithm, namely an algorithm configuration interface, is reserved in the embedded algorithm configuration module. Before being configured, the processor does not have any actual application functionality. When algorithm configuration is carried out, the algorithm to be configured is obtained through the flash memory, and algorithm configuration is carried out through an algorithm configuration interface connected with the flash memory.
When algorithm configuration is performed, an algorithm to be configured may be obtained from a cloud server or a local terminal, and the algorithm that may be configured includes: the method comprises the following steps of an industrial field bus application layer protocol, an algorithm protocol for edge calculation, a statistical algorithm, graphic processing, a cloud communication protocol, a safety protection algorithm and the like, wherein the industrial field bus application layer protocol is an unpacking protocol, and the cloud communication protocol is a packing protocol. And storing the algorithm to be configured into a flash memory, wherein the flash memory is connected with an algorithm configuration interface on the embedded algorithm configuration module, so that the algorithm configuration can be carried out on the processor through the algorithm configuration interface connected with the flash memory.
The algorithm configuration of the processor can be updated through the algorithm configuration interface connected with the flash memory. Because the algorithms to be configured all have standard logic interfaces matched with the algorithm configuration interfaces, after configuration is completed, the configured algorithms can be uniformly managed at the cloud end and are regularly updated.
The memory in the gateway device comprises an operation memory, a flash memory and an expansion memory, and the operation memory, the flash memory and the expansion memory are respectively connected with an algorithm configuration interface. The running memory, i.e. the memory, is used for temporary storage of data in the running process, the processor loads the configured algorithm to the running memory for running, and the running memory is also used for caching when a program is updated online, time synchronization required by other threads or processes, and the like. The flash memory is used for storing data such as system factory configuration codes, factory information, product information and the like, and is used as an algorithm firmware downloading temporary storage place for storing an algorithm to be configured. The expansion memory is usually a SD memory card, a TF memory card, a U disk, a hard disk and other removable storage devices, and is used for running storage media such as logs, configuration files, system files and the like so as to facilitate occasions such as online equipment replacement and the like.
The method for obtaining the algorithm from the cloud or the terminal for configuration by setting the program frame in the processor can be triggered according to the use characteristics of the user, so that the intelligent gateway used by each user equipment only needs to run the protocol processing corresponding to one or more algorithms configured by the user, and the personalized setting is increased. And the firmware of the gateway device only has an operation framework, and an algorithm configuration module is embedded inside the firmware. And after the user needs to use the equipment interface and is configured through the algorithm configuration module, downloading the corresponding protocol code online. And the same gateway equipment can be configured for multiple times so as to solve the flexible replacement of the user in the using process and avoid the increase of the management cost of a manufacturer.
Further, referring to fig. 1, the driving circuit includes a first driving circuit and a second driving circuit;
the first driving circuit is electrically connected with the processor and external equipment;
the second drive circuit is electrically connected with the processor and the communication circuit.
In particular, the first driver circuit is connected to a processor and a device local to the user. The connection between the first driver circuit and the processor and the devices local to the user is bi-directional. The second driving circuit is connected with the processor and the communication circuit, and the connection between the second driving circuit and the processor and the communication circuit is also bidirectional. The second driving circuit is divided into an indication driving circuit, a first interface driving circuit and a second interface driving circuit.
The indication driving circuit is connected with the operation state indicating circuit, and the indication driving circuit is usually a driving circuit for acousto-optic indication, display interface and the like.
The first interface driving circuit is connected with the cloud communication interface circuit, and the first interface driving circuit can be an Ethernet bus driver, a 4G/5G wireless communication mode driver, an antenna hardware circuit and the like.
The second interface driving circuit is connected to the local Communication interface, and the second interface driving circuit generally includes, but is not limited to, various Field Communication modes such as Universal Serial Bus (USB), ethernet, bluetooth, WI-FI, infrared or Near Field Communication (NFC).
The processor is connected with various external devices through different driving circuits, and the external devices can comprise a cloud server, a terminal and a user working device. When the algorithm configuration is obtained, the algorithm configuration can be obtained from a cloud server and a terminal. Downloading and configuring the algorithm during initialization, and performing uplink communication and downlink communication during the operation of the gateway equipment.
Further, referring to fig. 1, the communication circuit includes an operation status indication circuit, a cloud communication interface circuit, and a local communication interface circuit:
the running state indicating circuit is electrically connected with the indicator;
the cloud communication interface circuit is electrically connected with the cloud server;
the local communication interface circuit is electrically connected with the terminal.
Specifically, the operating state indicating circuit is electrically connected with an indicator, and the indicator can give an alarm for an abnormal state and prompt a user to operate. For example, when the gateway device is in operation, if the flash memory is empty or the configuration data of the algorithm configuration interface is abnormal, the processor may drive the indication driving circuit to alarm, the indication driving circuit transmits a signal to the indicator through the operation state indicating circuit, and the indicator prompts the user that the gateway device needs to be configured or needs to be reconfigured. The gateway equipment further comprises a real-time clock, the real-time clock is used for data transmission, and timestamps when the system is abnormal are marked to assist technicians and security personnel to perform data analysis and network security tracking. When the indicator prompts that the error occurs, the time stamp of the real-time clock is transmitted to the cloud server in the error code and is stored in the memory together with the error log.
The cloud communication interface circuit is electrically connected with the cloud server, and the local communication interface circuit is electrically connected with the terminal. The algorithm in the cloud server or the user terminal can be obtained through the cloud communication interface circuit or the local communication interface circuit, and algorithm configuration is carried out.
Further, referring to fig. 3, the gateway device further includes an algorithm scheduling module;
the algorithm scheduling module is electrically connected with the processor and is used for carrying out logic scheduling on the configured algorithm.
Specifically, the algorithm scheduling module is configured to perform logic scheduling on an algorithm module downloaded by a gateway to meet requirements of on-site protocol conversion, edge calculation, and the like, and may perform rule setting on a user terminal, such as a computer terminal or a mobile terminal, through a local communication interface circuit.
Further, referring to fig. 3, the gateway device further includes a security module;
the safety module is electrically connected with the algorithm scheduling module and the communication circuit and is used for filtering abnormal data.
In particular, the security module may comprise a software firewall, which is mainly used for security policies, ensuring that the field devices passing through the gateway of the invention are protected from network attacks by "hackers". The security policy is analyzed to a bit field based on an advanced algorithm, and abnormal data state filtering is carried out through related policies.
The embodiment of the present invention provides a gateway device, where the gateway device includes: the device comprises a power management module, a driving circuit, a processor, a memory and a communication circuit. The processor is provided with an embedded algorithm configuration module which is a program framework, and can acquire an algorithm to be configured from a cloud or a terminal and store the algorithm into a memory according to different configuration requirements to configure the algorithm of the processor. The firmware in the gateway equipment only has an operation frame, an algorithm configuration module is embedded in the firmware, the increase of the management cost of a manufacturer can be avoided, and the same gateway equipment can be configured for many times so as to solve the problem of flexible replacement of a user in the use process.
Example 2:
an embodiment of the present invention further provides a method for configuring a gateway device, please refer to fig. 4, where the method includes:
s410, obtaining an algorithm to be configured corresponding to the algorithm configuration requirement of the external equipment;
s420, storing the algorithm to be configured in a flash memory;
and S430, performing algorithm configuration on the processor based on an algorithm configuration interface connected with the flash memory.
Specifically, the embedded algorithm configuration module is an application framework in the processor, and is used for accommodating the algorithm during algorithm configuration, and before algorithm configuration, the content in the embedded algorithm configuration module is blank. And a program logic interface of a corresponding standardized algorithm, namely an algorithm configuration interface, is reserved in the embedded algorithm configuration module. Before being configured, the processor does not have any actual application functionality. When algorithm configuration is carried out, the algorithm to be configured is obtained through the flash memory, and algorithm configuration is carried out through an algorithm configuration interface connected with the flash memory.
When algorithm configuration is performed, an algorithm to be configured may be obtained from a cloud server or a local terminal, and the algorithm that may be configured includes: the method comprises the following steps of an industrial field bus application layer protocol, an algorithm protocol for edge calculation, a statistical algorithm, graphic processing, a cloud communication protocol, a safety protection algorithm and the like, wherein the industrial field bus application layer protocol is an unpacking protocol, and the cloud communication protocol is a packing protocol. And storing the algorithm to be configured into a flash memory, wherein the flash memory is connected with an algorithm configuration interface on the embedded algorithm configuration module, so that the algorithm configuration can be carried out on the processor through the algorithm configuration interface connected with the flash memory.
The algorithm configuration of the processor can be updated through the algorithm configuration interface connected with the flash memory. Because the algorithms to be configured all have standard logic interfaces matched with the algorithm configuration interfaces, after configuration is completed, the configured algorithms can be uniformly managed at the cloud end and are regularly updated.
The method for obtaining the algorithm from the cloud or the terminal for configuration by setting the program frame in the processor can be triggered according to the use characteristics of the user, so that the intelligent gateway used by each user equipment only needs to run a corresponding protocol process, and personalized equipment is added. And the firmware of the gateway device only has an operation framework, and an algorithm configuration module is embedded inside the firmware. And after the user needs to use the equipment interface and is configured through the algorithm configuration module, downloading the corresponding protocol code online. And the same gateway equipment can be configured for multiple times so as to solve the flexible replacement of the user in the using process and avoid the increase of the management cost of a manufacturer.
Further, referring to fig. 5, the obtaining of the algorithm to be configured corresponding to the algorithm configuration requirement of the external device includes:
s510, connecting a terminal and gateway equipment based on a local communication interface circuit;
s520, acquiring an algorithm to be configured in the terminal based on the algorithm configuration requirement of the external equipment.
Specifically, the local communication interface circuit is electrically connected with the terminal. The algorithm in the cloud server or the user terminal can be obtained through the local communication interface circuit, and algorithm configuration is carried out.
Further, referring to fig. 6, the obtaining an algorithm to be configured corresponding to an algorithm configuration requirement of the external device includes:
s610, connecting a cloud server and gateway equipment based on a cloud communication interface circuit;
and S620, downloading the algorithm to be configured from the cloud server based on the algorithm configuration requirement of the external equipment.
Specifically, the cloud communication interface circuit is electrically connected with the cloud server, and the local communication interface circuit is electrically connected with the terminal. The algorithm in the cloud server or the user terminal can be obtained through the cloud communication interface circuit, and algorithm configuration is carried out.
The embodiment of the invention provides a configuration method of gateway equipment, which comprises the steps of storing a corresponding algorithm into a flash memory based on the configuration requirement of external equipment, and carrying out algorithm configuration or updating algorithm configuration on a processor through an algorithm configuration interface connected with the flash memory. The method can be set individually according to the user requirements, and the intelligent gateway used by each user working device only needs to run one or more algorithms corresponding to the algorithms configured by the user.
Example 3:
an embodiment of the present invention further provides a method for operating a gateway device, please refer to fig. 7, where the method includes:
s710, a processor in the gateway equipment accesses a flash memory, and it is determined that a configured algorithm exists in the flash memory and configuration data corresponding to an algorithm configuration interface connected with the flash memory is normal;
s720, the processor loads the configured algorithm in the flash memory to an operation memory for operation;
and S730, performing real-time uplink communication or downlink communication between the gateway equipment and external equipment according to the communication protocol type in the configured algorithm.
Specifically, after the gateway device is powered on, the power management module is powered on first, and converts the input voltage into a safe voltage for normal operation of each module of the gateway device, so as to ensure normal operation of the gateway.
After the gateway equipment works normally, a processor runs a program framework to access a flash memory at first, and whether a configured algorithm exists in the flash memory or not and configuration data corresponding to an algorithm configuration interface connected with the flash memory are normal or not is determined. The operating mode of the gateway device may also be determined based on the algorithm.
If the flash memory is empty or the configuration data of the algorithm configuration interface is abnormal, directly driving the indication driving circuit to give an alarm, prompting a user that the product needs to be configured or needs to be reconfigured by an indicator through an operation state indicating circuit driven by the indication driving circuit, and driving the first interface driving circuit to send a related error code through the cloud communication interface circuit, wherein the error code comprises a timestamp recorded by a real-time clock and used for error occurrence to the cloud server; and simultaneously recording the time stamp of the real-time clock and generating an error log to be stored in the expansion memory.
If the user does not do any treatment, the gateway can always work in the alarm state, and the alarm state can not be released until the user intervenes correctly. It should be noted that the alarm log only records the first failure after the power is re-turned on, so as to avoid the occurrence of "garbage" log and occupy resources.
And if the flash memory is not empty and the configuration data of the algorithm configuration interface is normal, the system enters a normal operation mode. The processor loads the configured algorithm in the flash memory into the running memory to improve the running speed, and carries out real-time communication with the field device of the user according to the communication protocol type in the algorithm configured by the user, and the working mode of the system is divided into downlink and uplink in the period.
Referring to fig. 8, the working mode of the uplink communication is that after the communication port of the user working device is connected to the communication interface of the gateway device, the gateway performs "unpacking" on the protocol through protocol analysis to analyze available data and temporarily store the data in the memory, and based on the configured algorithm, the processor takes out the data according to the data reassembly rule, re- "packs" the data according to the protocol used by the cloud, and then communicates with the cloud server through the cloud communication interface.
In upstream communication, data is filtered, and the filtering is realized by edge calculation, wherein the edge calculation refers to processing and analyzing data at a network edge node. Here we give a definition of an edge node, which refers to any node between the data generation source and the cloud center that has both computing resources and network resources. For example, the gateway is an edge node between a smart home and a cloud center. In an ideal environment, edge computing refers to analyzing and processing data near a data generation source without data circulation, thereby reducing network traffic and response time.
Referring to fig. 9, the downlink communication mode is that after the communication port of the cloud server is connected to the communication interface of the gateway device, the gateway performs protocol analysis to "unpack" the protocol to analyze available data and store the data in the memory temporarily, based on the configured algorithm, the processor extracts the data according to the data reassembly rule, and "packs" the data again according to the protocol used by the user working device, and then communicates with the user working device through the communication interface. Different from the uplink, if the cloud server issues the instruction or the data, the cloud server generally sends the operation command or the query data, and does not need to perform edge calculation, so that the cloud server can repackage the data and issue the repackaged data to the equipment only by performing security check.
The embodiment of the invention provides a working method of gateway equipment, which comprises the steps of determining that a flash memory and an algorithm configuration interface work normally, and then carrying out uplink communication or downlink communication according to requirements. The gateway equipment is also integrated with a protocol analysis program, so that the gateway equipment can deeply analyze the characteristics of user data through an intelligent algorithm in work and alarm a user after finding an abnormality.
The present specification provides method steps as described in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive labor. The steps and sequences recited in the embodiments are but one manner of performing the steps in a multitude of sequences and do not represent a unique order of performance. In the actual system or interrupted product execution, it may be performed sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The configurations shown in the present embodiment are only partial configurations related to the present application, and do not constitute a limitation on the devices to which the present application is applied, and a specific device may include more or less components than those shown, or combine some components, or have an arrangement of different components. It should be understood that the methods, apparatuses, and the like disclosed in the embodiments may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a division of one logic function, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or unit modules.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A gateway device, characterized in that the gateway device comprises: the device comprises a power management module, a driving circuit, a processor, a memory and a communication circuit;
the power management module is electrically connected with the driving circuit and the processor;
the power management module is used for supplying power to the driving circuit and the processor and performing power supply abnormity protection;
the processor is electrically connected with one end of the driving circuit;
the other end of the driving circuit is electrically connected with the communication circuit and external equipment respectively;
the processor is connected with the memory, the memory comprises a flash memory, and the flash memory is used for temporarily storing an algorithm to be configured, which is acquired from a cloud server or a local terminal and corresponds to the algorithm configuration requirement of the cloud server or the local terminal when the algorithm configuration is carried out;
the processor carries out algorithm configuration according to a stored algorithm to be configured;
the processor comprises an embedded algorithm configuration module, and the embedded algorithm configuration module is an application program operation framework for performing algorithm configuration;
the application program running framework is provided with at least one algorithm configuration interface, and the algorithm configuration interface is connected with the storage.
2. The gateway device of claim 1, wherein said driver circuit comprises a first driver circuit and a second driver circuit;
the first driving circuit is electrically connected with the processor and the external equipment;
the second drive circuit is electrically connected with the processor and the communication circuit.
3. The gateway device of claim 1, wherein the communication circuit comprises a running state indication circuit, a cloud communication interface circuit, and a local communication interface circuit:
the running state indicating circuit is electrically connected with the indicator;
the cloud communication interface circuit is electrically connected with the cloud server;
the local communication interface circuit is electrically connected with a local terminal.
4. The gateway device of claim 1, further comprising an algorithmic scheduling module;
the algorithm scheduling module is electrically connected with the processor and is used for carrying out logic scheduling on the configured algorithm.
5. The gateway device of claim 4, further comprising a security module;
the safety module is electrically connected with the algorithm scheduling module and the communication circuit and is used for filtering abnormal data.
6. A method for configuring a gateway device according to any one of claims 1 to 5, the method comprising:
when algorithm configuration is carried out, acquiring an algorithm to be configured corresponding to the algorithm configuration requirement of a cloud server or a local terminal from the cloud server or the local terminal;
temporarily storing the algorithm to be configured in a flash memory;
and performing algorithm configuration on the processor based on an algorithm configuration interface connected with the flash memory.
7. The configuration method of the gateway device according to claim 6, wherein the obtaining the algorithm to be configured corresponding to the algorithm configuration requirement of the external device comprises:
connecting a local terminal and a gateway device based on a local communication interface circuit;
and acquiring an algorithm to be configured in the local terminal based on the algorithm configuration requirement of the external equipment.
8. The configuration method of the gateway device according to claim 6, wherein the obtaining the algorithm to be configured corresponding to the algorithm configuration requirement of the external device comprises:
based on the cloud communication interface circuit, connecting the cloud server and the gateway equipment;
and downloading the algorithm to be configured from the cloud server based on the algorithm configuration requirement of the external equipment.
9. A method of operating a gateway device according to any one of claims 1 to 5, the method comprising:
a processor in the gateway equipment accesses a flash memory and determines that a configured algorithm exists in the flash memory and configuration data corresponding to an algorithm configuration interface connected with the flash memory is normal;
the processor loads the configured algorithm in the flash memory to a running memory for running;
and according to the communication protocol type in the configured algorithm, the gateway equipment carries out real-time uplink communication or downlink communication with the external equipment.
CN201911179066.0A 2019-11-26 2019-11-26 Gateway equipment, configuration method and working method Active CN111030924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911179066.0A CN111030924B (en) 2019-11-26 2019-11-26 Gateway equipment, configuration method and working method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911179066.0A CN111030924B (en) 2019-11-26 2019-11-26 Gateway equipment, configuration method and working method

Publications (2)

Publication Number Publication Date
CN111030924A CN111030924A (en) 2020-04-17
CN111030924B true CN111030924B (en) 2022-03-08

Family

ID=70206885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911179066.0A Active CN111030924B (en) 2019-11-26 2019-11-26 Gateway equipment, configuration method and working method

Country Status (1)

Country Link
CN (1) CN111030924B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209362A (en) * 2016-07-29 2016-12-07 苏州国芯科技有限公司 A kind of embedded system running rivest, shamir, adelman
CN106452833A (en) * 2016-08-30 2017-02-22 南京金水尚阳信息技术有限公司 Data transmission method for realizing RTU multi-protocol dynamic loading
CN106899498A (en) * 2017-04-13 2017-06-27 山东万腾电子科技有限公司 Embedded industry intelligent gateway and its real-time data acquisition method based on SoC
CN108092884A (en) * 2017-11-23 2018-05-29 南京邮电大学 A kind of wireless access gateway system and application process

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100331394B1 (en) * 2000-03-10 2002-04-03 박종섭 Device and method for confirmating vocoder board algorism loading in imt-2000 base-station controller
TW577660U (en) * 2003-05-28 2004-02-21 Hon Hai Prec Ind Co Ltd A wireless gateway
CN101425948B (en) * 2008-10-23 2011-10-26 上海大学 Industrial wireless network access industrial Ethernet, multi-protocol gateway of field bus and protocol conversion method
CN101609544B (en) * 2009-07-21 2011-09-14 华中科技大学 Method and device for loading and measuring data of image processing device
CN102346456B (en) * 2011-05-06 2013-05-22 烟台威尔数据系统有限公司 Programmable intelligent terminal device and programmable intelligent terminal operation method
CN105785972B (en) * 2016-03-01 2018-10-12 浙江吉利汽车研究院有限公司 A kind of wiring method and diagnostic equipment of the functional configuration code of diagnostic equipment after sale
CN205986939U (en) * 2016-08-30 2017-02-22 南京金水尚阳信息技术有限公司 Embedded automatic adapter of RTU multi -protocols
CN106982222A (en) * 2017-04-24 2017-07-25 华南理工大学 The multi-protocol data cut-in method and device that can configure under a kind of industrial 4.0 environment
CN108259556A (en) * 2017-11-30 2018-07-06 北京九五智驾信息技术股份有限公司 Method for parameter configuration and terminal
CN109067735B (en) * 2018-07-27 2021-08-20 广东美的制冷设备有限公司 Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209362A (en) * 2016-07-29 2016-12-07 苏州国芯科技有限公司 A kind of embedded system running rivest, shamir, adelman
CN106452833A (en) * 2016-08-30 2017-02-22 南京金水尚阳信息技术有限公司 Data transmission method for realizing RTU multi-protocol dynamic loading
CN106899498A (en) * 2017-04-13 2017-06-27 山东万腾电子科技有限公司 Embedded industry intelligent gateway and its real-time data acquisition method based on SoC
CN108092884A (en) * 2017-11-23 2018-05-29 南京邮电大学 A kind of wireless access gateway system and application process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于嵌入式Linux的物联网网关研究与实现";常英亮;《北京交通大学硕士学位论文》;20140615;全文 *

Also Published As

Publication number Publication date
CN111030924A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN104345717B (en) Intelligent remote data acquisition system based on Internet of Things
CN102449567B (en) Cloud computing as a basis for equipment health monitoring service
CN109451021B (en) Internet of things edge side multi-heterogeneous network access system and method
CN102495785A (en) Centralized management method and device for servers of whole equipment cabinet
EP3576159A1 (en) Method and device for controlling solar energy system, central controller and solar energy system
CN111756801A (en) Method and system for processing intelligent manufacturing big data
CN101136500B (en) Management monitoring method for intelligent UPS power supply
WO2021190659A1 (en) System data acquisition method and apparatus, and medium and electronic device
CN115086379B (en) Numerical control machine tool data acquisition method based on edge calculation and virtualization technology
CN103383559A (en) Flow computers having wireless communication protocol interfaces and related methods
CN111030924B (en) Gateway equipment, configuration method and working method
CN105849699B (en) Method for controlling data center architecture equipment
JP6042243B2 (en) Monitoring system, monitoring server, and monitoring method
CN102869032A (en) Device and method for monitoring and alarming power supply of base station
US20140115148A1 (en) Decommission of a Server in Wireless Environment
CN115102730B (en) Integrated monitoring method and device for multiple devices and electronic device
CN110611610A (en) Embedded Internet of things energy gateway and Internet of things system
CN113543132B (en) Network access method and device of node equipment, storage medium and electronic equipment
EP2677693B1 (en) Communication system
CN115237101A (en) Debugging method and intelligent debugging device for motor train unit and debugging system for motor train unit
EP3920545B1 (en) Wireless communication for industrial automation
CN112261010B (en) Special equipment multi-protocol conversion system, terminal and readable storage medium
CN116319398A (en) Network inspection method, network equipment and network management equipment
CN112953947A (en) One-way data transparent transmission method of single-chip microcomputer security gateway
CN111629034B (en) Remote maintenance method and device for terminal of Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant