CN-122027509-A - Industrial equipment monitoring method and device, storage medium and electronic equipment
Abstract
The invention discloses an industrial equipment monitoring method and device, a storage medium and electronic equipment. The method comprises the steps of identifying a plurality of industrial equipment through Bluetooth scanning, determining communication agency instances corresponding to the industrial equipment, wherein the communication agency instances are logic units packaged with behavior state information related to the corresponding industrial equipment, receiving operation data corresponding to the industrial equipment based on the communication agency instances corresponding to the industrial equipment, performing user interface rendering based on the operation data corresponding to the industrial equipment, and displaying monitoring results corresponding to the industrial equipment on a user interface of a mobile terminal. The invention solves the technical problem of unstable communication caused by mutual interference of data streams and resource competition in the multi-device Bluetooth communication scene in the industrial field.
Inventors
- WANG HUI
- Zhang Qinmi
Assignees
- 济南邦德激光股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260206
Claims (11)
- 1. An industrial equipment monitoring method, characterized by being applied to a mobile terminal, comprising: Identifying a plurality of industrial devices by bluetooth scanning; determining a communication proxy instance corresponding to each of the plurality of industrial devices, wherein the communication proxy instance is a logic unit packaged with behavior state information related to the corresponding industrial device; receiving operation data corresponding to each of the plurality of industrial devices based on the communication agent instance corresponding to each of the plurality of industrial devices; and rendering a user interface based on the operation data corresponding to each of the plurality of industrial devices, and displaying the monitoring results corresponding to each of the plurality of industrial devices on the user interface of the mobile terminal.
- 2. The method of claim 1, wherein the determining the communication agent instance to which each of the plurality of industrial devices corresponds comprises: Based on the equipment information corresponding to each of the plurality of industrial equipment, matching communication protocol parameters corresponding to each of the plurality of industrial equipment from a protocol feature library, wherein the protocol feature library is pre-stored with the corresponding relations between a plurality of different pieces of equipment information and the communication protocol parameters; and obtaining communication proxy instances corresponding to the plurality of industrial devices based on the communication protocol parameters corresponding to the plurality of industrial devices.
- 3. The method according to claim 2, wherein the obtaining, based on the communication protocol parameters corresponding to each of the plurality of industrial devices, a communication proxy instance corresponding to each of the plurality of industrial devices includes: Transmitting a connection request to the plurality of industrial devices according to the connection priority levels corresponding to the plurality of industrial devices based on the communication protocol parameters corresponding to the plurality of industrial devices; and under the condition that response results returned by the plurality of industrial devices respectively indicate that the connection is successful, obtaining communication proxy instances corresponding to the plurality of industrial devices respectively based on the communication protocol parameters corresponding to the plurality of industrial devices respectively, wherein the response results are returned for the connection request.
- 4. The method of claim 3, wherein prior to said sending a connection request to said plurality of industrial devices according to their respective connection priorities based on their respective communication protocol parameters, said method further comprises: determining a communication protocol type, an energy consumption characteristic and a data transmission rate of any industrial equipment, and weight values corresponding to the communication protocol type, the energy consumption characteristic and the data transmission rate; performing weighted summation operation based on the communication protocol type, the energy consumption characteristic and the data transmission rate of any industrial equipment and the weight value corresponding to each of the communication protocol type, the energy consumption characteristic and the data transmission rate of any industrial equipment to obtain priority scores of any industrial equipment; Obtaining the priority scores corresponding to the industrial equipment by adopting a mode of obtaining the priority score of any industrial equipment; and obtaining the connection priority corresponding to each of the plurality of industrial devices based on the priority scores corresponding to each of the plurality of industrial devices.
- 5. The method of claim 1, wherein the receiving operational data for each of the plurality of industrial devices based on the respective communication agent instances for each of the plurality of industrial devices comprises: Generating data requests corresponding to the plurality of industrial devices according to a preset frequency strategy, wherein the preset frequency strategy comprises generating a first request according to a first frequency and generating a second request according to a second frequency, the first frequency is larger than the second frequency, the first request is used for requesting data with real-time requirements larger than a preset requirement threshold, and the second request is used for requesting data with real-time requirements smaller than or equal to the preset requirement threshold; Based on the communication agent examples corresponding to the industrial equipment, sending the data requests corresponding to the industrial equipment to the corresponding industrial equipment according to the data request priorities corresponding to the industrial equipment, and receiving operation data returned by the industrial equipment based on the corresponding data requests.
- 6. The method of claim 5, wherein generating the data requests for each of the plurality of industrial devices according to a predetermined frequency policy comprises: Responding to the parameter configuration operation of the parameter setting interface on the user interface to obtain parameter configuration information of the plurality of industrial devices; detecting whether a confirmation control is triggered for the first time within a first time period after the parameter configuration operation is finished; Detecting whether the confirmation control is triggered for the second time in the second time after the first time under the condition that the confirmation control is triggered for the first time in the first time; detecting whether the parameter configuration information meets a preset parameter rule or not under the condition that the confirmation control is triggered for the second time within the second time; And generating data requests corresponding to the plurality of industrial devices according to the preset frequency strategy based on the parameter configuration information under the condition that the parameter configuration information meets the preset parameter rule.
- 7. The method according to any one of claims 1 to 6, wherein the performing user interface rendering based on the operation data corresponding to each of the plurality of industrial devices, and displaying the monitoring results corresponding to each of the plurality of industrial devices on the user interface of the mobile terminal, includes: Extracting device monitoring values corresponding to the plurality of industrial devices from the operation data corresponding to the industrial devices; Obtaining target data fields corresponding to the plurality of industrial devices by adopting a device data model based on device monitoring values corresponding to the plurality of industrial devices, wherein the device data model is predefined with a data field structure matched with communication agent examples corresponding to the plurality of industrial devices; And at the beginning time of the rendering period, rendering a user interface based on the target data fields corresponding to the plurality of industrial devices, and displaying the monitoring results corresponding to the plurality of industrial devices on the user interface.
- 8. An industrial equipment monitoring device, characterized by being applied to a mobile terminal, the device comprising: The Bluetooth scanning module is used for identifying a plurality of industrial devices through Bluetooth scanning; An instance determining module, configured to determine communication agent instances corresponding to the plurality of industrial devices, where the communication agent instances are logic units that encapsulate behavior state information related to the corresponding industrial devices; the data receiving module is used for receiving the operation data corresponding to each of the plurality of industrial equipment based on the communication agent examples corresponding to each of the plurality of industrial equipment; And the interface rendering module is used for performing user interface rendering based on the operation data corresponding to each of the plurality of industrial equipment, and displaying the monitoring results corresponding to each of the plurality of industrial equipment on the user interface of the mobile terminal.
- 9. A non-volatile storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the industrial device monitoring method of any one of claims 1 to 7.
- 10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the industrial device monitoring method of any of claims 1-7.
- 11. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the industrial equipment monitoring method of any one of claims 1 to 7.
Description
Industrial equipment monitoring method and device, storage medium and electronic equipment Technical Field The invention relates to the technical field of industrial Internet of things, in particular to an industrial equipment monitoring method and device, a storage medium and electronic equipment. Background In the field of modern industry, especially in the intelligent upgrade process of manufacturing industry, the importance of equipment monitoring and data acquisition is increasingly highlighted. Industrial monitoring systems in the related art often rely on fixed network infrastructure, such as ethernet or wired connections, which limits to some extent their flexibility and response speed, especially when rapid deployment or handling of bursty conditions is required. With the development of wireless communication technology, especially the wide application of bluetooth technology in industrial equipment, more and more industrial equipment performs data interaction with mobile terminals (such as smartphones and tablet computers) through bluetooth, so as to realize remote monitoring, maintenance and debugging. However, in the industrial field multi-device bluetooth communication scenario, reliability and stability of data face serious challenges. First, due to the complexity of the industrial environment, including electromagnetic interference, signal attenuation, etc., the stability of a single bluetooth connection is difficult to ensure, let alone the simultaneous communication between multiple devices. Second, when a plurality of devices are simultaneously connected to the same mobile terminal, the problem of collision of data streams and resource competition is particularly prominent. For example, different devices may use the same Bluetooth channel, resulting in signal collisions and data transmission failures, or data requests from multiple devices may be queued, resulting in communication delays and data accumulation, severely affecting the real-time nature of the data and the response capabilities of the system. In addition, the diversity of industrial equipment and the non-uniformity of communication protocols also increase the operational difficulty. Each device often has its own unique bluetooth service and unique universal unique identification code (Universally Unique Identifier, UUID), even with different bluetooth versions (e.g., bluetooth low energy (Bluetooth Low Energy, BLE), conventional bluetooth Bluetooth Classic), which requires the mobile terminal to have powerful protocol adaptation capabilities to avoid the complex manual configuration process. However, the solutions in the related art do not fully meet this requirement, mostly relying on cumbersome manual configuration by the user or intervention of dedicated hardware, adding unnecessary complexity and cost. In other words, in the related art, there is a technical problem that communication is unstable due to mutual interference of data streams and resource competition in a multi-device bluetooth communication scenario in an industrial field. In view of the above problems, no effective solution has been proposed at present. Disclosure of Invention The embodiment of the invention provides an industrial equipment monitoring method, an industrial equipment monitoring device, a storage medium and electronic equipment, which are used for at least solving the technical problems of unstable communication caused by mutual interference of data streams and resource competition in a multi-equipment Bluetooth communication scene in an industrial field. According to one aspect of the embodiment of the invention, an industrial equipment monitoring method is provided, which comprises the steps of identifying a plurality of industrial equipment through Bluetooth scanning, determining a communication proxy instance corresponding to each of the plurality of industrial equipment, wherein the communication proxy instance is a logic unit packaged with behavior state information related to the corresponding industrial equipment, receiving operation data corresponding to each of the plurality of industrial equipment based on the communication proxy instance corresponding to each of the plurality of industrial equipment, performing user interface rendering based on the operation data corresponding to each of the plurality of industrial equipment, and displaying monitoring results corresponding to each of the plurality of industrial equipment on a user interface of a mobile terminal. According to another aspect of the embodiment of the invention, an industrial equipment monitoring device is provided, which comprises a Bluetooth scanning module, an instance determining module, a data receiving module and an interface rendering module, wherein the Bluetooth scanning module is used for identifying a plurality of industrial equipment through Bluetooth scanning, the instance determining module is used for determining communication agency instances correspond