CN113923254A - 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
CN113923254A
CN113923254A CN202110989608.1A CN202110989608A CN113923254A CN 113923254 A CN113923254 A CN 113923254A CN 202110989608 A CN202110989608 A CN 202110989608A CN 113923254 A CN113923254 A CN 113923254A
Authority
CN
China
Prior art keywords
monitoring
equipment
connection state
state
monitoring equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110989608.1A
Other languages
Chinese (zh)
Other versions
CN113923254B (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

Images

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 a sending triggering condition is determined to be met; judging whether multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in a response time period, if so, determining that the actual connection state of the monitoring equipment is an online state; otherwise, determining that the actual connection state of the monitoring equipment is an offline state. Therefore, whether the monitoring equipment is in an online state or not is judged by judging whether the multimedia data returned by the monitoring equipment can be received or not, 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 and an apparatus for determining a connection state of a device, an electronic device, and a medium.
Background
With the development of internet technology, the application of monitoring equipment is more and more popular. For example, cities, traffic and roads can be monitored by a plurality of cameras, and multimedia data such as acquired monitoring videos and the like can be uploaded to a monitoring platform, such as a video monitoring security platform.
In the prior art, a monitoring device usually detects a connection state between the monitoring device and 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 check monitoring videos uploaded by each monitoring device and the like.
However, in this way, the connection state 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 the method includes:
when the sending triggering condition is determined to be met, sending a multimedia starting request message to the monitoring equipment;
judging whether multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in a response time period, if so, determining that the actual connection state of the monitoring equipment is an online state;
otherwise, determining that the actual connection state of the monitoring equipment is an offline state.
In the implementation process, whether the monitoring equipment is in an online state or not is judged by judging 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 the monitoring devices is multiple, and when it is determined that the sending trigger condition is met, a multimedia initiation request message is sent to the monitoring device, including at least one of the following ways:
if the connection state of the equipment detection reported by the first monitoring equipment is determined to be received, a multimedia starting request message is sent to the first monitoring equipment;
in response to reaching a first trigger period of the second monitoring device, sending a multimedia start request message to the second monitoring device;
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 the monitoring equipment with the actual connection state of the equipment in an off-line state;
and if the multimedia starting instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia starting request message to the third monitoring equipment.
In the implementation process, the multimedia start request message may be sent when the connection detection state of the device returned by the monitoring device is received, the user instruction is received, or 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 method includes that the total number of the monitoring devices is multiple, and when it is determined that a sending trigger condition is met, a multimedia start request message is sent to the monitoring device, including:
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 the monitoring equipment with the actual connection state of the equipment in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, sending a multimedia starting request message to the online monitoring equipment, wherein the online monitoring equipment is the monitoring equipment of which the actual connection state is in an online state;
or if the connection state of the equipment detection 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 the first trigger period of the second monitoring device being reached, sending the multimedia start request message to the second monitoring device again.
In the implementation process, various trigger 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 a monitoring device;
determining the reliability 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 and/or the state change frequency of the device detection connection state of the monitoring device.
In the implementation process, the traversal cycle 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 credibility 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 device connection state 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 last time by the monitoring equipment before the actual connection state of the equipment is acquired;
if the monitoring equipment connected with the monitoring platform through the lower platform exists, counting the number of the unreliable equipment with inconsistent latest detection connection states of the equipment of the monitoring equipment connected to the same lower platform and actual connection states of the corresponding equipment;
determining the credibility of the lower platform according to the number of the devices corresponding to the lower platform and the number of the devices which cannot be trusted;
and determining the credibility of the lower platform as the credibility of a plurality of monitoring devices connected to the lower platform.
In the implementation process, the reliability of the monitoring equipment can be determined according to the ratio of the number of the untrustworthy equipment.
In one embodiment, determining the first trigger period and/or the second trigger period according to the reliability of the device detection connection state of the monitoring device and/or the state change frequency includes:
if the credibility meets the credibility condition, determining a first duration set for the credibility as a first trigger cycle and/or a second trigger cycle;
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 reliability and the state change frequency accord with the comprehensive adjustment condition, determining a first trigger period and/or a second trigger period according to the first time length and the second time length.
In the implementation process, the traversal cycle is adaptively adjusted according to the reliability and the state change frequency, and the reasonability of the setting of the traversal cycle 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 an application page in real time; alternatively, the first and second electrodes may be,
after the actual connection state of the monitoring device is determined, the actual connection state of the monitoring device is sent to the monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring device in an application page in real time.
In one aspect, an apparatus for determining a connection status of a device is provided, including:
the sending unit is used for sending a multimedia starting request message to the monitoring equipment when the sending triggering condition is determined to be met;
the judging unit is used for judging whether multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in a response time period, and if so, the actual connection state of the monitoring equipment is determined to be an online state; otherwise, determining that the actual connection state of the monitoring equipment is an offline state.
In one embodiment, the total number of the monitoring devices is multiple, and the transmitting unit is configured to perform at least one of the following modes:
if the connection state of the equipment detection reported by the first monitoring equipment is determined to be received, a multimedia starting request message is sent to the first monitoring equipment;
in response to reaching a first trigger period of the second monitoring device, sending a multimedia start request message to the second monitoring device;
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 the monitoring equipment with the actual connection state of the equipment in an off-line state;
and if the multimedia starting instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia starting request message to the third monitoring equipment.
In one embodiment, the total number of the monitoring devices is multiple, and the transmitting 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 the monitoring equipment with the actual connection state of the equipment in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, sending a multimedia starting request message to the online monitoring equipment, wherein the online monitoring equipment is the monitoring equipment of which the actual connection state is in an online state;
or if the connection state of the equipment detection 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 the first trigger period of the second monitoring device being reached, sending the multimedia start request message to the second monitoring device again.
In one embodiment, the sending unit is further configured to:
receiving a device detection connection state reported by a monitoring device;
determining the reliability 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 and/or the state change frequency of the device detection connection state of the monitoring device.
In one embodiment, the sending 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 last time by the monitoring equipment before the actual connection state of the equipment is acquired;
if the monitoring equipment connected with the monitoring platform through the lower platform exists, counting the number of the unreliable equipment with inconsistent latest detection connection states of the equipment of the monitoring equipment connected to the same lower platform and actual connection states of the corresponding equipment;
determining the credibility of the lower platform according to the number of the devices corresponding to the lower platform and the number of the devices which cannot be trusted;
and determining the credibility of the lower platform as the credibility of a plurality of monitoring devices connected to the lower platform.
In one embodiment, the sending unit is further configured to:
if the credibility meets the credibility condition, determining a first duration set for the credibility as a first trigger cycle and/or a second trigger cycle;
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 reliability and the state change frequency accord with the comprehensive adjustment condition, determining a first trigger period and/or a second trigger period according to the first time length and the second time length.
In one embodiment, the determining 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 an application page in real time; alternatively, the first and second electrodes may be,
after the actual connection state of the monitoring device is determined, the actual connection state of the monitoring device is sent to the monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring device in an application page in real time.
In one aspect, an electronic device is provided comprising a processor and a memory, the memory storing computer readable instructions which, when executed by the processor, perform the steps of the method provided in any of the various alternative implementations of determining a connection state of a device as described above.
In one aspect, a readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the steps of the method as provided in any of the various alternative implementations of determining a connection status of a device as described above.
In the method, the device, the electronic device and the medium for determining the connection state of the device, provided by the embodiment of the application, when the condition that the sending trigger condition is met is determined, a multimedia starting request message is sent to the monitoring device; judging whether multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in a response time period, if so, determining that the actual connection state of the monitoring equipment is an online state; otherwise, determining that the actual connection state of the monitoring equipment is an offline state. Therefore, whether the monitoring equipment is in an online state or not is judged by judging whether the multimedia data returned by the monitoring equipment can be received or not, 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 the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof 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 required to be used 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 therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
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 disclosure;
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 disclosure;
fig. 3 is an interaction diagram of a method for device initialization 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 illustrating an implementation of a traversal detection method for a device according to an embodiment of the present disclosure;
fig. 6 is a block diagram illustrating a structure of an apparatus for determining a connection state of a device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
First, some terms referred to in the embodiments of the present application will be described to facilitate understanding by those skilled in the art.
The terminal equipment: may be a mobile terminal, a fixed terminal, or a portable terminal such as a mobile handset, station, unit, device, multimedia computer, multimedia tablet, internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, personal communication system device, personal navigation device, personal digital assistant, audio/multimedia player, digital camera/camcorder, positioning device, television receiver, radio broadcast receiver, electronic book device, gaming 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 to the user (e.g., wearable device), and the like.
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 basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, big data and artificial intelligence platform and the like.
In order to improve the accuracy of determining the connection state of a device when determining the connection state of the device, embodiments of the present application provide a method, an apparatus, an electronic device, and a medium for determining the connection state of the device.
Fig. 1 is a schematic structural diagram of a system for determining a connection state of a device according to an embodiment of the present disclosure. The system comprises a user terminal, a monitoring platform, a lower platform and at least one monitoring device. Further, the system may also include only the user terminal, the monitoring platform, and the at least one monitoring device, which is not limited herein.
A 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 check 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.
A monitoring platform: the server may be configured to acquire a device detection connection state uploaded by the monitoring device in a query and/or subscription manner, determine an actual device connection state of the monitoring device in a manner of determining whether the multimedia data of the monitoring device can be acquired, send the actual device connection state of the monitoring device to the monitoring client, update the connection state of the device (i.e., the actual device connection state) displayed by the monitoring client, and send the multimedia data shot by the monitoring device to the monitoring client based on a multimedia data viewing request of the monitoring client, so that a user may play a monitoring video through the monitoring client.
It should be noted that the device detection connection state is a connection state of the monitoring device obtained by a self-detection manner of the monitoring device. The actual connection state of the device is the connection state of the monitoring device determined by whether the multimedia data of the monitoring device can be acquired or not. The method for detecting the connection state of the monitoring equipment comprises the steps of detecting the connection state of the monitoring equipment by the monitoring equipment, wherein the connection state of the monitoring equipment is detected by the monitoring equipment, and the connection state of the monitoring equipment is detected by the monitoring equipment.
Optionally, the monitoring platform may be directly in communication connection with the monitoring device, or may be in communication connection with the monitoring device through a lower platform, which is not limited herein.
A lower platform: the server may be configured to acquire a device detection connection state of the connected monitoring device according to a query instruction or a subscription instruction of the monitoring platform, and upload the acquired device detection connection state to the monitoring platform, and further configured to acquire multimedia data monitored by the monitoring device according to a multimedia start operation instruction of the monitoring platform, and upload the acquired multimedia data to the monitoring platform.
The monitoring equipment: one or more than one, which are devices for monitoring, such as a camera and a video camera. The monitoring equipment can be directly connected with the monitoring platform or can be connected with the monitoring platform through a lower platform. The monitoring device can detect the connection state according to a query instruction or a subscription instruction sent by the monitoring platform or the lower platform, and directly upload the device detection connection state to the server in real time or when the state change is determined, or upload the device detection connection state to the monitoring platform through the lower platform.
The device detection connection state refers to a connection state between the monitoring device and the monitoring platform, which is obtained by the monitoring device in a self-detection mode, and is used for indicating whether the monitoring device is in an online state or an offline state.
Referring to fig. 2, an implementation flow chart of a method for determining a connection state of a device according to an embodiment of the present application is shown, and with reference to 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 to request the monitoring device to upload the collected multimedia data, i.e., the monitoring video, in real time.
When step 200 is executed and it is determined that at least one of the following sending triggering conditions is met, the monitoring platform sends a multimedia starting request message to the monitoring device:
mode 1: and if the connection detection 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 in response to reaching the first trigger period of the second monitoring device, sending a multimedia initiation request message to the second monitoring device.
In one embodiment, if it is determined that the total number of devices is lower than the specified number threshold, a multimedia initiation request message is sent to the second monitoring device according to a first trigger cycle.
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 the devices is the number of the monitoring devices directly or indirectly connected with the monitoring platform.
Therefore, when the total number of the devices is small, the multimedia starting request message can be sent to each monitoring device by adopting the periodical convenience.
Further, the mode 1 may be combined with the mode 2, that is, the starting time of the first trigger period timing may be determined according to the time when the multimedia initiation request message is first sent to the second monitoring device.
In one embodiment, if it is determined that the device detection connection status reported by the second monitoring device is received, the multimedia start request message is sent to the second monitoring device for the first time, and in response to reaching the first trigger period of the second monitoring device, the multimedia start request message is sent to the second monitoring device again.
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 the devices is determined not to be lower than the specified number threshold, a multimedia starting request message is sent to the screened connection monitoring devices according to a second trigger cycle.
The offline monitoring equipment is the monitoring equipment with the actual connection state of the equipment in the offline state.
In practical applications, the first trigger period, the second trigger period, and the specified number threshold may all be set according to practical application scenarios, for example, the first trigger period and the second trigger period may be 5s, the specified number threshold 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 starting instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia starting request message to the third monitoring equipment.
In one embodiment, the user sends a multimedia start instruction for the third monitoring device to the monitoring platform through an application page of the monitoring client. And the monitoring platform sends a multimedia starting request message to the third monitoring equipment through the lower 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, and may also be an online monitoring device, which is not limited herein. The online monitoring equipment is the monitoring equipment with the actual connection state of the equipment in an online state.
Further, when the multimedia initiation request message is transmitted, the mode 3 may be combined with the mode 4.
In one embodiment, in response to reaching the second trigger period of the offline monitoring device, a multimedia initiation request message is sent to the offline monitoring device. And if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, sending a multimedia starting request message to the online monitoring equipment.
In practical application, the manners of sending the multimedia initiation request message may be combined arbitrarily, and the execution sequence of the combined manners may also be set according to a practical application scenario, which is not limited herein.
Because a user usually views the multimedia video of the monitoring device in the online state, and rarely views the multimedia video of the monitoring device in the offline state, when the total number of the monitoring devices is small, the actual connection state of the monitoring devices can be periodically obtained in a traversal manner, but when the total number of the monitoring devices is large, the actual connection state of the monitoring devices in the offline state can be only traversed to reduce system resources consumed for state maintenance, and for the monitoring devices in the online state, the corresponding actual connection state of the monitoring devices can be obtained based on user instructions.
When the monitoring platform acquires the device detection connection state of the monitoring device, any one or any combination of the following modes can be adopted:
the first mode is as follows: and if the initialization instruction aiming at the connected first monitoring equipment is determined to be received, sending a state request message to the first monitoring equipment, and receiving an equipment detection connection state returned by the first monitoring equipment based on the state request message.
Specifically, when it is determined that the initialization instruction for the first monitoring device is received, the monitoring platform sends a status 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, acquiring an 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 may also send a status request message to the first monitoring device through the lower platform and receive a device detection connection status returned by the first monitoring device through the lower platform, which is not described herein again.
Therefore, when the initialization instruction aiming at 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 further, in the subsequent steps, the multimedia starting request message can be sent to the first monitoring device so as to obtain the actual device connection state of the first monitoring device.
The second mode is as follows: and sending a state subscription message to the first monitoring equipment, and receiving a 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 receiving the state subscription message, the first monitoring equipment carries out self-detection on the connection state in real time. When the connection state change is detected, the first monitoring equipment acquires the changed equipment detection connection state and returns the changed equipment detection connection state to the monitoring platform through the lower platform.
Further, the monitoring platform may also send a status request message to one or more monitoring devices selected by the user according to the instruction of the user, so as to obtain a corresponding device detection connection status, which is not described herein again.
It should be noted that, when the monitoring device has just changed its state, the accuracy of obtaining the actual connection state of the device is usually the highest, so the monitoring platform may send the multimedia start request message to the first monitoring device in real time 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.
Therefore, after receiving the device detection connection state returned by one or more monitoring devices, the multimedia startup request message can be sent to the corresponding monitoring device to obtain the actual connection state of the corresponding device.
Step 201: the monitoring platform judges whether multimedia data returned by the monitoring device based on the multimedia starting request message is received in the response time period, if so, step 202 is executed, otherwise, step 203 is executed.
Specifically, if the multimedia data returned by the monitoring device is received within the set response time period, the monitoring platform determines that the actual connection state of the monitoring device is an online state, otherwise, determines that the actual connection state of the monitoring device is an offline state.
In practical applications, the set response time period may be set according to practical application scenarios, such as 2s, and is not limited herein.
If the actual connection state of the monitoring device is the online state, it indicates that the monitoring device successfully receives the multimedia start request message sent by the monitoring platform, and successfully uploads the multimedia data obtained by real-time monitoring to the monitoring platform directly or indirectly.
If the actual connection state of the device of one monitoring device is the offline state, it indicates that the monitoring device does not receive the multimedia start request message sent by the monitoring platform, or the monitoring device successfully receives the multimedia start request message sent by the monitoring platform, but does not successfully upload the multimedia data obtained by real-time monitoring to the monitoring platform.
Step 202: and the monitoring platform determines that the actual connection state of the monitoring equipment is an online state.
Step 203: and the monitoring platform determines that the actual connection state of the monitoring equipment is an offline state.
Furthermore, after receiving the actual connection state of the monitoring device, the monitoring platform can also perform associated storage on the monitoring device and the actual connection state of the monitoring device, and display the actual connection state of the monitoring device in real time through an application page.
When the actual connection state of the equipment 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: and 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.
Further, the first trigger period and/or the second trigger period may be updated in real time or periodically according to at least one of the device detection connection state of the monitoring device and the actual device connection state of the monitoring device.
When the first trigger period and/or the second trigger period are determined, the following steps may be adopted:
s2031: and receiving the device detection connection state reported by the monitoring device.
S2032: and determining the reliability and/or the 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.
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: and if the monitoring equipment connected with the monitoring platform through the lower platform exists, the monitoring platform determines the credibility of the monitoring equipment connected with the lower platform according to at least one of the equipment detection connection state of the monitoring equipment connected with the lower platform and the actual connection state of the monitoring equipment.
In one embodiment, if there is a monitoring device connected to the monitoring platform through the lower platform, when the monitoring platform determines that the device of the monitoring device connected to the monitoring platform through the lower platform detects the reliability of the connection state, the following steps may be performed:
the first step is as follows: and acquiring the latest detection connection state reported by the monitoring equipment.
The latest detection connection state is the device detection connection state reported last by the monitoring device before the actual connection state of the device is obtained.
The second step is that: and counting the number of the unreliable devices of which the latest detection connection states of the devices of the plurality of monitoring devices connected to the same lower-level platform are inconsistent with the actual connection states of the corresponding devices.
The number of the lower platforms may be one or more, and is not limited herein.
And if the latest detection connection state of the monitoring equipment is inconsistent with the actual connection state of the corresponding equipment, indicating that the equipment detection connection state of the monitoring equipment is inaccurate.
The third step: and determining the credibility of the lower platform according to the number of the devices corresponding to the lower platform and the number of the devices which cannot be trusted.
The credibility of the lower platform is negatively related to the number of the untrusted devices and the number of the 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 differ is determined as the trustworthiness of the lower level platform.
The fourth step: and determining the credibility of the lower platform as the credibility of a plurality of monitoring devices connected to the lower platform.
Mode 2: and if the 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 to the monitoring platform, the following steps may be adopted:
the first step is as follows: and acquiring the latest detection connection state reported by the monitoring equipment.
The second step is that: and counting the number of the unreliable 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.
The third step: 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 untrustworthy equipment.
Mode 3: and the monitoring platform determines the reliability of each monitoring device according to at least one of the device detection connection state of each monitoring device and the actual device connection state of each 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 is as follows: and acquiring the latest detection connection state reported by the monitoring equipment.
The second step is that: and counting the number of the untrusted devices, which are directly connected with the monitoring platform and are connected with the monitoring platform through the lower platform, of the devices of the plurality of monitoring devices, wherein the number of the untrusted devices is inconsistent with the actual connection state of the corresponding devices in the latest detection connection state.
The third step: and determining the credibility of the monitoring equipment which is directly connected with the monitoring platform and is connected with the lower-level platform according to the number of the equipment and the number of the untrustworthy equipment which are directly connected with the monitoring platform and are connected with the lower-level platform.
Optionally, if there is a monitoring device directly connected to the monitoring platform or 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-described mode 1 and mode 2, or the reliability of each monitoring device may be determined by only using the above-described mode 3.
In practical applications, the above modes may be combined in any mode, and may also be executed in any order, which is not limited herein.
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 a specified time period.
In one embodiment, the ratio of the number of changes of each monitoring device to the specified time period is determined as the state change frequency of the monitoring device.
In one embodiment, the ratio of the average value of the change times to the specified time period is determined as the state 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 a specified time period.
In one embodiment, the ratio of the number of changes of each monitoring device to the specified time period is determined as the state change frequency of the monitoring device.
In one embodiment, the ratio of the average value of the change times to the specified time period is determined as the state change frequency of each monitoring device.
S2033: and determining a first trigger period and/or a second trigger period according to the reliability and/or the state change frequency of the device detection connection state of the monitoring device.
Specifically, when S2033 is executed, at least one of the following manners may be adopted:
mode 1: and 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, assuming that the determined confidence level is 30%, the confidence level condition is: if the determined reliability is lower than 50%, a first duration set for the reliability, namely 1 minute, is determined as a first trigger period.
Mode 2: and if the state change frequency meets the change frequency condition, determining a second duration set aiming at the state change frequency as a first trigger period and/or a second trigger period.
For example, if 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 duration set for the state change frequency, that is, 5min, is determined as the first trigger period.
Mode 3: and if the reliability and the state change frequency accord with the comprehensive adjustment condition, determining a first trigger period and/or a second trigger period according to the first time length and the second time length.
In one embodiment, the maximum value or the minimum value of the first time length and the second time length is determined as the first trigger period and/or the second trigger period.
For example, assume the summation adjustment condition is: and if the determined reliability is lower than 50% and the state change frequency is higher than 5 times/h, determining that the first time length is 1 minute and the second time length is 5min, and determining the maximum value of the first time length and the second time length to be 5min as a second trigger period.
The reliability condition, the change frequency condition, the synthesis and adjustment condition, the first duration and the second duration may be set according to an actual application scenario, and are not limited herein.
The above embodiments are further described below using several specific application scenarios.
Scene 1: referring to fig. 3, a specific implementation flow of the method is as follows, in combination with the system for determining the connection state of the device in fig. 1, for an interaction diagram of the method for initializing the device provided in the embodiment of the present application, in a device initialization scenario:
step 301: and the monitoring client sends an initialization instruction to the monitoring platform.
Specifically, the monitoring client sends an initialization instruction for updating the state to the monitoring platform when determining that the device is initialized.
Optionally, the monitoring platform may be an upper international standard 28181 platform, and the monitoring client may be a WEB page client.
For example, the status display layer of the monitoring client in the WEB page device sends an initialization instruction to the upper international standard 28181 platform (i.e., the monitoring platform).
For another example, the monitoring client sends an initialization instruction to the upper international 28181 platform in response to the initialization operation of the user on the monitoring page.
Step 302: and the monitoring platform sends a state request message to the monitoring equipment.
In one embodiment, the monitoring platform sends a status request message to the lower level platform based on the received initialization indication. And the lower platform respectively sends a state request message to each monitoring device.
The state request message is used for requesting to acquire the current device detection connection state of the monitoring device.
Step 303: and the monitoring equipment returns the equipment detection connection state to the monitoring platform.
In one embodiment, after determining that the status request message is received, each monitoring device performs status detection, obtains a device detection connection status, and returns the device detection connection status to the lower platform.
Step 304: and the monitoring platform sends a multimedia starting request message to the monitoring equipment.
Specifically, if it is determined that the device detection connection state 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 equipment returns the multimedia data to the monitoring platform.
Step 306: and the monitoring platform determines the actual connection state of the equipment of each monitoring device according to whether the returned multimedia data is received or not.
Step 307: and the monitoring client receives the actual connection state of each monitoring device sent by the monitoring platform.
Step 308: and the monitoring client displays the actual connection state of each monitoring device.
Specifically, the monitoring platform sends the actual connection state of the monitoring device 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: and the monitoring platform determines the reliability and the state change frequency according to the equipment detection connection state and the actual connection state of each monitoring device.
Specifically, when determining the reliability, the monitoring platform may adopt the following steps:
and respectively comparing the equipment detection connection state of each monitoring equipment with the actual connection state of the equipment, determining the equipment number of the monitoring equipment with consistent comparison results and representation states in each monitoring equipment, and determining the reliability according to the ratio of the total number of the equipment to the total number of each monitoring equipment.
For example, if the total number of the monitoring devices is 10, the number of the monitoring devices whose states are represented by the comparison result is 8, and the number of the monitoring devices whose states are represented by the comparison result is 2, the confidence level is 8/10 — 80%.
For another example, the total number 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 online states, the device detection connection states of the device a, the device B, the device C, the device D, and the device E are all offline 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 offline states, and the device actual connection states of the device a, the device B, the device C, the device D, and the device are all online states, and then the reliability is determined to be 0.
In one embodiment, when determining the frequency of the state change, the monitoring platform may adopt the following steps:
s3091: and respectively determining the number of times of changing the actual connection state of the equipment in a specified time period by each monitoring equipment.
In practical applications, the specified time period may be set according to practical application scenarios, 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 the devices of each monitoring device, and judges whether the total number of the devices is lower than a specified number threshold, if so, determines a first trigger period according to the reliability and the state change frequency, otherwise, determines a second trigger period according to the reliability and the state change frequency.
In one embodiment, the number of offline monitoring devices in the online state is determined, and when the number of offline monitoring devices is lower than a threshold value of the specified number, the second trigger period is adjusted according to the reliability and the state change frequency.
It should be noted that, the higher the confidence level is, the higher the accuracy of detecting the connection state by the device is, the longer the traversal period, that is, the first trigger period and the second trigger period, may be set, and conversely, the shorter the traversal period is set. Moreover, the higher the state change frequency is, it indicates that the connection state of the monitoring device is changed frequently, and there may be a problem that a network cable is not plugged, and the like, and the traversal period needs to be reduced to improve the traversal frequency, otherwise, the traversal 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 for a device according to an embodiment of the present application is shown, and with reference to 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: and the monitoring platform sends a state subscription message to the monitoring equipment.
In one embodiment, the monitoring platform sends a status subscription message to the lower platform, and the lower platform sends the status subscription message to each monitoring device.
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, each monitoring device detects a change in state and returns the changed device detection connection state to the lower platform. And the lower platform returns the equipment detection connection state to the monitoring platform.
Step 403: and the monitoring platform sends a multimedia starting request message to the monitoring equipment.
In one embodiment, if it is determined that the device detection connection status 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 equipment 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: and the monitoring client updates and displays the actual connection state of the corresponding monitoring equipment.
Specifically, when step 401 to step 407 are executed, the specific steps refer to step 200 to step 203 and step 301 to step 310, which are not described herein again.
Scene 3: and detecting the state of the monitoring equipment in a periodic traversal mode. Referring to fig. 5, an implementation flow chart of a traversal detection method for a device according to an embodiment of the present application is shown, and with reference to 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: and the monitoring platform acquires the total quantity of the monitoring devices.
Step 501: the monitoring platform judges whether the total number of the devices is lower than a specified number threshold value, if so, step 502 is executed, and if not, 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 monitoring equipment according to whether the multimedia data returned by the monitoring equipment is received in the appointed response time period.
Specifically, when step 504 is executed, the monitoring platform executes the following steps for each monitoring device that has sent the multimedia initiation request message:
and judging whether multimedia data returned by one monitoring device is received in a specified response time period, if so, determining that the actual connection state of the monitoring device is an online state by the monitoring platform, and otherwise, determining that the actual connection state of the monitoring device is an offline state.
Step 505: and the monitoring platform returns the actual connection state of the corresponding monitoring equipment to the monitoring client.
Step 506: and 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: and the monitoring platform sends a multimedia start request message to each monitoring device with the actual connection state of the device being the offline state according to the second trigger cycle, and executes step 504.
Further, when determining that a multimedia start instruction for any monitoring device is received, the monitoring platform may further send a multimedia start request message to any monitoring device selected by the user.
Optionally, the user may select a device from all monitoring devices, or may select a device from only monitoring devices in an online state, which is not limited herein.
In one embodiment, if it is determined that the total number of the devices is not less than the specified number threshold, the monitoring platform divides each monitoring device into an online queue and an offline queue according to the actual connection state of the device of each monitoring device, and respectively sends a multimedia start request message to each monitoring device in the offline queue according to a second trigger cycle, and sends a multimedia start request message to any monitoring device selected by the user if it is determined that a multimedia start instruction directed to any monitoring device in the online queue is received by the user.
Further, when determining that the state of any monitoring device changes, the monitoring platform updates the queue where the corresponding monitoring device is located in real time.
Specifically, when step 500 to step 508 are executed, the specific steps refer to step 200 to step 203, step 301 to step 310, and step 401 to step 407, which are not described herein again.
In the embodiment of the application, the actual connection state of the monitoring equipment is determined by whether the multimedia data returned by the monitoring equipment is received, so that the dependence on the mode of reporting the connection state of the equipment detection 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 a device, and because the principles of the device and the device for solving the problems are similar to those of a method for determining a connection state of a device, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, which is a schematic structural diagram of an apparatus for determining a connection state of a device according to an embodiment of the present application, the apparatus includes:
a sending unit 601, configured to send a multimedia start request message to a monitoring device when it is determined that a sending trigger condition is met;
a determining unit 602, configured to determine whether multimedia data returned by the monitoring device based on the multimedia start request message is received in a response time period, and if yes, determine that an actual connection state of the monitoring device is an online state; otherwise, determining that the actual connection state of the monitoring equipment is an offline state.
In one embodiment, the total number of the monitoring devices is multiple, and the sending unit 601 is configured to perform at least one of the following manners:
if the connection state of the equipment detection reported by the first monitoring equipment is determined to be received, a multimedia starting request message is sent to the first monitoring equipment;
in response to reaching a first trigger period of the second monitoring device, sending a multimedia start request message to the second monitoring device;
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 the monitoring equipment with the actual connection state of the equipment in an off-line state;
and if the multimedia starting instruction of the user for the third monitoring equipment is determined to be received, sending a multimedia starting request message to the third monitoring equipment.
In an embodiment, the total number of the monitoring devices is multiple, 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 the monitoring equipment with the actual connection state of the equipment in an off-line state; if the multimedia starting instruction of the user for the online monitoring equipment is determined to be received, sending a multimedia starting request message to the online monitoring equipment, wherein the online monitoring equipment is the monitoring equipment of which the actual connection state is in an online state;
or if the connection state of the equipment detection 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 the first trigger period of the second monitoring device being reached, sending the multimedia start request message to the second monitoring device again.
In one embodiment, the sending unit 601 is further configured to:
receiving a device detection connection state reported by a monitoring device;
determining the reliability 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 and/or the state change frequency of the device detection connection state of the monitoring device.
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 last time by the monitoring equipment before the actual connection state of the equipment is acquired;
if the monitoring equipment connected with the monitoring platform through the lower platform exists, counting the number of the unreliable equipment with inconsistent latest detection connection states of the equipment of the monitoring equipment connected to the same lower platform and actual connection states of the corresponding equipment;
determining the credibility of the lower platform according to the number of the devices corresponding to the lower platform and the number of the devices which cannot be trusted;
and determining the credibility of the lower platform as the credibility of a plurality of monitoring devices connected to the lower platform.
In one embodiment, the sending unit 601 is further configured to:
if the credibility meets the credibility condition, determining a first duration set for the credibility as a first trigger cycle and/or a second trigger cycle;
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 reliability and the state change frequency accord with the comprehensive adjustment condition, determining a first trigger period and/or a second trigger period according to the first time length and the second time length.
In an 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 an application page in real time; alternatively, the first and second electrodes may be,
after the actual connection state of the monitoring device is determined, the actual connection state of the monitoring device is sent to the monitoring client, so that the monitoring client updates the displayed actual connection state of the monitoring device in an application page in real time.
In the method, the device, the electronic device and the medium for determining the connection state of the device, provided by the embodiment of the application, when the condition that the sending trigger condition is met is determined, a multimedia starting request message is sent to the monitoring device; judging whether multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in a response time period, if so, determining that the actual connection state of the monitoring equipment is an online state; otherwise, determining that the actual connection state of the monitoring equipment is an offline state. Therefore, whether the monitoring equipment is in an online state or not is judged by judging whether the multimedia data returned by the monitoring equipment can be received or not, 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, the electronic device 7000 includes: a processor 7010, a memory 7020, a power supply 7030, a display unit 7040, and an input unit 7050.
The processor 7010 is a control center of the electronic apparatus 7000, connects the respective components using various interfaces and lines, and executes various functions of the electronic apparatus 7000 by running or executing software programs and/or data stored in the memory 7020, thereby monitoring the electronic apparatus 7000 as a whole.
In the embodiment of the present application, the processor 7010, when calling the computer program stored in the memory 7020, executes the method for determining the connection state of the device as provided in the embodiment shown in fig. 2.
Optionally, the processor 7010 may include one or more processing units; preferably, the processor 7010 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily 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, and/or memory may be implemented on a single chip, or in some embodiments, they may be implemented separately on separate chips.
The memory 7020 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, various applications, and the like; the stored data area may store data created from use of the electronic device 7000 and 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.
Electronic device 7000 also includes a power supply 7030 (e.g., a battery) for powering the various components, which may be logically coupled to processor 7010 via a power management system that may be used to manage charging, discharging, and power consumption.
Display unit 7040 may be configured to display information input by a user or information provided to the user, various menus of electronic device 7000, and the like, and in the embodiment of the present invention, is mainly configured to display a display interface of each application in electronic device 7000, and objects such as texts 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 (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 by a user on or near the touch panel 7051 (e.g., operations by a user on or near the touch panel 7051 using any suitable object or attachment such as a finger, a stylus, etc.).
Specifically, the touch panel 7051 may detect a touch operation of a user, detect signals generated by the touch operation, convert the signals into touch point coordinates, transmit the touch point coordinates to the processor 7010, receive a command transmitted from the processor 7010, and execute the command. In addition, the touch panel 7051 can be implemented by 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, power on and off keys, etc.), a trackball, a mouse, a joystick, and the like.
Of course, the touch panel 7051 may cover the display panel 7041, and when the touch panel 7051 detects a touch operation on or near the touch panel 7051, the touch operation is transmitted to the processor 7010 to determine the type of the touch event, and then the processor 7010 provides a corresponding visual output on the display panel 7041 according to the type of the 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 and the display panel 7041 may be integrated to implement the input and output functions of the electronic device 7000.
Electronic device 7000 may also include one or more sensors such as pressure sensors, gravitational acceleration sensors, proximity light sensors, etc. Of course, the electronic device 7000 may also include other components such as a camera, which are not shown in fig. 7 and will not be described in detail herein, since these components are not components used in this embodiment of the present application.
Those skilled in the art will appreciate that fig. 7 is merely an example of an electronic device and is not intended to limit the electronic device and may include more or fewer components than those shown, or some components may be combined, or different components.
In an embodiment of the present application, a readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the communication device may perform the steps in the above embodiments.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same one or more pieces of software or hardware when implementing the present application.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 the 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. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for determining the connection state of a device, wherein the method is applied to a monitoring platform, and the method comprises the following steps:
when the sending triggering condition is determined to be met, sending a multimedia starting request message to the monitoring equipment;
judging whether multimedia data returned by the monitoring equipment based on the multimedia starting request message is received in a response time period, if so, determining that the actual equipment connection state of the monitoring equipment is an online state;
otherwise, determining that the actual connection state of the monitoring equipment is an offline state.
2. The method of claim 1, wherein the total number of the monitoring devices is multiple, and the sending of the multimedia initiation request message to the monitoring device when the sending triggering condition is determined to be met comprises at least one of the following manners:
if the connection state of equipment detection reported by a first monitoring equipment is determined to be received, the multimedia starting request message is sent to the first monitoring equipment;
in response to reaching a first trigger period of a second monitoring device, sending the multimedia start request message to the second monitoring device;
responding to a second trigger period of an offline monitoring device, and sending the multimedia starting request message to the offline monitoring device, wherein the offline monitoring device is a monitoring device with an actual connection state in an offline state;
and if the multimedia starting instruction of the user for the third monitoring equipment is determined to be received, sending the multimedia starting request message to the third monitoring equipment.
3. The method of claim 1, wherein the total number of the monitoring devices is multiple, and the sending of the multimedia initiation request message to the monitoring device when the sending triggering condition is determined to be met comprises:
responding to a second trigger period of an offline monitoring device, and sending the multimedia starting request message to the offline monitoring device, wherein the offline monitoring device is a monitoring device with an actual connection state in an offline 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 the monitoring equipment of which the actual connection state is in the online state;
or, if the connection state of the equipment detection 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 the first trigger period of the second monitoring device being reached, sending the multimedia start request message to the second monitoring device again.
4. The method of claim 2, further comprising:
receiving a device detection connection state reported by a monitoring device;
determining the reliability 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 and/or the state change frequency of the device detection connection state of the monitoring device.
5. The method of claim 4, wherein determining the trustworthiness of the device detection connection status of the monitoring device based on at least one of the device detection connection status of the monitoring device and an actual device connection status of the monitoring device comprises:
acquiring the latest detection connection state reported by the monitoring equipment, wherein the latest detection connection state is the equipment detection connection state reported last time by the monitoring equipment before the actual connection state of the equipment is acquired;
if the monitoring equipment connected with the monitoring platform through the lower platform exists, counting the number of the unreliable equipment with inconsistent latest detection connection state of the equipment of the monitoring equipment connected to the same lower platform and the actual connection state of the corresponding equipment;
determining the credibility of the subordinate platform according to the number of the devices corresponding to the subordinate platform and the number of the devices which are not credible;
and determining the credibility of the lower platform as the credibility of a plurality of monitoring devices connected to the lower platform.
6. The method according to claim 4 or 5, wherein the determining the first trigger period and/or the second trigger period according to the reliability of the device detection connection state of the monitoring device and/or the state change frequency comprises:
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;
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 reliability and the state change frequency accord with the comprehensive adjustment condition, determining a first trigger period and/or a second trigger period according to the first time length and the second time length.
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; alternatively, the first and second electrodes may be,
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 determined to be met;
a judging unit, configured to judge whether multimedia data returned by the monitoring device based on the multimedia start request message is received within a response time period, and if yes, determine that an actual connection state of the monitoring device is an online state; otherwise, determining that the actual connection state of the monitoring equipment is an offline state.
9. An electronic device comprising a processor and a memory, the 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, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 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 true CN113923254A (en) 2022-01-11
CN113923254B 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 (14)

* 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
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
US20170041360A1 (en) * 2015-08-04 2017-02-09 Radius Networks Inc. Status monitoring of unconnected wireless broadcast devices
CN106911916A (en) * 2017-03-10 2017-06-30 北京旷视科技有限公司 Image capturing system, apparatus and method
US20170303002A1 (en) * 2016-04-14 2017-10-19 One Gold Tooth, Llc System and methods for verifying and displaying a video segment via an online platform
US20170309084A1 (en) * 2016-04-21 2017-10-26 Alibaba Group Holding Limited Method and system for offline attendance processing
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
US20190230119A1 (en) * 2018-01-19 2019-07-25 General Electric Company Dynamic concurrent learning method to neutralize cyber attacks and faults for industrial asset monitoring nodes
US20190268572A1 (en) * 2018-02-28 2019-08-29 Panasonic Intellectual Property Management Co., Ltd. Monitoring system and monitoring method
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

Patent Citations (14)

* 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
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
US20170041360A1 (en) * 2015-08-04 2017-02-09 Radius Networks Inc. Status monitoring of unconnected wireless broadcast devices
US20170303002A1 (en) * 2016-04-14 2017-10-19 One Gold Tooth, Llc System and methods for verifying and displaying a video segment via an online platform
US20170309084A1 (en) * 2016-04-21 2017-10-26 Alibaba Group Holding Limited Method and system for offline attendance processing
CN106911916A (en) * 2017-03-10 2017-06-30 北京旷视科技有限公司 Image capturing system, apparatus and method
US20190230119A1 (en) * 2018-01-19 2019-07-25 General Electric Company Dynamic concurrent learning method to neutralize cyber attacks and faults for industrial asset monitoring nodes
US20190268572A1 (en) * 2018-02-28 2019-08-29 Panasonic Intellectual Property Management Co., Ltd. Monitoring system and monitoring 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
CN113923254B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN103959745B (en) The method and apparatus of supervision application program resource consumption
US9794144B1 (en) Correlating status information generated in a computer network
CN111708964A (en) Multimedia resource recommendation method and device, electronic equipment and storage medium
EP3231199B1 (en) Notifications on mobile devices
CN114760240B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN113923254B (en) Method and device for determining connection state of equipment, electronic equipment and medium
CN114443164A (en) Task processing method and device, electronic equipment and storage medium
CN113660352A (en) Server scheduling method and device, electronic equipment and readable storage medium
CN113922998A (en) Vulnerability risk assessment method and device, electronic equipment and readable storage medium
CN116244299A (en) Method, device, electronic equipment and medium for determining service data path
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
CN112580596B (en) Data processing method and device
CN117440365B (en) Method for downloading resource package and electronic equipment
CN114374822A (en) Data monitoring method and device, electronic equipment and storage medium
CN113721803B (en) Data generation method, device, equipment and storage medium
CN114706731A (en) Intelligent service real-time dynamic monitoring method
CN115357461B (en) Abnormality detection method, abnormality detection device, electronic device, and computer-readable storage medium
CN115146228A (en) Data statistical method and device, electronic equipment and storage medium
CN114090123A (en) Method and device for configuring equipment parameters, electronic equipment and storage medium
CN116264523A (en) System, method, computer program product, device and medium for message subscription
CN114090612A (en) Object allocation method and device, electronic equipment and readable storage medium
CN114003503A (en) Platform performance test method and device, electronic equipment and readable storage medium
CN115987569A (en) Risk assessment method and device, electronic equipment and medium
CN114493716A (en) Service prediction method, device, electronic equipment and storage medium

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