CN113923254B - Method and device for determining connection state of equipment, electronic equipment and medium - Google Patents

Method and device for determining connection state of equipment, electronic equipment and medium Download PDF

Info

Publication number
CN113923254B
CN113923254B CN202110989608.1A CN202110989608A CN113923254B CN 113923254 B CN113923254 B CN 113923254B CN 202110989608 A CN202110989608 A CN 202110989608A CN 113923254 B CN113923254 B CN 113923254B
Authority
CN
China
Prior art keywords
monitoring
equipment
connection state
monitoring equipment
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110989608.1A
Other languages
Chinese (zh)
Other versions
CN113923254A (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.)
Beijing Kuangshi Technology Co Ltd
Beijing Megvii Technology Co Ltd
Original Assignee
Beijing Kuangshi Technology Co Ltd
Beijing Megvii Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kuangshi Technology Co Ltd, Beijing Megvii Technology Co Ltd filed Critical Beijing Kuangshi Technology Co Ltd
Priority to CN202110989608.1A priority Critical patent/CN113923254B/en
Publication of CN113923254A publication Critical patent/CN113923254A/en
Application granted granted Critical
Publication of CN113923254B publication Critical patent/CN113923254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application belongs to the technical field of monitoring and discloses a method, a device, electronic equipment and a medium for determining the connection state of equipment, wherein the method comprises the steps of sending a multimedia starting request message to monitoring equipment when the sending triggering condition is determined to be met; judging whether the multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in the response time period, if so, determining that the actual equipment connection state of the monitoring equipment is an on-line state; otherwise, determining that the actual connection state of the equipment of the monitoring equipment is an offline state. Therefore, whether the monitoring equipment is in an on-line state or not is judged by whether the multimedia data returned by the monitoring equipment can be received, and the accuracy of determining the connection state of the equipment is improved.

Description

