CN116017412A - Gateway equipment, method and system for acquiring equipment information - Google Patents

Gateway equipment, method and system for acquiring equipment information Download PDF

Info

Publication number
CN116017412A
CN116017412A CN202211687884.3A CN202211687884A CN116017412A CN 116017412 A CN116017412 A CN 116017412A CN 202211687884 A CN202211687884 A CN 202211687884A CN 116017412 A CN116017412 A CN 116017412A
Authority
CN
China
Prior art keywords
equipment
information
gateway
register address
parameter
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.)
Granted
Application number
CN202211687884.3A
Other languages
Chinese (zh)
Other versions
CN116017412B (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.)
Suzhou Renogy New Energy Technoogy Co ltd
Original Assignee
Suzhou Renogy New Energy Technoogy 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 Suzhou Renogy New Energy Technoogy Co ltd filed Critical Suzhou Renogy New Energy Technoogy Co ltd
Priority to CN202211687884.3A priority Critical patent/CN116017412B/en
Publication of CN116017412A publication Critical patent/CN116017412A/en
Application granted granted Critical
Publication of CN116017412B publication Critical patent/CN116017412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses gateway equipment, a method and a system for acquiring equipment information. The gateway device includes: a memory configured to store device identification rules; a serial communication interface configured to establish a communication connection with a first device; a processor configured to determine information content of device information characterizing the first device according to the device identification rules; the Bluetooth MESH module is configured to broadcast the information content, so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment.

Description

