Monitoring data transmission method, device and system, electronic equipment and storage medium
Through the first server, the network information is determined and the corresponding transmission method is adopted, the limitations of the monitoring data transmission method for specific networks and terminal devices in the prior art are solved, and the convenient transmission of monitoring data is realized. and compatibility.
Patent Information
- Application Number
- CN202311002134.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-09
- Publication Date
- 2025-02-18
AI Technical Summary
The existing monitoring data transmission methods are limited to specific networks and terminal devices, and cannot be compatible with monitoring devices and terminal devices of different networks, resulting in insufficient convenience for users to view monitoring data.
The first server conducts session negotiation with the target monitoring device and the target terminal device, determines the session information, including the network information of the target terminal device or the target monitoring device, and uses the corresponding transmission method to conduct monitoring data transmission.
It realizes convenient transmission of monitoring data, is compatible with monitoring equipment and terminal equipment of different networks, and improves the flexibility and convenience of users to view monitoring data.
Smart Images

Figure CN119484758A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a monitoring data transmission method, device, system, electronic device and storage medium. Background Art
[0002] In order to improve security, monitoring equipment is usually installed in various places, such as shopping malls, roads, office buildings and other public places, or residential entrances, living rooms, rooms and other private places, usually equipped with monitoring equipment (such as monitoring cameras, etc.) for monitoring. Users can view the monitoring data (such as monitoring video, monitoring audio, etc.) collected by the monitoring equipment through terminal devices (such as mobile phones, electronic display screens, etc.) bound to the monitoring equipment. At present, there are relatively large limitations on monitoring equipment and terminal devices that can view the monitoring data collected by monitoring equipment, and there is still room for improvement. Summary of the invention
[0003] The embodiments of the present application disclose a monitoring data transmission method, device, system, electronic device and storage medium, which are compatible with monitoring devices and terminal devices connected to different networks, thereby improving the convenience for users to view monitoring data.
[0004] The present application embodiment discloses a monitoring data transmission method, which is applied to a target monitoring device, and the method includes:
[0005] Obtaining a first monitoring instruction;
[0006] In response to the first monitoring instruction, performing session negotiation with the first server to determine first session information; the first session information includes first network information corresponding to the target terminal device;
[0007] The monitoring data collected by the target monitoring device is transmitted to the target terminal device according to the first session information using a transmission method corresponding to the first network information.
[0008] The present application embodiment discloses a monitoring data transmission method, which is applied to a target terminal device, and the method includes:
[0009] Obtaining a second monitoring instruction;
[0010] In response to the second monitoring instruction, performing session negotiation with the first server to determine second session information; the second session information includes second network information corresponding to the target monitoring device;
[0011] The monitoring data collected by the target monitoring device is acquired according to the second session information using a transmission method corresponding to the second network information.
[0012] The present application embodiment discloses a monitoring data transmission method, which is applied to a first server, and the method includes:
[0013] Performing session negotiation with a target monitoring device so that the target monitoring device determines first session information; the first session information includes first network information corresponding to a target terminal device; the first session information is used to trigger the target monitoring device to adopt a transmission method corresponding to the first network information, and transmit monitoring data collected by the target monitoring device to the target terminal device according to the first session information;
[0014] Performing session negotiation with the target terminal device so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device; the second session information is used to trigger the target terminal device to adopt a transmission method corresponding to the second network information, and obtain monitoring data collected by the target monitoring device according to the second session information.
[0015] The present application embodiment discloses a monitoring data transmission system, the system comprising:
[0016] at least one monitoring device;
[0017] at least one terminal device;
[0018] A first server establishes a communication connection with the at least one monitoring device and the at least one terminal device;
[0019] The first server is used to perform session negotiation with a target monitoring device among the at least one monitoring device, so that the target monitoring device determines first session information; the first session information includes first network information corresponding to the target terminal device; and is used to perform session negotiation with the target terminal device among the at least one terminal device, so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device;
[0020] The target monitoring device is configured to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information, using a transmission method corresponding to the first network information;
[0021] The target terminal device is used to adopt a transmission mode corresponding to the second network information and obtain the monitoring data collected by the target monitoring device according to the second session information.
[0022] The present application embodiment discloses a monitoring data transmission device, which is applied to a target monitoring device, and the device includes:
[0023] A first instruction acquisition module, used to acquire a first monitoring instruction;
[0024] A first negotiation module, configured to perform session negotiation with a first server in response to the first monitoring instruction to determine first session information; the first session information includes first network information corresponding to a target terminal device;
[0025] A transmission module is used to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information using a transmission method corresponding to the first network information.
[0026] The embodiment of the present application discloses a monitoring data transmission device, which is applied to a target terminal device, and the device includes:
[0027] A second instruction acquisition module, used to acquire a second monitoring instruction;
[0028] A second negotiation module, configured to perform session negotiation with the first server in response to the second monitoring instruction to determine second session information; the second session information includes second network information corresponding to the target monitoring device;
[0029] A data acquisition module is used to adopt a transmission mode corresponding to the second network information and acquire the monitoring data collected by the target monitoring device according to the second session information.
[0030] The embodiment of the present application discloses a monitoring data transmission device, which is applied to a first server, and the device includes:
[0031] A target negotiation module, configured to perform session negotiation with a target monitoring device, so that the target monitoring device determines first session information; the first session information includes first network information corresponding to a target terminal device; the first session information is used to trigger the target monitoring device to adopt a transmission method corresponding to the first network information, and transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information;
[0032] The target negotiation module is also used to perform session negotiation with the target terminal device so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device; the second session information is used to trigger the target terminal device to adopt a transmission method corresponding to the second network information, and obtain the monitoring data collected by the target monitoring device according to the second session information.
[0033] An embodiment of the present application discloses an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method described in any of the above embodiments.
[0034] An embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0035] The monitoring data transmission method, device, system, electronic device and storage medium provided in the embodiments of the present application, the first server can respectively conduct session negotiation with the target monitoring device and the target terminal device, the target monitoring device can determine the first session information through the session negotiation, the first session information can include the first network information corresponding to the target terminal device, the target monitoring device adopts the transmission method corresponding to the first network information, and transmits the collected monitoring data to the target terminal device, the target terminal device can determine the second session information through the session negotiation, the second session information includes the second network information corresponding to the target monitoring device, the target terminal device adopts the transmission method corresponding to the second network information to obtain the monitoring data collected by the target monitoring device. In the embodiments of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks at the same time, and different transmission methods can be used for monitoring data transmission for monitoring devices and terminal devices connected to different networks, so it can also support the access of more types of monitoring devices and terminal devices, which improves the convenience of users viewing monitoring data. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1A It is a schematic diagram of a monitoring solution in the related art;
[0038] Figure 1B It is a schematic diagram of another monitoring solution in the related art;
[0039] Figure 2A An application scenario diagram of a method for monitoring data transmission in an embodiment;
[0040] Figure 2B It is an application scenario diagram of a method for monitoring data transmission in another embodiment;
[0041] Figure 3 A timing diagram of a method for monitoring data transmission in one embodiment;
[0042] Figure 4 A flowchart of a method for monitoring data transmission in one embodiment;
[0043] Figure 5 A flowchart of a method for monitoring data transmission in another embodiment;
[0044] Figure 6 A timing diagram of a method for monitoring data transmission in another embodiment;
[0045] Fig. 7A A schematic diagram of triggering monitoring through a target terminal device in one embodiment;
[0046] Figure 7B It is a schematic diagram of triggering monitoring through a target terminal device in another embodiment;
[0047] Figure 8 A timing diagram of a method for monitoring data transmission in another embodiment;
[0048] Fig. 9A A schematic diagram of intelligently triggering monitoring of a target monitoring device in one embodiment;
[0049] Fig. 9B A schematic diagram of intelligently triggering monitoring of a target monitoring device in another embodiment;
[0050] Fig.10 A schematic diagram of binding a terminal device and a monitoring device in one embodiment;
[0051] Fig.11 A flowchart of a method for monitoring data transmission in another embodiment;
[0052] Fig.12 A flowchart of a method for monitoring data transmission in another embodiment;
[0053] Fig.13 A block diagram of a device for monitoring data transmission in one embodiment;
[0054] Fig.14 A block diagram of a device for monitoring data transmission in another embodiment;
[0055] Fig.15 A block diagram of a device for monitoring data transmission in another embodiment;
[0056] Fig.16 FIG. 4 is a structural block diagram of a monitoring device in an embodiment. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0058] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0059] It is understood that the terms "first", "second", etc. used in this application may be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first server may be referred to as a second server, and similarly, a second server may be referred to as a first server. Both the first server and the second server are servers, but they are not the same server. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the schemes, or any combination of multiple schemes.
[0060] There are two common monitoring solutions on the market:
[0061] 1. Strong binding between monitoring equipment and terminal equipment: the monitoring equipment and terminal equipment establish a communication connection through physical lines, such as USB (Universal Serial Bus) data lines, or through Wi-Fi networks, Bluetooth networks, etc., and transmit data. Figure 1A As shown, Figure 1A The monitoring device 110 directly establishes a communication connection with the terminal device 120, and performs data transmission based on UVC (USB Video Class), RTSP (Real Time Streaming Protocol), etc.
[0062] In this monitoring solution, the monitoring equipment and terminal equipment are highly interdependent and their positions are relatively fixed. For example, the video doorbell monitoring on the market requires a display panel to view the monitoring images collected by the monitoring camera installed on the door. This solution cannot achieve remote monitoring, and the data transmission protocol interaction is complex, making it difficult to achieve flexible switching between multiple monitoring devices and multiple terminal devices.
[0063] Second, monitoring equipment and terminal devices use the cloud to view monitoring data. The monitoring equipment is connected to the cloud through the monitoring protocol, and the terminal device is also registered to the cloud through the APP (Application). The cloud binds and manages the monitoring equipment and terminal devices, and enables the terminal device to view the monitoring data collected by the monitoring equipment in real time through the cloud. Figure 1B As shown, Figure 1B Schematic diagram of another monitoring solution in the related art. The monitoring device 110 and the terminal device 120 are respectively connected to the cloud 130. The monitoring device 110 transmits data with the cloud 130 through protocols such as GB28181, and the terminal device 120 transmits data with the cloud 130 through protocols such as SIP (Session initialization Protocol). The monitoring device 110 uploads the collected monitoring data to the cloud 130, and then the cloud 130 sends it to the terminal device 120.
[0064] In this monitoring solution, terminal devices must forward monitoring data through the cloud, which has a strong dependence on cloud services, is unable to switch between near-field and far-field communications, and results in a large waste of resources.
[0065] The embodiments of the present application disclose a monitoring data transmission method, device, system, electronic device and storage medium, which are compatible with monitoring devices and terminal devices corresponding to different network information, thereby improving the convenience for users to view monitoring data.
[0066] Figure 2A FIG. 1 is an application scenario diagram of a method for monitoring data transmission in an embodiment. Figure 2AAs shown, the first server 220 can establish a communication connection with at least one monitoring device 210, and the first server 220 can also establish a communication connection with at least one terminal device 230. One or more monitoring devices 210, and one or more terminal devices 230 can access the first server 220 through the network, and the communication connection may include but is not limited to a long connection, etc., which may refer to a data path that can continuously send and receive data based on one or more communication protocols such as HTTP (HyperText Transfer Protocol), TCP (Transmission Control Protocol), UDP (User Datagram Protocol), WebSocket (full-duplex communication protocol based on TCP), etc.
[0067] The monitoring device 210 may include a monitoring camera, etc. The monitoring device 210 may collect monitoring data such as monitoring images, monitoring videos, and monitoring audio. The type of the monitoring device 210 is not limited in the embodiment of the present application. For example, the monitoring device 210 may be one or more of a ball camera, a gun-type camera, an infrared camera, a visible light camera, etc. The installation location of the monitoring device 210 is also not limited in the embodiment of the present application. For example, the monitoring device 210 may be installed in private places such as a family residence, such as a room, a living room, a door of a residence, etc., or in public places such as an office building, a shopping mall, a hospital, a road, etc., or in a car (such as a driving recorder, etc.).
[0068] The terminal device 230 may include but is not limited to mobile phones, wearable devices, vehicle-mounted terminals, tablet computers, PCs (Personal Computers), PDAs (Personal Digital Assistants) and other devices. The terminal device 230 may have a display device for displaying monitoring data such as monitoring images and monitoring videos collected by the monitoring device 210.
[0069] Optionally, the first server 220 may be deployed in the cloud. The first server 220 may be a single server or a server cluster including multiple servers.
[0070] In an embodiment of the present application, the first server 220 can perform session negotiation with a target monitoring device in at least one monitoring device 210, and the target monitoring device can determine first session information, which may include first network information corresponding to the target terminal device. The target monitoring device can adopt a transmission method corresponding to the first network information to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information.
[0071] The first server 220 may also conduct session negotiation with a target terminal device in at least one terminal device 230. The target terminal device may determine second session information, which may include second network information corresponding to the target monitoring device. The target terminal device may adopt a transmission method corresponding to the second network information to obtain monitoring data collected by the target monitoring device according to the second session information.
[0072] The target monitoring device mentioned above can be any monitoring device 210 that establishes a communication connection with the first server 220, and the target terminal device mentioned above can be any terminal device 230 that establishes a communication connection with the first server 220. In some embodiments, the target monitoring device mentioned above can be a monitoring device that triggers the viewing of monitoring in at least one monitoring device 210, and the triggering method for triggering the viewing of monitoring can be triggered by any terminal device 230, or can be triggered by the monitoring device itself. The target terminal device mentioned above can be a terminal device that outputs the monitoring data collected by the target monitoring device in at least one terminal device 230, and the user can view the monitoring data collected by the target monitoring device through the target terminal device.
[0073] Figure 2B FIG. 4 is an application scenario diagram of a method for monitoring data transmission in another embodiment. Figure 2B As shown, the monitoring equipment and terminal equipment connected to the first server 220 can be connected to the same local area network or not. For example, the monitoring equipment 212 and the terminal equipment 232 and the terminal equipment 234 are connected to the same local area network, while the monitoring equipment 212 and the terminal equipment 236 are not connected to the same local area network. The monitoring equipment and the terminal equipment can use different transmission modes for data transmission according to the network they are connected to.
[0074] In some embodiments, for monitoring devices and terminal devices connected to the same local area network, when data transmission is required, a P2P (point-to-point) communication connection can be established between the monitoring device and the terminal device, and the data can be transmitted using the P2P communication connection, that is, the monitoring device does not need to be forwarded through the cloud, and can directly transmit the collected monitoring data to the terminal device. For example, the monitoring device 212 and the terminal device 232 are connected to the same local area network. When the monitoring device 212 and the terminal device 232 need to transmit data, the monitoring device 212 directly transmits the collected monitoring data to the terminal device 232 through the P2P communication connection between the monitoring device 212 and the terminal device 232.
[0075] It should be noted that the manner in which the monitoring device and the terminal device access the same local area network is not limited in the embodiments of the present application. For example, the same local area network can be accessed by accessing the same Wi-Fi network; or, Bluetooth communication is established between the monitoring device and the terminal device, thereby accessing the same local area network; or, the monitoring device and the terminal device are connected via a physical line, thereby accessing the same local area network, etc., but is not limited to this.
[0076] In some embodiments, for monitoring devices and terminal devices that are not connected to the same local area network, when data transmission is required, data transmission can be achieved through the second server 240. Optionally, the second server 240 can also be deployed in the cloud, and the second server 240 can be a single server or a server cluster including multiple servers. The second server 240 can be used to forward multimedia data, while the first server 220 can be used to process and transmit signaling. For example, the monitoring device 212 and the terminal device 236 are not connected to the same local area network. When the monitoring device 212 and the terminal device 236 need to transmit data, the monitoring device 212 can send the collected monitoring data to the second server 240 based on communication services such as RTC (Real-Time Communication, real-time audio and video), and the terminal device 236 can also receive the monitoring data forwarded by the second server 240 based on communication services such as RTC.
[0077] In an embodiment of the present application, the first server 220 can perform session negotiation with a target monitoring device in at least one monitoring device 210, and the target monitoring device can determine first session information, which may include first network information corresponding to the target terminal device. The target monitoring device can determine whether it is connected to the same local area network as the target terminal device based on the first network information, and decide whether to transmit monitoring data to the target terminal device by direct transmission via a P2P communication connection or by forwarding by the second server 240.
[0078] Similarly, the first server 220 can also conduct session negotiation with the target terminal device in at least one terminal device 230. The target terminal device can determine the second session information, which may include the second network information corresponding to the target monitoring device. The target terminal device can determine whether to access the same local area network as the target monitoring device based on the second network information, and decide whether to adopt the P2P communication connection direct reception method or the forwarding method by the second server 240 to obtain the monitoring data collected by the target monitoring device.
[0079] In the embodiments of the present application, it is compatible with monitoring devices and terminal devices connected to different networks, and is also compatible with monitoring devices and terminal devices of near-field and far-field communications, thereby supporting the access of more types of monitoring devices and terminal devices, and realizing switching between near-field communication transmission and long-distance communication transmission, thereby improving the flexibility and convenience of viewing monitoring.
[0080] Figure 3 FIG. 1 is a timing diagram of a method for monitoring data transmission in one embodiment. Figure 3 As shown, the monitoring data transmission method may include the following steps:
[0081] Step 1: The target monitoring device negotiates a session with the first server.
[0082] Step 2: The target monitoring device determines first session information, where the first session information includes first network information corresponding to the target terminal device.
[0083] Step 3: The target monitoring device adopts a transmission method corresponding to the first network information to transmit the collected monitoring data to the target terminal device according to the first session information.
[0084] Step 4: The target terminal device performs session negotiation with the first server.
[0085] Step 5: The target terminal device determines second session information, where the second session information includes second network information corresponding to the target monitoring device.
[0086] Step 6: The target terminal device adopts a transmission method corresponding to the second network information to obtain the monitoring data collected by the target monitoring device according to the second session information.
[0087] It should be noted that step 4 and step 5 can also be executed before step 1 and step 2, that is, the first server can first negotiate a session with the target terminal device, and then negotiate a session with the target monitoring device. The order of the two is not specifically limited in the embodiment of the present application.
[0088] like Figure 4 As shown, in one embodiment, a monitoring data transmission method is provided, which can be applied to the above-mentioned target monitoring device, and the method may include the following steps:
[0089] Step 410: Obtain a first monitoring instruction.
[0090] The first monitoring instruction can be used to instruct the target monitoring device to transmit the collected monitoring data to the target terminal device. When the target monitoring device obtains the first monitoring instruction, it can trigger the target monitoring device to transmit the monitoring data.
[0091] Among them, the target monitoring device can be a monitoring device that triggers the monitoring view in at least one monitoring device that establishes a communication connection with the first server, and the target monitoring device can be one or more. The target terminal device can be a terminal device that outputs the monitoring data collected by the target monitoring device in at least one terminal device that establishes a communication connection with the first server, and the target terminal device can be one or more. In some embodiments, the target terminal device and the target monitoring device can be a one-to-one relationship, or a one-to-many or many-to-one relationship. The monitoring data collected by one target monitoring device can be output on one target terminal device, or the monitoring data collected by multiple target monitoring devices can be output on one target terminal device, or the monitoring data collected by the same target monitoring device can be output on multiple target terminal devices, etc. This embodiment is not limited to this.
[0092] The first monitoring instruction may be sent by the first server to the target monitoring device, or may be generated by the target monitoring device itself, which mainly depends on the triggering method of triggering the monitoring. Optionally, if the triggering method of triggering the monitoring is triggered by the user through any terminal device (i.e., the target terminal device), the first monitoring instruction may be sent by the first server to the target monitoring device. If the triggering method of triggering the monitoring is triggered by the target monitoring device itself, the first monitoring instruction may be generated by the target monitoring device itself.
[0093] Step 420, in response to the first monitoring instruction, perform session negotiation with the first server to determine first session information; the first session information includes first network information corresponding to the target terminal device.
[0094] When the target monitoring device obtains the first monitoring instruction, it can respond to the first monitoring instruction and conduct session negotiation with the first server, and the relevant information of the multimedia session between the target terminal device and the target terminal device can be agreed through the session negotiation. The session negotiation may include but is not limited to SDP (Session Description Protocol) negotiation, etc.
[0095] The target monitoring device performs session negotiation with the first server to determine first session information, which can be used to describe the multimedia session with the target terminal device. The first session information may include first network information corresponding to the target terminal device, and the first network information may be used to characterize the network attribute of the target terminal device, and the network attribute may refer to whether the target terminal device and the target monitoring device are connected to the same local area network. Optionally, the first network information may include, but is not limited to, one or more of the IP (Internet Protocol) address of the target terminal device, the network identifier (such as the network name, network code, etc.) to which the target terminal device is connected, and the local area network label. Among them, the LAN tag can be used to characterize whether the target terminal device and the target monitoring device are connected to the same LAN. If the target terminal device and the target monitoring device are connected to the same LAN (that is, the target terminal device is an intranet device), the LAN tag can be the first tag. If the target terminal device and the target monitoring device are not connected to the same LAN (that is, the target terminal device is an extranet device), the LAN tag can be the second tag. The first label and the second label can be composed of one or more numbers, letters, symbols, etc. For example, the first label can be "1" and the second label can be "2", etc., but not limited to this.
[0096] Optionally, the first session information may also include information such as the first multimedia information corresponding to the target terminal device and / or the second multimedia information corresponding to the target monitoring device, but is not limited thereto. The first multimedia information may be used to describe the multimedia capabilities supported by the target terminal device. For example, the first multimedia information may include the codec format supported by the target terminal device, the supported multimedia type (such as video, text, audio, etc.), etc. The second multimedia information may be used to describe the multimedia capabilities supported by the target monitoring device. For example, the second multimedia information may include the codec format supported by the target monitoring device, the supported multimedia type, etc. Further, the first session information may include multimedia information such as the codec format and multimedia type supported by both the target terminal device and the target monitoring device, which is used to agree on the multimedia transmission to be carried out this time.
[0097] As an implementation method, the target monitoring device can be used as the initiator of the session negotiation. In response to the first monitoring instruction, the target monitoring device can send a session negotiation request to the first server. The first server can store at least the first network information corresponding to the target terminal device. After receiving the session negotiation request sent by the target monitoring device, the first network information corresponding to the target terminal device and other information can be obtained, and first response information can be sent to the target monitoring device based on the first network information corresponding to the target terminal device and other information. The first response information can carry at least the first network information corresponding to the target terminal device and other information. The target monitoring device can determine the first session information based on the first response information.
[0098] In some embodiments, the first server may store second multimedia information corresponding to each monitoring device in communication connection, and / or network information such as the IP address and / or the access network identifier corresponding to each monitoring device. The session negotiation request may carry the device identifier of the target monitoring device, such as the device name and device code of the target monitoring device. The first server may parse the session negotiation request to obtain the device identifier of the target monitoring device, and obtain the second multimedia information corresponding to the target monitoring device according to the device identifier of the target monitoring device, and / or information such as the IP address and / or the access network identifier corresponding to the target monitoring device.
[0099] In other embodiments, the session negotiation request may carry network information such as the second multimedia information corresponding to the target monitoring device, the IP address corresponding to the target monitoring device and / or the accessed network identifier, and the first server may parse the session negotiation request to obtain information such as the second multimedia information corresponding to the target monitoring device, the IP address corresponding to the target monitoring device and / or the accessed network identifier.
[0100] Optionally, the first server may store at least network information such as the IP address corresponding to the target terminal device and / or the network identifier accessed by the target terminal device. After receiving the session negotiation request sent by the target monitoring device, the first server may parse the session negotiation request to obtain the network information such as the IP address corresponding to the target monitoring device and / or the network identifier accessed, and determine whether the target terminal device and the target monitoring device are connected to the same local area network based on the network information such as the IP address corresponding to the target terminal device and / or the network identifier accessed and the network information such as the IP address corresponding to the target monitoring device and the IP address corresponding to the target monitoring device. If so, generate a first response message carrying the above-mentioned first tag and send it to the target monitoring device. If not, generate a first response message carrying the above-mentioned second tag and send it to the target monitoring device.
[0101] Optionally, the first server may store at least network information such as the IP address corresponding to the target terminal device and / or the network identifier to which the target terminal device accesses, and the first response information sent by the first server may carry network information such as the IP address corresponding to the target terminal device and / or the network identifier to which the target terminal device accesses.
[0102] Furthermore, the first server may also store the first multimedia information corresponding to the target terminal device, and the generated first response information may carry the first multimedia information.
[0103] As another implementation, the first server may serve as the initiator of the session negotiation, and the first server may send a session negotiation request to the target monitoring device, the session negotiation request may carry the first network information and the first multimedia information corresponding to the target terminal device, etc. After receiving the session negotiation request sent by the first server, the target monitoring device may feed back a session response to the first server, the session response may carry the second multimedia information corresponding to the target monitoring device, the second network information corresponding to the target monitoring device, etc. Thus, the target monitoring device may determine the first session information.
[0104] In an embodiment of the present application, the first server may be a signaling server, which may be used to process and manage signaling flows between various monitoring devices and various terminal devices to ensure normal data transmission between the monitoring devices and the terminal devices.
[0105] Step 430: using a transmission method corresponding to the first network information, and transmitting the monitoring data collected by the target monitoring device to the target terminal device according to the first session information.
[0106] Different transmission modes can be used for target terminal devices with different network attributes to transmit the monitoring data collected by the target monitoring device. In some embodiments, the transmission mode may include a point-to-point (P2P) direct transmission mode (i.e., near-field communication transmission) and a transmission mode forwarded by a second server (i.e., remote communication transmission). The point-to-point direct transmission mode is applicable to the scenario where the target monitoring device and the target terminal device are connected to the same local area network, and the transmission mode forwarded by the second server is applicable to the scenario where the target terminal device is not connected to the same local area network as the target monitoring device. The target monitoring device can select an adaptive transmission mode according to the first network information corresponding to the target terminal device, and flexibly switch between near-field communication transmission and remote communication transmission. Whether it is a target terminal device in an intranet or a target terminal device in an extranet, monitoring data transmission can be realized, and viewing monitoring data is more flexible and convenient.
[0107] As a specific implementation method, the target monitoring device can determine multimedia information such as the codec format, multimedia type, etc. that are commonly supported by the target terminal device and the target monitoring device based on the first session information, and use a transmission method corresponding to the first network information to transmit monitoring data matching the determined multimedia information to the target terminal device to ensure that the target monitoring device can normally receive the monitoring data and output the monitoring data normally.
[0108] Optionally, the monitoring data may include but is not limited to one or more of monitoring images, monitoring videos, monitoring audio, monitoring text, etc.
[0109] It should be noted that if there are multiple target terminal devices, the first session information may include the first network information corresponding to each target terminal device, and the target monitoring device may respectively adopt the transmission method corresponding to the first network information of each target terminal device to transmit the monitoring data collected by the target monitoring device to each target terminal device. Different transmission methods may be used for multiple target terminal devices corresponding to different network attributes. For example, if the target terminal device A and the target monitoring device are connected to the same local area network, and the target terminal device B and the target monitoring device are not connected to the same local area network, the target monitoring device may transmit the monitoring data to the target terminal device A through a point-to-point direct transmission method, and transmit the monitoring data to the target terminal device B through a transmission method forwarded by the second server. It can meet the needs of multiple target terminal devices to output the monitoring data collected by the target monitoring device at the same time, and further improve the flexibility and convenience of users viewing the monitoring data.
[0110] In some embodiments, the target terminal device may obtain a second monitoring instruction, and in response to the second monitoring instruction, perform session negotiation with the first server to determine second session information, and the second session information may include second network information corresponding to the target monitoring device. The target terminal device may adopt a transmission method corresponding to the second network information to obtain monitoring data collected by the target monitoring device according to the second session information.
[0111] The second monitoring instruction can be used to instruct the target terminal device to obtain the monitoring data collected by the target monitoring device. When the target terminal device obtains the second monitoring instruction, it can trigger the target terminal device to obtain the monitoring data. Further, it can also trigger the target terminal device to output the monitoring data after obtaining the monitoring data. For example, if the monitoring data includes monitoring video, the target terminal device can display the monitoring video through a display device, and if the monitoring data includes monitoring audio, the target terminal device can play the monitoring audio through a speaker, etc.
[0112] The second monitoring instruction may be sent by the first server to the target terminal device, or may be generated by the target terminal device itself, which mainly depends on the triggering method of triggering the monitoring. Optionally, if the triggering method of triggering the monitoring is triggered by the user through the target terminal device, the second monitoring instruction may be generated by the target terminal device itself; if the triggering method of triggering the monitoring is triggered by the target monitoring device itself, the second monitoring instruction may be sent by the first server to the target terminal device.
[0113] When the target terminal device obtains the second monitoring instruction, it can respond to the second monitoring instruction and conduct session negotiation with the first server. The relevant information of the multimedia session with the target monitoring device can be agreed upon through the session negotiation. The target terminal device conducts session negotiation with the first server and can determine the second session information, which can be used to describe the multimedia session with the target monitoring device. The second session information may include second network information corresponding to the target monitoring device, and the second network information can be used to characterize the network attributes of the target terminal device. Optionally, the second network information may include, but is not limited to, one or more of the IP address of the target monitoring device, the network identifier (such as the network name, network code, etc.) to which the target monitoring device is connected, and the local area network tag, etc., and the local area network tag can be used to characterize whether the target terminal device and the target monitoring device are connected to the same local area network.
[0114] Optionally, the second session information may also include information such as the first multimedia information corresponding to the target terminal device and / or the second multimedia information corresponding to the target monitoring device. Further, the second session information may include multimedia information such as the codec format, multimedia type, etc. supported by the target terminal device and the target monitoring device.
[0115] As an implementation method, the target terminal device can serve as the initiator of the session negotiation, and the target terminal device can send a session negotiation request to the first server in response to the second monitoring instruction. The first server can store at least the second network information corresponding to the target monitoring device, and after receiving the session negotiation request sent by the target terminal device, it can obtain the second network information corresponding to the target monitoring device and other information, and send second response information to the target terminal device based on the second network information corresponding to the target monitoring device and other information, and the second response information can carry at least the second network information corresponding to the target monitoring device and other information, and the target terminal device can determine the second session information based on the second response information.
[0116] In some embodiments, the first server may store first multimedia information corresponding to each terminal device in communication connection, and / or network information such as an IP address and / or an accessed network identifier corresponding to each terminal device. The session negotiation request sent by the target terminal device may carry a device identifier of the target terminal device, such as a device name and a device code of the target terminal device. The first server may parse the session negotiation request to obtain the device identifier of the target terminal device, and obtain the first multimedia information corresponding to the target terminal device, and / or information such as an IP address and / or an accessed network identifier corresponding to the target terminal device according to the device identifier of the target terminal device.
[0117] In other embodiments, the session negotiation request sent by the target terminal device may carry network information such as the first multimedia information corresponding to the target terminal device, the IP address corresponding to the target terminal device and / or the accessed network identifier, and the first server may parse the session negotiation request to obtain information such as the first multimedia information corresponding to the target terminal device, the IP address corresponding to the target terminal device and / or the accessed network identifier.
[0118] Optionally, the second response information generated by the first server may carry the above-mentioned first tag or second tag. Optionally, the second response information generated by the first server may carry network information such as the IP address corresponding to the target monitoring device and / or the network identifier accessed by the target terminal device. Furthermore, the first server may also store the second multimedia information corresponding to the target monitoring device, and the generated second response information may carry the second multimedia information. The specific method of generating the second response information may be similar to the method of generating the first response information described in the above embodiment, and will not be repeated here.
[0119] As another implementation, the first server may serve as the initiator of the session negotiation, and the first server may send a session negotiation request to the target terminal device, and the session negotiation request may carry the second network information and the second multimedia information corresponding to the target monitoring device, etc. After receiving the session negotiation request sent by the first server, the target terminal device may feed back a session response to the first server, and the session response may carry the first multimedia information corresponding to the target terminal device, the first network information corresponding to the target terminal device, etc. Thus, the target terminal device may determine the second session information.
[0120] For target monitoring devices with different network attributes, the target terminal device can respectively adopt different transmission modes to obtain the monitoring data collected by the target monitoring device. The target terminal device can select an adaptive transmission mode according to the second network information corresponding to the target monitoring device. It should be noted that, for a group of target monitoring devices and target terminal devices, the transmission mode corresponding to the first network information of the target terminal device is the same as the transmission mode corresponding to the second network information of the target monitoring device.
[0121] For example, the first network information corresponding to the target terminal device and the second network information corresponding to the target monitoring device indicate that the target monitoring device and the target terminal device are connected to the same local area network. In this case, the target monitoring device transmits the collected monitoring data to the target terminal device via a point-to-point direct transmission method, and the target terminal device also obtains the monitoring data transmitted by the target monitoring device via a point-to-point direct transmission method. For another example, the first network information corresponding to the target terminal device and the second network information corresponding to the target monitoring device indicate that the target terminal device and the target monitoring device are not connected to the same local area network. In this case, the target monitoring device transmits the collected monitoring data to the target terminal device via a transmission method forwarded by a second server, and the target terminal device also obtains the monitoring data via a transmission method forwarded by the second server.
[0122] As a specific implementation method, the target terminal device can determine multimedia information such as the codec format, multimedia type, etc. that are commonly supported by the target terminal device and the target monitoring device based on the second session information, and obtain monitoring data that matches the multimedia information, thereby ensuring that the monitoring data can be received normally and output normally.
[0123] It should be noted that if there are multiple target monitoring devices, the second session information may include the second network information corresponding to each target monitoring device, and the target terminal device may respectively adopt the transmission method corresponding to the second network information of each target monitoring device to obtain the monitoring data collected by each target monitoring device. For example, if the target monitoring device A and the target terminal device are connected to the same local area network, and the target monitoring device B and the target terminal device are not connected to the same local area network, the target terminal device may obtain the monitoring data transmitted by the target monitoring device A through a point-to-point direct transmission method, and obtain the monitoring data collected by the target monitoring device B through a transmission method forwarded by the second server. It can meet the needs of the target terminal device to output the monitoring data collected by multiple target monitoring devices at the same time, and further improve the flexibility and convenience of users viewing monitoring data.
[0124] It should be noted that the order in which the first server performs session negotiation with the target terminal device and the order in which the first server performs session negotiation with the target monitoring device is not limited in the embodiment of the present application.
[0125] In some embodiments, the order in which the first server and the target terminal device conduct session negotiation, and the order in which the first server and the target monitoring device conduct session negotiation, can be determined by the triggering method for triggering the viewing of monitoring. Optionally, if the triggering method for triggering the viewing of monitoring is triggered by the user through the target terminal device, the target terminal device first obtains the second monitoring instruction, first conducts session negotiation with the first server, the first server then sends the first monitoring instruction to the target monitoring device, and the target monitoring device then conducts session negotiation with the first server, that is, the first server conducts session negotiation with the target terminal device before the first server conducts session negotiation with the target monitoring device. Optionally, if the triggering method for triggering the viewing of monitoring is triggered by the target monitoring device itself, the target monitoring device first obtains the first monitoring instruction, first conducts session negotiation with the first server, the first server then sends the second monitoring instruction to the target terminal device, and the target terminal device then conducts session negotiation with the first server, that is, the first server conducts session negotiation with the target terminal device after the first server conducts session negotiation with the target monitoring device.
[0126] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0127] like Figure 5 As shown, in another embodiment, a monitoring data transmission method is provided, which can be applied to the above-mentioned target monitoring device, and the method may include the following steps:
[0128] Step 502: Obtain a first monitoring instruction.
[0129] Step 504: In response to the first monitoring instruction, perform session negotiation with the first server to determine first session information; the first session information includes first network information corresponding to the target terminal device.
[0130] The description of steps 502 to 504 may refer to the relevant description in the above embodiments, and will not be repeated here.
[0131] Step 506: If it is determined according to the first network information that the target terminal device and the target monitoring device are connected to the same local area network, the monitoring data collected by the target monitoring device is directly sent to the target terminal device according to the first session information.
[0132] After the target monitoring device determines the first session information, it can determine whether the target terminal device and the target monitoring device are connected to the same local area network according to the first network information corresponding to the target terminal device. Optionally, it can be determined whether the two IP addresses belong to the IP addresses corresponding to the same local area network according to the IP address corresponding to the target terminal device and the IP address corresponding to the target monitoring device. For example, it can be determined whether the two IP addresses belong to the IP range corresponding to the same local area network. If the two IP addresses belong to the IP addresses corresponding to the same local area network, it can be determined that the target terminal device and the target monitoring device are connected to the same local area network. If the two IP addresses do not belong to the IP addresses corresponding to the same local area network, it can be determined that the target terminal device and the target monitoring device are not connected to the same local area network.
[0133] Alternatively, it is also possible to determine whether the network identifier accessed by the target terminal device and the network identifier accessed by the target monitoring device belong to the same local area network. For example, it is possible to determine whether the network identifier accessed by the target terminal device and the network identifier accessed by the target monitoring device are the same. If they are the same (for example, accessing the same Wi-Fi network, accessing the same Bluetooth network, etc.), it can be determined that the target terminal device and the target monitoring device are accessed to the same local area network. If they are not the same, it can be determined that the target terminal device and the target monitoring device are not accessed to the same local area network. It should be noted that when the target terminal device and the target monitoring device are accessed to the same local area network, the network identifier accessed by the target terminal device and the network identifier accessed by the target monitoring device may also be different, such as two devices accessing different Wi-Fi hotspots in the same local area network.
[0134] Alternatively, the target monitoring device can determine whether the target terminal device and the target monitoring device are connected to the same LAN based on the LAN tag corresponding to the target terminal device. If the LAN tag corresponding to the target terminal device is the first tag, it can be determined that the target terminal device and the target monitoring device are connected to the same LAN. If the LAN tag corresponding to the target terminal device is the second tag, it can be determined that the target terminal device and the target monitoring device are not connected to the same LAN.
[0135] In the case where the target terminal device and the target monitoring device are connected to the same local area network, that is, the target terminal device is an intranet device relative to the target monitoring device, the target monitoring device and the target terminal device can transmit data through a point-to-point direct transmission method, and the target monitoring device can directly send the monitoring data collected by the target monitoring device to the target terminal device according to the first session information. In some embodiments, the target monitoring device can establish a point-to-point media transmission channel with the target terminal device. Optionally, when the target monitoring device determines that it is connected to the same local area network as the target terminal device, it can send a channel establishment request to the target terminal device according to the first network information corresponding to the target terminal device (such as an IP address, etc.). After receiving the channel establishment request, the target terminal device can return a channel establishment response, thereby establishing a point-to-point media transmission channel between the target terminal device and the target monitoring device. The point-to-point media transmission channel may include but is not limited to a Wi-Fi transmission channel, a Bluetooth transmission channel, etc.
[0136] Furthermore, after successfully establishing a point-to-point media transmission channel between the target terminal device and the target monitoring device, the target monitoring device can determine the multimedia information corresponding to this data transmission (such as the codec format, multimedia type, etc. jointly supported by the target terminal device and the target monitoring device) based on the first session information. The target monitoring device can directly send monitoring data matching the multimedia information corresponding to this data transmission to the target terminal device through the point-to-point media transmission channel.
[0137] In some embodiments, after determining the second session information, the target terminal device may determine whether the target terminal device and the target monitoring device are connected to the same local area network according to the second network information corresponding to the target monitoring device. If it is determined according to the second network information that the target terminal device and the target monitoring device are connected to the same local area network, the monitoring data directly sent by the target monitoring device may be received according to the second session information. In some embodiments, when the target terminal device and the target monitoring device are connected to the same local area network, the target terminal device may establish a point-to-point media transmission channel with the target terminal device, and receive the monitoring data sent by the target monitoring device according to the second session information through the point-to-point media transmission channel.
[0138] Furthermore, after successfully establishing a point-to-point media transmission channel between the target terminal device and the target monitoring device, the target terminal device can determine the multimedia information corresponding to this data transmission according to the second session information, and the target terminal device can receive the monitoring data sent by the target monitoring device that matches the multimedia information corresponding to this data transmission through the point-to-point media transmission channel. It should be noted that if the monitoring data sent by the target monitoring device is the monitoring data that matches the multimedia information corresponding to this data transmission, then the monitoring data must meet the encoding and decoding requirements and data output requirements of the target terminal device. Therefore, the target terminal device can also directly receive the monitoring data sent by the target monitoring device without having to perform steps such as determining the multimedia information corresponding to this data transmission.
[0139] In the embodiment of the present application, for the target monitoring device and the target terminal device connected to the same local area network, data can be transmitted between the two through a point-to-point direct transmission method, without the need for data forwarding through the cloud, which can improve data transmission efficiency and save cloud server traffic, reducing server pressure. In addition, the signaling flow between the target monitoring device and the target terminal device is processed and transmitted by the first server, and the media stream data is transmitted through the point-to-point media transmission channel between the two, which naturally realizes the isolation of signaling control and media data. There is no need for multi-channel management between the target monitoring device and the target terminal device, and the interaction method is simple. Flexible switching can also be achieved for multiple monitoring devices and multiple terminal devices in the intranet, which improves the convenience of users viewing monitoring data.
[0140] Step 508: If it is determined according to the first network information that the target terminal device is not connected to the same local area network as the target monitoring device, the monitoring data collected by the target monitoring device is sent to the second server according to the first session information, so that the second server forwards the monitoring data to the target terminal device.
[0141] When the target terminal device and the target monitoring device are not connected to the same local area network, that is, the target terminal device is an external network device relative to the target monitoring device, data can be transmitted between the target monitoring device and the target terminal device through a transmission method forwarded by the second server. The target monitoring device can send the monitoring data collected by the target monitoring device to the second server based on the first session information, and the second server will then forward the monitoring data to the target terminal device.
[0142] The second server may be a media server, and the second server is used to provide forwarding services for multimedia data. In some embodiments, the second server may include an SFU (Selective Forwarding Unit) server, which is only responsible for data forwarding, and does not perform data processing tasks with large resource overhead such as data confluence and transcoding, which can reduce the pressure on the server and reduce costs. The second server can access one or more monitoring devices and one or more terminal devices according to the actual needs of each monitoring device and each terminal device, and realize data forwarding between remote monitoring devices and terminal devices. Optionally, the second server can be deployed in a server cascade manner, and multiple second servers can be deployed in the cloud. Multiple second servers are cascaded, and the target monitoring device and the target terminal device can select the closest second server to forward monitoring data. At the same time, the deployment of multiple second servers in cascade can improve load capacity and stability.
[0143] In some embodiments, the first session information may also include server information of the second server, which may include but is not limited to one or more information of an access address corresponding to the second server, a server identifier of the second server, a port, etc. The target monitoring device may send the monitoring data collected by the target monitoring device to the second server according to the server information of the second server. Further, the target monitoring device may establish a data transmission channel with the second server according to the server information of the second server, so as to access the second server through the data transmission channel and transmit monitoring data to the second server.
[0144] Optionally, the target monitoring device may determine the multimedia information corresponding to the current data transmission according to the first session information, and send monitoring data matching the multimedia information corresponding to the current data transmission to the second server. Optionally, the target monitoring device may also directly send the collected monitoring data to the second server without paying attention to the first multimedia information corresponding to the target terminal device.
[0145] As an implementation mode, when the first server conducts session negotiation with the target monitoring device, if it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, the first response information may be fed back to the target monitoring device, so that the target monitoring device determines the first session information according to the first response information, and the first response information may include the first network information corresponding to the target terminal device and the server information of the second server. When the first server conducts session negotiation with the target monitoring device, it may determine whether the target terminal device and the target monitoring device are connected to the same local area network. If it is determined that the target terminal device and the target monitoring device are not connected to the same local area network, the first response information carrying the server information of the second server may be fed back to the target monitoring device, so that the target monitoring device can accurately obtain the server information of the second server, which is convenient for the subsequent use of the second server to realize the forwarding of monitoring data.
[0146] Furthermore, the first server can also realize intelligent scheduling of the second server. When multiple second servers are deployed in the cloud, the first server can determine the second server to be forwarded this time according to the load conditions of each second server, and feedback the first response information carrying the server information of the second server to the target monitoring device to achieve load balancing between the second servers. Optionally, the first server can also use the second server whose deployment area is closest to the geographic location information as the second server to be forwarded this time according to the geographic location information of the target monitoring device and the deployment area of each second server, and feedback the first response information carrying the server information of the second server to the target monitoring device to achieve rapid forwarding of monitoring data.
[0147] In some embodiments, after determining the second session information, if the target terminal device determines according to the second network information that the target terminal device is not connected to the same local area network as the target monitoring device, the target terminal device may receive the monitoring data collected by the target monitoring device and forwarded by the second server according to the second session information. Optionally, the second session information may include server information of the second server, and the target terminal device may receive the monitoring data collected by the target monitoring device and forwarded by the second server according to the server information of the second server.
[0148] As a specific implementation, after the target monitoring device transmits monitoring data to the second server, the target terminal device can establish a data transmission channel with the second server based on the server information of the second server, so as to access the second server through the data transmission channel and obtain the monitoring data uploaded by the target monitoring device from the second server. Furthermore, the target terminal device can send a data acquisition request to the second server, and the data acquisition request can carry the device identification of the target monitoring device. After receiving the data acquisition request, the second server can find the monitoring data uploaded by the target monitoring device based on the device identification, and send the found monitoring data to the target terminal device. Alternatively, the monitoring data uploaded by the target monitoring device can be marked with the device information of the target terminal device (such as device identification, IP address, etc.). After the second server establishes a data transmission channel with the target terminal device, it can send the monitoring data to the target terminal device based on the device information, thereby realizing the forwarding of the monitoring data.
[0149] Optionally, when the monitoring data uploaded by the target monitoring device to the second server matches the multimedia information corresponding to this data transmission, the target terminal device can directly obtain the monitoring data uploaded by the target monitoring device from the second server. Optionally, the target terminal device can also determine the multimedia information corresponding to this data transmission based on the second session information, and obtain the monitoring data matching the multimedia information corresponding to this data transmission from the second server. Further, the monitoring data matching the second multimedia information corresponding to the target terminal device can be obtained from the second server. The data acquisition request sent by the target terminal device can also carry data demand information, which can be used to indicate the required monitoring data. The data demand information may include codec format, multimedia type, upload time range, etc. The second server can search for the monitoring data uploaded by the target monitoring device that matches the data demand information and send it to the target terminal device, thereby meeting the various needs of users to view monitoring data through terminal devices, and improving the flexibility and convenience of viewing monitoring data.
[0150] As an implementation mode, when the first server conducts session negotiation with the target terminal device, if it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, the second response information may be fed back to the target terminal device, so that the target terminal device determines the second session information according to the second response information, and the second response information may include the second network information corresponding to the target monitoring device and the server information of the second server. When the first server conducts session negotiation with the target terminal device, it may determine whether the target terminal device and the target monitoring device are connected to the same local area network. If it is determined that the target terminal device and the target monitoring device are not connected to the same local area network, the second response information carrying the server information of the second server may be fed back to the target terminal device, so that the target terminal device can accurately obtain the server information of the second server, which is convenient for the subsequent use of the second server to realize the forwarding of monitoring data.
[0151] Furthermore, the first server may also implement intelligent scheduling of the second server. The specific scheduling method may refer to the relevant description of the previous embodiment, which will not be repeated here.
[0152] In an embodiment of the present application, for target monitoring devices and target terminal devices that are not connected to the same local area network, the two can transmit data through a transmission method forwarded by a second server, thereby realizing remote data transmission, facilitating users to remotely view the monitoring devices in real time, and improving the convenience and flexibility of users in viewing monitoring data.
[0153] In the embodiments of the present application, monitoring equipment and terminal devices that are compatible with both near-field communication and remote communication can seamlessly switch between direct transmission and remote transmission as needed, and realize multi-terminal monitoring that can view multiple monitoring terminals at the same time or use multiple terminal devices to view monitoring at the same time, as well as flexible monitoring solutions suitable for different spatial locations.
[0154] like Figure 6 As shown, in another embodiment, a method for monitoring data transmission is provided, and the method may include the following steps:
[0155] Step 602: The target terminal device generates a second monitoring instruction in response to the monitoring trigger operation, determines the target monitoring device according to the second monitoring instruction, and sends a first monitoring request to the first server. The first monitoring request may include a device identifier of the target monitoring device.
[0156] In the embodiment of the present application, the triggering method for triggering the viewing of the monitoring device may be a user triggering through the target terminal device. Optionally, the target terminal device may display a monitoring viewing interface, which may include device information of each monitoring device bound to the target terminal device. The user may perform a monitoring trigger operation on the monitoring viewing interface and select the target monitoring device to be viewed, which may be one or more monitoring devices bound to the target terminal device.
[0157] When the target terminal device detects a monitoring trigger operation triggered by a user, it can generate a second monitoring instruction in response to the monitoring trigger operation, determine the target monitoring device, and send a first monitoring request carrying the device identifier of the target monitoring device to the first server.
[0158] Step 604: The target terminal device performs session negotiation with the first server.
[0159] Step 606: The target terminal device determines second session information, where the second session information includes second network information corresponding to the target monitoring device.
[0160] In response to the second monitoring instruction, the target terminal device may perform session negotiation with the first server to determine the second session information.
[0161] Step 608: The first server sends a first monitoring instruction to the target monitoring device according to the device identifier of the target monitoring device.
[0162] After receiving the first monitoring request sent by the target terminal device, the first server can send a first monitoring instruction to the target monitoring device according to the device identification of the target monitoring device carried in the first monitoring request. If there are multiple target monitoring devices, the first server can send the first monitoring instruction to each target monitoring device respectively.
[0163] In some embodiments, after the first server receives the first monitoring request sent by the target terminal device, it can first parse the first monitoring request to obtain the device identification of the target monitoring device, the device information of the target terminal device, etc., and verify the legitimacy of the first monitoring request to determine whether the first monitoring request meets the legal conditions. If it is determined that the first monitoring request meets the legal conditions, the first monitoring instruction is sent to the target monitoring device based on the device identification of the target monitoring device carried in the first monitoring request.
[0164] Optionally, the legal conditions may include but are not limited to the target terminal device having monitoring viewing authority, the target monitoring device actually existing, etc. Among them, the target terminal device having monitoring viewing authority means that the target terminal device has the authority to view the monitoring data collected by the target monitoring device. If the target terminal device does not have the authority to view the monitoring data collected by the target monitoring device, it is determined that the first monitoring request does not meet the legal conditions. The target monitoring device actually exists, which means that the target monitoring device exists and is in a working state (referring to the state of collecting monitoring data). If a monitoring device is in a closed state, it can be considered that the monitoring device does not really exist, or if a monitoring device is dismantled, it can also be considered that the monitoring device does not really exist.
[0165] If it is determined that the first monitoring request does not meet the legal conditions, such as the target terminal device does not have the authority to view the monitoring data collected by the target monitoring device, or a certain target monitoring device does not really exist, etc., a rejection of viewing information can be sent to the target terminal device, and the rejection of viewing information can be used to inform the target terminal device that the monitoring data of the target monitoring device cannot be viewed. By verifying the legality of the first monitoring request, the first server can improve the accuracy of the subsequent sending of the first monitoring instruction.
[0166] Step 610: The target monitoring device performs session negotiation with the first server.
[0167] Step 612: The target monitoring device determines first session information, where the first session information includes first network information corresponding to the target terminal device.
[0168] After receiving the first monitoring instruction sent by the first server, the target monitoring device may perform session negotiation with the first server in response to the first monitoring instruction to determine first session information.
[0169] Step 614: The target monitoring device adopts a transmission method corresponding to the first network information to transmit the collected monitoring data to the target terminal device according to the first session information.
[0170] Step 616: The target terminal device adopts a transmission method corresponding to the second network information to obtain the monitoring data collected by the target monitoring device according to the second session information.
[0171] If the target terminal device and the target monitoring device are connected to the same local area network, data can be transmitted between the target monitoring device and the target terminal device through a point-to-point direct transmission method. A point-to-point media transmission channel can be established between the target monitoring device and the target terminal device. The target monitoring device can send the collected monitoring data to the target terminal device through the point-to-point media transmission channel.
[0172] If the target terminal device and the target monitoring device are not connected to the same local area network, the target monitoring device and the target terminal device can transmit data through the transmission mode forwarded by the second server. The target monitoring device can send the collected monitoring data to the second server, and then the second server forwards the monitoring data to the target terminal device.
[0173] For example, Fig. 7A FIG. 1 is a schematic diagram of triggering monitoring through a target terminal device in one embodiment. Fig. 7A As shown, the monitoring device, TV and mobile phone are intranet devices, that is, the monitoring device, TV and mobile phone are all connected to the same local area network. When the user performs monitoring trigger operation on the TV, the TV can send the device identification and other information of the monitoring device that the user needs to view to the signaling server (that is, the first server mentioned above), and the TV can perform SDP negotiation with the signaling server to determine the network information of the monitoring device, the supported codec capabilities, etc. The signaling server verifies the monitoring request sent by the TV to determine whether the legal conditions are met. If it is determined that the legal conditions are met, the signaling server can send monitoring streaming information to the monitoring device. After the monitoring device receives the monitoring streaming information sent by the signaling server, it can perform P2P SDP negotiation with the signaling server to determine the network information of the TV, the supported codec capabilities, etc. The monitoring device can establish a P2P media transmission channel with the TV, and transmit audio and video streams to the TV through the P2P media transmission channel. The user can also choose to perform monitoring trigger operation on the mobile phone, and the way of viewing the monitoring data collected by the monitoring device through the mobile phone is similar to the way of viewing the monitoring data collected by the monitoring device through the TV.
[0174] For example, Figure 7B FIG. 1 is a schematic diagram of another embodiment of triggering monitoring through a target terminal device. Figure 7BAs shown, the monitoring device and the mobile phone can be public network devices, that is, the mobile phone and the monitoring device are not connected to the same local area network. The user can perform monitoring trigger operations on the mobile phone, and the mobile phone can send the device identification and other information of the monitoring device that the user needs to view to the signaling server, and the mobile phone and the signaling server perform SDP negotiation to determine the network information of the monitoring device, the supported codec capabilities, and the server information of the SFU server (i.e., the second server mentioned above). The signaling server verifies the monitoring request sent by the mobile phone to determine whether the legal conditions are met. If it is determined that the legal conditions are met, the signaling server can send monitoring streaming information to the monitoring device. After receiving the monitoring streaming information sent by the signaling server, the monitoring device can perform SDP negotiation with the signaling server to determine the network information of the mobile phone, the supported codec capabilities, and the server information of the SFU server. The monitoring device can push the audio and video stream to the SUF server according to the server information of the SFU server, and then the SFU server forwards the audio and video stream to the mobile phone. The mobile phone can obtain the audio and video stream uploaded by the monitoring device from the SFU server according to the server information of the SFU server to realize data forwarding.
[0175] In an embodiment of the present application, a user can trigger the viewing of a monitoring device through a target terminal device, and the monitoring device and terminal device can be compatible with both near-field communication and remote communication, thereby satisfying the needs of a user to view monitoring data using terminal devices in different spatial locations, improving the convenience of a user viewing monitoring data, improving user stickiness, and providing convenience for market development.
[0176] like Figure 8 As shown, in another embodiment, a method for monitoring data transmission is provided, and the method may include the following steps:
[0177] Step 802: The target monitoring device identifies the collected monitoring data, and generates a first monitoring instruction if it is detected that the monitoring data meets the monitoring conditions.
[0178] In an embodiment of the present application, the triggering method for triggering the viewing of the monitoring device can be that the target monitoring device is intelligently triggered. The target monitoring device can identify the collected monitoring data and determine whether the collected monitoring data meets the monitoring conditions. If the monitoring conditions are met, it can trigger the target terminal device to view the monitoring data and generate a first monitoring instruction. Among them, the monitoring conditions can be set according to actual needs. For example, the monitoring conditions may include detecting the appearance of a suspicious person in the collected monitoring screen, or the collected monitoring audio contains sensitive words such as "help" and "save people", or detecting the occurrence of a safety accident in the collected monitoring screen, etc., but it is not limited to this.
[0179] Step 804: The target monitoring device sends a second monitoring request to the first server in response to the first monitoring instruction.
[0180] The target monitoring device may send a second monitoring request to the first server in response to the first monitoring instruction, and the second monitoring request may be used to request the first server to determine the target terminal device.
[0181] Step 806: The first server determines a target terminal device and sends a second monitoring instruction to the target terminal device.
[0182] The first server may store device information of one or more terminal devices. Further, the first server may establish a communication connection with the one or more terminal devices. The first server may determine a target terminal device from the one or more terminal devices in the communication connection. The number of the target terminal devices may be one or more.
[0183] Optionally, each terminal device may have a corresponding priority, and the target terminal device may be a terminal device with the highest priority among one or more terminal devices connected to the first server for communication. The first server may determine the terminal device with the highest priority among one or more terminal devices connected to the first server for communication as the target terminal device based on the second monitoring request.
[0184] Alternatively, the target terminal device may be a terminal device whose priority is greater than a priority threshold among one or more terminal devices communicatively connected to the first server. The first server may, based on the second monitoring request, determine a terminal device whose priority is greater than the priority threshold among one or more terminal devices communicatively connected to the first server as the target terminal device.
[0185] Alternatively, the target terminal device may be a terminal device bound to the target monitoring device among one or more terminal devices communicatively connected to the first server. The first server may determine, based on the second monitoring request, a terminal device bound to the target monitoring device among one or more terminal devices communicatively connected to the first server as the target terminal device.
[0186] Alternatively, the target terminal device may be a designated terminal device among one or more terminal devices communicatively connected to the first server, and the first server may determine the designated terminal device among one or more terminal devices communicatively connected to the first server as the target terminal device based on the second monitoring request.
[0187] Step 808: The target monitoring device performs session negotiation with the first server.
[0188] Step 810: The target monitoring device determines first session information, where the first session information includes first network information corresponding to the target terminal device.
[0189] The target monitoring device may perform session negotiation with the first server in response to the first monitoring instruction to determine first session information.
[0190] Step 812: The target terminal device performs session negotiation with the first server.
[0191] Step 814: The target terminal device determines second session information, where the second session information includes second network information corresponding to the target monitoring device.
[0192] The first server may send a second monitoring instruction to the target terminal device. After receiving the second monitoring instruction sent by the first server, the target terminal device may perform session negotiation with the first server in response to the second monitoring instruction to determine second session information.
[0193] Step 816: The target monitoring device adopts a transmission method corresponding to the first network information to transmit the collected monitoring data to the target terminal device according to the first session information.
[0194] Step 818: The target terminal device adopts a transmission method corresponding to the second network information to obtain the monitoring data collected by the target monitoring device according to the second session information.
[0195] If the target terminal device and the target monitoring device are connected to the same local area network, data can be transmitted between the target monitoring device and the target terminal device through a point-to-point direct transmission method. A point-to-point media transmission channel can be established between the target monitoring device and the target terminal device. The target monitoring device can send the collected monitoring data to the target terminal device through the point-to-point media transmission channel.
[0196] If the target terminal device and the target monitoring device are not connected to the same local area network, the target monitoring device and the target terminal device can transmit data through the transmission mode forwarded by the second server. The target monitoring device can send the collected monitoring data to the second server, and then the second server forwards the monitoring data to the target terminal device.
[0197] For example, Fig. 9A FIG. 1 is a schematic diagram of a target monitoring device intelligently triggering monitoring in an embodiment. Fig. 9AAs shown, the monitoring device, TV and mobile phone are intranet devices, that is, the monitoring device, TV and mobile phone are all connected to the same local area network. The monitoring device performs intelligent detection on the collected monitoring data, and when it detects that the monitoring data meets the monitoring conditions, it sends a start monitoring message to the signaling server. After receiving the start monitoring message sent by the monitoring device, the signaling server performs monitoring processing and scheduling, and determines that the TV and mobile phone are the target terminal devices for viewing the monitoring data. At the same time, the monitoring device conducts SDP negotiation with the signaling server to determine the network information, supported codec capabilities, etc. of the TV, as well as the network information, supported codec capabilities, etc. of the mobile phone. The signaling server can send a notification stream pulling message to the TV. After the TV receives the notification stream pulling message, it conducts SDP negotiation with the signaling server to determine the network information, supported codec capabilities, etc. of the monitoring device. The monitoring device can establish a P2P media transmission channel with the TV, and transmit audio and video streams to the TV through the P2P media transmission channel. The signaling server can also send notification streaming information to the mobile phone. After receiving the notification streaming information, the mobile phone conducts SDP negotiation with the signaling server to determine the network information of the monitoring device, supported codec capabilities, etc. The monitoring device can establish a P2P media transmission channel with the mobile phone and transmit audio and video streams to the mobile phone through the P2P media transmission channel.
[0198] For example, Fig. 9B FIG. 1 is a schematic diagram of another embodiment of a target monitoring device intelligently triggering monitoring. Fig. 9B As shown, the monitoring device and the mobile phone can be public network devices, that is, the mobile phone and the monitoring device are not connected to the same local area network. The monitoring device performs intelligent detection on the collected monitoring data, and when it detects that the monitoring data meets the monitoring conditions, it sends a start monitoring message to the signaling server. After receiving the start monitoring message sent by the monitoring device, the signaling server performs monitoring processing and scheduling, and determines that the mobile phone is the target terminal device for viewing the monitoring data. At the same time, the monitoring device performs SDP negotiation with the signaling server to determine the network information of the mobile phone, the supported codec capabilities, and the server information of the SFU server. The monitoring device can push the audio and video stream to the SUF server according to the server information of the SFU server. The signaling server can send a notification stream pulling information to the mobile phone. After the mobile phone receives the notification stream pulling information, it performs SDP negotiation with the signaling server to determine the network information of the monitoring device, the supported codec capabilities, and the server information of the SFU server. The SFU server forwards the audio and video stream uploaded by the monitoring device to the mobile phone. The mobile phone can obtain the audio and video stream uploaded by the monitoring device from the SFU server according to the server information of the SFU server to realize data forwarding.
[0199] In an embodiment of the present application, the target monitoring device can trigger the viewing of monitoring data through intelligent detection, and can be compatible with monitoring devices and terminal devices for near-field communication and remote communication at the same time, thereby realizing flexible scheduling of terminal devices for viewing monitoring data, improving the convenience of users viewing monitoring data, improving user stickiness, and providing convenience for market development.
[0200] In some embodiments, before the monitoring device and the terminal device exchange information, the device may be bound first. The target monitoring device may be bound to at least one terminal device, the target terminal device may be one or more terminal devices bound to the target monitoring device, the target terminal device may also be bound to at least one monitoring device, and the target monitoring device may be one or more monitoring devices bound to the target terminal device. It should be noted that a terminal device may be bound to multiple monitoring devices, and a monitoring device may also be bound to multiple terminal devices.
[0201] As an implementation method, the monitoring device and the terminal device can use multicast socket communication to complete device detection and binding. The terminal device can send a multicast data packet to detect the device, and the monitoring device that receives the multicast data packet can bind to the terminal device. The monitoring device that receives the multicast data packet can also feedback a detection response to the terminal device. After the terminal device receives the detection response sent by the monitoring device, it can obtain the device information of the monitoring device according to the detection response and bind to the monitoring device.
[0202] As another implementation, the device binding can be completed by scanning the identification code. The terminal device can capture the identification code image on the monitoring device through the camera, and identify the identification code (such as a QR code, barcode, etc.) contained in the identification code image to obtain the device information of the monitoring device, and bind with the monitoring device according to the device information of the monitoring device.
[0203] As another implementation method, the monitoring device and the terminal device can use Bluetooth broadcasting to complete device detection and binding. The terminal device can send a Bluetooth broadcast signal, and the monitoring device that receives the Bluetooth broadcast signal can bind with the terminal device. The monitoring device that receives the Bluetooth broadcast signal can also feedback a broadcast response signal to the terminal device. After the terminal device receives the broadcast response signal sent by the monitoring device, it can obtain the device information of the monitoring device according to the broadcast response signal response and bind with the monitoring device.
[0204] Optionally, after the terminal device and the monitoring device are bound, the binding relationship between the terminal device and the monitoring device can also be stored in the first server. The first server can store the binding relationship between each terminal device and the monitoring device, which is convenient for legitimacy verification and equipment scheduling during subsequent monitoring data transmission.
[0205] It should be noted that the terminal device and the monitoring device may also be bound in other ways, not limited to the above-mentioned ways, and the embodiments of the present application do not limit this.
[0206] For example, Fig.10 FIG. 1 is a schematic diagram of binding a terminal device to a monitoring device in an embodiment. Fig.10 As shown, after the monitoring device is activated, the monitoring device can start working and collect monitoring data. The monitoring device can be authenticated in the signaling server and establish a long connection with the signaling server. The monitoring device can be authenticated in the signaling server, which may include the monitoring device sending its own device information to the signaling server for storage. The signaling server can return a response message to the monitoring device to successfully establish a long connection with the monitoring device. The monitoring device can communicate with the signaling server using the long connection. The mobile phone can perform device detection on the monitoring device and send a device detection message (such as sending in the form of a multicast data packet). After the monitoring device receives the detection message, it can feedback the detection response to the mobile phone to achieve device binding between the monitoring device and the mobile phone. The mobile phone can also be authenticated in the signaling server and establish a long connection with the signaling server. The mobile phone can communicate with the signaling server using the long connection. The TV can perform device detection on the monitoring device and send a device detection message. After the monitoring device receives the detection message, it can feedback the detection response to the TV to achieve device binding between the monitoring device and the mobile phone. The TV can also authenticate the signaling server and establish a long connection with the signaling server, and the TV can communicate with the signaling server using the long connection. It should be noted that there is no necessary order for the monitoring device and the terminal device to establish a long connection with the signaling server and perform device detection and discovery on the monitoring device with the terminal device, and the embodiment of the present application does not limit the order of the two.
[0207] In an embodiment of the present application, by binding the monitoring device and the terminal device, the monitoring device and the terminal device can be easily managed, and only the terminal device with the binding relationship can view the monitoring data, which can ensure the privacy and security of the monitoring data.
[0208] like Fig.11 As shown, in one embodiment, another method for monitoring data transmission is provided, which can be applied to the above-mentioned target terminal device, and the method may include the following steps:
[0209] Step 1110, obtaining a second monitoring instruction.
[0210] Step 1120, in response to the second monitoring instruction, perform session negotiation with the first server to determine second session information; the second session information includes second network information corresponding to the target monitoring device.
[0211] Step 1130: Using a transmission method corresponding to the second network information, obtain monitoring data collected by the target monitoring device according to the second session information.
[0212] In one embodiment, step 1130 includes: if it is determined according to the second network information that the target terminal device and the target monitoring device are connected to the same local area network, receiving the monitoring data directly sent by the target monitoring device according to the second session information.
[0213] In one embodiment, the step of receiving monitoring data directly sent by the target monitoring device according to the second session information includes: establishing a point-to-point media transmission channel with the target monitoring device; and receiving the monitoring data sent by the target monitoring device according to the second session information through the media transmission channel.
[0214] In one embodiment, step 1130 includes: if it is determined according to the second network information that the target terminal device is not connected to the same local area network as the target monitoring device, receiving the monitoring data collected by the target monitoring device and forwarded by the second server according to the second session information.
[0215] In one embodiment, the second session information also includes server information of the second server; the step of receiving monitoring data collected by the target monitoring device and forwarded by the second server according to the second session information includes: receiving monitoring data collected by the target monitoring device and forwarded by the second server according to the server information of the second server.
[0216] In one embodiment, step 1110 includes: generating a second monitoring instruction in response to a monitoring triggering operation.
[0217] In one embodiment, after the step of generating the second monitoring instruction, the method also includes: determining the target monitoring device according to the second monitoring instruction, and sending a first monitoring request to the first server, the first monitoring request including the device identification of the target monitoring device, the first monitoring request is used to trigger the first server to send the first monitoring instruction to the target monitoring device according to the device identification, the first monitoring instruction is used to instruct the target monitoring device to transmit the collected monitoring data to the target terminal device.
[0218] In one embodiment, step 1110 includes: receiving a second monitoring instruction sent by the first server, where the second monitoring instruction is sent by the first server according to the second monitoring request received by the first server from the target monitoring device.
[0219] In one embodiment, before step 1110, the method further includes: binding with at least one monitoring device, where the target monitoring device is one or more monitoring devices bound to the target terminal device.
[0220] It should be noted that the monitoring data transmission method applied to the target terminal device provided in the embodiment of the present application can refer to the relevant descriptions in the above embodiments, and will not be repeated here.
[0221] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0222] like Fig.12 As shown, in one embodiment, another method for monitoring data transmission is provided, which can be applied to the first server mentioned above, and the method may include the following steps:
[0223] Step 1210, perform session negotiation with the target monitoring device so that the target monitoring device determines first session information; the first session information includes first network information corresponding to the target terminal device; the first session information is used to trigger the target monitoring device to adopt a transmission method corresponding to the first network information, and transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information.
[0224] Step 1220, perform session negotiation with the target terminal device so that the target terminal device determines the second session information; the second session information includes the second network information corresponding to the target monitoring device; the second session information is used to trigger the target terminal device to adopt the transmission method corresponding to the second network information, and obtain the monitoring data collected by the target monitoring device according to the second session information.
[0225] In one embodiment, before step 1220, the method further includes: receiving a first monitoring request sent by a target terminal device; the first monitoring request includes a device identifier corresponding to the target monitoring device. The method further includes: sending a first monitoring instruction to the target monitoring device according to the device identifier, the first monitoring instruction being used to instruct the target monitoring device to transmit the collected monitoring data to the target terminal device.
[0226] In one embodiment, the step of sending a first monitoring instruction to a target monitoring device according to a device identifier includes: if it is determined that the first monitoring request meets a legal condition, sending the first monitoring instruction to the target monitoring device according to the device identifier.
[0227] In one embodiment, before step 1210, the method further includes: receiving a second monitoring request sent by a target monitoring device; and determining a target terminal device according to the second monitoring request.
[0228] In one embodiment, after the step of determining the target terminal device according to the second monitoring request, the method further includes: sending a second monitoring instruction to the target terminal device, the second monitoring instruction is used to instruct the target terminal device to obtain monitoring data collected by the target monitoring device.
[0229] In one embodiment, the step of determining the target terminal device according to the second monitoring request includes: according to the second monitoring request, determining the terminal device with the highest priority among the one or more terminal devices connected to the first server for communication as the target terminal device; or, according to the second monitoring request, determining the terminal device with a priority greater than a priority threshold among the one or more terminal devices connected to the first server for communication as the target terminal device; or, according to the second monitoring request, determining the terminal device bound to the target monitoring device among the one or more terminal devices connected to the first server for communication as the target terminal device; or, according to the second monitoring request, determining a specified terminal device among the one or more terminal devices connected to the first server for communication as the target terminal device.
[0230] In one embodiment, step 1210 includes: performing session negotiation with the target monitoring device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, feeding back first response information to the target monitoring device, so that the target monitoring device determines first session information based on the first response information; wherein the first response information includes first network information corresponding to the target terminal device and server information of the second server.
[0231] Step 1220 includes: performing session negotiation with the target terminal device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, feeding back second response information to the target terminal device, so that the target terminal device determines second session information based on the second response information; the second response information includes the second network information corresponding to the target monitoring device and the server information of the second server.
[0232] It should be noted that the monitoring data transmission method applied to the first server provided in the embodiment of the present application can refer to the relevant descriptions in the above embodiments, and will not be repeated here.
[0233] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0234] In one embodiment, a monitoring data transmission system is provided, the system comprising:
[0235] at least one monitoring device;
[0236] at least one terminal device;
[0237] A first server establishes a communication connection with at least one monitoring device and at least one terminal device;
[0238] a first server, configured to perform session negotiation with a target monitoring device among at least one monitoring device, so that the target monitoring device determines first session information; the first session information includes first network information corresponding to the target terminal device; and to perform session negotiation with a target terminal device among at least one terminal device, so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device;
[0239] The target monitoring device is used to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information in a transmission mode corresponding to the first network information;
[0240] The target terminal device is used to obtain the monitoring data collected by the target monitoring device according to the second session information by adopting a transmission mode corresponding to the second network information.
[0241] In one embodiment, the target monitoring device is further configured to directly send the monitoring data collected by the target monitoring device to the target terminal device according to the first session information if it is determined according to the first network information that the target terminal device and the target monitoring device are connected to the same local area network;
[0242] The target terminal device is also used to receive the monitoring data directly sent by the target monitoring device according to the second session information if it is determined according to the second network information that the target terminal device and the target monitoring device are connected to the same local area network.
[0243] In one embodiment, the target monitoring device is further used to establish a point-to-point media transmission channel with the target terminal device, and send the monitoring data collected by the target monitoring device to the target terminal device through the media transmission channel according to the first session information;
[0244] The target terminal device is also used to establish a point-to-point media transmission channel with the target monitoring device, and receive the monitoring data sent by the target monitoring device through the media transmission channel according to the second session information.
[0245] In one embodiment, the system further comprises a second server;
[0246] The target terminal device is further configured to send the monitoring data collected by the target monitoring device to the second server according to the first session information if it is determined according to the first network information that the target terminal device is not connected to the same local area network as the target monitoring device;
[0247] The second server is further used to receive the monitoring data sent by the target terminal device; and to forward the monitoring data to the target terminal device;
[0248] The target terminal device is also used to receive the monitoring data collected by the target monitoring device and forwarded by the second server if it is determined according to the second network information that the target terminal device is not connected to the same local area network as the target monitoring device.
[0249] In one embodiment, the first session information further includes server information of the second server; the second session information further includes server information of the second server;
[0250] The target monitoring device is further used to send the monitoring data collected by the target monitoring device to the second server according to the server information of the second server;
[0251] The target terminal device is also used to receive the monitoring data collected by the target monitoring device and forwarded by the second server according to the server information of the second server.
[0252] In one embodiment, the first server is further used to perform session negotiation with the target monitoring device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, feedback first response information to the target monitoring device, so that the target monitoring device determines the first session information based on the first response information; wherein the first response information includes the first network information corresponding to the target terminal device and the server information of the second server; and is also used to perform session negotiation with the target terminal device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, feedback second response information to the target terminal device, so that the target terminal device determines the second session information based on the second response information; the second response information includes the second network information corresponding to the target monitoring device and the server information of the second server.
[0253] In one embodiment, the target terminal device is further used to generate a second monitoring instruction in response to the monitoring trigger operation, determine the target monitoring device according to the second monitoring instruction, and send a first monitoring request to the first server; the first monitoring request includes a device identifier corresponding to the target monitoring device;
[0254] The target terminal device is further configured to perform session negotiation with the first server in response to the second monitoring instruction to determine second session information;
[0255] The first server is further configured to receive a first monitoring request sent by a target terminal device, and send a first monitoring instruction to a target monitoring device according to a device identifier;
[0256] The target monitoring device is further configured to receive a first monitoring instruction sent by the first server, and in response to the first monitoring instruction, perform session negotiation with the first server to determine first session information.
[0257] In one embodiment, the target monitoring device is further used to identify the monitoring data collected by the target monitoring device, generate a first monitoring instruction if it is detected that the monitoring data meets the monitoring condition, and send a second monitoring request to the first server in response to the first monitoring instruction;
[0258] The target monitoring device is further configured to perform session negotiation with the first server in response to the first monitoring instruction to determine first session information;
[0259] The first server is further configured to receive a second monitoring request sent by a target monitoring device, determine a target terminal device according to the second monitoring request, and send a second monitoring instruction to the target terminal device;
[0260] The target terminal device is further configured to receive a second monitoring instruction sent by the first server, and in response to the second monitoring instruction, perform session negotiation with the first server to determine second session information.
[0261] In one embodiment, the first server is further used to determine, according to the second monitoring request, a terminal device with the highest priority among one or more terminal devices connected to the first server for communication as a target terminal device; or, according to the second monitoring request, to determine, among the one or more terminal devices connected to the first server for communication, a terminal device with a priority greater than a priority threshold as a target terminal device; or, according to the second monitoring request, to determine, among the one or more terminal devices connected to the first server for communication, a terminal device bound to a target monitoring device as a target terminal device; or, according to the second monitoring request, to determine, among the one or more terminal devices connected to the first server for communication, a specified terminal device as a target terminal device.
[0262] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0263] like Fig.13 As shown, in one embodiment, a monitoring data transmission device 1300 is provided, which can be applied to the above-mentioned target monitoring device. The monitoring data transmission device 1300 may include a first instruction acquisition module 1310, a first negotiation module 1320 and a transmission module 1330.
[0264] The first instruction acquisition module 1310 is used to acquire a first monitoring instruction.
[0265] The first negotiation module 1320 is used to perform session negotiation with the first server in response to the first monitoring instruction to determine first session information; the first session information includes first network information corresponding to the target terminal device,
[0266] The transmission module 1330 is used to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information by adopting a transmission method corresponding to the first network information.
[0267] In one embodiment, the transmission module 1330 is further used to directly send the monitoring data collected by the target monitoring device to the target terminal device according to the first session information if it is determined according to the first network information that the target terminal device and the target monitoring device are connected to the same local area network.
[0268] In one embodiment, the transmission module 1330 is further used to establish a point-to-point media transmission channel with the target terminal device; and to send the monitoring data collected by the target monitoring device to the target terminal device through the media transmission channel according to the first session information.
[0269] In one embodiment, the transmission module 1330 is also used to send the monitoring data collected by the target monitoring device to the second server according to the first session information if it is determined according to the first network information that the target terminal device is not connected to the same local area network as the target monitoring device, so that the second server forwards the monitoring data to the target terminal device.
[0270] In one embodiment, the first session information also includes server information of the second server; the transmission module 1330 is further used to send the monitoring data collected by the target monitoring device to the second server according to the server information of the second server.
[0271] In one embodiment, the second server comprises an SFU server.
[0272] In one embodiment, the first instruction acquisition module 1310 is also used to receive a first monitoring instruction sent by the first server. The first monitoring instruction is a first monitoring request sent by a target terminal device received by the first server. The first monitoring instruction is sent according to a device identifier carried in the first monitoring request, and the device identifier corresponds to the target monitoring device.
[0273] In one embodiment, the first instruction acquisition module 1310 is further used to identify the monitoring data collected by the target monitoring device, and generate a first monitoring instruction if it is detected that the monitoring data meets the monitoring conditions.
[0274] In one embodiment, the monitoring data transmission device 1300 further includes a request sending module.
[0275] A request sending module is used to send a second monitoring request to the first server in response to a first monitoring instruction. The second monitoring request is used to trigger the first server to determine a target terminal device and send a second monitoring instruction to the target terminal device. The second monitoring instruction is used to instruct the target terminal device to obtain monitoring data collected by the target monitoring device.
[0276] In one embodiment, the target terminal device is a terminal device with the highest priority among one or more terminal devices connected to the first server for communication; or,
[0277] The target terminal device is a terminal device having a priority greater than a priority threshold among one or more terminal devices in communication connection with the first server; or,
[0278] The target terminal device is a terminal device bound to the target monitoring device among one or more terminal devices connected to the first server for communication; or,
[0279] The target terminal device is a designated terminal device among one or more terminal devices that are communicatively connected to the first server.
[0280] In one embodiment, the monitoring data transmission device 1300 further includes a binding module.
[0281] The binding module is used to bind with at least one terminal device, and the target terminal device is one or more terminal devices bound with the target monitoring device.
[0282] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0283] like Fig.14 As shown, in one embodiment, a monitoring data transmission device 1400 is provided, which can be applied to the above-mentioned target terminal device. The monitoring data transmission device 1400 includes a second instruction acquisition module 1410, a second negotiation module 1420 and a data acquisition module 1430.
[0284] The second instruction acquisition module 1410 is used to acquire a second monitoring instruction.
[0285] The second negotiation module 1420 is used to perform session negotiation with the first server in response to the second monitoring instruction to determine second session information; the second session information includes second network information corresponding to the target monitoring device.
[0286] The data acquisition module 1430 is used to acquire the monitoring data collected by the target monitoring device according to the second session information by adopting a transmission mode corresponding to the second network information.
[0287] In one embodiment, the data acquisition module 1430 is further configured to receive monitoring data directly sent by the target monitoring device according to the second session information if it is determined according to the second network information that the target terminal device and the target monitoring device are connected to the same local area network.
[0288] In one embodiment, the data acquisition module 1430 is further used to establish a point-to-point media transmission channel with the target monitoring device; and receive the monitoring data sent by the target monitoring device according to the second session information through the media transmission channel.
[0289] In one embodiment, the data acquisition module 1430 is further used to receive the monitoring data collected by the target monitoring device and forwarded by the second server according to the second session information if it is determined according to the second network information that the target terminal device is not connected to the same local area network as the target monitoring device.
[0290] In one embodiment, the second session information also includes server information of the second server; the data acquisition module 1430 is further used to receive the monitoring data collected by the target monitoring device and forwarded by the second server according to the server information of the second server.
[0291] In one embodiment, the second instruction acquisition module 1410 is further configured to generate a second monitoring instruction in response to a monitoring trigger operation.
[0292] In one embodiment, the monitoring data transmission device 1400 further includes a request sending module.
[0293] A request sending module is used to determine the target monitoring device according to the second monitoring instruction and send a first monitoring request to the first server. The first monitoring request includes the device identification of the target monitoring device. The first monitoring request is used to trigger the first server to send the first monitoring instruction to the target monitoring device according to the device identification. The first monitoring instruction is used to instruct the target monitoring device to transmit the collected monitoring data to the target terminal device.
[0294] In one embodiment, the second instruction acquisition module 1410 is further used to receive a second monitoring instruction sent by the first server, where the second monitoring instruction is sent by the first server based on the second monitoring request received by the first server from the target monitoring device.
[0295] In one embodiment, the monitoring data transmission device 1400 further includes a binding module.
[0296] The binding module is used to bind with at least one monitoring device, and the target monitoring device is one or more monitoring devices bound with the target terminal device.
[0297] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0298] like Fig.15 As shown, in one embodiment, a monitoring data transmission device 1500 is provided, which can be applied to the above-mentioned first server. The monitoring data transmission device 1500 includes a target negotiation module 1510.
[0299] The target negotiation module 1510 is used to perform session negotiation with the target monitoring device so that the target monitoring device determines the first session information; the first session information includes the first network information corresponding to the target terminal device; the first session information is used to trigger the target monitoring device to adopt the transmission method corresponding to the first network information, and transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information.
[0300] The target negotiation module 1510 is also used to perform session negotiation with the target terminal device so that the target terminal device determines the second session information; the second session information includes the second network information corresponding to the target monitoring device; the second session information is used to trigger the target terminal device to adopt the transmission method corresponding to the second network information, and obtain the monitoring data collected by the target monitoring device according to the second session information.
[0301] In one embodiment, the monitoring data transmission device 1500 further includes a request receiving module and an instruction sending module.
[0302] The request receiving module is used to receive a first monitoring request sent by a target terminal device; the first monitoring request includes a device identifier corresponding to the target monitoring device.
[0303] The instruction sending module is used to send a first monitoring instruction to a target monitoring device according to a device identifier, wherein the first monitoring instruction is used to instruct the target monitoring device to transmit collected monitoring data to a target terminal device.
[0304] In one embodiment, the instruction sending module is further configured to send the first monitoring instruction to the target monitoring device according to the device identification if it is determined that the first monitoring request meets the legal condition.
[0305] In one embodiment, the request receiving module is further used to receive a second monitoring request sent by a target monitoring device; and determine a target terminal device according to the second monitoring request.
[0306] The instruction sending module is also used to send a second monitoring instruction to the target terminal device, and the second monitoring instruction is used to instruct the target terminal device to obtain the monitoring data collected by the target monitoring device.
[0307] In one embodiment, the request receiving module is also used to determine, according to a second monitoring request, a terminal device with the highest priority among one or more terminal devices connected to the first server for communication as a target terminal device; or, according to the second monitoring request, to determine, among one or more terminal devices connected to the first server for communication, a terminal device with a priority greater than a priority threshold as a target terminal device; or, according to the second monitoring request, to determine, among one or more terminal devices connected to the first server for communication, a terminal device bound to a target monitoring device as a target terminal device; or, according to the second monitoring request, to determine, among one or more terminal devices connected to the first server for communication, a specified terminal device as a target terminal device.
[0308] In one embodiment, the target negotiation module 1510 is also used to perform session negotiation with the target monitoring device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, it feeds back first response information to the target monitoring device, so that the target monitoring device determines the first session information based on the first response information; wherein the first response information includes the first network information corresponding to the target terminal device and the server information of the second server.
[0309] The target negotiation module 1510 is also used to perform session negotiation with the target terminal device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, feedback second response information to the target terminal device, so that the target terminal device determines the second session information based on the second response information; the second response information includes the second network information corresponding to the target monitoring device and the server information of the second server.
[0310] In an embodiment of the present application, the first server can be compatible with monitoring devices and terminal devices connected to different networks. Different transmission methods can be used to transmit monitoring data for monitoring devices and terminal devices connected to different networks. Therefore, it can also support the access of more types of monitoring devices and terminal devices, thereby improving the convenience of users viewing monitoring data.
[0311] Fig.16 FIG. 1 is a structural block diagram of a monitoring device in one embodiment. Fig.16As shown, the monitoring device 1600 may include one or more of the following components: a processor 1610, and a memory 1620 coupled to the processor 1610, wherein the memory 1620 may store one or more computer programs, and the one or more computer programs may be configured to implement the monitoring data transmission method applied to the target monitoring device as described in the above embodiments when executed by one or more processors 1610.
[0312] The processor 1610 may include one or more processing cores. The processor 1610 uses various interfaces and lines to connect various parts of the entire monitoring device 1600, and executes various functions and processes data of the monitoring device 1600 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1620, and calling data stored in the memory 1620. Optionally, the processor 1610 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1610 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1610, but may be implemented separately through a communication chip.
[0313] The memory 1620 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1620 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1620 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the monitoring device 1600 during use, etc.
[0314] It can be understood that the monitoring device 1600 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., and is not limited here.
[0315] An embodiment of the present application discloses a terminal device, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the monitoring data transmission method applied to the target terminal device as described in the above embodiments.
[0316] An embodiment of the present application discloses a server, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor implements the monitoring data transmission method applied to the first server as described in the above embodiments.
[0317] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the monitoring data transmission method applied to a target monitoring device as described in the above embodiments is implemented.
[0318] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the monitoring data transmission method applied to a target terminal device as described in the above embodiments is implemented.
[0319] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the monitoring data transmission method applied to a first server as described in the above embodiments is implemented.
[0320] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the monitoring data transmission method applied to a target monitoring device as described in the above embodiments.
[0321] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the monitoring data transmission method applied to a target terminal device as described in the above embodiments.
[0322] An embodiment of the present application discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be executed by a processor to implement the monitoring data transmission method applied to a first server as described in the above embodiments.
[0323] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a ROM, etc.
[0324] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Suitable nonvolatile memory may include ROM, programmable ROM (Programmable ROM, PROM), erasable PROM (Erasable PROM, EPROM), electrically erasable PROM (Electrically Erasable PROM, EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. By way of illustration and not limitation, RAM may be in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM) and direct memory bus dynamic RAM (DRDRAM).
[0325] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0326] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0327] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0328] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0329] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0330] The above describes in detail a monitoring data transmission method, device, system, electronic device and storage medium disclosed in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A monitoring data transmission method, characterized in that: Applied to a target monitoring device, the method comprises: Obtaining a first monitoring instruction; In response to the first monitoring instruction, performing session negotiation with the first server to determine first session information; the first session information includes first network information corresponding to the target terminal device; The monitoring data collected by the target monitoring device is transmitted to the target terminal device according to the first session information using a transmission method corresponding to the first network information.
2. The method according to claim 1, characterized in that: The adopting a transmission method corresponding to the first network information and transmitting the monitoring data collected by the target monitoring device to the target terminal device according to the first session information includes: If it is determined according to the first network information that the target terminal device and the target monitoring device are connected to the same local area network, the monitoring data collected by the target monitoring device is directly sent to the target terminal device according to the first session information.
3. The method according to claim 2, characterized in that The directly sending the monitoring data collected by the target monitoring device to the target terminal device according to the first session information includes: Establishing a point-to-point media transmission channel with the target terminal device; The monitoring data collected by the target monitoring device is sent to the target terminal device through the media transmission channel according to the first session information.
4. The method according to claim 1, characterized in that The adopting a transmission method corresponding to the first network information and transmitting the monitoring data collected by the target monitoring device to the target terminal device according to the first session information includes: If it is determined according to the first network information that the target terminal device is not connected to the same local area network as the target monitoring device, the monitoring data collected by the target monitoring device is sent to the second server according to the first session information, so that the second server forwards the monitoring data to the target terminal device.
5. The method according to claim 4, characterized in that The first session information also includes server information of the second server; and sending the monitoring data collected by the target monitoring device to the second server according to the first session information includes: The monitoring data collected by the target monitoring device is sent to the second server according to the server information of the second server.
6. The method according to claim 4, characterized in that The second server comprises a selective forwarding unit SFU server.
7. The method according to any one of claims 1 to 6, characterized in that: The obtaining of the first monitoring instruction comprises: A first monitoring instruction is received from a first server. The first monitoring instruction is sent by the first server when the first server receives a first monitoring request from a target terminal device, and is sent according to a device identifier carried in the first monitoring request. The device identifier corresponds to the target monitoring device.
8. The method according to any one of claims 1 to 6, characterized in that: The obtaining of the first monitoring instruction comprises: The monitoring data collected by the target monitoring device is identified, and if it is detected that the monitoring data meets the monitoring condition, a first monitoring instruction is generated.
9. The method according to claim 8, characterized in that After generating the first monitoring instruction, the method further includes: In response to the first monitoring instruction, a second monitoring request is sent to the first server, the second monitoring request is used to trigger the first server to determine the target terminal device and send a second monitoring instruction to the target terminal device, the second monitoring instruction is used to instruct the target terminal device to obtain the monitoring data collected by the target monitoring device.
10. The method according to claim 9, characterized in that The target terminal device is a terminal device with the highest priority among one or more terminal devices connected to the first server for communication; or The target terminal device is a terminal device having a priority greater than a priority threshold among one or more terminal devices connected to the first server for communication; or The target terminal device is a terminal device bound to the target monitoring device among one or more terminal devices connected to the first server for communication; or The target terminal device is a designated terminal device among one or more terminal devices that are communicatively connected to the first server.
11. The method according to any one of claims 1 to 6, characterized in that: Before obtaining the first monitoring instruction, the method further includes: Binding is performed with at least one terminal device, wherein the target terminal device is one or more terminal devices bound with the target monitoring device.
12. A monitoring data transmission method, characterized in that: Applied to a target terminal device, the method comprises: Obtaining a second monitoring instruction; In response to the second monitoring instruction, performing session negotiation with the first server to determine second session information; the second session information includes second network information corresponding to the target monitoring device; The monitoring data collected by the target monitoring device is acquired according to the second session information using a transmission method corresponding to the second network information.
13. The method according to claim 12, characterized in that The adopting a transmission mode corresponding to the second network information and acquiring the monitoring data collected by the target monitoring device according to the second session information includes: If it is determined according to the second network information that the target terminal device and the target monitoring device are connected to the same local area network, the monitoring data directly sent by the target monitoring device is received according to the second session information.
14. The method according to claim 13, characterized in that The receiving, according to the second session information, the monitoring data directly sent by the target monitoring device comprises: Establishing a point-to-point media transmission channel with the target monitoring device; The monitoring data sent by the target monitoring device is received through the media transmission channel according to the second session information.
15. The method according to claim 12, characterized in that The adopting a transmission mode corresponding to the second network information and acquiring the monitoring data collected by the target monitoring device according to the second session information includes: If it is determined according to the second network information that the target terminal device is not connected to the same local area network as the target monitoring device, the monitoring data collected by the target monitoring device and forwarded by the second server is received according to the second session information.
16. The method according to claim 15, characterized in that The second session information also includes server information of the second server; and the receiving, according to the second session information, the monitoring data collected by the target monitoring device and forwarded by the second server includes: The monitoring data collected by the target monitoring device and forwarded by the second server is received according to the server information of the second server.
17. The method according to any one of claims 12 to 16, characterized in that: The obtaining of the second monitoring instruction comprises: In response to the monitoring triggering operation, a second monitoring instruction is generated.
18. The method according to claim 17, characterized in that After generating the second monitoring instruction, the method further includes: The target monitoring device is determined according to the second monitoring instruction, and a first monitoring request is sent to the first server, wherein the first monitoring request includes a device identifier of the target monitoring device, and the first monitoring request is used to trigger the first server to send a first monitoring instruction to the target monitoring device according to the device identifier, and the first monitoring instruction is used to instruct the target monitoring device to transmit the collected monitoring data to the target terminal device.
19. The method according to any one of claims 12 to 16, characterized in that: The obtaining of the second monitoring instruction comprises: A second monitoring instruction sent by the first server is received, where the second monitoring instruction is sent by the first server according to the second monitoring request received by the first server from the target monitoring device.
20. The method according to any one of claims 12 to 16, characterized in that: Before obtaining the second monitoring instruction, the method further includes: Binding is performed with at least one monitoring device, wherein the target monitoring device is one or more monitoring devices bound with the target terminal device.
21. A monitoring data transmission method, characterized in that: Applied to a first server, the method comprises: Performing session negotiation with a target monitoring device so that the target monitoring device determines first session information; the first session information includes first network information corresponding to a target terminal device; the first session information is used to trigger the target monitoring device to adopt a transmission method corresponding to the first network information, and transmit monitoring data collected by the target monitoring device to the target terminal device according to the first session information; Performing session negotiation with the target terminal device so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device; the second session information is used to trigger the target terminal device to adopt a transmission method corresponding to the second network information, and obtain monitoring data collected by the target monitoring device according to the second session information.
22. The method according to claim 21, characterized in that Before performing session negotiation with the target terminal device so that the target terminal device determines the second session information, the method further includes: Receiving a first monitoring request sent by the target terminal device; the first monitoring request includes a device identifier corresponding to the target monitoring device; The method further comprises: A first monitoring instruction is sent to the target monitoring device according to the device identification, where the first monitoring instruction is used to instruct the target monitoring device to transmit the collected monitoring data to the target terminal device.
23. The method according to claim 22, characterized in that The sending a first monitoring instruction to the target monitoring device according to the device identifier includes: If it is determined that the first monitoring request meets the legal condition, a first monitoring instruction is sent to the target monitoring device according to the device identifier.
24. The method according to claim 21, characterized in that Before performing session negotiation with the target monitoring device so that the target monitoring device determines the first session information, the method further includes: Receiving a second monitoring request sent by a target monitoring device; Determine a target terminal device according to the second monitoring request.
25. The method according to claim 24, characterized in that After determining the target terminal device according to the second monitoring request, the method further includes: A second monitoring instruction is sent to the target terminal device, where the second monitoring instruction is used to instruct the target terminal device to obtain monitoring data collected by the target monitoring device.
26. The method according to claim 24, characterized in that The determining the target terminal device according to the second monitoring request includes: According to the second monitoring request, determining a terminal device with the highest priority among one or more terminal devices connected to the first server for communication as a target terminal device; or, According to the second monitoring request, determining, among the one or more terminal devices in communication connection with the first server, a terminal device having a priority greater than a priority threshold as a target terminal device; or, According to the second monitoring request, determining a terminal device bound to the target monitoring device among one or more terminal devices in communication connection with the first server as a target terminal device; or, According to the second monitoring request, a designated terminal device among the one or more terminal devices in communication connection with the first server is determined as a target terminal device.
27. The method according to any one of claims 21 to 26, characterized in that: The performing session negotiation with the target monitoring device so that the target monitoring device determines the first session information includes: Performing session negotiation with a target monitoring device, and feeding back first response information to the target monitoring device when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, so that the target monitoring device determines first session information according to the first response information; wherein the first response information includes first network information corresponding to the target terminal device and server information of the second server; The performing session negotiation with the target terminal device so that the target terminal device determines the second session information includes: Perform session negotiation with the target terminal device, and when it is determined that the target terminal device is not connected to the same local area network as the target monitoring device, feedback second response information to the target terminal device, so that the target terminal device determines second session information according to the second response information; the second response information includes second network information corresponding to the target monitoring device and server information of the second server.
28. A monitoring data transmission system, characterized in that: The system comprises: at least one monitoring device; at least one terminal device; A first server establishes a communication connection with the at least one monitoring device and the at least one terminal device; The first server is used to perform session negotiation with a target monitoring device among the at least one monitoring device, so that the target monitoring device determines first session information; the first session information includes first network information corresponding to the target terminal device; and is used to perform session negotiation with the target terminal device among the at least one terminal device, so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device; The target monitoring device is configured to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information, using a transmission method corresponding to the first network information; The target terminal device is used to obtain the monitoring data collected by the target monitoring device according to the second session information by adopting a transmission method corresponding to the second network information.
29. The system according to claim 28, characterized in that The system also includes a second server; The target terminal device is further configured to send the monitoring data collected by the target monitoring device to the second server according to the first session information if it is determined according to the first network information that the target terminal device is not connected to the same local area network as the target monitoring device; The second server is further configured to receive the monitoring data sent by the target terminal device; and used to forward the monitoring data to the target terminal device; The target terminal device is further used to receive the monitoring data collected by the target monitoring device and forwarded by the second server if it is determined according to the second network information that the target terminal device is not connected to the same local area network as the target monitoring device.
30. A monitoring data transmission device, characterized in that: Applied to a target monitoring device, the device comprises: A first instruction acquisition module, used to acquire a first monitoring instruction; A first negotiation module, configured to perform session negotiation with a first server in response to the first monitoring instruction to determine first session information; the first session information includes first network information corresponding to a target terminal device; A transmission module is used to transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information using a transmission method corresponding to the first network information.
31. A monitoring data transmission device, characterized in that: Applied to a target terminal device, the device comprises: A second instruction acquisition module, used to acquire a second monitoring instruction; A second negotiation module, configured to perform session negotiation with the first server in response to the second monitoring instruction to determine second session information; the second session information includes second network information corresponding to the target monitoring device; A data acquisition module is used to adopt a transmission mode corresponding to the second network information and acquire the monitoring data collected by the target monitoring device according to the second session information.
32. A monitoring data transmission device, characterized in that: Applied to a first server, the device comprises: A target negotiation module, configured to perform session negotiation with a target monitoring device, so that the target monitoring device determines first session information; the first session information includes first network information corresponding to a target terminal device; the first session information is used to trigger the target monitoring device to adopt a transmission method corresponding to the first network information, and transmit the monitoring data collected by the target monitoring device to the target terminal device according to the first session information; The target negotiation module is also used to perform session negotiation with the target terminal device so that the target terminal device determines second session information; the second session information includes second network information corresponding to the target monitoring device; the second session information is used to trigger the target terminal device to adopt a transmission method corresponding to the second network information, and obtain the monitoring data collected by the target monitoring device according to the second session information.
33. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 11, 12 to 20, or 21 to 27.
34. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11, 12 to 20, or 21 to 27 is implemented.