Method and device for determining connection state of equipment, electronic equipment and medium
Technical Field
The present application relates to the field of monitoring technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for determining a connection state of a device.
Background
With the development of internet technology, the application of monitoring devices is becoming popular. For example, the city, traffic and road can be monitored by a plurality of cameras, and the acquired multimedia data such as the monitoring video is uploaded to a monitoring platform, such as a video monitoring security platform.
In the prior art, a monitoring device generally detects a connection state with a monitoring platform, and reports the detected connection state to the monitoring platform. The user can check the connection state of each monitoring device through the monitoring platform, namely check whether the monitoring device is on line or not, and can check the monitoring video uploaded by each monitoring device and the like.
However, in this way, the connection status of the acquired device is often inaccurate.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a medium for determining a connection state of a device, so as to improve accuracy of determining the connection state of the device when determining the connection state of the device.
In one aspect, a method for determining a connection state of a device is provided, where the method is applied to a monitoring platform, and includes:
when the sending triggering condition is determined to be met, a multimedia starting request message is sent to the monitoring equipment;
judging whether the multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in the response time period, if so, determining that the actual equipment connection state of the monitoring equipment is an on-line state;
otherwise, determining that the actual connection state of the equipment of the monitoring equipment is an offline state.
In the implementation process, whether the monitoring equipment is in an on-line state is judged by whether the multimedia data returned by the monitoring equipment can be received or not, so that the accuracy of determining the connection state of the equipment is improved.
In one embodiment, the total number of devices of the monitoring device is multiple, and when the sending trigger condition is determined to be met, a multimedia start request message is sent to the monitoring device, including at least one of the following modes:
if the device detection connection state reported by the first monitoring device is determined to be received, a multimedia starting request message is sent to the first monitoring device;
responding to the first trigger period reaching the second monitoring equipment, and sending a multimedia start request message to the second monitoring equipment;
responding to a second trigger period of the off-line monitoring equipment, and sending a multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state;
and if the multimedia start instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia start request message to the third monitoring equipment.
In the implementation process, the multimedia start request message may be sent when the device returned by the monitoring device detects the connection state, when the device receives the user indication, or when the first trigger period of the traversal period (i.e., the first trigger period or the second trigger period) is reached, so as to obtain the actual connection state of the device.
In one embodiment, the total number of devices of the monitoring device is multiple, and when determining that the sending trigger condition is met, sending a multimedia start request message to the monitoring device includes:
responding to a second trigger period of the off-line monitoring equipment, and sending a multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, a multimedia starting request message is sent to the online monitoring equipment, wherein the online monitoring equipment is monitoring equipment with an actual connection state in an online state;
or if the equipment detection connection state reported by the second monitoring equipment is determined to be received, a multimedia starting request message is sent to the second monitoring equipment for the first time; and in response to reaching the first trigger period of the second monitoring device, re-sending a multimedia start request message to the second monitoring device.
In the implementation process, various triggering conditions are combined, so that different detection requirements are met.
In one embodiment, the method further comprises:
receiving a device detection connection state reported by monitoring equipment;
Determining the credibility and/or state change frequency of the equipment detection connection state of the monitoring equipment according to at least one of the equipment detection connection state of the monitoring equipment and the actual equipment connection state of the monitoring equipment;
and determining a first trigger period and/or a second trigger period according to the reliability of the detection of the connection state of the equipment of the monitoring equipment and/or the state change frequency.
In the implementation process, the traversing period can be adaptively adjusted according to the reliability of the detection result of the monitoring equipment and the state change frequency.
In one embodiment, determining the reliability of the device detection connection state of the monitoring device according to at least one of the device detection connection state of the monitoring device and the actual connection state of the device of the monitoring device includes:
acquiring the latest detection connection state reported by the monitoring equipment, wherein the latest detection connection state is the equipment detection connection state reported by the monitoring equipment for the last time before the actual connection state of the equipment is acquired;
if monitoring equipment connected with the monitoring platform through the lower-level platform exists, counting the number of the untrusted equipment with inconsistent latest detection connection states and actual connection states of the corresponding equipment of the equipment connected with the plurality of monitoring equipment of the same lower-level platform;
Determining the credibility of the lower platform according to the number of the devices and the number of the un-credible devices corresponding to the lower platform;
the reliability of the lower stage is determined as the reliability of a plurality of monitoring devices connected to the lower stage.
In the implementation process, the credibility of the monitoring device can be determined according to the duty ratio of the number of the unreliable devices.
In one embodiment, determining the first trigger period and/or the second trigger period according to the reliability of the device detection connection state and/or the state change frequency of the monitoring device includes:
if the credibility accords with the credibility condition, determining a first duration set for the credibility as a first trigger period and/or a second trigger period;
if the state change frequency meets the change frequency condition, determining a second duration set for the state change frequency as a first trigger period and/or a second trigger period;
if the reliability and the state change frequency meet the comprehensive adjustment conditions, determining a first trigger period and/or a second trigger period according to the first duration and the second duration.
In the implementation process, the traversal period is adaptively adjusted according to the credibility and the state change frequency, so that the rationality of the traversal period setting is improved.
In one embodiment, the method further comprises:
after the actual connection state of the monitoring equipment is determined, updating the displayed actual connection state of the monitoring equipment in the application page in real time; or,
after the actual connection state of the monitoring equipment is determined, the actual connection state of the monitoring equipment is sent to the monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring equipment in the application page in real time.
In one aspect, there is provided an apparatus for determining a connection state of a device, including:
the sending unit is used for sending a multimedia starting request message to the monitoring equipment when the sending triggering condition is met;
the judging unit is used for judging whether the multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in the response time period, if yes, determining that the actual connection state of the equipment of the monitoring equipment is an on-line state; otherwise, determining that the actual connection state of the equipment of the monitoring equipment is an offline state.
In one embodiment, the total number of devices of the monitoring device is a plurality, and the sending unit is configured to perform at least one of the following modes:
if the device detection connection state reported by the first monitoring device is determined to be received, a multimedia starting request message is sent to the first monitoring device;
Responding to the first trigger period reaching the second monitoring equipment, and sending a multimedia start request message to the second monitoring equipment;
responding to a second trigger period of the off-line monitoring equipment, and sending a multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state;
and if the multimedia start instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia start request message to the third monitoring equipment.
In one embodiment, the total number of devices of the monitoring device is a plurality of, and the sending unit is configured to:
responding to a second trigger period of the off-line monitoring equipment, and sending a multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, a multimedia starting request message is sent to the online monitoring equipment, wherein the online monitoring equipment is monitoring equipment with an actual connection state in an online state;
or if the equipment detection connection state reported by the second monitoring equipment is determined to be received, a multimedia starting request message is sent to the second monitoring equipment for the first time; and in response to reaching the first trigger period of the second monitoring device, re-sending a multimedia start request message to the second monitoring device.
In one embodiment, the transmitting unit is further configured to:
receiving a device detection connection state reported by monitoring equipment;
determining the credibility and/or state change frequency of the equipment detection connection state of the monitoring equipment according to at least one of the equipment detection connection state of the monitoring equipment and the actual equipment connection state of the monitoring equipment;
and determining a first trigger period and/or a second trigger period according to the reliability of the detection of the connection state of the equipment of the monitoring equipment and/or the state change frequency.
In one embodiment, the transmitting unit is further configured to: acquiring the latest detection connection state reported by the monitoring equipment, wherein the latest detection connection state is the equipment detection connection state reported by the monitoring equipment for the last time before the actual connection state of the equipment is acquired;
if monitoring equipment connected with the monitoring platform through the lower-level platform exists, counting the number of the untrusted equipment with inconsistent latest detection connection states and actual connection states of the corresponding equipment of the equipment connected with the plurality of monitoring equipment of the same lower-level platform;
determining the credibility of the lower platform according to the number of the devices and the number of the un-credible devices corresponding to the lower platform;
the reliability of the lower stage is determined as the reliability of a plurality of monitoring devices connected to the lower stage.
In one embodiment, the transmitting unit is further configured to:
if the credibility accords with the credibility condition, determining a first duration set for the credibility as a first trigger period and/or a second trigger period;
if the state change frequency meets the change frequency condition, determining a second duration set for the state change frequency as a first trigger period and/or a second trigger period;
if the reliability and the state change frequency meet the comprehensive adjustment conditions, determining a first trigger period and/or a second trigger period according to the first duration and the second duration.
In an embodiment, the judging unit is further configured to:
after the actual connection state of the monitoring equipment is determined, updating the displayed actual connection state of the monitoring equipment in the application page in real time; or,
after the actual connection state of the monitoring equipment is determined, the actual connection state of the monitoring equipment is sent to the monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring equipment in the application page in real time.
In one aspect, an electronic device is provided that includes a processor and a memory storing computer readable instructions that, when executed by the processor, perform the steps of a method as provided in any of the various alternative implementations of determining a connection state of a device as described above.
In one aspect, there is provided a readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method as provided in any of the various alternative implementations of determining a connection state of a device as described above.
In the method, the device, the electronic equipment and the medium for determining the connection state of the equipment, when the sending triggering condition is determined to be met, a multimedia starting request message is sent to the monitoring equipment; judging whether the multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in the response time period, if so, determining that the actual equipment connection state of the monitoring equipment is an on-line state; otherwise, determining that the actual connection state of the equipment of the monitoring equipment is an offline state. Therefore, whether the monitoring equipment is in an on-line state or not is judged by whether the multimedia data returned by the monitoring equipment can be received, and the accuracy of determining the connection state of the equipment is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
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 of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and 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 architecture diagram of a system for determining a connection state of a device according to an embodiment of the present application;
FIG. 2 is a flowchart of an implementation of a method for determining a connection status of a device according to an embodiment of the present application;
fig. 3 is an interaction diagram of a method for initializing a device according to an embodiment of the present application;
fig. 4 is an interaction diagram of a subscription detection method of a device according to an embodiment of the present application;
fig. 5 is a flowchart of an implementation of a traversal detection method of a device according to an embodiment of the present application;
fig. 6 is a block diagram of an apparatus for determining a connection state of a device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Some of the terms referred to in the embodiments of the present application will be described first to facilitate understanding by those skilled in the art.
Terminal equipment: the mobile terminal, stationary terminal or portable terminal may be, for example, a mobile handset, a site, a unit, a device, a multimedia computer, a multimedia tablet, an internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a personal communications system device, a personal navigation device, a personal digital assistant, an audio/multimedia player, a digital camera/camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a game device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the terminal device can support any type of interface (e.g., wearable device) for the user, etc.
And (3) a server: the cloud server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, basic cloud computing services such as big data and artificial intelligent platforms and the like.
In order to improve accuracy of connection state determination of equipment when determining the connection state of the equipment, the embodiment of the application provides a method, a device, electronic equipment and a medium for determining the connection state of the equipment.
Referring to fig. 1, a schematic architecture diagram of a system for determining a connection state of a device according to an embodiment of the present application is shown. The system comprises a user terminal, a monitoring platform, a subordinate platform and at least one monitoring device. Further, the system may also include only the user terminal, the monitoring platform, and at least one monitoring device, which is not limited herein.
User terminal: may be a terminal device installed with a monitoring client. The monitoring client can acquire the connection state of the monitoring equipment, multimedia data shot by the monitoring equipment and the like through the monitoring platform.
The monitoring client may be a video client or a browser, etc. The user can view the connection state of the monitoring equipment through the video client or the browser page, and can play the monitoring video through the WEB page in the video client or the browser.
And (3) a monitoring platform: the method can be a server, and is used for acquiring the device detection connection state uploaded by the monitoring device in a query and/or subscription mode, determining the device actual connection state of the monitoring device in a mode of whether the device can acquire the multimedia data of the monitoring device, and sending the device actual connection state of the monitoring device to the monitoring client so as to update the connection state (namely the device actual connection state) of the device displayed by the monitoring client, and sending the multimedia data shot by the monitoring device to the monitoring client based on the multimedia data viewing request of the monitoring client, so that a user can play a monitoring video through the monitoring client.
The device detecting connection state is obtained by the monitoring device in a self-detecting manner. The actual connection state of the device is the connection state of the monitoring device determined by means of whether the multimedia data of the monitoring device can be acquired or not. The accuracy of detecting the connection state of the equipment is lower, the operation is simple, the accuracy of detecting the actual connection state of the equipment is higher, the operation is complex, therefore, when the number of the monitoring equipment is small, the actual connection state of the equipment of each monitoring equipment can be directly obtained to judge whether each monitoring equipment is in an on-line state, and when the number of the monitoring equipment is large, the mode of obtaining the actual connection state of the equipment is combined with the mode of obtaining the detection connection state of the equipment to judge whether each monitoring equipment is in the on-line state.
Optionally, the monitoring platform may be directly connected to the monitoring device in a communication manner, or may be connected to the monitoring device in a communication manner through a lower platform, which is not limited herein.
The lower stage platform: the method can be a server, and is used for acquiring the equipment detection connection state of the connected monitoring equipment according to the query instruction or the subscription instruction of the monitoring platform, uploading the acquired equipment detection connection state to the monitoring platform, acquiring the multimedia data monitored by the monitoring equipment according to the multimedia starting operation instruction of the monitoring platform, and uploading the acquired multimedia data to the monitoring platform.
Monitoring equipment: the number of the devices can be one or more, and the devices can be used for monitoring, such as a camera, a video camera and the like. The monitoring equipment can be directly connected with the monitoring platform, and also can be connected with the monitoring platform through a lower-level platform. The monitoring equipment can detect the connection state according to the inquiry instruction or the subscription instruction sent by the monitoring platform or the lower-level platform, and directly upload equipment to the server to detect the connection state in real time or when determining state change, or upload equipment to the monitoring platform to detect the connection state.
The device detection connection state refers to a connection state between the monitoring device and the monitoring platform, which is obtained in a self-detection mode, and is used for indicating whether the monitoring device is in an on-line state or an off-line state.
Referring to fig. 2, a flowchart of an implementation of a method for determining a connection state of a device according to an embodiment of the present application is shown, and in conjunction with the system for determining a connection state of a device in fig. 1, a specific implementation flow of the method is as follows:
step 200: and when the monitoring platform determines that the sending triggering condition is met, sending a multimedia starting request message to the monitoring equipment.
Specifically, the multimedia start request message is used for requesting the monitoring device to upload the collected multimedia data, i.e. the monitoring video, in real time.
When step 200 is executed, the monitoring platform sends a multimedia start request message to the monitoring device when determining that at least one of the following modes is met:
mode 1: and if the equipment detection connection state reported by the first monitoring equipment is determined to be received, sending a multimedia starting request message to the first monitoring equipment.
The first monitoring device may be any one of the monitoring devices connected to the monitoring platform, which is not limited herein.
Mode 2: and transmitting a multimedia start request message to the second monitoring device in response to reaching the first trigger period of the second monitoring device.
In one embodiment, if the total number of devices is determined to be below the specified number threshold, a multimedia activation request message is sent to the second monitoring device in accordance with the first trigger period.
The second monitoring device may be any one of the monitoring devices connected to the monitoring platform, which is not limited herein. The total number of devices is the number of monitoring devices to which the monitoring platform is directly or indirectly connected.
In this way, when the total number of devices is small, the periodic convenience can be adopted, and the multimedia start request message can be sent to each monitoring device.
Further, mode 1 may be combined with mode 2, i.e. the starting time of the first trigger period timing may be determined according to the time when the multimedia start request message is first sent to the second monitoring device.
In one embodiment, if it is determined that the device detecting the connection state reported by the second monitoring device is received, a multimedia start request message is first sent to the second monitoring device, and in response to reaching the first trigger period of the second monitoring device, the multimedia start request message is sent again to the second monitoring device.
Mode 3: and in response to reaching the second trigger period of the offline monitoring device, sending a multimedia start request message to the offline monitoring device.
In one embodiment, if the total number of devices is not less than the specified number threshold, a multimedia start request message is sent to the screened offline monitoring devices according to the second trigger period.
The off-line monitoring equipment is monitoring equipment with the actual connection state of the equipment in an off-line state.
In practical application, the first trigger period, the second trigger period and the specified number of thresholds may be set according to the practical application scenario, for example, the first trigger period and the second trigger period may be 5s, the specified number of thresholds may be 10, and the first trigger period and the second trigger period may be the same or different, which is not limited herein.
Mode 4: and if the multimedia start instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia start request message to the third monitoring equipment.
In one embodiment, the user sends a multimedia activation indication for the third monitoring device to the monitoring platform through the application page of the monitoring client. And the monitoring platform sends a multimedia starting request message to the third monitoring equipment through the lower-level platform or directly according to the received multimedia starting instruction.
The third monitoring device may be any one of the monitoring devices connected to the monitoring platform, or may be an online monitoring device, which is not limited herein. The on-line monitoring equipment is monitoring equipment with the actual connection state of the equipment in an on-line state.
Further, when the multimedia start request message is sent, mode 3 may be combined with mode 4.
In one embodiment, a multimedia activation request message is sent to the offline monitoring device in response to reaching a second trigger period of the offline monitoring device. And if the multimedia start instruction of the user for the online monitoring equipment is determined to be received, sending a multimedia start request message to the online monitoring equipment.
In practical application, the above modes of sending the multimedia start request message may be arbitrarily combined, and the execution sequence of each mode after combination may be set according to the practical application scenario, which is not limited herein.
Because the user usually views the multimedia video of the monitoring device in the online state, but rarely views the multimedia video of the monitoring device in the offline state, when the total number of the monitoring devices is small, the device actual connection state of each monitoring device can be periodically obtained in a traversing manner, however, when the total number of the monitoring devices is large, in order to reduce the system resources consumed by state maintenance, the device actual connection state of each monitoring device in the offline state can be traversed only, and the corresponding device actual connection state can be obtained for the monitoring device in the online state based on the user indication.
When the monitoring platform obtains the device detection connection state of the monitoring device, any one or any combination of the following modes can be adopted:
the first way is: and if the initialization instruction of the connected first monitoring equipment is received, sending a state request message to the first monitoring equipment, and receiving equipment detection connection state returned by the first monitoring equipment based on the state request message.
Specifically, when the initialization instruction for the first monitoring device is determined to be received, the monitoring platform sends a state request message to the first monitoring device. And after the first monitoring equipment determines that the state request message sent by the monitoring platform is received, performing connection state self-detection to obtain equipment detection connection state, and returning the equipment detection connection state to the monitoring platform. And the monitoring platform receives the equipment detection connection state returned by the first monitoring equipment.
Similarly, the monitoring platform can also send a status request message to the first monitoring device through the lower-level platform and receive the device detection connection status returned by the first monitoring device through the lower-level platform, which is not described herein.
In this way, when the initialization instruction for the first monitoring device is determined to be received, the device detection connection state of the first monitoring device can be obtained in real time, and then a multimedia start request message can be sent to the first monitoring device in a subsequent step so as to obtain the actual device connection state of the first monitoring device.
The second way is: and sending a state subscription message to the first monitoring equipment, and receiving the changed equipment detection connection state returned when the first monitoring equipment detects the state change.
In one embodiment, the monitoring platform sends a status subscription message to the first monitoring device through the lower platform. And after the first monitoring equipment receives the state subscription message, the first monitoring equipment automatically detects the connection state in real time. When the connection state change is detected, the first monitoring device acquires the changed device detection connection state and returns the changed device detection connection state to the monitoring platform through the lower platform.
Furthermore, the monitoring platform may also send a status request message to one or more monitoring devices selected by the user according to the user's instruction, so as to obtain a corresponding device detection connection status, which is not described herein.
It should be noted that, when the monitoring device just changes the state, the accuracy of obtaining the actual connection state of the device is generally the highest, so the monitoring platform may send, in real time, a multimedia start request message to the first monitoring device after determining that the connection state detected by the device returned by the first monitoring device is received, so as to obtain the accurate actual connection state of the device of the first monitoring device.
In this way, after receiving the connection state detected by the device returned by one or more monitoring devices, a multimedia start request message is sent to the corresponding monitoring device, so as to obtain the actual connection state of the corresponding device.
Step 201: the monitoring platform determines whether the multimedia data returned by the monitoring device based on the multimedia start request message is received within the response time period, if yes, step 202 is executed, otherwise step 203 is executed.
Specifically, if the multimedia data returned by the monitoring equipment is received within the set response time period, the monitoring platform determines that the actual equipment connection state of the monitoring equipment is an on-line state, otherwise, determines that the actual equipment connection state of the monitoring equipment is an off-line state.
In practical application, the set response time period may be set according to a practical application scenario, for example, 2s, which is not limited herein.
If the actual connection state of the device of one monitoring device is an on-line state, the monitoring device is indicated to successfully receive the multimedia start request message sent by the monitoring platform, and the multimedia data obtained by real-time monitoring is successfully uploaded to the monitoring platform directly or indirectly.
If the actual connection state of the device of one monitoring device is an offline state, the monitoring device is not informed of receiving the multimedia start request message sent by the monitoring platform, or the monitoring device is successful in receiving the multimedia start request message sent by the monitoring platform, but is not successful in uploading the multimedia data obtained by real-time monitoring to the monitoring platform.
Step 202: the monitoring platform determines that the actual connection state of the equipment of the monitoring equipment is an on-line state.
Step 203: the monitoring platform determines that the actual connection state of the equipment of the monitoring equipment is an offline state.
Furthermore, after receiving the actual connection state of the monitoring device, the monitoring platform can also store the actual connection state of the monitoring device and the device in an associated manner, and display the actual connection state of the monitoring device in real time through an application page.
When the actual connection state of the monitoring equipment is displayed, the following two modes can be adopted:
mode 1: and sending the actual connection state of the monitoring equipment to the monitoring client in real time. And after receiving the actual connection state of the monitoring equipment, the monitoring client updates the displayed actual connection state of the monitoring equipment in the application page.
Mode 2: after the actual connection state of the monitoring device is determined, the displayed actual connection state of the monitoring device is updated in real time in the application page.
Further, the first trigger period and/or the second trigger period may also be updated in real time or periodically according to at least one of the device detection connection status of the monitoring device and the device actual connection status of the monitoring device.
Wherein, when determining the first trigger period and/or the second trigger period, the following steps may be adopted:
s2031: and receiving the equipment detection connection state reported by the monitoring equipment.
S2032: and determining the reliability of the detection of the connection state of the equipment of the monitoring equipment and/or the state change frequency according to at least one of the detection of the connection state of the equipment of the monitoring equipment and the actual connection state of the equipment of the monitoring equipment.
When determining the reliability of the device detection connection state of the monitoring device, the monitoring platform may adopt any one or a combination of the following modes:
mode 1: if monitoring equipment connected with the monitoring platform through the lower-stage platform exists, the monitoring platform determines the credibility of the monitoring equipment connected with the lower-stage platform according to at least one of the equipment detection connection state of the monitoring equipment connected with the lower-stage platform and the actual equipment connection state of the monitoring equipment.
In one embodiment, if there is a monitoring device connected to the monitoring platform through the lower stage platform, the monitoring platform may determine the reliability of detecting the connection state by the device of the monitoring device connected to the monitoring platform through the lower stage platform, where the following steps may be adopted:
the first step: and acquiring the latest detection connection state reported by the monitoring equipment.
The latest detection connection state is the device detection connection state reported by the monitoring device for the last time before the actual connection state of the device is acquired.
And a second step of: and counting the number of the untrusted devices, of which the latest detection connection states of the devices connected to the plurality of monitoring devices of the same subordinate platform are inconsistent with the actual connection states of the corresponding devices.
The number of the lower-stage platforms may be one or more, and is not limited herein.
If the latest detection connection state of the monitoring equipment is inconsistent with the actual connection state of the corresponding equipment, the detection connection state of the equipment of the monitoring equipment is inaccurate.
And a third step of: and determining the credibility of the lower platform according to the number of the devices and the number of the un-credible devices corresponding to the lower platform.
The reliability of the lower-level platform is inversely related to the number of untrusted devices and the number of devices.
In one embodiment, a difference between the number of devices and the number of untrusted devices is determined, and a ratio of the number of devices that are the difference is determined as the trustworthiness of the lower level platform.
Fourth step: the reliability of the lower stage is determined as the reliability of a plurality of monitoring devices connected to the lower stage.
Mode 2: if monitoring equipment directly connected with the monitoring platform exists, the monitoring platform determines the credibility of the directly connected monitoring equipment according to at least one of the equipment detection connection state of the directly connected monitoring equipment and the actual equipment connection state of the monitoring equipment.
Specifically, when the monitoring platform determines the reliability of the device detection connection state of the monitoring device directly connected with the monitoring platform, the following steps may be adopted:
The first step: and acquiring the latest detection connection state reported by the monitoring equipment.
And a second step of: and counting the number of the untrusted devices, of which the latest detection connection states of the devices of the plurality of monitoring devices directly connected with the monitoring platform are inconsistent with the actual connection states of the corresponding devices.
And a third step of: and determining the credibility of the monitoring equipment directly connected with the monitoring platform according to the number of the equipment directly connected with the monitoring platform and the number of the unreliable equipment.
Mode 3: the monitoring platform determines the credibility of each monitoring device according to at least one of the device detection connection state of each monitoring device and the device actual connection state of the monitoring device.
Specifically, when the monitoring platform determines the reliability of the device detection connection state of the monitoring device, the following steps may be adopted:
the first step: and acquiring the latest detection connection state reported by the monitoring equipment.
And a second step of: and counting the number of the untrusted devices, the connection state of which is not consistent with the actual connection state of the corresponding device, of the latest detection of the devices of the monitoring devices directly connected with the monitoring platform and connected with the monitoring platform through the lower-level platform.
And a third step of: and determining the credibility of the monitoring equipment directly connected with the monitoring platform and connected with the lower-level platform according to the number of the equipment directly connected with the monitoring platform and connected with the lower-level platform and the number of the unreliable equipment.
Optionally, if there is a monitoring device directly connected to the monitoring platform, or there is a monitoring device connected to the monitoring platform through a lower platform, the reliability of each monitoring device may be determined by combining the above mode 1 and the above mode 2, or the reliability of each monitoring device may be determined only by adopting the above mode 3.
In practical applications, the above embodiments may be combined in any manner, or may be executed in any order, which is not limited herein.
Wherein, when determining the state change frequency of the monitoring device, any one or combination of the following modes can be adopted:
mode 1: and determining the state change frequency of the monitoring equipment according to the change times of the equipment detection connection state of the monitoring equipment in the designated time period.
In one embodiment, the ratio of the number of changes of each monitoring device to the designated time period is determined as the status change frequency of the monitoring device.
In one embodiment, the ratio of the average value of the number of changes to the designated time period is determined as the status change frequency of each monitoring device.
Mode 2: and determining the state change frequency of the monitoring equipment according to the change times of the actual connection state of the monitoring equipment in the designated time period.
In one embodiment, the ratio of the number of changes of each monitoring device to the designated time period is determined as the status change frequency of the monitoring device.
In one embodiment, the ratio of the average value of the number of changes to the designated time period is determined as the status change frequency of each monitoring device.
S2033: and determining a first trigger period and/or a second trigger period according to the reliability of the detection of the connection state of the equipment of the monitoring equipment and/or the state change frequency.
Specifically, when S2033 is executed, at least one of the following manners may be adopted:
mode 1: if the credibility meets the credibility condition, determining a first duration set for the credibility as a first trigger period and/or a second trigger period.
For example, assume that the determined reliability is 30%, and the reliability condition is: if the determined reliability is lower than 50%, determining a first duration set for the reliability, namely 1 minute, as a first trigger period.
Mode 2: if the state change frequency meets the change frequency condition, determining a second duration set for the state change frequency as the first trigger period and/or the second trigger period.
For example, assuming that the state change frequency is 10 times/h and the change frequency condition is that the state change frequency is higher than 5 times/h, the second time period set for the state change frequency, that is, 5min, is determined as the first trigger period.
Mode 3: if the reliability and the state change frequency meet the comprehensive and adjustment conditions, determining a first trigger period and/or a second trigger period according to the first duration and the second duration.
In one embodiment, the maximum or minimum of the first and second time periods is determined as the first and/or second trigger periods.
For example, assume that the sum adjustment conditions are: if the determined reliability is lower than 50%, the state change frequency is higher than 5 times/h, determining that the first time length is 1 minute, the second time length is 5 minutes, and determining that the maximum value of the first time length and the second time length is 5 minutes as a second trigger period.
The reliability condition, the frequency change condition, the sum adjustment condition, the first duration and the second duration can be set according to the actual application scene, and are not limited herein.
The above embodiments are further described below using several specific application scenarios.
Scene 1: referring to fig. 3, an interaction diagram of a method for initializing a device according to an embodiment of the present application is shown, and in combination with the system for determining a connection state of a device in fig. 1, a specific implementation flow of the method is as follows:
Step 301: and the monitoring client sends an initialization instruction to the monitoring platform.
Specifically, when the monitoring client determines that the device is initialized, the monitoring client sends an initialization instruction for updating the state to the monitoring platform.
Optionally, the monitoring platform may be an upper-level national standard 28181 platform, and the monitoring client may be a WEB page client.
For example, the state presentation layer of the monitoring client in the WEB page device sends an initialization indication to the upper-level national standard 28181 platform (i.e., the monitoring platform).
For another example, the monitoring client sends an initialization indication to the superior national standard 28181 platform in response to an initialization operation of the user for the monitoring page.
Step 302: the monitoring platform sends a status request message to the monitoring device.
In one embodiment, the monitoring platform sends a status request message to the subordinate platform based on the received initialization indication. The subordinate platform respectively sends a status request message to each monitoring device.
The state request message is used for requesting to acquire the current equipment detection connection state of the monitoring equipment.
Step 303: the monitoring equipment returns equipment detection connection state to the monitoring platform.
In one embodiment, after each monitoring device determines that the status request message is received, status detection is performed, a device detection connection status is obtained, and the device detection connection status is returned to the lower platform.
Step 304: the monitoring platform sends a multimedia start request message to the monitoring equipment.
Specifically, if it is determined that the connection state detected by the device returned by any monitoring device is received, the monitoring platform sends a multimedia start request message to any monitoring device through the lower platform.
Step 305: the monitoring device returns the multimedia data to the monitoring platform.
Step 306: and the monitoring platform determines the actual connection state of the devices of each monitoring device according to whether the returned multimedia data are received or not.
Step 307: the monitoring client receives the actual connection state of each monitoring device sent by the monitoring platform.
Step 308: the monitoring client displays the actual connection state of the devices of each monitoring device.
Specifically, the monitoring platform sends the actual connection state of the monitoring equipment to the monitoring client in real time. And after receiving the actual connection state of the monitoring equipment, the monitoring client updates the displayed actual connection state of the monitoring equipment in the application page.
Step 309: the monitoring platform determines the credibility and the state change frequency according to the equipment detection connection state and the actual equipment connection state of each monitoring equipment.
Specifically, when determining the reliability, the monitoring platform may employ the following steps:
And comparing the equipment detection connection state and the equipment actual connection state of each monitoring equipment, determining the equipment number of the monitoring equipment with consistent characterization state in each monitoring equipment, and determining the credibility according to the ratio between the total number of the equipment and the total number of each monitoring equipment.
For example, the total number of devices of the monitoring devices is 10, the number of devices of the monitoring devices with consistent state is 8 as compared with the number of devices of the monitoring devices with inconsistent state is 2 as compared with the result, and the reliability is 8/10=80%.
For another example, the total number of devices of the monitoring devices is 10, the device detection connection states of the device a, the device B, the device C, the device D and the device E are all on-line states, the device detection connection states of the device a, the device B, the device C, the device D and the device are all off-line states, the device actual connection states of the device a, the device B, the device C, the device D and the device E are all off-line states, and the reliability is determined to be 0.
In one embodiment, when determining the status change frequency, the monitoring platform may employ the following steps:
S3091: and respectively determining the change times of the actual connection state of the equipment of each monitoring equipment in the appointed time period.
In practical application, the specified time period may be set according to a practical application scenario, for example, the specified time period may be 5s, which is not limited herein.
S3092: and determining the state change frequency according to the change times of each monitoring device.
Step 310: and the monitoring platform determines a first trigger period and/or a second trigger period according to the reliability and the state change frequency.
In one embodiment, the monitoring platform obtains the total number of devices of each monitoring device, and determines whether the total number of devices is lower than a specified number threshold, if yes, determines a first trigger period according to the reliability and the state change frequency, and if not, determines a second trigger period according to the reliability and the state change frequency.
In one embodiment, determining the offline number of the monitoring device in the online state, and adjusting the second trigger period according to the reliability and the state change frequency when the offline number is determined to be lower than the specified number threshold.
It should be noted that, the higher the reliability, the higher the accuracy of detecting the connection state by the device, the longer the traversal period, that is, the first trigger period and the second trigger period, may be set, otherwise, the shorter the traversal period is set. Furthermore, the higher the state change frequency is, the more frequently the connection state of the monitoring device is changed, and the problems that the network cable is not plugged in and the like may exist, so that the traversing period needs to be reduced to improve the traversing frequency, otherwise, the traversing period can be improved.
Scene 2: and detecting the state of the monitoring equipment by adopting a state subscription mode. Referring to fig. 4, an interaction diagram of a subscription detection method of a device according to an embodiment of the present application is shown, and in combination with the system for determining a connection state of a device in fig. 1, a specific implementation flow of the method is as follows:
step 401: the monitoring platform sends a status subscription message to the monitoring device.
In one embodiment, the monitoring platform sends a status subscription message to a lower platform, and the lower platform sends the status subscription message to each monitoring device respectively.
Step 402: and when the monitoring equipment detects the state change, returning the changed equipment detection connection state to the monitoring platform.
In one embodiment, when each monitoring device detects a state change, the changed device detection connection state is returned to the lower platform. And the subordinate platform returns the equipment detection connection state to the monitoring platform.
Step 403: the monitoring platform sends a multimedia start request message to the monitoring equipment.
In one embodiment, if it is determined that the device detection connection state sent by any monitoring device is received, the monitoring platform sends a multimedia start request message to the corresponding monitoring device through the lower platform.
Step 404: the monitoring device returns the multimedia data to the monitoring platform.
Step 405: and the monitoring platform determines the actual connection state of the corresponding monitoring equipment according to whether the returned multimedia data is received or not.
Step 406: and the monitoring platform returns the actual connection state of the corresponding monitoring equipment to the monitoring client.
Step 407: the monitoring client updates and displays the actual connection state of the corresponding monitoring equipment.
Specifically, when steps 401 to 407 are performed, specific steps are referred to the above steps 200 to 203 and the above steps 301 to 310, and are not described herein.
Scene 3: and detecting the state of the monitoring equipment by adopting a periodic traversal mode. Referring to fig. 5, a flowchart of an implementation of a method for detecting traversal of a device according to an embodiment of the present application is shown, and in combination with the system for determining a connection state of a device in fig. 1, a specific implementation flow of the method is as follows:
step 500: the monitoring platform obtains the total number of the devices of each monitoring device.
Step 501: the monitoring platform determines whether the total number of devices is lower than a specified number threshold, if so, then step 502 is executed, otherwise, step 507 is executed.
Step 502: the monitoring platform determines a first trigger period.
Specifically, the monitoring platform determines a first trigger period according to the reliability and the state change frequency.
Step 503: and the monitoring platform respectively sends a multimedia starting request message to each monitoring device according to the first trigger period.
Specifically, the monitoring platform sends a multimedia start request message to each monitoring device through the lower platform according to the first trigger period.
Step 504: and the monitoring platform determines the actual connection state of the equipment of the monitoring equipment according to whether the multimedia data returned by the monitoring equipment is received in the appointed response time period.
Specifically, when executing step 504, the monitoring platform executes the following steps for each monitoring device after sending the multimedia start request message:
and judging whether the multimedia data returned by one monitoring device is received within the appointed response time period, if so, determining that the actual connection state of the device of the monitoring device is an on-line state by the monitoring platform, and otherwise, determining that the actual connection state of the device of the monitoring device is an off-line state.
Step 505: and the monitoring platform returns the actual connection state of the corresponding monitoring equipment to the monitoring client.
Step 506: the monitoring client updates and displays the actual connection state of the corresponding monitoring equipment.
Step 507: the monitoring platform determines a second trigger period.
Step 508: according to the second trigger period, the monitoring platform sends a multimedia start request message to each monitoring device whose actual connection state is offline, and step 504 is executed.
Further, when the multimedia start instruction of the user for any monitoring device is determined to be received, the monitoring platform can also send a multimedia start request message to any monitoring device selected by the user.
Alternatively, the user may select a device from all the monitoring devices, or may select a device from only the monitoring devices that are online, which is not limited herein.
In one embodiment, if the total number of the devices is not lower than the specified number threshold, the monitoring platform divides the monitoring devices into an online queue and an offline queue according to the actual connection state of the devices of the monitoring devices, respectively sends a multimedia start request message to each monitoring device in the offline queue according to a second trigger period, and if it is determined that a multimedia start instruction of a user for any monitoring device in the online queue is received, sends the multimedia start request message to any monitoring device selected by the user.
Further, when the monitoring platform determines that the state of any monitoring device is changed, the queue where the corresponding monitoring device is located is updated in real time.
Specifically, when steps 500 to 508 are performed, specific steps are referred to the above steps 200 to 203, the above steps 301 to 310, and the above steps 401 to 407, which are not described herein.
In the embodiment of the application, the actual connection state of the equipment of the monitoring equipment is determined by whether the multimedia data returned by the monitoring equipment is received or not, so that the dependence on the mode of reporting the equipment detection connection state by the monitoring equipment is reduced, and the accuracy of determining the connection state of the equipment is improved.
Based on the same inventive concept, the embodiment of the present application further provides a device for determining a connection state of an apparatus, and since the principle of the device and the apparatus for solving the problem is similar to that of a method for determining a connection state of an apparatus, implementation of the device may refer to implementation of the method, and repeated parts will not be repeated.
Fig. 6 is a schematic structural diagram of an apparatus for determining a connection state of a device according to an embodiment of the present application, where the apparatus includes:
a sending unit 601, configured to send a multimedia start request message to a monitoring device when determining that a sending trigger condition is met;
A judging unit 602, configured to judge whether multimedia data returned by the monitoring device based on the multimedia start request message is received in the response time period, if yes, determine that the device actual connection state of the monitoring device is an on-line state; otherwise, determining that the actual connection state of the equipment of the monitoring equipment is an offline state.
In one embodiment, the total number of devices of the monitoring device is plural, and the sending unit 601 is configured to perform at least one of the following modes:
if the device detection connection state reported by the first monitoring device is determined to be received, a multimedia starting request message is sent to the first monitoring device;
responding to the first trigger period reaching the second monitoring equipment, and sending a multimedia start request message to the second monitoring equipment;
responding to a second trigger period of the off-line monitoring equipment, and sending a multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state;
and if the multimedia start instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia start request message to the third monitoring equipment.
In one embodiment, the total number of devices of the monitoring devices is a plurality, and the sending unit 601 is configured to:
Responding to a second trigger period of the off-line monitoring equipment, and sending a multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, a multimedia starting request message is sent to the online monitoring equipment, wherein the online monitoring equipment is monitoring equipment with an actual connection state in an online state;
or if the equipment detection connection state reported by the second monitoring equipment is determined to be received, a multimedia starting request message is sent to the second monitoring equipment for the first time; and in response to reaching the first trigger period of the second monitoring device, re-sending a multimedia start request message to the second monitoring device.
In one embodiment, the sending unit 601 is further configured to:
receiving a device detection connection state reported by monitoring equipment;
determining the credibility and/or state change frequency of the equipment detection connection state of the monitoring equipment according to at least one of the equipment detection connection state of the monitoring equipment and the actual equipment connection state of the monitoring equipment;
and determining a first trigger period and/or a second trigger period according to the reliability of the detection of the connection state of the equipment of the monitoring equipment and/or the state change frequency.
In one embodiment, the sending unit 601 is further configured to: acquiring the latest detection connection state reported by the monitoring equipment, wherein the latest detection connection state is the equipment detection connection state reported by the monitoring equipment for the last time before the actual connection state of the equipment is acquired;
if monitoring equipment connected with the monitoring platform through the lower-level platform exists, counting the number of the untrusted equipment with inconsistent latest detection connection states and actual connection states of the corresponding equipment of the equipment connected with the plurality of monitoring equipment of the same lower-level platform;
determining the credibility of the lower platform according to the number of the devices and the number of the un-credible devices corresponding to the lower platform;
the reliability of the lower stage is determined as the reliability of a plurality of monitoring devices connected to the lower stage.
In one embodiment, the sending unit 601 is further configured to:
if the credibility accords with the credibility condition, determining a first duration set for the credibility as a first trigger period and/or a second trigger period;
if the state change frequency meets the change frequency condition, determining a second duration set for the state change frequency as a first trigger period and/or a second trigger period;
if the reliability and the state change frequency meet the comprehensive adjustment conditions, determining a first trigger period and/or a second trigger period according to the first duration and the second duration.
In one embodiment, the determining unit 602 is further configured to:
after the actual connection state of the monitoring equipment is determined, updating the displayed actual connection state of the monitoring equipment in the application page in real time; or,
after the actual connection state of the monitoring equipment is determined, the actual connection state of the monitoring equipment is sent to the monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring equipment in the application page in real time.
In the method, the device, the electronic equipment and the medium for determining the connection state of the equipment, when the sending triggering condition is determined to be met, a multimedia starting request message is sent to the monitoring equipment; judging whether the multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in the response time period, if so, determining that the actual equipment connection state of the monitoring equipment is an on-line state; otherwise, determining that the actual connection state of the equipment of the monitoring equipment is an offline state. Therefore, whether the monitoring equipment is in an on-line state or not is judged by whether the multimedia data returned by the monitoring equipment can be received, and the accuracy of determining the connection state of the equipment is improved.
Fig. 7 shows a schematic structural diagram of an electronic device 7000. Referring to fig. 7, an electronic device 7000 includes: processor 7010, memory 7020, power supply 7030, display unit 7040, and input unit 7050.
The processor 7010 is a control center of the electronic device 7000, connects the respective components using various interfaces and lines, and performs various functions of the electronic device 7000 by running or executing software programs and/or data stored in the memory 7020, thereby performing overall monitoring of the electronic device 7000.
In this embodiment, the processor 7010, when invoking a computer program stored in the memory 7020, performs a method of determining a connection state of a device as provided by the embodiment shown in fig. 2.
In the alternative, the processor 7010 may include one or more processing units; preferably, the processor 7010 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 7010. In some embodiments, the processor, memory, may be implemented on a single chip, and in some embodiments, they may be implemented separately on separate chips.
The memory 7020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, various applications, and the like; the storage data area may store data created according to the use of the electronic device 7000, or the like. In addition, the memory 7020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device, and the like.
The electronic device 7000 also includes a power supply 7030 (e.g., a battery) for powering the various components, which can be logically connected to the processor 7010 via a power management system to perform functions such as managing charge, discharge, and power consumption via the power management system.
The display unit 7040 may be used to display information input by a user or information provided to the user, various menus of the electronic device 7000, and the like, and in the embodiment of the present invention, is mainly used to display a display interface of each application in the electronic device 7000, and objects such as text and pictures displayed in the display interface. The display unit 7040 may include a display panel 7041. The display panel 7041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The input unit 7050 may be used to receive information such as numbers or characters input by a user. The input unit 7050 may include a touch panel 7051 and other input devices 7052. Among other things, the touch panel 7051, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 7051 or thereabout using any suitable object or accessory such as a finger, stylus, etc.).
Specifically, the touch panel 7051 may detect a touch operation by a user, detect a signal resulting from the touch operation, convert the signal into a touch point coordinate, transmit the touch point coordinate to the processor 7010, and receive and execute a command transmitted from the processor 7010. In addition, the touch panel 7051 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. Other input devices 7052 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, on-off keys, etc.), a trackball, mouse, joystick, etc.
Of course, the touch panel 7051 may overlay the display panel 7041, and upon detection of a touch operation thereon or thereabout by the touch panel 7051, the touch panel is transferred to the processor 7010 to determine the type of touch event, and the processor 7010 then provides a corresponding visual output on the display panel 7041 in accordance with the type of touch event. Although in fig. 7, the touch panel 7051 and the display panel 7041 are two separate components to implement the input and output functions of the electronic device 7000, in some embodiments, the touch panel 7051 may be integrated with the display panel 7041 to implement the input and output functions of the electronic device 7000.
The electronic device 7000 may also include one or more sensors, such as a pressure sensor, a gravitational acceleration sensor, a proximity light sensor, and the like. Of course, the electronic device 7000 may also include other components such as a camera, as needed in a specific application, and these components are not shown in fig. 7 and are not described in detail herein, since they are not the components that are important in the embodiments of the present application.
It will be appreciated by those skilled in the art that fig. 7 is merely an example of an electronic device and is not meant to be limiting and that more or fewer components than shown may be included or certain components may be combined or different components.
In an embodiment of the present application, a readable storage medium has stored thereon a computer program which, when executed by a processor, enables a communication device to perform the steps of the above-described embodiments.
For convenience of description, the above parts are described as being functionally divided into modules (or units) respectively. Of course, the functions of each module (or unit) may be implemented in the same piece or pieces of software or hardware when implementing the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. A method of determining a connection status of a device, the method being applied to a monitoring platform, the method comprising:
When the sending triggering condition is determined to be met, a multimedia starting request message is sent to the monitoring equipment;
judging whether the multimedia data returned by the monitoring equipment based on the multimedia start request message is received in a response time period, if so, determining that the actual equipment connection state of the monitoring equipment is an on-line state;
otherwise, determining that the actual equipment connection state of the monitoring equipment is an offline state;
the total number of the monitoring devices is a plurality, and when the sending triggering condition is met, the multimedia starting request message is sent to the monitoring devices, which comprises the following steps:
if the total number of the devices is determined to be lower than the specified number threshold, responding to the first trigger period of the second monitoring device, and sending the multimedia start request message to the second monitoring device; the second monitoring equipment is all monitoring equipment connected with the monitoring platform;
if the total number of the devices is not lower than the specified number threshold, responding to a second trigger period of the offline monitoring device, and sending the multimedia starting request message to the offline monitoring device, wherein the offline monitoring device is the monitoring device with the actual connection state of the devices in an offline state;
The lengths of the first trigger period and the second trigger period are positively correlated with the reliability of the equipment detection connection state of the monitoring equipment, or are negatively correlated with the state change frequency of the monitoring equipment.
2. The method of claim 1, wherein the determining that the transmission trigger condition is met, transmitting a multimedia activation request message to the monitoring device, further comprises at least one of:
if the device detection connection state reported by the first monitoring device is determined to be received, the multimedia starting request message is sent to the first monitoring device;
and if the multimedia start instruction of the user for the third monitoring equipment is determined to be received, sending the multimedia start request message to the third monitoring equipment.
3. The method of claim 1, wherein the determining that the transmission trigger condition is met, transmitting a multimedia activation request message to the monitoring device, comprises:
responding to a second trigger period of the off-line monitoring equipment, and sending the multimedia starting request message to the off-line monitoring equipment, wherein the off-line monitoring equipment is monitoring equipment with an actual connection state in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, the multimedia starting request message is sent to the online monitoring equipment, wherein the online monitoring equipment is monitoring equipment with an actual connection state in an online state;
Or if the equipment detection connection state reported by the second monitoring equipment is determined to be received, the multimedia starting request message is sent to the second monitoring equipment for the first time; and in response to reaching a first trigger period of the second monitoring device, resending the multimedia start request message to the second monitoring device.
4. The method as recited in claim 1, further comprising:
receiving a device detection connection state reported by monitoring equipment;
determining the credibility and/or state change frequency of the equipment detection connection state of the monitoring equipment according to at least one of the equipment detection connection state of the monitoring equipment and the actual equipment connection state of the monitoring equipment;
and determining a first trigger period and/or a second trigger period according to the reliability of the detection of the connection state of the equipment of the monitoring equipment and/or the state change frequency.
5. The method of claim 4, wherein determining the trustworthiness of the device of the monitoring device to detect the connection status based on at least one of the device detection connection status of the monitoring device and the actual connection status of the device of the monitoring device, comprises:
acquiring the latest detection connection state reported by monitoring equipment, wherein the latest detection connection state is the equipment detection connection state reported by the monitoring equipment for the last time before the actual connection state of the equipment is acquired;
If monitoring equipment connected with the monitoring platform through a lower-level platform exists, counting the number of the untrusted equipment with inconsistent latest detection connection states and actual connection states of the corresponding equipment of the equipment connected with a plurality of monitoring equipment of the same lower-level platform;
determining the credibility of the lower platform according to the number of the devices corresponding to the lower platform and the number of the unreliable devices;
and determining the credibility of the lower-level platform as the credibility of a plurality of monitoring devices connected to the lower-level platform.
6. The method according to claim 4, wherein determining the first trigger period and/or the second trigger period according to the reliability of the device detection of the monitoring device for the connection status and/or the status change frequency comprises:
if the credibility accords with the credibility condition, determining a first duration set for the credibility as a first trigger period and/or a second trigger period;
if the state change frequency meets the change frequency condition, determining a second duration set for the state change frequency as a first trigger period and/or a second trigger period;
and if the credibility and the state change frequency meet the comprehensive adjustment condition, determining a first trigger period and/or a second trigger period according to the first duration and the second duration.
7. The method of any one of claims 1-6, further comprising:
after the actual connection state of the monitoring equipment is determined, updating the displayed actual connection state of the monitoring equipment in an application page in real time; or,
and after the actual connection state of the monitoring equipment is determined, the actual connection state of the monitoring equipment is sent to a monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring equipment in an application page in real time.
8. An apparatus for determining a connection status of a device, comprising:
the sending unit is used for sending a multimedia starting request message to the monitoring equipment when the sending triggering condition is met;
the judging unit is used for judging whether the multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in the response time period, if yes, determining that the actual equipment connection state of the monitoring equipment is an on-line state; otherwise, determining that the actual equipment connection state of the monitoring equipment is an offline state;
the total number of devices of the monitoring device is a plurality, and the sending unit is configured to perform:
If the total number of the devices is determined to be lower than the specified number threshold, responding to the first trigger period of the second monitoring device, and sending the multimedia start request message to the second monitoring device; the second monitoring equipment is all monitoring equipment connected with the monitoring platform;
if the total number of the devices is not lower than the specified number threshold, responding to a second trigger period of the offline monitoring device, and sending the multimedia starting request message to the offline monitoring device, wherein the offline monitoring device is the monitoring device with the actual connection state of the devices in an offline state;
the lengths of the first trigger period and the second trigger period are positively correlated with the reliability of the equipment detection connection state of the monitoring equipment, or are negatively correlated with the state change frequency of the monitoring equipment.
9. An electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the method of any of claims 1-7.
10. A readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method according to any of claims 1-7.
CN202110989608.1A 2021-08-26 2021-08-26 Method and device for determining connection state of equipment, electronic equipment and medium Active CN113923254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110989608.1A CN113923254B (en) 2021-08-26 2021-08-26 Method and device for determining connection state of equipment, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110989608.1A CN113923254B (en) 2021-08-26 2021-08-26 Method and device for determining connection state of equipment, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113923254A CN113923254A (en) 2022-01-11
CN113923254B true CN113923254B (en) 2024-04-02