Gateway equipment, method and system for acquiring equipment information
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to gateway equipment, a method and a system for acquiring equipment information.
Background
The new energy industry has developed earlier, and a large number of existing devices exist in the market, namely, data reporting and device control are provided for monitoring devices through serial communication, such as an RS485 interface and Modbus protocol; however, in some occasions requiring wireless access and high energy consumption, device access and data transparent transmission are required to be performed through a serial port-to-wireless communication module, such as an RS485/RS 232-to-Bluetooth BLE module.
In the prior art, only after the Bluetooth transmission module and the monitoring equipment are connected, the information of the energy equipment connected with the Bluetooth transmission module can be obtained. Further, if the bluetooth signal of one energy device is not good, or if the communication time-out is caused by the failure of the energy device, the shared connection of the monitoring device is occupied for a long time, so that other energy devices cannot get a connection opportunity, and when a large number of energy devices need to be accessed, the user can hardly find the energy device which wants to be connected. In addition, the Bluetooth BLE module only carries out data transmission between the energy equipment and the monitoring equipment, and the RS485 is half-duplex equipment in a request/response mode; therefore, to accomplish the above requirements, the monitoring device needs to constantly poll the energy device through the bluetooth forwarding module, which will bring about a larger bluetooth BLE communication overhead and increase energy consumption.
Disclosure of Invention
The embodiment of the application provides gateway equipment, a method and a system for acquiring equipment information, which can acquire the equipment information of first equipment connected with gateway equipment directly when second equipment scans the gateway equipment, does not need to acquire the equipment information of the first equipment connected with the gateway equipment through polling after the connection is established with the gateway equipment, is convenient for a user to accurately identify and connect with the first equipment which is expected to be connected when the user connects with the gateway equipment, and improves the use experience of the user.
According to an aspect of the present application, there is provided a gateway apparatus for acquiring apparatus information, the gateway apparatus including:
a memory configured to store device identification rules;
a serial communication interface configured to establish a communication connection with a first device;
a processor configured to determine information content of device information characterizing the first device according to the device identification rules;
and the Bluetooth MESH module is configured to broadcast the information content so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment.
According to another aspect of the present application, there is provided a method of acquiring device information, the method of acquiring device information including:
establishing a communication connection with a first device through a serial communication interface;
determining information content of device information for characterizing the first device according to a device identification rule;
and broadcasting the information content to enable the second device to acquire the device information of the first device when scanning the gateway device.
According to another aspect of the present application, there is provided an apparatus for acquiring device information, the apparatus comprising:
the communication connection establishment module is used for establishing communication connection with the first equipment through the serial communication interface;
an information content determining module for determining information content of device information characterizing the first device according to a device identification rule;
and the broadcasting module is used for broadcasting the information content so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment.
According to another aspect of the present application, there is provided an apparatus information monitoring system including:
the gateway device comprises a first device, a second device and the gateway device of any embodiment of the application, wherein the gateway device is communicated with the first device through the serial communication interface, and the gateway device is communicated with the second device through the Bluetooth MESH module.
According to another aspect of the present application, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of obtaining device information described in any of the embodiments of the present application.
According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a method of obtaining device information according to any embodiment of the present application.
The embodiment of the application establishes a gateway device for acquiring device information, and the gateway device comprises: a memory configured to store device identification rules; a serial communication interface configured to establish a communication connection with a first device; a processor configured to determine information content of device information characterizing the first device according to the device identification rules; and the Bluetooth MESH module is configured to broadcast the information content, so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment, and the equipment information of the first equipment connected with the gateway equipment is acquired through polling without the need of establishing connection with the gateway equipment, thereby being convenient for users to accurately identify and connect with the first equipment which is expected to be connected when connecting with the gateway equipment and improving the use experience of the users.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a gateway device for acquiring device information in a first embodiment of the present application;
FIG. 2 is a flow chart of executing device rules in accordance with one embodiment of the present application;
FIG. 3 is a flow chart of another implementation of device rules in accordance with one embodiment of the present application;
FIG. 4 is a flow chart of another implementation of device rules in accordance with one embodiment of the present application;
FIG. 5 is a flow chart of another implementation of device rules in accordance with one embodiment of the present application;
Fig. 6 is a schematic diagram of acquiring device information in the first embodiment of the present application;
fig. 7 is a flowchart of a method for acquiring device information in the second embodiment of the present application;
fig. 8 is a schematic structural diagram of an apparatus for acquiring device information in the third embodiment of the present application;
fig. 9 is a schematic structural diagram of an equipment information monitoring system in a fourth embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
Example 1
Fig. 1 is a schematic structural diagram of a gateway device for acquiring device information in the first embodiment of the present application, where the present embodiment is applicable to a case of acquiring device information, as shown in fig. 1, the gateway device 100 specifically includes: memory 110, serial communication interface 120, processor 130, and bluetooth MESH module 140;
wherein the memory 110 is configured to store device identification rules.
It should be noted that the device identification rule may be preset in the gateway device in advance by the system, or may be added to the gateway device after the user defines the device identification rule by a second device, where the second device may be a monitoring device, for example, may be a mobile terminal.
In this embodiment, the memory is configured to store device identification rules, where the device identification rules may include: register address, word length, operators, and condition values, or the device identification rules may also include: register address interval, operators, and condition values. For example, each rule may be expressed as: when (condition 1) is satisfied, broadcasting (a device parameter stored in a register or preset information corresponding to the device parameter stored in the register); or may be expressed as: when (condition 1 and condition 2) is satisfied, broadcasting (a device parameter stored in a register or preset information corresponding to the device parameter stored in the register); or may be expressed as: when (condition 1) is not satisfied and (condition 2) is satisfied, broadcasting (a device parameter stored in a register or preset information corresponding to the device parameter stored in the register); or may be expressed as: when (condition 1) is not satisfied, and (condition 2 and condition 3) are satisfied, then broadcasting (a device parameter stored in a register or preset information corresponding to the device parameter stored in the register), wherein each "condition" may be expressed as: [ device parameters stored in registers ] (greater than or less than or equal to or pattern matching) [ condition values ].
A serial communication interface 120, the serial communication interface 120 being configured to establish a communication connection with a first device.
The serial communication interface 120 may be any one of RS485, RS232, and RS422, and is mainly used for serial communication. The first device may be an electronic device, for example, an energy device. The serial communication interface is connected with the first device and can establish communication connection with the first device.
The first device also includes a communication interface, for example, any one interface of RS485, RS232 and RS422, and meanwhile, the first device also supports a Modbus communication protocol, and based on the communication protocol, data transmission can be performed between the first device and the gateway device.
A processor 130, the processor 130 being configured to determine an information content of device information characterizing the first device according to the device identification rule.
Wherein the processor may determine information content of device information characterizing the first device according to device identification rules. For example, the processor may be configured to obtain device parameters of the electronic device according to the device identification rule and process the obtained device parameters of the electronic device to determine information content of device information for characterizing the electronic device. The device parameter may be a parameter stored in a register read from a register address range in the device identification rule. The device information may be attribute information of the first device, and may be, for example, at least one of a device type, a device name, and a device identifier. The processor also processes and encapsulates the device information of the electronic device to form information content suitable for bluetooth MESH transmission, so that the bluetooth MESH module 140 in the gateway device can broadcast the information content.
A bluetooth MESH module 140 configured to broadcast the information content to enable the second device to obtain device information of the first device when scanning the gateway device.
The second device may be a monitoring device, for example, may be a mobile terminal; preferably, the second device may be a smart phone of the user. When a user scans Bluetooth device signals through the second device, the gateway device broadcasts information content of the device information used for representing the first device, so that the second device can directly scan and acquire the device information of the first device. Compared with the prior art that only the equipment information of the gateway equipment and the equipment information of the first equipment connected with the gateway equipment can be obtained by scanning and the equipment information of the first equipment which is connected with the gateway equipment can be known after the gateway equipment is connected, the embodiment can conveniently enable a user to accurately identify the equipment information of the first equipment when the gateway equipment is connected by scanning, is convenient for the user to directly connect to the first equipment which is expected to be connected, and improves the use experience of the user.
Meanwhile, compared with the Bluetooth BLE module, the Bluetooth MESH module can allow a large number of devices to be distributed at the same time, the devices of the distribution network can communicate at any time, and the transmission distance can be expanded through the relay node defined by the Bluetooth MESH technology. By configuring the gateway device with the function, a user can accurately identify and connect to the first device to be connected when scanning the gateway device in an application scene with a plurality of gateway devices, whether the first device needs to be connected or not is judged after trying to connect to one gateway device and reading the device information of the first device connected with the gateway device, if not, the next gateway device needs to be tried after disconnecting the connection with the current gateway device, and networking efficiency and user experience are improved.
Optionally, the processor is configured to determine information content of device information for characterizing the first device according to the device identification rule, including:
the processor is configured to obtain a first register address interval of the first device and a first device parameter corresponding to the first register address interval according to the device identification rule;
determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment in response to the first equipment parameter meeting a first preset condition; or alternatively, the process may be performed,
responding to the first equipment parameter meeting a first preset condition, and continuously acquiring a second register address interval of the first equipment and a second equipment parameter corresponding to the second register address interval according to the equipment identification rule;
and in response to the second equipment parameter meeting a second preset condition, determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment.
Wherein obtaining a first register address interval of the first device includes:
Acquiring a first register address and a first word length of the first device;
and determining a first register address interval of the first device according to the first register address of the first device and the first word length.
The first register address is a register address included in the device identification rule, and the first word length is a length of a first register address interval.
Specifically, the determining the first register address interval of the first device according to the first register address and the first word length of the first device may be: the method comprises the steps of obtaining a first register address and a first word length in a device identification rule, and calculating a first register address interval according to the first word length and the first register address. For example, the device identification rule may be as shown in table 1:
TABLE 1
Figure BDA0004020170440000061
In table 1, it is possible to obtain: if the first register address is 1200 and the first word length is 8, the first register address interval is 1200-1207.
The first device parameter is a device parameter stored in a first register address interval; optionally, the first device parameter is used to characterize a device type of the first device. The first preset condition is a preset condition in the device identification rule, and the preset condition may be expressed as [ a device parameter stored in a register address section ] (greater than or less than or equal to or pattern matching) [ a condition value ]. For example, the preset condition may be that "the device parameter stored in the first register address section is equal to the character string 'Solar'". The preset information corresponding to the first device parameter is also preset information in the device identification rule, and the preset information can be set as the device parameter stored in the address interval of the first register, or can be other information preset in the program. Taking table 1 as an example, when the device parameter stored in the address interval of the first register is directly adopted as the device information of the first device, the "Solar" is directly adopted as the device information of the first device; when the preset information corresponding to the first device parameter is determined as the device information of the first device, the "SOLR" is used as the device information of the first device because the preset information in the device identification rule presets the "SOLR" field.
Specifically, in response to the first device parameter meeting a first preset condition, determining the first device parameter or preset information corresponding to the first device parameter as information content of device information for characterizing the first device, that is,: acquiring a first register address interval of first equipment and first equipment parameters corresponding to the first register address interval according to equipment identification rules, judging whether the first equipment parameters meet first preset conditions, and if the first equipment parameters meet the first preset conditions, directly determining the first equipment parameters or preset information corresponding to the first equipment parameters as information content of equipment information for representing the first equipment.
In a specific example, if the first register address of the first device is 1008 and the first word length is 8, the first register address interval is 1008 to 1015, the first preset condition is "the device parameter stored in the first register address interval 1008 to 1015 is equal to the string 'Solar'", and the preset information corresponding to the first device parameter is "SOLR". Fig. 2 is a flowchart of executing a device rule according to the first embodiment of the present application, as shown in fig. 2, the processor obtains first register address intervals 1008 to 1015 of the first device and device parameters stored in the first register address intervals 1008 to 1015 according to the device identification rule, determines whether the device parameters stored in the first register address intervals 1008 to 1015 are equal to a character string "Solar", and if the device parameters stored in the first register address intervals 1008 to 1015 are equal to the character string "Solar", includes "SOLR" in the information content of the device information characterizing the first device and broadcasts the information content.
Alternatively, in some specific application scenarios, there may be multiple similar devices of different models/versions/parameters, for example, in off-grid photovoltaic energy storage scenarios, a user may use multiple batteries of different models in series-parallel with each other to store energy. At this time, if the device information of the first devices is determined according to whether the read first device parameters meet the first preset conditions, the model, version or parameter difference between each first device cannot be accurately distinguished. Therefore, another way of determining the information content of the device information for characterizing the first device according to the device identification rule is provided in this embodiment, which further adds a second preset condition to determine the device parameter based on the first preset condition to determine the device parameter, so that the difference between models, versions or parameters of the similar devices can be more accurately distinguished.
Specifically, in response to the first device parameter meeting a first preset condition, continuing to acquire a second register address interval of the first device and a second device parameter corresponding to the second register address interval according to the device identification rule; and in response to the second equipment parameter meeting a second preset condition, determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment, namely: when the first equipment parameter meets the first preset condition, the processor continuously acquires a second register address interval of the first equipment and a second equipment parameter corresponding to the second register address interval according to the equipment identification rule, judges whether the second equipment parameter meets the second preset condition, and if the second equipment parameter meets the second preset condition, determines the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment.
The determining manner of the second register address interval is similar to that of the first register address interval, and will not be described herein. The second device parameter is a device parameter stored in a second register address interval; preferably, the second device parameter is used to characterize a device model, a software version or a device parameter of the first device. The second preset condition is a preset condition set for a device parameter stored in the second register address section in the device identification rule.
Fig. 3 is a flowchart of another implementation of the device rule in the first embodiment of the present application, in a specific example, taking table 1 as an example, the first register address interval is 1200-1207, the first preset condition is "the parameter stored in the first register address interval 1200-1207 is equal to the character string 'packet'", the second register address interval is 1208-1209, the second preset condition is "the parameter stored in the second register address interval 1208-1209 is greater than '2'", and the preset information corresponding to the first device parameter is "BA02". As shown in fig. 3, if the parameter stored in the first register address section 1200-1207 of the first device is equal to the character string "bit", the processor continues to read the device parameter stored in the second register address section 1208-1209 of the first device according to the device identification rule, determines whether the device parameter stored in the second register address section 1208-1209 is greater than 2, if greater than 2, broadcasts "BA02", and determines "BA02" as the information content of the device information characterizing the first device. In this embodiment, the second register address interval is used for storing a software version number of a device, and when it is determined whether the device parameters stored in the second register address intervals 1208-1209 are greater than 2, the software version used by the first device is indicated to be V2.0, so that the broadcasted preset information "BA02" can simultaneously represent the device type and the device software version number of the first device, so that when the user obtains the preset information through the second device, the user can not only distinguish the corresponding device model, but also identify the software version of the device, and further more accurately identify the information of the first device with the gateway device.
Optionally, the processor is further configured to:
acquiring a third register address interval of the first device and a third device parameter corresponding to the third register address interval according to the device identification rule in response to the first device parameter not conforming to the first preset condition;
determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment in response to the third equipment parameter meeting a third preset condition; or alternatively, the process may be performed,
responding to the third equipment parameter meeting a third preset condition, and continuously acquiring a fourth register address interval of the first equipment and fourth equipment parameters corresponding to the fourth register address interval according to the equipment identification rule;
and in response to the fourth equipment parameter meeting a fourth preset condition, determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment.
The third register address interval, the third device parameter, the third preset condition, the fourth register address interval, the fourth device parameter and the fourth preset condition are only distinguished from the previous register address interval, device parameter and preset condition, and have no other meaning, and are not described herein.
Optionally, when the gateway device reads the device parameters in the first register address interval and/or the second register address interval according to the identification rule and performs device information identification, if the device information of the device cannot be matched, the gateway device may further continuously match and identify whether the first device currently connected is other device information according to other identification rules configured in the device identification rule. Therefore, the gateway device can repeatedly try a plurality of identification conditions set in the device identification rule until the device information of the first device can be identified, or after traversing all the identification conditions, the gateway device can not identify the device information, and then sends a reminding message of 'failure identification'.
Specifically, in this embodiment, if the first device parameter does not meet the first preset condition, a third register address interval of the first device and a third device parameter corresponding to the third register address interval are obtained according to the device identification rule; and in response to the third equipment parameter meeting a third preset condition, determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment. Namely: and when the first equipment parameter does not meet the first preset condition, the processor continuously acquires a third register address interval of the first equipment and a third equipment parameter corresponding to the third register address interval according to the equipment identification rule, judges whether the third equipment parameter meets the third preset condition, and if the third equipment parameter meets the third preset condition, determines the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment.
In a specific example, if the first preset condition is that the device parameter stored in the first register address interval 1008 to 1015 is equal to the string 'Solar', 'the third register address interval is the registers 1200 to 1207, the third preset condition may be that the device parameter stored in the third register address interval 1200 to 1207 is equal to the string' Battery ',' the preset information corresponding to the third device parameter is 'BA 02'. Fig. 4 is a flowchart of another implementation of the device rule according to the first embodiment of the present application, as shown in fig. 4, if the parameters stored in the first register address intervals 1008 to 1015 are not equal to the character string 'Solar', it is indicated that the first device currently connected to the gateway device is not a photovoltaic panel, and the processor needs to continuously determine whether the first device is a battery device according to the determination conditions configured in the device identification rule. Therefore, the processor continues to read the device parameters stored in the third register address sections 1200 to 1207 of the first device according to the device identification rule, determines whether the device parameters stored in the third register address sections 1200 to 1207 are equal to the character string "Battery", and if so, broadcasts "BA02", and determines "BA02" as the information content of the device information characterizing the first device.
Or as another optional implementation manner, in response to the third device parameter meeting a third preset condition, continuing to obtain a fourth register address interval of the first device and a fourth device parameter corresponding to the fourth register address interval according to the device identification rule; and in response to the fourth equipment parameter meeting a fourth preset condition, determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment. The method comprises the following steps: if the first equipment parameter does not meet the first preset condition, the processor continues to acquire a third register address interval of the first equipment and a third equipment parameter corresponding to the third register address interval according to the equipment identification rule, judges whether the third equipment parameter meets the third preset condition, if the third equipment parameter meets the third preset condition, the processor continues to acquire a fourth register address interval of the first equipment and a fourth equipment parameter corresponding to the fourth register address interval according to the equipment identification rule, and if the fourth equipment parameter meets the fourth preset condition, the processor determines the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment.
In a specific example, if the first preset condition is that the device parameter stored in the first register address interval 1008-1015 is equal to the character string 'Solar', 'third register address interval is the registers 1200-1207, the third preset condition may be that the device parameter stored in the third register address interval 1200-1207 is equal to the character string' Battery ',' fourth register address interval is the registers 1208-1209, the fourth preset condition may be that the device parameter stored in the fourth register address interval 1208-1209 is greater than '2', 'BA 02', and the preset information corresponding to the third device parameter is "BA02". Fig. 5 is a flowchart of another implementation of the device rule in the first embodiment of the present application, as shown in fig. 5, if the parameters stored in the first register address intervals 1008 to 1015 are not equal to the character string 'Solar', the processor continues to read the device parameters stored in the third register address intervals 1200 to 1207 of the first device according to the device identification rule, determines whether the device parameters stored in the third register address intervals 1200 to 1207 are equal to the character string "Battery", if equal to the character string "Battery", the processor continues to read the device parameters stored in the fourth register address intervals 1208 to 1209 of the first device according to the device identification rule, determines whether the device parameters stored in the fourth register address intervals 1208 to 1209 are greater than 2, and if greater than 2, broadcasts "BA02", and determines "BA02" as the information content of the device information characterizing the first device.
Optionally, the first preset condition includes: a first operator and a first condition value; the second preset condition includes: a second operator and a second condition value; the third preset condition includes: a third operator and a third condition value; the fourth preset condition includes: a fourth operator and a fourth condition value.
The condition value may be a fixed value, a character string, or a preset value in a certain Modbus register. For example, the preset condition may be that "the parameter stored in the fourth register address interval 1208-1209 is greater than '2'", where "greater than" is an operator, and "2" is a condition value.
Further, the processor in this embodiment is further configured to determine the information content for characterizing the recognition failure when the information content for characterizing the device information of the first device is not determined according to the device recognition rule.
Specifically, when the gateway device fails to recognize the device information of the first device after traversing the recognition conditions configured in all the recognition rules, it indicates that the device information of the first device is not preconfigured in the recognition rules or the first device belongs to a non-authentication device, so that the processor determines information content for representing recognition failure and broadcasts the information content through the bluetooth MESH module, so that a user can be reminded of abnormality of the first device currently connected with the gateway device when scanning the gateway device through the second device, and accordingly the user can check the first device correspondingly or configure a new device recognition rule through the second device.
As an alternative embodiment, the memory is further configured to store a device polling rule;
the processor is further configured to obtain target data for the first device according to the device polling rules;
the bluetooth MESH module is configured to transmit the target data to cause the second device to display the target data after receiving the target data.
The device polling rule may be a polling rule set by the system, or may be a polling rule customized by the user through the second device. It should be noted that, each rule of the device polling rules is executed independently, and is not affected; each rule can be expressed as: polling interval + data reporting mode.
The processor may acquire target data of the first device according to a device polling rule, where the target data may be state information of the first device, or may be an operating parameter of the first device.
The Bluetooth MESH module sends the target data to the second device, and the second device can display the target data after receiving the target data. For example, the gateway device may actively acquire the target data of the first device according to the device polling rule, where the target data of the first device may include a device state (such as a state of device opening, device closing, device abnormality, etc.) and/or a device parameter (such as a voltage, current, power, etc.), and integrate the target data of the first device into a data packet, where the bluetooth MESH module sends the target data to the second device through broadcasting, and the second device may display the target data after receiving the target data, so as to implement monitoring of the first device by the second device.
In a specific application scenario, fig. 6 is a schematic diagram of acquiring device information in the first embodiment of the present application, and as shown in fig. 6, the first device may be an energy device, and the second device may be a monitoring device. In fig. 6, a user self-defines a device identification rule and a device polling rule through a monitoring device (the step can be omitted, and the device identification rule and the device polling rule preset by a gateway device are directly utilized), the gateway device reads information content of device information for representing the energy device according to the device identification rule, and the monitoring device can directly acquire the device information of the energy device currently connected with the gateway device when scanning the gateway device; after the communication link is established with the monitoring device, the gateway device can also acquire target data of the energy device according to the device polling rule, and after the target data is acquired, the gateway device sends the target data to the monitoring device, and the monitoring device displays the target data after receiving the target data. Based on the technical scheme, the wireless connection and remote monitoring of the monitoring equipment to the energy equipment can be realized by utilizing the gateway equipment under the condition that the existing energy equipment only supports a serial communication mode.
In this embodiment, the second device does not need to initiate device polling, but the gateway device obtains the target data of the first device according to the polling rule of the storage device in the memory, and then the bluetooth MESH module sends the target data to the second device. In the embodiment, the polling energy consumption of the second device and the gateway device can be effectively reduced, meanwhile, the gateway device can allow the serial communication interface side to poll at high frequency, when a certain condition is met, the gateway device can automatically filter unnecessary message forwarding through Bluetooth forwarding, the data volume sent by a Bluetooth channel is reduced, and the real-time performance of data updating is improved; meanwhile, rules can be dynamically configured through different devices or different application scenes, so that application requirements can be better met.
Optionally, the device polling rule includes a polling time interval and a data reporting mode, and the processor is further configured to obtain target data of the first device according to the device polling rule, including:
the processor is configured to acquire the data parameters of the first device according to the polling time interval, and process the acquired data parameters of the first device according to the data reporting mode to generate a data packet.
The polling time interval may be adjusted according to practical situations, for example, the first device is polled sequentially every 1000ms, 2000ms, 3000ms … … 100000 ms. The data reporting mode may be any one of all reporting, changing reporting, overrun reporting and statistical reporting modes, or may be other modes. It should be noted that, the polling time interval and the reporting mode may be freely combined by the user according to the actual requirement and then configured in the gateway device. The data parameter of the first device may be related data information generated by the first device, for example, the data parameter may include: device status and/or operational data in a register of the device.
Specifically, if the reporting mode is all reporting, reading target data corresponding to the address interval of the first register to be reported according to the polling time interval; if the reporting mode is overrun reporting, reading original data corresponding to a second register address interval to be reported according to a polling time interval, and if the original data is out of a preset range, determining the original data as target data; if the reporting mode is changed reporting, reading original data corresponding to a third register address interval to be reported according to a polling time interval, and if the original data is different from the data read by the previous polling, determining the original data as target data; and if the reporting mode is statistical reporting, reading the original data corresponding to the address interval of the fourth register to be reported according to the polling time interval, and determining target data according to the original data read by polling each time in a preset time period.
In one specific example, the device polling rules may be as shown in table 2:
TABLE 2
Figure BDA0004020170440000121
Figure BDA0004020170440000131
It should be noted that, table 2 only shows some possible polling rules, but the present application is not limited thereto, and the polling interval and the reporting mode may be freely configured according to actual needs, and balance between monitoring power consumption and monitoring real-time performance to meet the needs of the user.
Optionally, the processing the acquired data parameters of the first device according to the data reporting mode to generate a data packet includes at least one of the following:
mapping the acquired data parameters of the first device into the data packet;
if the acquired data parameters of the first device exceed a preset range, mapping the data parameters into the data packets;
if the currently acquired data parameters of the first device are different from the previously acquired data parameters of the first device, mapping the currently acquired data parameters of the first device into the data packet;
and generating a data packet according to the data parameters of the first equipment acquired in the preset time.
The mapping of the data parameter to the data packet may be: and packaging the data parameters according to a certain format to generate a data packet. For example, the maximum value, the minimum value, the average value or the variance value may be taken, and the maximum value, the minimum value, the average value or the variance value is mapped into the data packet.
The preset range may be a data range preset according to actual situations. The preset time can be preset according to actual conditions.
Specifically, the mapping the acquired data parameter of the first device to the data packet may be: when the reporting mode is all reporting, reading the data parameters of the first equipment according to the polling interval, setting a mapping mode, and packaging the acquired data parameters of the first equipment into a data packet.
Specifically, if the acquired data parameter of the first device exceeds a preset range, the mapping the data parameter to the data packet may be: when the reporting mode is overrun reporting, if the acquired data parameters of the first device exceed a preset range, setting a mapping mode, and packaging the data parameters into data packets according to the set mapping mode.
Specifically, if the currently acquired data parameter of the first device is different from the previously acquired data parameter of the first device, the mapping the currently acquired data parameter of the first device to the data packet may be: when the reporting mode is changed reporting, if the acquired data parameters of the first device are different from the data parameters of the first device acquired in the previous time, setting a mapping mode, and packaging the data parameters into a data packet according to the set mapping mode.
Specifically, the manner of generating the data packet according to the data parameter of the first device acquired in the preset time may be: and acquiring the data parameters of the first equipment within the preset time, and mapping any one of the average value, the variance, the maximum value and the minimum value of the data parameters of the first equipment within the preset time into a data packet.
According to the technical scheme of the embodiment, by establishing a gateway device for acquiring device information, the gateway device comprises: a memory configured to store device identification rules; a serial communication interface configured to establish a communication connection with a first device; a processor configured to determine information content of device information characterizing the first device according to the device identification rules; the Bluetooth MESH module is configured to broadcast the information content, so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment, the second equipment can directly acquire the equipment information of the first equipment connected with the gateway equipment through the second equipment scanning the gateway equipment, the equipment information of the first equipment connected with the gateway equipment does not need to be acquired through polling after the connection is established with the gateway equipment, the user can accurately identify and connect the first equipment which is expected to be connected when connecting the gateway equipment, and the use experience of the user is improved.
Example two
Fig. 7 is a flowchart of a method for acquiring device information in the second embodiment of the present application. The present embodiment may be applied to a case of acquiring device information, where the method is performed by the gateway device for acquiring device information in the embodiment of the present application, as shown in fig. 7, and the method for acquiring device information specifically includes:
s210, establishing communication connection with the first device through a serial communication interface.
Specifically, the manner of establishing a communication connection with the first device through the serial communication interface may be: the gateway device is connected to the communication interface of the first device via a serial communication interface. After the first device establishes a communication connection with the gateway device, the gateway device may acquire information content of device information characterizing the first device, or may acquire device parameters of the first device.
S220 of determining information content of device information characterizing the first device according to the device identification rule.
Specifically, the manner of determining the information content of the device information for characterizing the first device according to the device identification rule may be: the method comprises the steps that a user self-defines a device identification rule in second device, gateway device obtains a first register address interval and a first device parameter corresponding to the first register address interval according to the device identification rule, and if the first device parameter corresponding to the first register address interval accords with a preset condition in the device identification rule, the first device parameter or preset information corresponding to the first device parameter is determined to be information content of device information used for representing the first device.
The device identification rule is the same as that in the above embodiment, and will not be described in detail herein.
Optionally, determining the information content of the device information for characterizing the first device according to the device identification rule includes:
acquiring a first register address interval of the first device and a first device parameter corresponding to the first register address interval according to the device identification rule;
if the first equipment parameter meets a first preset condition, determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment; or alternatively, the process may be performed,
if the first equipment parameter meets a first preset condition, continuing to acquire a second register address interval of the first equipment and a second equipment parameter corresponding to the second register address interval according to the equipment identification rule;
and if the second equipment parameter meets a second preset condition, determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment.
Optionally, acquiring a first register address interval of the first device includes:
Acquiring a first register address and a first word length of the first device;
and determining a first register address interval of the first device according to the first register address of the first device and the first word length.
Optionally, determining the information content of the device information for characterizing the first device according to the device identification rule includes:
if the first equipment parameter does not accord with a first preset condition, acquiring a third register address interval of the first equipment and a third equipment parameter corresponding to the third register address interval according to the equipment identification rule;
if the third equipment parameter meets a third preset condition, determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment; or alternatively, the process may be performed,
if the third equipment parameter meets a third preset condition, continuously acquiring a fourth register address interval of the first equipment and fourth equipment parameters corresponding to the fourth register address interval according to the equipment identification rule;
and if the fourth equipment parameter meets a fourth preset condition, determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment.
Optionally, the first preset condition includes: a first operator and a first condition value; the second preset condition includes: a second operator and a second condition value; the third preset condition includes: a third operator and a third condition value; the fourth preset condition includes: a fourth operator and a fourth condition value.
And S230, broadcasting the information content to enable the second device to acquire the device information of the first device when scanning the gateway device.
Specifically, the broadcasting the information content, so that the second device may acquire the device information of the first device when scanning the gateway device may be: the Bluetooth MESH module broadcasts information content after receiving the information content of the device information for representing the first device, and the second device can acquire the information content of the device information for representing the first device when scanning the gateway device.
Optionally, the method further comprises:
acquiring a device polling rule;
acquiring target data of the first device according to the device polling rule;
and transmitting the target data so that the second device displays the target data after receiving the target data.
Optionally, the device polling rule includes: a polling time interval and a data reporting mode;
The obtaining the target data of the first device according to the device polling rule comprises the following steps:
and acquiring the data parameters of the first equipment according to the polling time interval, and processing the acquired data parameters of the first equipment according to the data reporting mode to generate a data packet.
Optionally, processing the acquired data parameters of the first device according to the data reporting mode to generate a data packet, including at least one of the following:
mapping the acquired data parameters of the first device into the data packet;
if the acquired data parameters of the first device exceed a preset range, mapping the data parameters into the data packets;
if the currently acquired data parameters of the first device are different from the previously acquired data parameters of the first device, mapping the currently acquired data parameters of the first device into the data packet;
generating a data packet according to a plurality of data parameters of the first equipment, which are acquired in a preset time.
According to the technical scheme, communication connection is established with first equipment through a serial communication interface; determining information content of device information for characterizing the first device according to a device identification rule; the information content is broadcasted, so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment, the second equipment can directly scan the gateway equipment to acquire the equipment information of the first equipment connected with the gateway equipment, after connection is established with the gateway equipment, the equipment information of the first equipment connected with the gateway equipment is acquired through polling, and the user can accurately identify and connect the first equipment which is expected to be connected when connecting the gateway equipment, so that the use experience of the user is improved.
It should be noted that, the present embodiment is an execution method corresponding to the foregoing embodiment, and specific processes are consistent with those described in the foregoing embodiment, which is not repeated herein.
Example III
Fig. 8 is a schematic structural diagram of an apparatus for acquiring device information in the third embodiment of the present application. As shown in fig. 8, the apparatus for acquiring device information specifically includes: a communication connection establishment module 310, an information content determination module 320, and a broadcast module 330.
Wherein, the communication connection establishment module 310 is configured to establish a communication connection with the first device through the serial communication interface;
an information content determining module 320, configured to determine information content of device information for characterizing the first device according to a device identification rule;
and a broadcasting module 330, configured to broadcast the information content, so that the second device obtains the device information of the first device when scanning the gateway device.
The product can execute the method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 9 is a schematic structural diagram of an apparatus information monitoring system in a fourth embodiment of the present application. The present embodiment is applicable to a case of acquiring device information, as shown in fig. 9, the device information monitoring system 400 includes: a first device 410, a gateway device 420, and a second device 430;
Wherein gateway device 420 comprises: a serial communication interface 421 and a bluetooth MESH module 422;
wherein the gateway device 420 communicates with the first device 410 through the serial communication interface 421, and the gateway device 420 communicates with the second device 430 through the bluetooth MESH module 422.
The gateway device communicates with the first device through a serial communication interface, that is, the gateway device can obtain device information representing the first device through the serial communication interface, and the device information of the first device can be sent to the gateway device through the serial communication interface. The gateway device and the second device communicate through the Bluetooth MESH module, namely, the gateway device can send the acquired device information of the first device to the second device through the Bluetooth MESH module, so that the second device can directly acquire the device information of the first device when scanning the gateway device.
Specifically, the user can customize a device identification rule and a device polling rule in the second device, the gateway device reads the device information of the first device according to the device identification rule through the serial communication interface, and the second device scans the gateway device through the Bluetooth MESH module to obtain the device information of the first device; the gateway device can also acquire the target data of the first device according to the device polling rule set in the second device by the user, the gateway device sends the acquired target data of the first device to the second device through the Bluetooth MESH module, and the second device can display the target data after receiving the target data.
According to the technical scheme, the equipment information monitoring system is established, equipment information of the first equipment connected with the gateway equipment can be directly obtained through the second equipment scanning gateway equipment, the equipment information of the first equipment connected with the gateway equipment is not required to be obtained through polling after the connection is established with the gateway equipment, a user can conveniently and accurately identify and connect the first equipment which is required to be connected when the user is connected with the gateway equipment, and the use experience of the user is improved.
It should be noted that, in this embodiment, the monitoring system corresponds to the foregoing embodiment, and the specific process is the same as that described in the foregoing embodiment, which is not repeated herein.
Example five
Fig. 10 is a schematic structural diagram of an electronic device in a fifth embodiment of the present application. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 10, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, a method of acquiring device information.
In some embodiments, the method of obtaining device information may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of the method of obtaining device information described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of obtaining device information in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 (EPROM or 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.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In this application, the same or similar term concept, technical solution, and/or application scenario description will generally be described in detail only when first appearing, and when repeated later, for brevity, will not generally be repeated, and when understanding the content of the technical solution of the present application, etc., reference may be made to the previous related detailed description thereof for the same or similar term concept, technical solution, and/or application scenario description, etc., which are not described in detail later.
In this application, the descriptions of the embodiments are focused on, and the details or descriptions of one embodiment may be found in the related descriptions of other embodiments.
The technical features of the technical solutions of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the above embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the present application.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising several instructions for causing a terminal device (which may be a consumer or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. A gateway device for obtaining device information, the gateway device comprising:
a memory configured to store device identification rules;
a serial communication interface configured to establish a communication connection with a first device;
a processor configured to determine information content of device information characterizing the first device according to the device identification rules;
and the Bluetooth MESH module is configured to broadcast the information content so that the second equipment can acquire the equipment information of the first equipment when scanning the gateway equipment.
2. The gateway device of claim 1, wherein the processor is configured to determine information content of device information characterizing the first device according to the device identification rule, comprising:
The processor is configured to obtain a first register address interval of the first device and a first device parameter corresponding to the first register address interval according to the device identification rule;
determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment in response to the first equipment parameter meeting a first preset condition; or alternatively, the process may be performed,
responding to the first equipment parameter meeting a first preset condition, and continuously acquiring a second register address interval of the first equipment and a second equipment parameter corresponding to the second register address interval according to the equipment identification rule;
and in response to the second equipment parameter meeting a second preset condition, determining the first equipment parameter or preset information corresponding to the first equipment parameter as information content of equipment information for representing the first equipment.
3. The gateway device of claim 2, wherein obtaining a first register address interval for the first device comprises:
acquiring a first register address and a first word length of the first device;
And determining a first register address interval of the first device according to the first register address of the first device and the first word length.
4. The gateway device of claim 2, wherein the processor is further configured to:
responding to the first equipment parameter not conforming to the first preset condition, and acquiring a third register address interval of the equipment and a third equipment parameter corresponding to the third register address interval according to the equipment identification rule;
determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment in response to the third equipment parameter meeting a third preset condition; or alternatively, the process may be performed,
responding to the third equipment parameter meeting a third preset condition, and continuously acquiring a fourth register address interval of the first equipment and fourth equipment parameters corresponding to the fourth register address interval according to the equipment identification rule;
and in response to the fourth equipment parameter meeting a fourth preset condition, determining the third equipment parameter or preset information corresponding to the third equipment parameter as information content of equipment information for representing the first equipment.
5. The gateway device of claim 4, wherein the first preset condition comprises: a first operator and a first condition value; the second preset condition includes: a second operator and a second condition value; the third preset condition includes: a third operator and a third condition value; the fourth preset condition includes: a fourth operator and a fourth condition value.
6. The gateway device of claim 1, wherein the memory is further configured to store device polling rules;
the processor is further configured to obtain target data for the first device according to the device polling rules;
the bluetooth MESH module is configured to transmit the target data to cause the second device to display the target data after receiving the target data.
7. The gateway device of claim 6, wherein the device polling rule comprises a polling time interval and a data reporting mode, the processor further configured to obtain target data for the first device according to the device polling rule, comprising:
the processor is configured to acquire the data parameters of the first device according to the polling time interval, and process the acquired data parameters of the first device according to the data reporting mode to generate a data packet.
8. The gateway device of claim 7, wherein the processing the acquired data parameters of the first device according to the data reporting mode to generate a data packet includes at least one of:
mapping the acquired data parameters of the first device into the data packet;
if the acquired data parameters of the first device exceed a preset range, mapping the data parameters into the data packets;
if the currently acquired data parameters of the first device are different from the previously acquired data parameters of the first device, mapping the currently acquired data parameters of the first device into the data packet;
and generating a data packet according to the data parameters of the first equipment acquired in the preset time.
9. A method of obtaining device information, performed by a gateway device, comprising:
establishing a communication connection with a first device through a serial communication interface;
determining information content of device information for characterizing the first device according to a device identification rule;
and broadcasting the information content to enable the second device to acquire the device information of the first device when scanning the gateway device.
10. A device information monitoring system, comprising: a first device, a second device and a gateway device according to any of claims 1-8, the gateway device being in communication with the first device via the serial communication interface, the gateway device being in communication with the second device via the bluetooth MESH module.
CN202211687884.3A 2022-12-27 2022-12-27 Gateway equipment, method and system for acquiring equipment information Active CN116017412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211687884.3A CN116017412B (en) 2022-12-27 2022-12-27 Gateway equipment, method and system for acquiring equipment information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211687884.3A CN116017412B (en) 2022-12-27 2022-12-27 Gateway equipment, method and system for acquiring equipment information

Publications (2)

Publication Number Publication Date
CN116017412A true CN116017412A (en) 2023-04-25
CN116017412B CN116017412B (en) 2024-04-16

Family

ID=86035044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211687884.3A Active CN116017412B (en) 2022-12-27 2022-12-27 Gateway equipment, method and system for acquiring equipment information

Country Status (1)

Country Link
CN (1) CN116017412B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684530A (en) * 2004-04-16 2005-10-19 捷讯研究有限公司 Method and apparatus for dynamic group address creation
US20090083589A1 (en) * 2007-09-20 2009-03-26 Siemens Energy & Automation, Inc. Systems, devices, and/or methods for managing communications
CN104104414A (en) * 2014-06-18 2014-10-15 深圳市警豹电子科技有限公司 Communication method for multiple bluetooth devices and forwarding method for bluetooth device matching information
CN105159112A (en) * 2015-04-10 2015-12-16 小米科技有限责任公司 Environmental parameter processing method and device and network equipment
CN106330768A (en) * 2016-08-31 2017-01-11 成都飞鱼星科技股份有限公司 Application identification method based on cloud computing
CN107079271A (en) * 2014-09-19 2017-08-18 华为技术有限公司 For content to be broadcast to the method and system of smart machine using dedicated gateway box
CN107977562A (en) * 2017-11-30 2018-05-01 努比亚技术有限公司 Personal identification method, identification terminal and storage medium
CN108141449A (en) * 2015-08-05 2018-06-08 脸谱公司 Control device cloud
CN109089250A (en) * 2018-09-05 2018-12-25 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on Scheduling of Gateway
CN109151786A (en) * 2018-09-05 2019-01-04 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on Scheduling of Gateway connection
CN110213212A (en) * 2018-05-24 2019-09-06 腾讯科技(深圳)有限公司 A kind of classification method and device of equipment
CN110730440A (en) * 2019-09-03 2020-01-24 深圳市昇润科技有限公司 Bluetooth networking system
CN111683359A (en) * 2019-06-28 2020-09-18 阿里巴巴集团控股有限公司 BLE communication method, device, equipment and storage medium
CN112105009A (en) * 2020-09-02 2020-12-18 中移(杭州)信息技术有限公司 Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium
CN113260072A (en) * 2021-05-10 2021-08-13 中国电信股份有限公司 Mesh networking traffic scheduling method, gateway equipment and storage medium
CN113328985A (en) * 2021-04-07 2021-08-31 西安交通大学 Passive Internet of things equipment identification method, system, medium and equipment
CN113422703A (en) * 2020-09-23 2021-09-21 阿里巴巴集团控股有限公司 Internet of things event processing method and device, intelligent gateway and electronic equipment
WO2021225964A1 (en) * 2020-05-08 2021-11-11 Qualcomm Incorporated Time drift information associated with timing group delays
CN113645603A (en) * 2021-09-14 2021-11-12 四川长虹网络科技有限责任公司 BLE Bluetooth gateway communication method, system and computer equipment
CN115474257A (en) * 2022-08-30 2022-12-13 海尔优家智能科技(北京)有限公司 Method and device for accessing Mesh network
CN115484131A (en) * 2022-08-31 2022-12-16 江苏奥立信数字科技有限公司 Internet of things gateway and equipment data storage system for same

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684530A (en) * 2004-04-16 2005-10-19 捷讯研究有限公司 Method and apparatus for dynamic group address creation
US20090083589A1 (en) * 2007-09-20 2009-03-26 Siemens Energy & Automation, Inc. Systems, devices, and/or methods for managing communications
CN104104414A (en) * 2014-06-18 2014-10-15 深圳市警豹电子科技有限公司 Communication method for multiple bluetooth devices and forwarding method for bluetooth device matching information
CN107079271A (en) * 2014-09-19 2017-08-18 华为技术有限公司 For content to be broadcast to the method and system of smart machine using dedicated gateway box
CN105159112A (en) * 2015-04-10 2015-12-16 小米科技有限责任公司 Environmental parameter processing method and device and network equipment
CN108141449A (en) * 2015-08-05 2018-06-08 脸谱公司 Control device cloud
CN106330768A (en) * 2016-08-31 2017-01-11 成都飞鱼星科技股份有限公司 Application identification method based on cloud computing
CN107977562A (en) * 2017-11-30 2018-05-01 努比亚技术有限公司 Personal identification method, identification terminal and storage medium
CN110213212A (en) * 2018-05-24 2019-09-06 腾讯科技(深圳)有限公司 A kind of classification method and device of equipment
CN109151786A (en) * 2018-09-05 2019-01-04 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on Scheduling of Gateway connection
CN109089250A (en) * 2018-09-05 2018-12-25 北京字节跳动网络技术有限公司 Bluetooth communication method and device based on Scheduling of Gateway
CN111683359A (en) * 2019-06-28 2020-09-18 阿里巴巴集团控股有限公司 BLE communication method, device, equipment and storage medium
CN110730440A (en) * 2019-09-03 2020-01-24 深圳市昇润科技有限公司 Bluetooth networking system
WO2021225964A1 (en) * 2020-05-08 2021-11-11 Qualcomm Incorporated Time drift information associated with timing group delays
CN112105009A (en) * 2020-09-02 2020-12-18 中移(杭州)信息技术有限公司 Device discovery and Bluetooth broadcasting method, device, electronic device and storage medium
CN113422703A (en) * 2020-09-23 2021-09-21 阿里巴巴集团控股有限公司 Internet of things event processing method and device, intelligent gateway and electronic equipment
CN113328985A (en) * 2021-04-07 2021-08-31 西安交通大学 Passive Internet of things equipment identification method, system, medium and equipment
CN113260072A (en) * 2021-05-10 2021-08-13 中国电信股份有限公司 Mesh networking traffic scheduling method, gateway equipment and storage medium
CN113645603A (en) * 2021-09-14 2021-11-12 四川长虹网络科技有限责任公司 BLE Bluetooth gateway communication method, system and computer equipment
CN115474257A (en) * 2022-08-30 2022-12-13 海尔优家智能科技(北京)有限公司 Method and device for accessing Mesh network
CN115484131A (en) * 2022-08-31 2022-12-16 江苏奥立信数字科技有限公司 Internet of things gateway and equipment data storage system for same

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Z. NAKUTIS; V. DEKSNYS; I. JARUEVICIUS; E. MARCINKEVICIUS; A. RONKAINEN; P. SOUMI; J. NIKANDER; T. BLASZCZYK; B. ANDERSEN: ""Remote Agriculture Automation Using Wireless Link and IoT Gateway Infrastructure"", 《2015 26TH INTERNATIONAL WORKSHOP ON DATABASE AND EXPERT SYSTEMS APPLICATIONS (DEXA)》, 15 February 2016 (2016-02-15) *
邹宇驰;刘松;于楠;朱红松;孙利民: ""基于搜索的物联网设备识别框架"", 《信息安全学报》, 15 July 2018 (2018-07-15) *

Also Published As

Publication number Publication date
CN116017412B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN110933146A (en) Data conversion method and device and server
CN112953774A (en) Network topology generation method, system, equipment and computer storage medium
CN107465609B (en) Terminal routing method based on Internet of things and Internet of things terminal
CN113179509B (en) Ad hoc network method and device based on WiFi, storage medium and wireless node
CN112615726B (en) Low-power-consumption processing method and device with variable wake-up time
CN112637887B (en) IPRAN equipment inspection method, device, equipment, medium and product
CN116017412B (en) Gateway equipment, method and system for acquiring equipment information
CN113452576A (en) Network environment monitoring method and device, storage medium and electronic device
CN113938351A (en) Data acquisition method, system and computer readable storage medium
CN111315026B (en) Channel selection method, device, gateway and computer readable storage medium
CN107548019B (en) Method and device for processing network beacon in wireless sensor network
CN107404404B (en) Terminal routing method based on Internet of things and Internet of things terminal
CN110708370A (en) Data processing method and terminal
CN112968783B (en) Low-power-consumption processing method and device based on transmitted data
CN112383386B (en) Data transmission method, device, computer equipment and computer readable storage medium
CN112788592B (en) Data transmission processing method for adding wake-up time
CN111901561B (en) Video data processing method, device and system in monitoring system and storage medium
CN114553626A (en) Equipment state query method, query device, electronic equipment and storage medium
CN113452582A (en) Data transmission method, equipment, system and medium based on automatic analysis
CN117692331B (en) CPE system based on optimal network selection and network configuration method
CN114510299A (en) Method, device and storage medium for processing artificial intelligence service
CN113115268B (en) Method and device for obtaining maximum throughput of Internet of vehicles based on multiple road side units
CN112165465B (en) Data processing method and device for outgoing third-party platform and electronic device
CN114495906A (en) Method and device for determining equipment to be accessed and storage medium
CN207442855U (en) A kind of intelligent radio power utilization monitoring device

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