Equipment monitoring method and device, electronic equipment and computer readable storage medium
By numbering and broadcasting the smart terminal devices in exhibition halls and exhibition venues, generating a list of to-response and identifying unresponsive devices, the problem of physical connection restricting device movement and display is solved, and efficient device monitoring and user experience improvement is achieved.
Patent Information
- Application Number
- CN202411428715.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-14
AI Technical Summary
In exhibition halls and exhibition venues, anti-theft measures of smart terminal devices usually rely on physical connections, limiting the movement and display of devices and affecting the user experience.
Through a device monitoring method, the terminal device is broadcasted using numbered information, a list of to be responded to is generated, an unresponsive device is identified, and an alarm information is generated when necessary, to realize remote real-time monitoring.
This method solves the problem of physical connection restricting device movement and display, reduces deployment and maintenance costs, and improves the scalability and applicability of terminal device monitoring.
Smart Images

Figure CN119450645A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of monitoring technology, and in particular to a device monitoring method, device, electronic device and computer-readable storage medium. Background Art
[0002] In exhibition halls and exhibition venues, for smart terminal manufacturers, the electronic devices on display (such as mobile phones, watches, bracelets, tablets, headphones, etc.) are usually prevented from theft through traditional physical connection methods, such as using data cables to connect for anti-theft, and an alarm sounds when the user tries to disconnect the connection cable. However, this anti-theft method restricts the movement and display of the device, affecting the user experience. For example, when a user experiences the camera function of a mobile phone, due to the physical connection between the device and the booth, they can only shoot fixed booth scenes and cannot move to other locations to shoot different scenes, resulting in the inability to experience the complete camera function. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a device monitoring method, apparatus, electronic device and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
[0004] An embodiment of the present invention discloses a device monitoring method, the method comprising:
[0005] When connections with multiple first terminal devices are successful, numbering each first terminal device to obtain numbering information of the multiple first terminal devices;
[0006] Based on the number information, a first broadcast is performed to each first terminal device to generate a list to be responded to; the list to be responded to includes second terminal devices that have not responded to the first broadcast among the first terminal devices;
[0007] If the list to be responded is not empty, performing a second broadcast to the second terminal devices in the list to be responded based on the number information, and determining a third terminal device in the second terminal that has not responded to the second broadcast;
[0008] If the third terminal device exists, alarm information is generated based on the third terminal device.
[0009] In one or more embodiments, performing a first broadcast to each first terminal device based on the number information to generate a list to be responded to includes:
[0010] Broadcasting the current terminal device to be called in each first terminal device based on the number information;
[0011] If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded;
[0012] Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device;
[0013] If the response information of the lower terminal device to the broadcast is obtained, the waiting response list is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the waiting response list based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the waiting response list to obtain an updated waiting response list, and the updated first waiting response list is fed back;
[0014] The first pending response list is obtained.
[0015] In one or more embodiments, further comprising:
[0016] If the response information of the lower terminal device to the broadcast is not obtained, the lower terminal device is used as the current terminal device, and the process jumps to adding the current terminal device to the list to be responded to, so as to obtain an updated second list to be responded to.
[0017] In one or more embodiments, before performing a second broadcast to the second terminal device in the waiting response list based on the number information, the method further includes:
[0018] Detecting whether each first terminal device has been called based on the number information;
[0019] If so, check whether the pending response list is empty.
[0020] In one or more embodiments, generating alarm information based on the third terminal device includes:
[0021] The number of the third terminal device is sent to the control terminal, so that the control terminal generates alarm information based on the number of the third terminal device and displays the alarm information.
[0022] In one or more embodiments, before the connection with the multiple first terminal devices is successful, the method further includes:
[0023] S1. Obtain the networking request sent by the control terminal;
[0024] S2, broadcasting the networking request for a third time;
[0025] S3. Obtaining response information of each candidate terminal device to the third broadcast;
[0026] S4. Determine the terminal device with successful connection and the candidate terminal device with failed connection based on the response information;
[0027] S5. Detect whether the number of the third broadcast reaches the number threshold. If not, execute S2; if so, use the successfully connected terminal device as the first terminal device.
[0028] Accordingly, an embodiment of the present invention discloses a device monitoring apparatus, the device comprising:
[0029] A numbering module, used for numbering each first terminal device when connections with multiple first terminal devices are successful, and obtaining numbering information of the multiple first terminal devices;
[0030] A broadcast module, configured to perform a first broadcast to each first terminal device based on the number information, and generate a list to be responded to; the list to be responded to includes second terminal devices that have not responded to the first broadcast among the first terminal devices;
[0031] The broadcast module is further configured to, if the list to be responded to is not empty, perform a second broadcast to the second terminal devices in the list to be responded to based on the number information, and determine a third terminal device in the second terminal that has not responded to the second broadcast;
[0032] A generating module is used to generate alarm information based on the third terminal device if the third terminal device exists.
[0033] In one or more embodiments, the broadcast module is specifically used to:
[0034] Broadcasting the current terminal device to be called in each first terminal device based on the number information;
[0035] If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded;
[0036] Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device;
[0037] If the response information of the lower terminal device to the broadcast is obtained, the waiting response list is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the waiting response list based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the waiting response list to obtain an updated waiting response list, and the updated first waiting response list is fed back;
[0038] The first pending response list is obtained.
[0039] In one or more embodiments, the broadcast module is further configured to:
[0040] If the response information of the lower terminal device to the broadcast is not obtained, the lower terminal device is used as the current terminal device, and the process jumps to adding the current terminal device to the list to be responded to, so as to obtain an updated second list to be responded to.
[0041] In one or more embodiments, a first detection module is further included, specifically configured to:
[0042] Before performing a second broadcast to the second terminal devices in the waiting-to-respond list based on the number information, detecting whether each first terminal device has been called based on the number information;
[0043] If so, check whether the pending response list is empty.
[0044] In one or more embodiments, the generating module is specifically used to:
[0045] The number of the third terminal device is sent to the control terminal, so that the control terminal generates alarm information based on the number of the third terminal device and displays the alarm information.
[0046] In one or more embodiments, further comprising:
[0047] An acquisition module, used to acquire a networking request sent by a control terminal;
[0048] The broadcast module is further used to perform a third broadcast of the networking request;
[0049] The acquisition module is further used to acquire response information of each candidate terminal device to the third broadcast;
[0050] A determination module, configured to determine a terminal device that is successfully connected and a candidate terminal device that fails to connect based on the response information;
[0051] The second detection module is used to detect whether the number of times of the third broadcast reaches the number threshold, if not, call the acquisition module; if yes, use the successfully connected terminal device as the first terminal device.
[0052] Correspondingly, an embodiment of the present invention discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the various steps of the above-mentioned device monitoring method embodiment are implemented.
[0053] Accordingly, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each step of the above-mentioned device monitoring method embodiment is implemented.
[0054] The embodiments of the present invention include the following advantages:
[0055] When the management system is successfully connected to multiple first terminal devices, each first terminal device is numbered to obtain numbering information of the multiple first terminal devices; a first broadcast is performed to each first terminal device based on the numbering information to generate a list to be responded to; the list to be responded to includes second terminal devices in each first terminal device that have not responded to the first broadcast; if the list to be responded to is not empty, a second broadcast is performed to the second terminal device in the list to be responded to based on the numbering information to determine a third terminal device in the second terminal that has not responded to the second broadcast; if the third terminal device exists, an alarm message is generated based on the third terminal device. Through the above method, after the management system is successfully networked with each terminal device, each terminal device can be remotely monitored in real time through broadcasting. When there is a terminal device that does not respond to the broadcast, the terminal device can be added to the waiting response list. After the management system completes the broadcast to all terminal devices, it can broadcast again to the terminal devices in the waiting response list. If there are still terminal devices that do not respond to the broadcast, an alarm can be issued for the terminal device. In this way, it not only solves the problem of connecting terminal devices through wired connections in open exhibition halls, but also does not require a large amount of additional equipment and complicated installation processes, reduces deployment and maintenance costs, and improves the scalability and applicability of terminal device monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 is a flow chart of the steps of Embodiment 1 of a device monitoring method of the present invention;
[0057] Figure 2 is a schematic diagram of the monitoring architecture of the present invention;
[0058] Figure 3 is a flow chart of the steps of Embodiment 2 of a device monitoring method of the present invention;
[0059] Figure 4 It is a structural block diagram of an embodiment of an equipment monitoring device of the present invention. DETAILED DESCRIPTION
[0060] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] One of the core concepts of the embodiment of the present invention is that after the management system is successfully networked with each terminal device, each terminal device can be remotely monitored in real time by broadcasting. When there is a terminal device that does not respond to the broadcast, the terminal device can be added to the list to be responded to. After the management system completes the broadcast to all terminal devices, it can broadcast again to the terminal devices in the list to be responded to. If there are still terminal devices that do not respond to the broadcast, an alarm can be issued for the terminal device. In this way, it not only solves the problem of connecting terminal devices through wired connections in open exhibition halls, but also does not require a large amount of additional equipment and complicated installation processes, thereby reducing deployment and maintenance costs and improving the scalability and applicability of terminal device monitoring.
[0062] Reference Figure 1 , shows a flow chart of the steps of a device monitoring method embodiment 1 of the present invention, which can be applied to a management system for managing terminal devices in an open exhibition hall, referring to Figure 2 , showing a schematic diagram of a monitoring architecture for monitoring terminal devices, wherein the management system can be remotely connected to the control terminal application, and the remote connection method can be through the Internet (Internet) or the Matter protocol. Of course, the remote connection can also be made in other ways. In actual applications, the remote connection method can be set according to actual needs, and the embodiments of the present invention do not limit this.
[0063] The management system can be connected to the terminal device wirelessly through the edge router (Border Router), or it can be directly connected to the terminal device. When the management system is connected to the terminal device through the edge router, it means that the terminal device does not support the Matter protocol; when the management system is directly connected to the terminal device, it means that the terminal device supports the Matter protocol. In other words, the edge router can convert non-Matter protocol data into Matter protocol data, so that terminal devices that do not support the Matter protocol can be connected to the management system and interact with terminal devices that support the Matter protocol. Among them, the management system, edge router and terminal device are in the same local area network. Terminal devices include but are not limited to mobile phones, smart bracelets, smart watches, tablets, and headphones.
[0064] The method may specifically include the following steps:
[0065] Step 101: when connections with multiple first terminal devices are successful, number each first terminal device to obtain number information of the multiple first terminal devices.
[0066] Specifically, when the management system successfully connects to multiple terminal devices (referred to as "first terminal devices" for easy distinction), it means that the management system has successfully networked with multiple first terminal devices and are currently in the same local area network. At this time, the management system can number each first terminal device to obtain numbering information, wherein the numbering information includes the number of each first terminal device. Figure 2 In the example, when the management system is successfully connected to terminal device A, terminal device B and terminal device C, the management system can number terminal device A, terminal device B and terminal device C. Assuming that the number of terminal device A is 1, the number of terminal device B is 2, and the number of terminal device C is 3, then the numbering information can record that the number of terminal device A is 1, the number of terminal device B is 2, and the number of terminal device C is 3.
[0067] It should be noted that after obtaining the numbering information, the numbering information can be synchronized to each first terminal device, so that the first terminal device can subsequently call the terminal devices in the waiting response list according to the numbering information.
[0068] Step 102: Perform a first broadcast to each first terminal device based on the number information to generate a list to be responded to; the list to be responded to includes second terminal devices that have not responded to the first broadcast among the first terminal devices.
[0069] After the numbering of each first terminal device is completed, a broadcast (referred to as "first broadcast") may be performed to each first terminal device according to the numbering information, thereby calling each first terminal device.
[0070] When broadcasting, the numbers in the numbering information may be broadcasted in the order of their sequence. For example, in the above example, the terminal device A with the number 1 may be broadcasted first. After the terminal device A responds, the terminal device B with the number 2 may be broadcasted, and so on. Of course, in practical applications, the first terminal devices may also be broadcasted in other ways, and the embodiment of the present invention does not limit this.
[0071] After the broadcast to all first terminal devices is completed, that is, after the calls to all first terminal devices are completed, a waiting list can be generated, and the waiting list can record the terminal devices (recorded as "second terminal devices") that have not responded to the first broadcast among all the first terminal devices. For example, continuing with the above example, the management system broadcasts to terminal device A, terminal device B, and terminal device C respectively. After all broadcasts are completed, terminal device B does not respond, then terminal device B can be recorded in the waiting list. Of course, the waiting list can also be empty, that is, all first terminal devices have responded to the first broadcast. In the embodiment of the present invention, the example of at least one unresponsive second terminal in the waiting list is used for explanation.
[0072] In the embodiment of the present invention, the first broadcasting to each first terminal device based on the numbering information to generate a list to be responded includes:
[0073] Broadcasting the current terminal device to be called in each first terminal device based on the number information;
[0074] If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded;
[0075] Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device;
[0076] If the response information of the lower terminal device to the broadcast is obtained, the waiting response list is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the waiting response list based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the waiting response list to obtain an updated waiting response list, and the updated first waiting response list is fed back;
[0077] Obtaining the first pending response list;
[0078] If the response information of the lower terminal device to the broadcast is not obtained, the lower terminal device is used as the current terminal device, and the process jumps to adding the current terminal device to the list to be responded to, so as to obtain an updated second list to be responded to.
[0079] Specifically, after obtaining the numbering information, the management system can broadcast the terminal device that currently needs to be called (referred to as "current terminal device") in the order of the numbers in the numbering information. For example, continuing with the previous example, after the management system broadcasts to terminal device A with number 1, it obtains the response of terminal device A, that is, the response information. At this time, it needs to broadcast to terminal device B with number 2, so terminal device B is the current terminal device.
[0080] After the management system broadcasts the current terminal device, if the response information of the current terminal device is not obtained, the terminal device can be added to the preset waiting list, and then the lower terminal devices can be broadcasted in the order of the numbers in the numbering information. Among them, the number of the lower terminal device is greater than the number of the current terminal device. For example, continuing with the above example, the number of the current terminal device B is 2. If the response information of terminal device B is not obtained, terminal device B can be added to the waiting list, and then the terminal device C with the number 3 can be broadcasted. If there is no number 3, the terminal device D with the number 4 can be broadcasted in the order of the numbers, and so on.
[0081] If the management system obtains the response information of the lower terminal device, the waiting response list can be sent to the lower terminal device. After obtaining the waiting response list, the lower terminal device can call each second terminal device in the waiting response list according to the order of each number in the numbering information. If any second terminal device answers, it means that the call is successful. At this time, the lower terminal device can delete any second terminal device from the waiting response list, and so on, until the lower terminal device calls all second terminal devices.
[0082] That is to say, when the management system fails to call a terminal device, a terminal device that has successfully called can be used as a relay to continue calling the terminal device that has failed to call. If the call is successful at this time, it can be determined that the terminal device that has failed to call is still in the local area network, thereby expanding the management scope of the terminal device.
[0083] For example, continuing with the above example, after broadcasting to terminal device C with number 3 and obtaining the response information of terminal device C, the waiting response list can be sent to terminal device C. Since the waiting response list includes terminal device B, terminal device C can call terminal device B at this time. If terminal device B responds, it means that terminal device B is still in the local area network. At this time, terminal device C can delete terminal device B from the waiting response list; if terminal device B still does not respond, terminal device C can call the next terminal device in the waiting response list. And so on, until terminal device C has called all terminal devices in the waiting response list.
[0084] After the lower terminal device has called all the second terminal devices in the waiting response list, the waiting response list can be updated according to the response situation, that is, the answered second terminal is deleted from the waiting response list to obtain an updated waiting response list (recorded as "first waiting response list").
[0085] Furthermore, if the management system does not obtain the response information of the lower terminal device, then the lower terminal device can be used as the current terminal device, and the process jumps to the step of adding the current terminal device to the list to be responded, and obtains the updated list to be responded (recorded as the "second list to be responded"). For example, continuing with the above example, if the management system does not obtain the response information of the terminal device C with the number 3, then the terminal device C is added to the list to be responded, and the broadcast to the terminal device D with the number 4 is continued, and so on.
[0086] Until the management system has broadcasted to all first terminal devices, a final list to be responded to can be generated according to the response status of each first terminal device.
[0087] Step 103: If the waiting-for-response list is not empty, a second broadcast is performed to the second terminal devices in the waiting-for-response list based on the number information, and a third terminal device in the second terminal that has not responded to the second broadcast is determined.
[0088] After generating the final pending response list, if the pending response list is not empty, the management system can broadcast again to each second terminal device in the pending response list according to the order of the numbers in the numbering information (recorded as the "second broadcast"), and then determine the terminal device that has not responded (recorded as the "third terminal device") based on the response of each second terminal device.
[0089] It should be noted that the number of third terminal devices may be 0, that is, all second terminal devices have responded to the second broadcast. For ease of understanding, the embodiment of the present invention is described as if the number of third terminal devices is not 0.
[0090] Step 104: if the third terminal device exists, generate alarm information based on the third terminal device.
[0091] If there is a third terminal device, it means that the management system has failed to call the third terminal device, and other terminal devices have also failed to call the third terminal device. At this time, it can be determined that the third terminal device has left the local area network, so an alarm message can be generated based on the third terminal device to inform the management personnel.
[0092] In the embodiment of the present invention, the generating of alarm information based on the third terminal device includes:
[0093] The number of the third terminal device is sent to the control terminal, so that the control terminal generates alarm information based on the number of the third terminal device and displays the alarm information.
[0094] Specifically, after determining the third terminal device, the management system can send the number of the third terminal device to the control terminal application. The control terminal application generates alarm information after obtaining the number of the third terminal device and displays the alarm information in the interactive interface of the application.
[0095] It should be noted that, in addition to sending the terminal device number to the control terminal, the management system can also send other information. In actual applications, the specific information sent can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0096] In an embodiment of the present invention, when the management system is successfully connected to multiple first terminal devices, each first terminal device is numbered to obtain numbering information of the multiple first terminal devices; a first broadcast is performed to each first terminal device based on the numbering information to generate a list to be responded to; the list to be responded to includes second terminal devices in each first terminal device that have not responded to the first broadcast; if the list to be responded to is not empty, a second broadcast is performed to the second terminal device in the list to be responded to based on the numbering information to determine a third terminal device in the second terminal that has not responded to the second broadcast; if the third terminal device exists, an alarm message is generated based on the third terminal device. Through the above method, after the management system is successfully networked with each terminal device, each terminal device can be remotely monitored in real time through broadcasting. When there is a terminal device that does not respond to the broadcast, the terminal device can be added to the waiting response list. After the management system completes the broadcast to all terminal devices, it can broadcast again to the terminal devices in the waiting response list. If there are still terminal devices that do not respond to the broadcast, an alarm can be issued for the terminal device. In this way, it not only solves the problem of connecting terminal devices through wired connections in open exhibition halls, but also does not require a large amount of additional equipment and complicated installation processes, reduces deployment and maintenance costs, and improves the scalability and applicability of terminal device monitoring.
[0097] Furthermore, when the management system fails to call a terminal device, it can also use a terminal device that has successfully called as a relay, and continue to call the terminal device that failed to call through the terminal device that successfully called. If the call is successful at this time, it can be determined that the terminal device that failed to call is still in the local area network, thereby expanding the monitoring range of the terminal device.
[0098] Reference Figure 3 , shows a flow chart of the steps of Embodiment 2 of a device monitoring method of the present invention, which may specifically include the following steps:
[0099] Step 301, obtaining a networking request sent by a control terminal;
[0100] Step 302, broadcasting the networking request for a third time;
[0101] Step 303, obtaining response information of each candidate terminal device to the third broadcast;
[0102] Step 304, determining the terminal device with successful connection and the candidate terminal device with failed connection based on the response information;
[0103] Step 305, detecting whether the number of the third broadcast reaches the number threshold, if not, executing step 302; if yes, executing 306;
[0104] Step 306: Use the successfully connected terminal device as the first terminal device.
[0105] Specifically, when each terminal device (referred to as a "candidate terminal device") is connected to the local area network, the administrator can initiate a networking request in the control terminal application, and the control terminal application sends the networking request to the management system. After the management system obtains the networking request, it broadcasts the networking request in the local area network (referred to as the "third broadcast"). Each candidate terminal device can generate response information for the networking request and send the response information to the management system.
[0106] After obtaining each response information, the management system can determine the candidate terminal devices that have been successfully connected and the candidate terminal devices that have failed to connect based on the various response information. Among them, when determining, it can be judged based on the response information whether the candidate terminal device has passed the security authentication, and the security authentication includes but is not limited to the authentication of a shared password (PASE) or a certificate (CASE). If the security authentication is passed, it is further detected whether the management system and the candidate terminal have successfully established a connection. If the connection is successfully established, it is determined that the management system and the candidate terminal device are successfully connected. Of course, in actual applications, in addition to the above-mentioned method, other methods of security authentication can also be used, and the embodiments of the present invention are not limited to this.
[0107] At this time, it is detected whether the number of executions of the third broadcast reaches the number threshold. If it does not reach the number threshold, the networking request can continue to be broadcasted in the local area network, that is, the networking is repeated; if it reaches the number threshold, the candidate terminal device that successfully connected after the last broadcast can be used as the first terminal device. In this way, by adding a multiple pairing attempt mechanism, the fault tolerance rate in the terminal device networking process is improved.
[0108] It should be noted that the response information generated by each candidate terminal device in response to the networking request may include information such as the name of the candidate terminal device and the device status. In addition, other information may also be included. In actual applications, the specific information in the response information can be set according to actual needs, and the embodiments of the present invention do not limit this.
[0109] Furthermore, after the networking is successful, various data in the networking process can be stored for subsequent query or display.
[0110] Step 307: number each first terminal device to obtain number information of multiple first terminal devices.
[0111] Specifically, when the management system successfully connects to multiple first terminal devices, it means that the management system and the multiple first terminal devices are successfully networked and are currently in the same local area network. At this time, the management system can number each first terminal device to obtain numbering information, wherein the numbering information includes the number of each first terminal device. Figure 2 In the example, when the management system is successfully connected to terminal device A, terminal device B and terminal device C, the management system can number terminal device A, terminal device B and terminal device C. Assuming that the number of terminal device A is 1, the number of terminal device B is 2, and the number of terminal device C is 3, then the numbering information can record that the number of terminal device A is 1, the number of terminal device B is 2, and the number of terminal device C is 3.
[0112] It should be noted that after obtaining the number information, the number information can be synchronized to each first terminal device, so that the first terminal device can subsequently call the terminal devices in the waiting response list according to the number information.
[0113] Step 308: Perform a first broadcast to each first terminal device based on the number information to generate a waiting-for-response list; the waiting-for-response list includes second terminal devices that have not responded to the first broadcast among the first terminal devices.
[0114] After the numbering of each first terminal device is completed, the first broadcast can be performed to each first terminal device according to the numbering information, so as to call each first terminal device.
[0115] When broadcasting, the numbers in the numbering information may be broadcasted in the order of their sequence. For example, in the above example, the terminal device A with the number 1 may be broadcasted first. After the terminal device A responds, the terminal device B with the number 2 may be broadcasted, and so on. Of course, in practical applications, the first terminal devices may also be broadcasted in other ways, and the embodiment of the present invention does not limit this.
[0116] After the broadcast to all first terminal devices is completed, that is, after the calls to all first terminal devices are completed, a waiting list can be generated, and the waiting list can record the terminal devices (recorded as "second terminal devices") that have not responded to the first broadcast among all the first terminal devices. For example, continuing with the above example, the management system broadcasts to terminal device A, terminal device B, and terminal device C respectively. After all broadcasts are completed, terminal device B does not respond, then terminal device B can be recorded in the waiting list. Of course, the waiting list can also be empty, that is, all first terminal devices have responded to the first broadcast. In the embodiment of the present invention, the example of at least one unresponsive second terminal in the waiting list is used for explanation.
[0117] In the embodiment of the present invention, the first broadcasting to each first terminal device based on the numbering information to generate a list to be responded includes:
[0118] Broadcasting the current terminal device to be called in each first terminal device based on the number information;
[0119] If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded;
[0120] Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device;
[0121] If the response information of the lower terminal device to the broadcast is obtained, the list to be responded is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the list to be responded based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the list to be responded to obtain an updated list to be responded to, and the updated first list to be responded to is fed back;
[0122] Obtaining the first pending response list;
[0123] If the response information of the lower terminal device to the broadcast is not obtained, the lower terminal device is used as the current terminal device, and the process jumps to adding the current terminal device to the list to be responded to, so as to obtain an updated second list to be responded to.
[0124] Specifically, after obtaining the numbering information, the management system can broadcast the terminal device that currently needs to be called (referred to as "current terminal device") in the order of the numbers in the numbering information. For example, continuing with the previous example, after the management system broadcasts to terminal device A with number 1, it obtains the response of terminal device A, that is, the response information. At this time, it needs to broadcast to terminal device B with number 2, so terminal device B is the current terminal device.
[0125] After the management system broadcasts the current terminal device, if the response information of the current terminal device is not obtained, the terminal device can be added to the preset waiting list, and then the lower terminal devices can be broadcasted in the order of the numbers in the numbering information. Among them, the number of the lower terminal device is greater than the number of the current terminal device. For example, continuing with the above example, the number of the current terminal device B is 2. If the response information of terminal device B is not obtained, terminal device B can be added to the waiting list, and then the terminal device C with the number 3 can be broadcasted. If there is no number 3, the terminal device D with the number 4 can be broadcasted in the order of the numbers, and so on.
[0126] If the management system obtains the response information of the lower terminal device, the waiting response list can be sent to the lower terminal device. After obtaining the waiting response list, the lower terminal device can call each second terminal device in the waiting response list according to the order of each number in the numbering information. If any second terminal device answers, it means that the call is successful. At this time, the lower terminal device can delete any second terminal device from the waiting response list, and so on, until the lower terminal device calls all second terminal devices.
[0127] That is to say, when the management system fails to call a terminal device, a terminal device that has successfully called can be used as a relay to continue calling the terminal device that has failed to call. If the call is successful at this time, it can be determined that the terminal device that has failed to call is still in the local area network, thereby expanding the management scope of the terminal device.
[0128] For example, continuing with the above example, after broadcasting to terminal device C with number 3 and obtaining the response information of terminal device C, the waiting response list can be sent to terminal device C. Since the waiting response list includes terminal device B, terminal device C can call terminal device B at this time. If terminal device B responds, it means that terminal device B is still in the local area network. At this time, terminal device C can delete terminal device B from the waiting response list; if terminal device B still does not respond, terminal device C can call the next terminal device in the waiting response list. And so on, until terminal device C has called all terminal devices in the waiting response list.
[0129] After the lower terminal device has called all the second terminal devices in the waiting response list, the waiting response list can be updated according to the response situation, that is, the answered second terminal is deleted from the waiting response list to obtain an updated waiting response list (recorded as "first waiting response list").
[0130] Furthermore, if the management system does not obtain the response information of the lower terminal device, then the lower terminal device can be used as the current terminal device, and the process jumps to the step of adding the current terminal device to the list to be responded, and obtains the updated list to be responded (recorded as the "second list to be responded"). For example, continuing with the above example, if the management system does not obtain the response information of the terminal device C with the number 3, then the terminal device C is added to the list to be responded, and the broadcast to the terminal device D with the number 4 is continued, and so on.
[0131] Until the management system has broadcasted to all first terminal devices, a final list to be responded to can be generated according to the response status of each first terminal device.
[0132] Step 309: Detect whether each first terminal device has been called based on the number information; if so, detect whether the waiting response list is empty.
[0133] Before broadcasting to the second terminal device in the waiting response list, it is possible to detect whether each first terminal device has been called based on the numbering information. If so, it means that the first broadcast of the current round has been completed, and then check whether the waiting response list is empty; if not, continue broadcasting to the first terminal devices that have not been called.
[0134] Step 3010: If the waiting-for-response list is not empty, a second broadcast is performed to the second terminal devices in the waiting-for-response list based on the number information, and a third terminal device in the second terminal that has not responded to the second broadcast is determined.
[0135] After generating the final pending response list, if the pending response list is not empty, the management system can broadcast again to each second terminal device in the pending response list according to the order of the numbers in the numbering information (recorded as the "second broadcast"), and then determine the terminal device that has not responded (recorded as the "third terminal device") based on the response of each second terminal device.
[0136] It should be noted that the number of third terminal devices may be 0, that is, all second terminal devices have responded to the second broadcast. For ease of understanding, the embodiment of the present invention is described as if the number of third terminal devices is not 0.
[0137] Step 3011: if the third terminal device exists, generate alarm information based on the third terminal device.
[0138] If there is a third terminal device, it means that the management system has failed to call the third terminal device, and other terminal devices have also failed to call the third terminal device. At this time, it can be determined that the third terminal device has left the local area network, so an alarm message can be generated based on the third terminal device to inform the management personnel.
[0139] In the embodiment of the present invention, the generating of alarm information based on the third terminal device includes:
[0140] The number of the third terminal device is sent to the control terminal, so that the control terminal generates alarm information based on the number of the third terminal device and displays the alarm information.
[0141] Specifically, after determining the third terminal device, the management system can send the number of the third terminal device to the control terminal application. The control terminal application generates alarm information after obtaining the number of the third terminal device and displays the alarm information in the interactive interface of the application.
[0142] It should be noted that, in addition to sending the terminal device number to the control terminal, the management system can also send other information. In actual applications, the specific information sent can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0143] In an embodiment of the present invention, when the management system is successfully connected to multiple first terminal devices, each first terminal device is numbered to obtain numbering information of the multiple first terminal devices; a first broadcast is performed to each first terminal device based on the numbering information to generate a list to be responded to; the list to be responded to includes second terminal devices in each first terminal device that have not responded to the first broadcast; if the list to be responded to is not empty, a second broadcast is performed to the second terminal device in the list to be responded to based on the numbering information to determine a third terminal device in the second terminal that has not responded to the second broadcast; if the third terminal device exists, an alarm message is generated based on the third terminal device. Through the above method, after the management system is successfully networked with each terminal device, each terminal device can be remotely monitored in real time through broadcasting. When there is a terminal device that does not respond to the broadcast, the terminal device can be added to the waiting response list. After the management system completes the broadcast to all terminal devices, it can broadcast again to the terminal devices in the waiting response list. If there are still terminal devices that do not respond to the broadcast, an alarm can be issued for the terminal device. In this way, it not only solves the problem of connecting terminal devices through wired connections in open exhibition halls, but also does not require a large amount of additional equipment and complicated installation processes, reduces deployment and maintenance costs, and improves the scalability and applicability of terminal device monitoring.
[0144] Furthermore, when the management system fails to call a terminal device, it can also use a terminal device that has successfully called as a relay, and continue to call the terminal device that failed to call through the terminal device that successfully called. If the call is successful at this time, it can be determined that the terminal device that failed to call is still in the local area network, thereby expanding the monitoring range of the terminal device.
[0145] Furthermore, after each terminal device is connected to the local area network, the administrator can initiate a networking request in the control terminal application, and the control terminal application sends the networking request to the management system. After obtaining the networking request, the management system broadcasts the networking request in the local area network. Each candidate terminal device can generate a response message for the networking request and send the response message to the management system. After obtaining each response message, the management system can determine the candidate terminal device that has successfully connected and the candidate terminal device that has failed to connect based on each response message. When the number of broadcasts does not reach the number threshold, the management system can repeat the networking until the number of broadcasts reaches the number threshold, and the candidate terminal that has successfully connected can be determined as the first terminal device. In this way, by adding a multiple pairing attempt mechanism, the fault tolerance rate in the terminal device networking process is improved.
[0146] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0147] Reference Figure 4 , shows a structural block diagram of an embodiment of a device monitoring device of the present invention, which may specifically include the following modules:
[0148] A numbering module 401 is used to number each first terminal device when connections with multiple first terminal devices are successful, and obtain numbering information of the multiple first terminal devices;
[0149] A broadcast module 402 is configured to perform a first broadcast to each first terminal device based on the number information, and generate a waiting-for-response list; the waiting-for-response list includes second terminal devices that have not responded to the first broadcast among the first terminal devices;
[0150] The broadcast module 402 is further configured to, if the waiting response list is not empty, perform a second broadcast to the second terminal devices in the waiting response list based on the number information, and determine a third terminal device in the second terminal that has not responded to the second broadcast;
[0151] The generating module 403 is configured to generate alarm information based on the third terminal device if the third terminal device exists.
[0152] In the embodiment of the present invention, the broadcast module is specifically used for:
[0153] Broadcasting the current terminal device to be called in each first terminal device based on the number information;
[0154] If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded;
[0155] Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device;
[0156] If the response information of the lower terminal device to the broadcast is obtained, the list to be responded is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the list to be responded based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the list to be responded to obtain an updated list to be responded to, and the updated first list to be responded to is fed back;
[0157] The first pending response list is obtained.
[0158] In the embodiment of the present invention, the broadcast module is further used for:
[0159] If the response information of the lower terminal device to the broadcast is not obtained, the lower terminal device is used as the current terminal device, and the process jumps to adding the current terminal device to the list to be responded to, so as to obtain an updated second list to be responded to.
[0160] In the embodiment of the present invention, a first detection module is further included, which is specifically used to:
[0161] Before performing a second broadcast to the second terminal devices in the waiting-to-respond list based on the number information, detecting whether each first terminal device has been called based on the number information;
[0162] If so, check whether the pending response list is empty.
[0163] In the embodiment of the present invention, the generating module is specifically used for:
[0164] The number of the third terminal device is sent to the control terminal, so that the control terminal generates alarm information based on the number of the third terminal device and displays the alarm information.
[0165] In an embodiment of the present invention, it also includes:
[0166] An acquisition module, used to acquire a networking request sent by a control terminal;
[0167] The broadcast module is further used to perform a third broadcast of the networking request;
[0168] The acquisition module is further used to acquire response information of each candidate terminal device to the third broadcast;
[0169] A determination module, configured to determine a terminal device that is successfully connected and a candidate terminal device that fails to connect based on the response information;
[0170] The second detection module is used to detect whether the number of times of the third broadcast reaches the number threshold, if not, call the acquisition module; if yes, use the successfully connected terminal device as the first terminal device.
[0171] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0172] An embodiment of the present invention further provides an electronic device, including:
[0173] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned device monitoring method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0174] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned device monitoring method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0175] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0176] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0177] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0178] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0179] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0180] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0181] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0182] The above is a detailed introduction to an equipment monitoring method and an equipment monitoring device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A device monitoring method, characterized in that: The method comprises: When connections with multiple first terminal devices are successful, numbering each first terminal device to obtain numbering information of the multiple first terminal devices; Perform a first broadcast to each first terminal device based on the number information, and generate a list to be responded to; the list to be responded to includes second terminal devices that have not responded to the first broadcast among the first terminal devices; If the list to be responded is not empty, performing a second broadcast to the second terminal devices in the list to be responded based on the number information, and determining a third terminal device in the second terminal that has not responded to the second broadcast; If the third terminal device exists, alarm information is generated based on the third terminal device.
2. The device monitoring method according to claim 1, characterized in that: The performing a first broadcast to each first terminal device based on the number information to generate a list to be responded to includes: Broadcasting the current terminal device to be called in each first terminal device based on the number information; If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded; Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device; If the response information of the lower terminal device to the broadcast is obtained, the waiting response list is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the waiting response list based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the waiting response list to obtain an updated waiting response list, and the updated first waiting response list is fed back; The first pending response list is obtained.
3. The device monitoring method according to claim 2, characterized in that: Also includes: If the response information of the lower terminal device to the broadcast is not obtained, the lower terminal device is used as the current terminal device, and the process jumps to adding the current terminal device to the list to be responded to, so as to obtain an updated second list to be responded to.
4. The device monitoring method according to claim 1, characterized in that: Before performing a second broadcast to the second terminal device in the waiting response list based on the number information, the method further includes: Detecting whether each first terminal device has been called based on the number information; If so, check whether the pending response list is empty.
5. The device monitoring method according to claim 1, characterized in that: The generating of alarm information based on the third terminal device includes: The number of the third terminal device is sent to the control terminal, so that the control terminal generates alarm information based on the number of the third terminal device and displays the alarm information.
6. The device monitoring method according to claim 1, characterized in that: Before the connection with the multiple first terminal devices is successful, the method further includes: S1. Obtain the networking request sent by the control terminal; S2, broadcasting the networking request for a third time; S3. Obtaining response information of each candidate terminal device to the third broadcast; S4. Determine the terminal device with successful connection and the candidate terminal device with failed connection based on the response information; S5. Detect whether the number of the third broadcast reaches the number threshold. If not, execute S2; if so, use the successfully connected terminal device as the first terminal device.
7. An equipment monitoring device, characterized in that: The device comprises: A numbering module, used for numbering each first terminal device when connections with multiple first terminal devices are successful, and obtaining numbering information of the multiple first terminal devices; A broadcast module, configured to perform a first broadcast to each first terminal device based on the number information, and generate a list to be responded to; the list to be responded to includes second terminal devices that have not responded to the first broadcast among the first terminal devices; The broadcast module is further configured to, if the list to be responded to is not empty, perform a second broadcast to the second terminal devices in the list to be responded to based on the number information, and determine a third terminal device in the second terminal that has not responded to the second broadcast; A generating module is used to generate alarm information based on the third terminal device if the third terminal device exists.
8. The equipment monitoring device according to claim 1, characterized in that: The broadcast module is specifically used for: Broadcasting the current terminal device to be called in each first terminal device based on the number information; If no response information of the current terminal device to the broadcast is obtained, adding the current terminal device to a list to be responded; Broadcasting to the lower terminal device to be called based on the number information; the number of the lower terminal device is greater than the number of the current terminal device; If the response information of the lower terminal device to the broadcast is obtained, the waiting response list is sent to the lower terminal device, so that the lower terminal device calls the second terminal device in the waiting response list based on the number information. If the call is successful, the second terminal device that has been successfully called is deleted from the waiting response list to obtain an updated waiting response list, and the updated first waiting response list is fed back; The first pending response list is obtained.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the device monitoring method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the device monitoring method according to any one of claims 1 to 6 are implemented.