Family

ID=79233268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110989608.1A Active CN113923254B (en) 2021-08-26 2021-08-26 Method and device for determining connection state of equipment, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113923254B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207601A (en) * 2013-03-15 2013-07-17 翁昉倞 Energy management monitoring method for manufacturing shop of factory
JP2014192713A (en) * 2013-03-27 2014-10-06 Hitachi Industry & Control Solutions Ltd Monitoring system
CN106911916A (en) * 2017-03-10 2017-06-30 北京旷视科技有限公司 Image capturing system, apparatus and method
CN108847958A (en) * 2018-05-24 2018-11-20 平安科技(深圳)有限公司 Monitoring of tools management method, device, computer equipment and storage medium
CN109150588A (en) * 2018-07-25 2019-01-04 河北华沃通信科技有限公司 device management method and device
CN110620889A (en) * 2018-06-20 2019-12-27 杭州海康威视数字技术股份有限公司 Video monitoring system, network hard disk video recorder and data transmission method
CN112445667A (en) * 2020-12-11 2021-03-05 上海商汤临港智能科技有限公司 Detection method, detection device, computer equipment and storage medium
CN112565829A (en) * 2020-11-26 2021-03-26 湖南快乐阳光互动娱乐传媒有限公司 Network scheduling method, device and system and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160080205A1 (en) * 2014-09-16 2016-03-17 Sentry360 Plug and Play Camera Configuration Tool for Internet Protocol Cameras with Export to Third-Party Video Management Software Support, Batch Firmware Update, and Other Capabilities
US10034228B2 (en) * 2015-08-04 2018-07-24 Radius Networks, Inc. Status monitoring of unconnected wireless broadcast devices
US10003853B2 (en) * 2016-04-14 2018-06-19 One Gold Tooth, Llc System and methods for verifying and displaying a video segment via an online platform
CN107306286B (en) * 2016-04-21 2020-12-04 钉钉控股(开曼)有限公司 Processing method and device for offline attendance
US10728282B2 (en) * 2018-01-19 2020-07-28 General Electric Company Dynamic concurrent learning method to neutralize cyber attacks and faults for industrial asset monitoring nodes
JP7028675B2 (en) * 2018-02-28 2022-03-02 パナソニックi-PROセンシングソリューションズ株式会社 In-facility monitoring system and in-facility monitoring method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207601A (en) * 2013-03-15 2013-07-17 翁昉倞 Energy management monitoring method for manufacturing shop of factory
JP2014192713A (en) * 2013-03-27 2014-10-06 Hitachi Industry & Control Solutions Ltd Monitoring system
CN106911916A (en) * 2017-03-10 2017-06-30 北京旷视科技有限公司 Image capturing system, apparatus and method
CN108847958A (en) * 2018-05-24 2018-11-20 平安科技(深圳)有限公司 Monitoring of tools management method, device, computer equipment and storage medium
CN110620889A (en) * 2018-06-20 2019-12-27 杭州海康威视数字技术股份有限公司 Video monitoring system, network hard disk video recorder and data transmission method
CN109150588A (en) * 2018-07-25 2019-01-04 河北华沃通信科技有限公司 device management method and device
CN112565829A (en) * 2020-11-26 2021-03-26 湖南快乐阳光互动娱乐传媒有限公司 Network scheduling method, device and system and readable storage medium
CN112445667A (en) * 2020-12-11 2021-03-05 上海商汤临港智能科技有限公司 Detection method, detection device, computer equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
一种基于信任值的雾计算动态访问控制方法;杜义峰等;信息网络安全;全文 *
云计算系统服务器节点故障的检测算法;聂晶;内蒙古师范大学学报(自然科学汉文版);全文 *
公共安全视频监控联网系统信息传输、交换、控制技术要求;中华人民共和国国家标准;中国标准出版社;全文 *
水资源监测站试运行考核相关问题研究;陈锦云等;水利信息化;全文 *
浅谈环境检测实验室仪器设备的管理;严少红;中国检验检测;全文 *

Also Published As

Publication number Publication date
CN113923254A (en) 2022-01-11

Similar Documents

Publication Publication Date Title
CN104995581B (en) The gestures detection management of electronic equipment
WO2016197758A1 (en) Information recommendation system, method and apparatus
CN103959745A (en) Monitoring application program resource consumption
AU2021258010A1 (en) Notifications on mobile devices
CN112597361B (en) Ordering processing method and device, electronic equipment and storage medium
WO2022161325A1 (en) Prompting method and electronic device
CN109753243A (en) Copy dispositions method, Cloud Server and storage medium
CN112044057B (en) Game state monitoring method and device
CN116168038B (en) Image reproduction detection method and device, electronic equipment and storage medium
CN113923254B (en) Method and device for determining connection state of equipment, electronic equipment and medium
WO2016168961A1 (en) Theme replacement method and apparatus for intelligent terminal
EP3532948A1 (en) Determining geolocation of ip addresses using user transitions over time
CN107688498B (en) Application program processing method and device, computer equipment and storage medium
CN114760240B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN113660352A (en) Server scheduling method and device, electronic equipment and readable storage medium
CN114443164A (en) Task processing method and device, electronic equipment and storage medium
CN113705722B (en) Method, device, equipment and medium for identifying operating system version
CN112001582B (en) Urban area action evaluation method, device, equipment and computer storage medium
CN113721803B (en) Data generation method, device, equipment and storage medium
CN109739723A (en) Approaches to IM, device, computer installation and storage medium
CN113419795B (en) Call relation display method and device, computer equipment and storage medium
CN114115524B (en) Interaction method of intelligent water cup, storage medium and electronic device
CN117440365B (en) Method for downloading resource package and electronic equipment
CN114706731A (en) Intelligent service real-time dynamic monitoring method
CN110457547B (en) Search term recommendation and display method and related 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