A method, apparatus and electronic device for controlling a collection device
Patent Information
- Application Number
- CN202211624172.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-16
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2042-12-16
AI Technical Summary
[0003]多个监控设备可能同时向网关设备传输视频数据,使得网关设备的负荷较大,进而可能导致网关设备出现异常甚至宕机
[0045]The beneficial effects of aspects two through eight can be found in the preceding discussion and will not be repeated here.
Smart Images

Figure CN116016859B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus and electronic device for controlling a data acquisition device. Background Technology
[0002] A monitoring system can be used for surveillance. A typical monitoring system includes multiple acquisition devices, a gateway device, and a cloud platform that communicates with the acquisition devices via a network. The acquisition devices collect video data and send it to the cloud platform through the gateway device. The cloud platform then processes this video data to achieve the monitoring function.
[0003] Multiple monitoring devices may transmit video data to the gateway device simultaneously, which can overload the gateway device and potentially cause it to malfunction or even crash. Summary of the Invention
[0004] This application provides a method, apparatus, and electronic device for controlling a data acquisition device, used to reduce the load on the gateway device and reduce the possibility of the gateway device malfunctioning.
[0005] In a first aspect, embodiments of this application provide a method for controlling a data acquisition device, applied to a gateway device. The method includes: receiving a first message from a first data acquisition device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first data acquisition device has sent to the gateway device within a first time period; if the ratio of the first data volume to the total amount is less than or equal to a first threshold, then sending first indication information to the first data acquisition device, the first indication information indicating the first data acquisition device to reduce the bitrate of the acquired video, the total amount being the amount of video data that at least one data acquisition device has sent to the gateway device within the first time period, the at least one data acquisition device including the first data acquisition device.
[0006] In this embodiment, when the ratio of the first data volume to the total volume is less than or equal to a first threshold, it indicates that the efficiency of the first acquisition device in sending video data is relatively low compared to the acquisition devices other than the first acquisition device. This means that the network where the current gateway device and the at least one acquisition device are located is relatively congested. Therefore, the gateway device can instruct the bit rate of the first acquisition device to be reduced, which is beneficial to reduce the amount of video data acquired by the first acquisition device. In this way, the amount of video data received by the gateway device can be reduced, which is beneficial to reduce the load on the gateway device and thus reduce the possibility of the gateway device malfunctioning.
[0007] In one possible implementation, the first message further indicates the first acquisition device at a first rate of currently transmitting video data; before sending the first indication information to the first acquisition device, the method includes: determining that the first rate of the first acquisition device is less than or equal to a first preset rate; and / or determining that the sequence number of the first rate of the first acquisition device is less than or equal to N, wherein the sequence number of the first rate is obtained by arranging the at least one rate in ascending order, wherein the at least one rate includes the rate at which the at least one acquisition device is currently transmitting video data to the gateway device, and N is a positive integer.
[0008] In this embodiment, the gateway device may further instruct the first acquisition device to reduce its bit rate after determining that the first acquisition device is currently at a relatively low first rate. This can further ensure that the network where the gateway device and at least one acquisition device are located is relatively unobstructed. Therefore, in this case, reducing the bit rate of the first acquisition device can avoid frequent or inappropriate reduction of the bit rate of the first acquisition device.
[0009] In one possible implementation, before sending the first indication information to the first acquisition device, the method further includes: sending a second indication information to a cloud platform, the second indication information indicating that the ratio of the first data volume to the total volume is less than or equal to the first threshold; receiving a third indication information from the cloud platform, the third indication information indicating to reduce the bit rate of the first acquisition device, the third indication information being sent by the cloud platform after determining that the priority of the first acquisition device meets the first condition.
[0010] In this embodiment, the cloud platform can also determine to reduce the bit rate of the first acquisition device. Specifically, after determining that the ratio of the first data volume to the total volume is less than or equal to a first threshold and that the priority of the first acquisition device meets the first condition, the cloud platform can instruct the gateway device to reduce the bit rate of the first acquisition device. In this way, the gateway device does not need to determine to reduce the bit rate of the first acquisition device, which can relatively reduce the processing load of the gateway device.
[0011] In one possible implementation, before sending the first indication information to the first acquisition device, the method further includes: determining that the priority of the first acquisition device satisfies a first condition.
[0012] In this embodiment, the gateway device can reduce the bitrate of the first acquisition device after determining that the ratio of the first data volume to the total volume is less than or equal to a first threshold and that the priority of the first acquisition device meets a first condition. This avoids frequently reducing the bitrate of the first acquisition device. Optionally, the first condition may be, for example, that the priority of the first acquisition device is relatively low. This can prevent the video data from not meeting requirements due to the reduction of the bitrate of the first acquisition device.
[0013] In one possible implementation, the first message further indicates the first video data currently being sent by the first acquisition device; after sending the first indication information to the first acquisition device, the method further includes: sending the first video data to a cloud platform; receiving a fourth indication information from the cloud platform, the fourth indication information indicating a reduction in the bitrate of the first acquisition device, the fourth indication information being sent by the cloud platform after determining that a second rate is greater than or equal to a second threshold, the second rate being the rate at which the cloud platform receives the first video data from the gateway device; and sending a fifth indication information to the first acquisition device, the fifth indication information indicating that the first acquisition device reduce the bitrate.
[0014] In this embodiment, the second threshold may be, for example, the maximum receiving rate of the cloud platform. If the cloud platform determines that the speed at which it receives the first video data from the gateway device (i.e., the second rate) is greater than or equal to the second threshold, it indicates that the rate at which the gateway device sends the first video data is too high. Therefore, the cloud platform may also instruct the rate of the first acquisition device to be reduced. In this way, the gateway device is prevented from sending too much video data to the cloud platform in a short period of time, which would lead to insufficient storage resources of the cloud platform and video data overflow.
[0015] In one possible implementation, before sending the first video data to the cloud platform, the method further includes: writing the first video data into a sending queue; if the total amount of video data in the sending queue is greater than a third threshold, disconnecting the communication connection with the first access network device and establishing a communication connection with the second access network device; and sending the video data in the sending queue to the cloud platform through the second access network device.
[0016] In this implementation, when the video data in the sending queue exceeds the third threshold, it indicates that there is a lot of video data in the sending queue, which means that the sending rate of the first access network device may be too low. Therefore, the gateway device can disconnect the communication connection with the first access network device and choose to establish a communication connection with the second access network device. In this way, the efficiency of the gateway device in sending video data to the cloud platform can be improved to a certain extent, and the accumulation of video data in the sending queue can be reduced.
[0017] In one possible implementation, the method further includes: if the priority of the first acquisition device does not meet the first condition, then sending a sixth indication message to the second acquisition device, the sixth indication message instructing the second acquisition device to reduce the bit rate, the second acquisition device being one of the at least one acquisition device, and the priority of the second acquisition device meeting the first condition.
[0018] In this embodiment, when the first acquisition device does not meet the first condition (e.g., the first acquisition device has a higher priority), the bitrate of the second acquisition device that meets the first condition can be reduced. In this way, the bitrate of the first acquisition device can be guaranteed, the amount of video data acquired by the second acquisition device can be reduced, and the load on the gateway device can also be reduced.
[0019] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, wherein the priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order, and K is a positive integer.
[0020] In this embodiment, the first condition can be that the priority of the acquisition device is relatively low, such as lower than the preset priority or relatively low in the priority of at least one acquisition device. This can ensure that the bit rate of the acquisition device with relatively high priority is not reduced, and thus ensure the quality of the video data acquired by the acquisition device with high priority.
[0021] Secondly, embodiments of this application also provide a method for controlling a data acquisition device, applied to a cloud platform. The method includes: receiving second indication information from a gateway device, the second indication information indicating that the ratio of a first data volume to a total volume is less than or equal to a first threshold, the first data volume being the amount of video data that a first data acquisition device has sent to the gateway device within a first time period; and sending third indication information to the gateway device, the third indication information indicating that the bitrate of the first data acquisition device should be reduced.
[0022] In one possible implementation, after receiving the second indication information from the gateway device, the method further includes: receiving first video data from the gateway device, the first video data being sent from the first acquisition device to the gateway device; if the second rate is greater than or equal to a second threshold, and the priority of the first acquisition device satisfies a first condition, then sending a fourth indication information to the gateway device, the fourth indication information indicating a reduction in the bitrate of the first acquisition device; or, if the second rate is less than a third threshold, then sending a seventh indication information to the gateway device, the seventh indication information indicating an increase in the bitrate of the first acquisition device; wherein, the second rate is the rate at which the cloud platform receives the first video data.
[0023] In one possible implementation, the method further includes: if the priority of the first acquisition device does not meet the first condition, then sending an eighth indication message to the gateway device, the eighth indication message indicating to reduce the bit rate of the second acquisition device, the priority of the second acquisition device meeting the first condition.
[0024] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, the priority number of the acquisition device is obtained by arranging the priorities of at least one acquisition device in ascending order of priority, K is a positive integer, and the at least one acquisition device includes the first acquisition device.
[0025] Thirdly, embodiments of this application provide a method for controlling a data acquisition device, applied to a first data acquisition device. The method includes: sending a first message to a gateway device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first data acquisition device has sent to the gateway device within a first time period; receiving first indication information from the gateway device, the first indication information instructing the first data acquisition device to reduce the bitrate of the acquired video, the first indication information being sent by the gateway device after determining that the ratio of the first data volume to the total amount is less than or equal to a first threshold, the total amount being the amount of video data that at least one data acquisition device has sent to the gateway device within the first time period, the at least one data acquisition device including the first data acquisition device.
[0026] In one possible implementation, the first message further indicates the first video data currently being sent by the first acquisition device; the method further includes: receiving a fifth indication message from the gateway device, the fifth indication message being sent by the gateway device after receiving a fourth indication message from the cloud platform, the fourth indication message being sent by the cloud platform after determining that a second rate is greater than or equal to a second threshold and that the priority of the first acquisition device meets a first condition, the fourth indication message indicating a reduction in the bitrate of the first acquisition device, the second rate being the rate at which the cloud platform receives the first video data from the gateway device, and the fifth indication message indicating a reduction in the bitrate of the first acquisition device.
[0027] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, wherein the priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order, and K is a positive integer.
[0028] Fourthly, embodiments of this application provide an apparatus for controlling a data acquisition device, comprising: a receiving module, configured to receive a first message from a first acquisition device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first acquisition device has sent to the apparatus within a first time period; and a sending module, configured to send first indication information to the first acquisition device if the ratio of the first data volume to the total amount is less than or equal to a first threshold, the first indication information indicating that the first acquisition device reduces the bitrate of the acquired video, wherein the total amount is the amount of video data that at least one acquisition device has sent to the apparatus within the first time period, the at least one acquisition device including the first acquisition device.
[0029] In one possible implementation, the device for controlling the acquisition device further includes a processing module, wherein the first message further indicates a first rate at which the first acquisition device is currently transmitting video data; before sending the first indication information to the first acquisition device, the processing module is configured to determine that the first rate of the first acquisition device is less than or equal to a first preset rate; and / or, determine that the sequence number of the first rate of the first acquisition device is less than or equal to N, wherein the sequence number of the first rate is obtained by arranging the at least one rate in ascending order, wherein the at least one rate includes the rate at which the at least one acquisition device is currently transmitting video data to the device, and N is a positive integer.
[0030] In one possible implementation, before sending the first indication information to the first acquisition device, the sending module is further configured to send a second indication information to the cloud platform, the second indication information indicating that the ratio of the first data volume to the total volume is less than or equal to the first threshold; the receiving module is further configured to receive a third indication information from the cloud platform, the third indication information indicating to reduce the bit rate of the first acquisition device, the third indication information being sent by the cloud platform after determining that the priority of the first acquisition device meets the first condition.
[0031] In one possible implementation, before sending the first indication information to the first acquisition device, the processing module is further configured to determine that the priority of the first acquisition device meets a first condition.
[0032] In one possible implementation, the first message further indicates the first video data currently being sent by the first acquisition device; after sending the first indication information to the first acquisition device, the sending module is further configured to send the first video data to the cloud platform; the receiving module is further configured to receive a fourth indication information from the cloud platform, the fourth indication information indicating a reduction in the bitrate of the first acquisition device, the fourth indication information being sent by the cloud platform after determining that a second rate is greater than or equal to a second threshold, the second rate being the rate at which the cloud platform receives the first video data from the device; the sending module is further configured to send a fifth indication information to the first acquisition device, the fifth indication information indicating that the first acquisition device reduces the bitrate.
[0033] In one possible implementation, before sending the first video data to the cloud platform, the processing module is further configured to write the first video data into a sending queue; if the total amount of video data in the sending queue is greater than a third threshold, then the communication connection with the first access network device is disconnected, and a communication connection with the second access network device is established; and the video data in the sending queue is sent to the cloud platform through the second access network device.
[0034] In one possible implementation, the sending module is further configured to send a sixth indication message to the second acquisition device if the priority of the first acquisition device does not meet the first condition. The sixth indication message indicates that the second acquisition device reduces the bit rate. The second acquisition device belongs to the at least one acquisition device, and the priority of the second acquisition device meets the first condition.
[0035] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, wherein the priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order, and K is a positive integer.
[0036] Fifthly, embodiments of this application also provide an apparatus for controlling a data acquisition device, comprising: a receiving module for receiving second indication information from a gateway device, the second indication information indicating that the ratio of a first data quantity to a total quantity is less than or equal to a first threshold, the first data quantity being the amount of video data that a first data acquisition device has sent to the gateway device within a first time period; and a sending module for sending third indication information to the gateway device, the third indication information indicating a reduction in the bitrate of the first data acquisition device.
[0037] In one possible implementation, after receiving the second indication information from the gateway device, the receiving module is further configured to receive first video data from the gateway device, the first video data being sent by the first acquisition device to the gateway device; the sending module is further configured to send a fourth indication information to the gateway device if the second rate is greater than or equal to a second threshold and the priority of the first acquisition device satisfies a first condition, the fourth indication information indicating a reduction in the bitrate of the first acquisition device; or, if the second rate is less than a third threshold, send a seventh indication information to the gateway device, the seventh indication information indicating an increase in the bitrate of the first acquisition device; wherein, the second rate is the rate at which the device receives the first video data.
[0038] In one possible implementation, the sending module is further configured to send an eighth indication message to the gateway device if the priority of the first acquisition device does not meet the first condition, the eighth indication message indicating to reduce the bit rate of the second acquisition device, the priority of the second acquisition device meeting the first condition.
[0039] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, the priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order of priority, K is a positive integer, and the at least one acquisition device includes the first acquisition device.
[0040] Sixthly, embodiments of this application provide an apparatus for controlling a data acquisition device, comprising: a sending module, configured to send a first message to a gateway device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the device has sent to the gateway device within a first time period; and a receiving module, configured to receive first indication information from the gateway device, the first indication information instructing the device to reduce the bitrate of the acquired video, the first indication information being sent by the gateway device after determining that the ratio of the first data volume to the total amount is less than or equal to a first threshold, the total amount being the amount of video data that at least one data acquisition device has sent to the gateway device within the first time period, the at least one data acquisition device including the apparatus.
[0041] In one possible implementation, the first message further indicates the first video data currently being sent by the device; the receiving module is further configured to receive a fifth indication message from the gateway device, the fifth indication message being sent by the gateway device after receiving a fourth indication message from the cloud platform, the fourth indication message being sent by the cloud platform after determining that the second rate is greater than or equal to a second threshold and the priority of the device meets a first condition, the fourth indication message indicating a reduction in the bitrate of the device, the second rate being the rate at which the cloud platform receives the first video data from the gateway device, and the fifth indication message indicating a reduction in the bitrate of the device.
[0042] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, wherein the priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order, and K is a positive integer.
[0043] In a seventh aspect, embodiments of this application provide an electronic device, including: at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the methods described in the first, second, or third aspects above and any possible implementations by executing the instructions stored in the memory.
[0044] Eighthly, embodiments of this application provide a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the methods described in the first, second, or third aspects above, and any possible implementation thereof.
[0045] The beneficial effects of aspects two through eight can be found in the preceding discussion and will not be repeated here. Attached Figure Description
[0046] Figure 1 This is a schematic diagram illustrating an application scenario of a method for controlling a data acquisition device provided in an embodiment of this application.
[0047] Figure 2 This is a schematic diagram of the structure of a gateway device provided in an embodiment of this application;
[0048] Figure 3 A flowchart illustrating a method for controlling a data acquisition device provided in this application embodiment. Figure 1 ;
[0049] Figure 4 A flowchart illustrating a method for controlling a data acquisition device provided in this application embodiment. Figure 2 ;
[0050] Figure 5 A flowchart illustrating a method for controlling a data acquisition device provided in this application embodiment. Figure 3 ;
[0051] Figure 6 A schematic diagram of the structure of a device for controlling and acquiring equipment provided in an embodiment of this application. Figure 1 ;
[0052] Figure 7 A schematic diagram of the structure of a device for controlling and acquiring equipment provided in an embodiment of this application. Figure 2 ;
[0053] Figure 8 A schematic diagram of the structure of a device for controlling and acquiring equipment provided in an embodiment of this application. Figure 3 ;
[0054] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0055] To better understand the technical solutions provided in this application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0056] Please refer to Figure 1 This is a schematic diagram illustrating an application scenario of the method for controlling and acquiring data according to an embodiment of this application. Figure 1As shown, the scenario includes a first acquisition device 101, a second acquisition device 102, a gateway device 103, a first access network device 104, a second access network device 105, and a cloud platform 106. The first acquisition device 101 and the second acquisition device can communicate with the gateway device 103 respectively, and the gateway device 103 can communicate with the cloud platform 106 through the first access network device 104 or the second access network device 105.
[0057] The first acquisition device 101 and the second acquisition device 102 refer to devices with video acquisition capabilities, such as cameras, specifically network cameras (Internet Protocol cameras, IPCs). The gateway device 103 is, for example, a 5G mobile communication technology customer premises equipment (CPE). The first access network device 104 and the second access network device 105 are, for example, base stations or core networks; the base station can be a base station from various operators. The cloud platform 106 is, for example, a container cloud platform, specifically, an open-source container orchestration system (Kubernetes, Kube / k8s).
[0058] Please refer to Figure 2 This is a schematic diagram of the structure of a gateway device provided in an embodiment of this application. Figure 2 As shown, the gateway device 200 includes an access module 201 and a cellular communication module 202. The access module 201 can communicate with the first acquisition device and the second acquisition device, and the cellular communication module 202 can communicate with either the first access network device or the second access network device. The access module 201 is, for example, a wireless fidelity (WIFI) access point (AP) module in a 5G CPE, and the cellular communication module 202 is, for example, a cellular 5G module in a 5G CPE.
[0059] For example, access module 201 is used to receive video data sent from the first acquisition device and the second acquisition device, and forward the video data to cellular communication module 202. Cellular communication module 202 is used to send the video data to the cloud platform through the first access network device or the second access network device. Figure 2 The gateway device 200 involved is, for example, Figure 1 The gateway device 103 shown, the first acquisition device is, for example, Figure 1 The first acquisition device 101 shown, and the second acquisition device, for example, are... Figure 1 The first data acquisition device 102 shown, and the first access network device, for example, are... Figure 1The first access network device 104 shown, and the second access network device, for example, are... Figure 1 The second access network device 105 shown, the cloud platform is, for example, Figure 1 The cloud platform 106 shown.
[0060] In one possible implementation, the gateway device 200 further includes an embedded subscriber identity module 203 (ESIM). The ESIM 203 pre-stores at least one network access information. Each piece of network access information is used by the cellular communication module 202 to establish a communication connection with one of the at least one access network devices. The at least one access network device includes, for example, a first access network device and a second access network device. The network access information includes user information, specifically, for example, an International Mobile Subscriber Number (IMSN).
[0061] The first acquisition device involved in the various embodiments of this application is, for example, Figure 1 The first acquisition device 101 shown, and the second acquisition device involved in the various embodiments of this application, for example, are... Figure 1 The second acquisition device 102 shown, and the gateway device involved in the various embodiments of this application, for example, are... Figure 1 The gateway device 103 shown, and the first access network device involved in the various embodiments of this application, for example, are... Figure 1 The first access network device 104 shown, and the second access network device involved in various embodiments of this application, for example, are... Figure 1 The second access network device 105 shown, and the cloud platform involved in the various embodiments of this application, for example, are... Figure 1 The cloud platform 106 shown, and the gateway devices involved in the various embodiments of this application, have structures such as... Figure 2 The diagram illustrates the structure of the gateway device. Furthermore, in the various embodiments of this application, the data transmission and reception between the first acquisition device and the access network device (first access network device or second access device) can be implemented by a cellular communication module, such as... Figure 2 The cellular communication module 202 in the various embodiments of this application; the data transmission and reception between the first acquisition device and the acquisition device (such as the first acquisition device or the second acquisition device) can be implemented by the cellular communication module and the access module, such as the cellular communication module 202. Figure 2 Access module 201 in the middle.
[0062] Please refer to Figure 3 The following is a flowchart illustrating a method for controlling a data acquisition device according to an embodiment of this application. Figure 1 .
[0063] S301, the first data acquisition device sends a second message to the gateway device. Correspondingly, the gateway device receives the second message from the first data acquisition device.
[0064] The second message indicates the second data volume, which refers to the amount of video data that the first acquisition device has sent to the gateway device within the first time period. The duration of the first time period can be pre-configured in the first acquisition device.
[0065] The second message also instructs the first acquisition device to send at least one of the following: a third rate for currently transmitting video data, a second rate for currently transmitting video data, and a third data volume. The third data volume refers to the amount of video data that the first acquisition device expects to send to the gateway device within the first time period.
[0066] Optionally, if the second message also indicates second video data, the video data sent by the first acquisition device to the gateway device within the first time period may include the second video data; in other words, the second data volume includes the amount of second video data. Alternatively, the video data sent by the first acquisition device to the gateway device within the first time period may not include the second video data; in other words, the second data volume does not include the amount of second video data.
[0067] It should be noted that the first acquisition device may not send the first message to the gateway device within the first time period. In this case, S301 does not need to be executed, that is, S301 is an optional step.
[0068] S302, the second acquisition device sends a third message to the gateway device. Correspondingly, the gateway device receives the third message from the second acquisition device.
[0069] The third message indicates the fourth data volume, which refers to the amount of video data that the second acquisition device has sent to the gateway device within the first time period.
[0070] The third message also instructs the second acquisition device to transmit video data at at least one of the following: a fourth rate, a third video data rate, and a fifth data volume. The fifth data volume refers to the amount of video data that the second acquisition device expects to transmit to the gateway device within the first time period.
[0071] Optionally, if the third message also indicates third video data, the video data sent by the second acquisition device to the gateway device within the first time period may include the third video data; in other words, the fourth data volume includes the amount of third video data. Alternatively, the video data sent by the second acquisition device to the gateway device within the first time period may not include the third video data; in other words, the fourth data volume does not include the amount of third video data.
[0072] It should be noted that the second acquisition device may not send a third message to the gateway device during the first time period. In this case, S302 does not need to be executed, that is, S302 is an optional step.
[0073] S303, the gateway device writes the second and third video data into the transmission queue.
[0074] The sending queue can be used to store video data received by the gateway device from at least one acquisition device, and which the gateway device also forwards to the cloud platform.
[0075] If the second message includes the second video data, the gateway device can parse the second message to obtain the second video data. Similarly, if the third message includes the third video data, the gateway device can parse the third message to obtain the third video data.
[0076] Optionally, the gateway device can write the second and third video data into the transmission queue in any order. For example, the gateway device can write the second video data into the transmission queue first, and then write the third video data into the transmission queue. Alternatively, the gateway device can write the second and third video data into the transmission queue sequentially, according to the order in which they are received. For example, if the gateway device receives the second video data first and then receives the third video data, then the gateway device can write the second video data into the transmission queue first, and then write the third video data into the transmission queue.
[0077] It should be noted that the gateway device may not have a transmission queue, or it may directly forward the second and third video data. In this case, S303 does not need to be executed, that is, S303 is an optional step.
[0078] S304, the gateway device sends the second video data and the third video data, which have been written into the transmission queue, to the first access network device. Correspondingly, the first access network device receives the second video data and the third video data from the gateway device.
[0079] For example, the gateway device can send the second video data and the third video data to the first access network device in the order in which the video data is written into the transmission queue. For instance, if the gateway device writes the second video data into the transmission queue first and then writes the third video data into the transmission queue, then the gateway device can send the second video data to the first access network device first, and then send the third video data.
[0080] It should be noted that if the first acquisition device does not send the second message to the gateway device and the second acquisition device does not send the third message to the gateway device, in other words, if S301 and S302 are not executed, S304 does not need to be executed, that is, S304 is an optional step.
[0081] S305, the first access network device sends second and third video data to the cloud platform. Correspondingly, the cloud platform receives the second and third video data from the first access network device.
[0082] The order in which the first access network device sends the second and third video data to the cloud platform can be arbitrary, and this embodiment does not limit this. Optionally, the cloud platform may store the second and third video data.
[0083] It should be noted that if S304 is not executed, S305 can also be omitted, meaning that S305 is an optional step.
[0084] S306, the first data acquisition device sends a first message to the gateway device. Correspondingly, the gateway device receives the first message from the first data acquisition device.
[0085] The first message indicates the first data volume, which in turn indicates the amount of video data that the first acquisition device has sent to the gateway device within the first time period.
[0086] Optionally, the first message may also instruct the first acquisition device to send the first rate of the current video data, the first video data currently being sent by the first acquisition device, and at least one of the third data quantity. The meaning of the third data quantity can be found above.
[0087] If the first acquisition device sends a second message to the gateway device, and the second message indicates the third data quantity, then the first message does not need to indicate the third data quantity.
[0088] Optionally, if the first message also indicates first video data, the video data sent by the first acquisition device to the gateway device within the first time period may include the first video data; in other words, the first data volume includes the amount of first video data. Alternatively, the video data sent by the first acquisition device to the gateway device within the first time period may not include the first video data; in other words, the first data volume does not include the amount of first video data.
[0089] S307, the gateway device determines that the ratio of the first data volume to the total volume is less than or equal to the first threshold.
[0090] The total amount refers to the amount of video data that at least one acquisition device has sent to the gateway device within a first time period. In other words, the total amount refers to the amount of video data that the gateway device has received from at least one acquisition device within a first time period. This embodiment of the application uses an example of at least one acquisition device including a first acquisition device and a second acquisition device.
[0091] Under this assumption, the gateway device can determine the total number of messages received before receiving the first message.
[0092] For example, if the first data volume includes the amount of the first video data, and the fourth data volume includes the amount of the third video data, the total amount can be the sum of the first data volume and the fourth data volume.
[0093] Alternatively, if the first data volume does not include the first video data volume, and the fourth data volume does not include the third video data volume, the total amount can be the sum of the first data volume, the first video data volume, the fourth data volume, and the third video data volume.
[0094] The first threshold is, for example, the ratio of the duration of the second time period to the duration of the first time period. The second time period can be understood as the duration used by the first acquisition device to send a first amount of video data to the cloud platform within the first time period. In other words, the start time of the second time period is the start time of the first time period, and the end time of the second time period is the time when the gateway device receives the first message. Alternatively, if the first message indicates a first rate and the second message indicates a third rate, then the average value of the first rate and the third rate is determined, and the first threshold can be the ratio of the first data volume to the average value, and the ratio to the duration of the first time period.
[0095] Thus, if the gateway device determines that the ratio of the first data volume to the total volume is less than or equal to a first threshold within the first time period, it can determine that the duration for which the first acquisition device sends the first data volume is longer than that of at least one acquisition device, and therefore the duration for which the first acquisition device sends video data needs to be shortened. Alternatively, if the gateway device determines that the ratio of the first data volume to the total volume is greater than the first threshold within the first time period, it can determine that the duration for which the first acquisition device sends the first data volume is shorter than that of at least one acquisition device, and therefore no adjustment to the duration for which the first acquisition device sends video data is needed. The gateway device shortens the duration for which the first acquisition device sends video data by reducing the bitrate of the video data from the first acquisition device.
[0096] If the gateway device determines that the ratio of the first data volume to the total volume is less than or equal to the first threshold, it executes step S308, which determines whether the priority of the first acquisition device meets the first condition. If the gateway device determines that the ratio of the first data volume to the total volume is greater than the first threshold, it does not perform any processing. In this case, the first acquisition device maintains its previous bitrate.
[0097] For example, if the gateway device determines that S(A) / S(total) ≤ T(A) / T(total), then execute S308. If the gateway device determines that S(A) / S(total) > T(A) / T(total), then no action is taken.
[0098] Where T(A) represents the duration of the second time period, T(total) represents the duration of the first time period, S(A) represents the first data volume, and S(total) represents the total amount.
[0099] It should be noted that if the gateway device determines that the ratio of the first data volume to the total volume is less than or equal to the first threshold, S308 does not need to be executed, that is, S308 is an optional step.
[0100] The first condition includes that the priority of the acquisition device is lower than the preset priority, and / or that the priority number of the acquisition device is less than or equal to K, where K is a positive integer. The priority number of the acquisition device is obtained by arranging the priorities of at least one acquisition device in ascending order.
[0101] The priority of at least one data acquisition device can be pre-stored in the gateway device, determined by the gateway device, or determined by the cloud platform. The gateway device and the cloud platform can determine the priority of at least one data acquisition device in the same way. The following example illustrates how the gateway device determines the priority of at least one data acquisition device.
[0102] The priority of at least one acquisition device can be determined based on at least one of the following: video data acquired by at least one acquisition device, the installation location of each acquisition device, or device information of at least one acquisition device. The cloud platform and gateway device can determine the priority of at least one acquisition device in the same way; the following explanation uses the gateway device determining the priority of the first acquisition device as an example.
[0103] The following explains how the gateway device determines the priority of the first data acquisition device.
[0104] In the first method, the gateway device determines the priority of the first acquisition device based on the second video data acquired by the first acquisition device.
[0105] The gateway device can decode the second video data, obtain the second video, and identify the first keyword in the second video. The gateway device can pre-store a first correspondence relationship, wherein the first correspondence relationship includes the priority corresponding to each keyword among multiple keyword categories. The gateway device can determine the priority corresponding to the first keyword in the first correspondence relationship and use the determined priority as the priority of the first acquisition device.
[0106] For example, one type of correspondence can be seen in Table 1 below.
[0107] Table 1
[0108] subway First priority classroom Second priority
[0109] Among them, the first priority is higher than the second priority. As shown in Table 1, the gateway device can pre-store the first correspondence, which indicates that the subway corresponds to the first priority and the classroom corresponds to the second priority.
[0110] The gateway device can also decode the third video data to obtain the third video and identify the second keyword in the third video. Based on the first correspondence, the gateway device determines the priority corresponding to the first keyword and the priority corresponding to the second keyword. For example, if the first keyword is "classroom" and the second keyword is "subway", the gateway can determine the second priority corresponding to "classroom" based on Table 1 above, and therefore determine the priority of the first acquisition device as the second priority.
[0111] In the second method, the gateway device is determined based on the installation location of the first data acquisition device.
[0112] The installation location of the first data acquisition device can be pre-stored in the gateway device or obtained by the gateway device sending a request message to the first data acquisition device. The gateway device pre-stores a second correspondence, which includes the priority corresponding to each type of installation location among multiple types. After obtaining the installation location of the first data acquisition device, the gateway device can determine the priority corresponding to the installation location of the first data acquisition device in the second correspondence and use the determined priority as the priority of the first data acquisition device.
[0113] For example, a second correspondence can be seen in Table 2 below.
[0114] Table 2
[0115] School gate First priority Shopping mall entrance Second priority
[0116] As shown in Table 2, the gateway device can pre-store a second correspondence, which indicates that the school gate corresponds to the first priority and the shopping mall gate corresponds to the second priority.
[0117] For example, if the gateway device determines that the first data acquisition device is installed at the entrance of a shopping mall, then based on the second correspondence shown in Table 2, the priority of the first data acquisition device can be determined as the second priority. If the second data acquisition device is installed at the entrance of a school, then based on the second correspondence shown in Table 2, the priority of the second data acquisition device can be determined as the first priority. Therefore, the priority of the first data acquisition device is lower than the priority of the second data acquisition device.
[0118] The third method involves the gateway device determining the information based on the device information of the first data acquisition device.
[0119] The device information includes the model of the first acquisition device and / or the resolution of the video captured by the first acquisition device. This device information can be pre-stored in the gateway device or obtained by the gateway device sending a request to the first acquisition device. The gateway device pre-stores a third correspondence relationship, which includes the priority of each type of device information. The gateway device can determine the priority corresponding to the device information of the first acquisition device from the third correspondence relationship and use the determined priority as the priority of the first acquisition device.
[0120] For example, taking the resolution of the data acquisition device as an example, a third correspondence can be referred to as Table 3 below.
[0121] Table 3
[0122]
[0123]
[0124] As shown in Table 3, the gateway device can pre-store a third correspondence, which indicates that a resolution of 5 megapixels corresponds to the first priority and a resolution of 3 megapixels corresponds to the second priority.
[0125] For example, if the gateway device determines that the resolution of the first acquisition device is 3 megapixels, then based on the third correspondence shown in Table 3, the priority of the first acquisition device can be determined as the second priority. If the resolution of the second acquisition device is 5 megapixels, then based on the third correspondence shown in Table 3, the priority of the second acquisition device can be determined as the first priority. Therefore, the priority of the first acquisition device is lower than the priority of the second acquisition device.
[0126] In the fourth approach, the gateway device can also determine the priority of the first acquisition device based on at least two of the first three approaches (the first approach, the second approach, and the third approach).
[0127] If the gateway device determines that the priority of the first acquisition device is the same based on at least two methods, then the priority determined by any one method shall be determined as the priority of the first acquisition device. If the gateway device determines that the priority of the first acquisition device is different based on at least two methods, then the higher priority determined shall be taken as the priority of the first acquisition device.
[0128] For example, the gateway device determines the priority of the first data acquisition device based on the first method and the third method. If the gateway device determines the priority of the first data acquisition device as the second priority based on the first method and as the first priority based on the third method, and the first priority is higher than the second priority, then the first priority is determined as the priority of the first data acquisition device.
[0129] After executing S308, if the gateway device determines that the priority of the first acquisition device meets the first condition, then it executes S309, that is, the gateway device sends first indication information to the first acquisition device. Correspondingly, the first acquisition device receives the first indication information from the gateway device. If the gateway device determines that the priority of the first acquisition device does not meet the first condition, then it executes S310, that is, the gateway device determines that the second acquisition device meets the first condition.
[0130] The first instruction information instructs the first acquisition device to reduce the bit rate. The specific details of how the gateway device determines that the second acquisition device meets the first condition can be found in the preceding discussion of how the gateway device determines that the first acquisition device meets the first condition; these details will not be repeated here.
[0131] Optionally, the first indication information may only instruct the first acquisition device to reduce the bit rate, or the first indication information may instruct the first acquisition device to reduce the bit rate to a first bit rate, or the first indication information may instruct the first acquisition device to reduce the bit rate by a certain reduction value.
[0132] It should be noted that if the gateway device determines that the first acquisition device meets the first condition, that is, if S309 is executed, S310 does not need to be executed, that is, S310 is an optional step.
[0133] After receiving the first instruction information, the first acquisition device can reduce the bitrate by lowering the resolution of the acquired video or by reducing the frame rate of the video data when converting the captured video into video data.
[0134] In one possible implementation, before executing S309, the gateway device may further determine that the amount of video data to be sent by the first acquisition device in the first time period is greater than the first data amount, and that the amount of video data to be sent by the second acquisition device in the first time period is greater than the fourth data amount.
[0135] For simplicity, the amount of video data to be transmitted by the first acquisition device within the first time period can be referred to as the sixth data volume, and the amount of video data to be transmitted by the second acquisition device within the first time period can be referred to as the seventh data volume. If the first message indicates the first and third data volumes, the difference between the third and first data volumes can be used as the sixth data volume. Similarly, if the third message indicates the fourth and fifth data volumes, the difference between the fifth and fourth data volumes can be used as the seventh data volume.
[0136] If the sixth data volume is greater than the first data volume and the seventh data volume is greater than the fourth data volume, it is determined that the remaining data volume to be transmitted by the first and second acquisition devices in the first time period is too large, and / or the rate of transmitting video data is low. Thus, it is determined that at least one acquisition device needs to reduce the bit rate of the acquired video. The bit rate of the acquired video can also be called the sampling rate of the video, in order to reduce the amount of video data to be transmitted.
[0137] In one possible implementation, the gateway device can determine which acquisition device needs to have its bitrate reduced based on the rate at which at least one acquisition device transmits video data. In this embodiment, the example of the acquisition device requiring bitrate reduction being the first acquisition device will be described.
[0138] For example, if the first message also indicates a first rate, then when the gateway device determines that the first rate is less than or equal to a first preset rate, it determines that the first acquisition device is an acquisition device whose bit rate needs to be reduced. The first preset rate may be pre-configured in the gateway device.
[0139] Alternatively, the gateway device determines that the sequence number of the first rate of the first acquisition device is less than or equal to N, where N can be a positive integer pre-configured in the gateway device. The sequence number of the first rate is obtained by arranging at least one rate in ascending order, wherein at least one rate includes the rate at which at least one acquisition device is currently sending video data to the gateway device.
[0140] For example, if at least one acquisition device includes a first acquisition device and a second acquisition device, then at least one rate is a first rate and a fourth rate. The first rate and the fourth rate are arranged and labeled with serial numbers. If the serial number of the first rate is less than or equal to N, then the first acquisition device is determined to be the acquisition device that needs to reduce the bit rate.
[0141] Alternatively, the gateway device can determine that if the first rate is less than the first preset rate and the sequence number of the first rate is less than or equal to N, then the first acquisition device can be determined as the acquisition device that needs to reduce the bit rate.
[0142] S311, the gateway device sends the sixth indication information to the second acquisition device. Correspondingly, the second acquisition device receives the sixth indication information from the gateway device.
[0143] The sixth instruction message instructs the second acquisition device to reduce the bit rate.
[0144] It should be noted that S311 is executed after the gateway device determines that the second acquisition device meets the first condition, i.e., after executing S310. Furthermore, if S310 is not executed, S311 does not need to be executed; that is, S311 is an optional step.
[0145] S312, the gateway device writes the first video data into the sending queue.
[0146] If the first message also indicates the first video data, the gateway device, after receiving the first video data, will write the first video data into the transmission queue.
[0147] S313, the gateway device determines whether the total amount of video data in the sending queue is greater than the third threshold.
[0148] If the gateway device determines that the total amount of video data in the transmission queue is less than or equal to the third threshold, it executes S314, that is, the gateway device sends the first video data to the first access network device, and correspondingly, the first access network device receives the first video data from the gateway device. If the gateway device determines that the total amount of video data in the transmission queue is greater than the third threshold, it executes S315, that is, the gateway device disconnects the communication connection with the first access network device and establishes a communication connection with the second access network device.
[0149] Thus, if the gateway device determines that the total amount of video data in the sending queue is greater than the third threshold, it determines that there is too much video data piling up in the sending queue, and determines that it is caused by the low current transmission rate of the first access network device. In this case, it can choose to replace the access network device to send video data.
[0150] The third threshold is, for example, 90% of the storage capacity of the transmission queue. The gateway device can select the network access information corresponding to the second access network device and establish a communication connection with it. The network access information is, for example, stored in the gateway device's ESIM, and the ESIM is, for example, an ESIM... Figure 2 ESIM203 in the middle.
[0151] For example, the gateway device sends a request message to the second access network device, indicating a request to establish a communication connection with the second access network device and indicating the user information in the network access information. After receiving the request message, the second access network device verifies the user information. If the verification is successful, it sends a response message to the gateway device, indicating that the communication connection has been successfully established.
[0152] The second access network device meets the third condition, which may be that the rate at which the second access network device sends video data to the cloud platform is greater than the second preset rate; or, the sequence number of the rate at which the second access network device sends video data to the cloud platform is greater than or equal to M, where M is a positive integer pre-configured in the gateway device. The second preset rate may be pre-configured in the gateway device, and the sequence number of the rate at which the video data is sent to the cloud platform may be obtained by sorting the rates at which multiple access network devices send video data, including the first access network device and the second access network device.
[0153] The rate at which multiple access network devices send video data to the cloud platform can be obtained by establishing a communication connection between the gateway device and each of the multiple access network devices, and then sending video data to the cloud platform through each access network device within a third time period. The duration of the third time period can be pre-configured in the gateway device.
[0154] For example, if the gateway device can directly determine that the rate at which the second access network device sends video data is greater than the second preset rate, then it can establish a communication connection with the second access network device.
[0155] Alternatively, if the gateway device determines that the rate at which the second access network device sends video data is less than or equal to a second preset rate, then it determines that the sequence number of the rate at which the second access network device sends video data is greater than or equal to M, and establishes a connection with the second access network device. In this case, the gateway device can sequentially establish communication connections with each of the multiple access network devices, and if it determines that after sending video data to the cloud platform through each access network device within a third time period, the total amount of video data in the sending queue is still greater than a third threshold, then it obtains the rate at which each access network device sends video data, sorts it from low to high, and determines that the sequence number of the rate at which the second access network device sends video data is greater than or equal to M.
[0156] Optionally, if the gateway device determines that the sequence number of the rate at which the second access network device sends video data is greater than or equal to M, the gateway device may also adjust the order in which the video data already written into the transmission queue is sent to the access network device according to a preset strategy. The preset strategy refers to sending the video data corresponding to each of the at least one acquisition device in ascending order of priority. For example, if the priority of the first acquisition device is lower than that of the second acquisition device, then the second video data is sent first, followed by the third video data. The method for determining the priority of each of the at least one acquisition device can be referred to the content discussed above, and will not be repeated here.
[0157] Optionally, if after the fourth time period following the establishment of a communication connection between the gateway device and the second access network device, it is determined that the video data in the transmission queue is still greater than the third threshold, then an access network device that meets the third condition can be selected again from among the multiple access network devices, and a communication connection can be established.
[0158] After executing S314, S316 is executed, whereby the first access network device sends the first video data to the cloud platform, and the cloud platform receives the first video data from the first access network device.
[0159] The cloud platform receives and stores the first video data from the first access network device.
[0160] After executing S315, S317 is executed, whereby the gateway device sends the first video data to the second access network device, and the second access network device receives the first video data from the gateway device.
[0161] S318, the second access network device sends the first video data to the cloud platform, and correspondingly, the cloud platform receives the first video data from the second access network device.
[0162] The cloud platform receives and stores the first video data.
[0163] It should be noted that if the first video data is not indicated in the first message, and the gateway device does not receive the first video data, then S312-S318 does not need to be executed; that is, S312-S318 are optional steps.
[0164] In this embodiment, the gateway device can directly determine the current video data transmission rate and determine whether there is a low-rate acquisition device (the first acquisition device) occupying network resources for a long time, causing other high-rate devices to be unable to send video data normally, based on the messages sent by the first acquisition device and the second acquisition device. Therefore, by reducing the bitrate of the video acquired by the first acquisition device, the amount of video data sent by the first acquisition device is reduced, thereby reducing the time the first acquisition device occupies network resources, which helps to reduce the congestion of the network where the gateway device is located.
[0165] In one possible implementation, Figure 3 In the illustrated embodiment, S308 is described using the example of the gateway device determining whether to reduce the bit rate of the first acquisition device.
[0166] In another possible embodiment, the cloud platform may also determine whether to reduce the bit rate of the first acquisition device.
[0167] Please refer to Figure 4 This is a flowchart illustrating a method for controlling a data acquisition device provided in an embodiment of this application. Figure 2 Taking the communication between the gateway device and the cloud platform through the first access network device as an example, this paper explains the specific method by which the interaction between the gateway device and the cloud platform determines whether to reduce the bit rate of the first acquisition device.
[0168] S401, the first data acquisition device sends a second message to the gateway device. Correspondingly, the gateway device receives the second message from the first data acquisition device.
[0169] The specific content of the second message can be found in the preceding text.
[0170] It should be noted that the first acquisition device may not send the first message to the gateway device within the first time period. In this case, S401 does not need to be executed, that is, S401 is an optional step.
[0171] S402, the second data acquisition device sends a third message to the gateway device. Correspondingly, the gateway device receives the third message from the second data acquisition device.
[0172] The specific content of the third message can be found in the preceding text.
[0173] It should be noted that the second acquisition device may not send a third message to the gateway device during the first time period. In this case, S402 does not need to be executed, that is, S402 is an optional step.
[0174] S403, the gateway device writes the second and third video data into the transmission queue.
[0175] The specific details of how the gateway device writes the second and third video data into the transmission queue can be found in the preceding text.
[0176] It should be noted that the gateway device may not have a transmission queue, or it may directly forward the second and third video data. In this case, S403 does not need to be executed, that is, S403 is an optional step.
[0177] In step S404, the gateway device sends the second and third video data, which have been written into the transmission queue, to the first access network device. Correspondingly, the first access network device receives the second and third video data from the gateway device.
[0178] The specific content of the second and third video data, which have been written into the transmission queue, sent by the gateway device to the first access network device can be found in the preceding discussion.
[0179] It should be noted that if the first acquisition device does not send the second message to the gateway device and the second acquisition device does not send the third message to the gateway device, in other words, if S401 and S402 are not executed, S404 does not need to be executed, that is, S404 is an optional step.
[0180] S405, the first access network device sends second and third video data to the cloud platform. Correspondingly, the cloud platform receives the second and third video data from the first access network device.
[0181] It should be noted that if S404 is not executed, S405 does not need to be executed; that is, S405 is an optional step.
[0182] S406, the first data acquisition device sends a first message to the gateway device. Correspondingly, the gateway device receives the first message from the first data acquisition device.
[0183] The specific content of the first message can be found in the preceding discussion.
[0184] S407, the gateway device determines that the ratio of the first data volume to the total volume is less than or equal to the first threshold.
[0185] If the gateway device determines that the ratio of the first data volume to the total volume is less than or equal to the first threshold, it executes step S408, which involves the gateway device sending second indication information to the first access network device. Correspondingly, the first access network device receives the second indication information from the gateway device. The second indication information indicates that the ratio of the first data volume to the total volume is less than or equal to the first threshold. If the gateway device determines that the ratio of the first data volume to the total volume is greater than the first threshold, it does not perform any processing.
[0186] For details regarding the first data volume, total amount, and the gateway device's determination that the ratio of the first data volume to the total amount is less than or equal to the first threshold, please refer to the content discussed above.
[0187] S409, the first access network device sends a second instruction message to the cloud platform. Correspondingly, the cloud platform receives the second instruction message from the first access network device.
[0188] S410, the cloud platform determines whether the priority of the first acquisition device meets the first condition.
[0189] If the cloud platform determines that the priority of the first acquisition device meets the first condition, then it executes S411, that is, the cloud platform sends a third indication message to the first access network device. Correspondingly, the first access network device receives the third indication message from the cloud platform. If the cloud platform determines that the priority of the first acquisition device does not meet the first condition, then it executes S412, that is, the cloud platform determines that the priority of the second acquisition device meets the first condition.
[0190] The specific details of how the cloud platform determines whether the priority of the first acquisition device or the priority of the second acquisition device meets the first condition can be found in the previous discussion on whether the priority of the first acquisition device meets the first condition, and will not be repeated here.
[0191] After executing S411, S413 is executed, whereby the first access network device sends third indication information to the gateway device. Correspondingly, the gateway device receives the third indication information from the first access network device.
[0192] S414, the gateway device sends a first indication message to the first acquisition device. Correspondingly, the first acquisition device receives the first indication message from the gateway device.
[0193] The first acquisition device reduces the bit rate according to the first instruction information. The specific details of the bit rate reduction by the first acquisition device can be found in the preceding discussion.
[0194] After executing S412, S415 is executed, and the cloud platform sends the eighth instruction information to the first access network device. Correspondingly, the first access network device receives the eighth instruction information from the cloud platform.
[0195] The eighth instruction indicates that the bit rate of the second acquisition device should be reduced.
[0196] S416, the first access network device sends the eighth indication information to the gateway device. Correspondingly, the gateway device receives the eighth indication information from the first access network device.
[0197] S417, the gateway device sends the sixth indication information to the second acquisition device. Correspondingly, the second acquisition device receives the sixth indication information from the gateway device.
[0198] The second acquisition device reduces the bitrate of the acquired video according to the sixth instruction information. The specific details of the second acquisition device reducing the bitrate can be found in the previous discussion of the first acquisition device reducing the bitrate.
[0199] It should be noted that when S411 is executed, S412 and S415-S417 are all optional steps.
[0200] S418, the gateway device writes the first video data into the sending queue.
[0201] If the first message also indicates the first video data, the gateway device, after receiving the first video data, will write the first video data into the transmission queue.
[0202] S419, the gateway device determines whether the total amount of video data in the sending queue is greater than the third threshold.
[0203] If the gateway device determines that the total amount of video data in the transmission queue is less than or equal to the third threshold, it executes S420, that is, the gateway device sends the first video data to the first access network device, and correspondingly, the first access network device receives the first video data from the gateway device. If the gateway device determines that the total amount of video data in the transmission queue is greater than the third threshold, it executes S421, that is, the gateway device disconnects the communication connection with the first access network device and establishes a communication connection with the second access network device.
[0204] The specific details of how the gateway device determines whether the total amount of video data in the sending queue exceeds the third threshold can be found in the previous discussion and will not be repeated here.
[0205] After executing S420, S422 is executed, in which the first access network device sends the first video data to the cloud platform, and the cloud platform receives the first video data from the first access network device.
[0206] The cloud platform receives and stores the first video data from the first access network device.
[0207] After executing S421, S423 is executed, whereby the gateway device sends the first video data to the second access network device, and the second access network device receives the first video data from the gateway device.
[0208] S424, the second access network device sends the first video data to the cloud platform, and correspondingly, the cloud platform receives the first video data from the second access network device.
[0209] The cloud platform receives and stores the first video data.
[0210] It should be noted that if the first video data is not indicated in the first message, and the gateway device does not receive the first video data, then S418-S424 does not need to be executed; that is, S418-S424 are optional steps.
[0211] exist Figure 3 or Figure 4 Following the illustrated embodiment, the cloud platform can also determine whether to reduce the bitrate of the first acquisition device based on the rate at which the first video data is received. This will be discussed below in conjunction with... Figure 5 A flowchart illustrating a method for controlling a data acquisition device is shown. Figure 3 Taking the communication between the gateway device and the cloud platform through the second access network device as an example, this paper explains the specific method by which the cloud platform determines whether to reduce the bit rate of the first acquisition device based on the rate at which it receives the first video data.
[0212] In this embodiment, the cloud platform can also determine whether the first acquisition device meets the first condition. When the gateway device has a lot of business, the cloud platform can assist the gateway device in determining whether the first acquisition device meets the first condition, which is highly flexible.
[0213] S501, the cloud platform determines whether the second rate is greater than or equal to the second threshold.
[0214] The second rate can be obtained by the cloud platform based on the amount of video data received per unit time, and the second threshold can be pre-configured in the cloud platform or determined based on actual needs.
[0215] For example, the cloud platform can set a second threshold based on the maximum receivable amount, such as 95% of the maximum receivable amount of the cloud platform. The maximum receivable amount refers to the maximum amount of data that the cloud platform can receive per unit time under the current access network device.
[0216] If the cloud platform determines that the second rate is less than the second threshold, then S502 is executed, that is, the cloud platform sends a seventh indication message to the gateway device through the first access network device. Correspondingly, the gateway device receives the seventh indication message from the cloud platform through the first access network device. The seventh indication message indicates that the bitrate of the first acquisition device should be increased. If the cloud platform determines that the rate at which the first video is received from the first access network device, i.e., the second rate, is greater than or equal to the second threshold, then S503 is executed, that is, the cloud platform determines whether the priority of the first acquisition device meets the first condition.
[0217] After executing S502, S504 is executed, in which the gateway device sends the ninth indication information to the first acquisition device. Correspondingly, the first acquisition device receives the ninth indication information from the gateway device.
[0218] The ninth instruction message instructs the first acquisition device to increase the bit rate.
[0219] If the cloud platform determines that the first acquisition device meets the first condition, it executes step S505, whereby the cloud platform sends a fourth indication message to the gateway device through the first access network device. Correspondingly, the gateway device receives the fourth indication message from the cloud platform through the first access network device. The fourth indication message instructs the bitrate of the first acquisition device to be reduced to the first bitrate. If the cloud platform determines that the first acquisition device does not meet the first condition, it executes step S506, meaning the cloud platform determines that the second acquisition device meets the first condition.
[0220] The specific details of how the cloud platform determines whether the first or second data acquisition device meets the first condition can be found in the previous discussion on whether the gateway device determines whether the first data acquisition device meets the first condition, and will not be repeated here.
[0221] Optionally, if the cloud platform determines that the second rate is less than the second threshold, the cloud platform can... Figure 3 or Figure 4 The first acquisition device can increase its bit rate on the basis of having reduced its bit rate, that is, after executing S309 or after executing S414. Alternatively, the first acquisition device can increase its bit rate on the basis of not having reduced its bit rate, that is, before executing S309 or before executing S414.
[0222] When instructing the acquisition device to reduce or increase its bit rate, the cloud platform can either directly instruct the acquisition device to reduce or increase the bit rate by a specific value, or simply instruct the acquisition device to reduce or increase its bit rate.
[0223] When the cloud platform instructs the acquisition device to reduce or increase the bitrate, the cloud platform can determine this value based on the difference between a fourth threshold and a fifth threshold. For example, the fourth threshold could be 75% of the cloud platform's maximum receivable capacity, and the fifth threshold could be 50% of the cloud platform's maximum receivable capacity. Alternatively, the cloud platform can directly determine the difference between the fifth and fourth thresholds as the bitrate value to be reduced or increased.
[0224] Optionally, if the first acquisition device has a minimum or maximum bitrate, and the cloud platform determines that after reducing the bitrate of the first acquisition device based on the difference between the fourth and fifth thresholds, the bitrate of the first acquisition device will be less than the minimum bitrate; or, if the cloud platform determines that after increasing the bitrate of the first acquisition device based on the difference between the fourth and fifth thresholds, the bitrate of the first acquisition device will be greater than the maximum bitrate, then the cloud platform may also choose to reduce or increase the bitrate of the second acquisition device after reducing or increasing the bitrate of the first acquisition device.
[0225] After executing S505, S507 is executed, whereby the gateway device sends the fifth instruction information to the first acquisition device, and the first acquisition device receives the fifth instruction information from the gateway device.
[0226] The fifth instruction message instructs the first acquisition device to reduce the bit rate.
[0227] The specific details of reducing the bit rate in the first acquisition device can be found in the previous discussion and will not be repeated here.
[0228] After executing S506, S508 is executed, in which the cloud platform sends the tenth instruction information to the gateway device. Correspondingly, the gateway device receives the tenth instruction information from the cloud platform through the first access network device.
[0229] The tenth instruction indicates that the second acquisition device should reduce the bit rate.
[0230] S509, the gateway device sends the eleventh indication information to the second acquisition device, and correspondingly, the second acquisition device receives the eleventh indication information from the gateway device.
[0231] The eleventh instruction tells the second acquisition device to reduce the bit rate. The specific details of the second acquisition device reducing the bit rate are similar to those discussed earlier regarding the first acquisition device reducing the bit rate, and will not be repeated here.
[0232] In this embodiment, the cloud platform can determine whether the current rate will exceed the maximum receivable capacity of the cloud platform based on the rate at which the first video data is received, thereby reducing the bit rate of the first acquisition device that meets the first condition, so as to reduce the amount of video data acquired by the first acquisition device and reduce the current receiving load of the cloud platform.
[0233] It should be noted that, in the embodiments of this application, when the cloud platform or gateway device instructs the first acquisition device or the second acquisition device to reduce the bit rate, the instruction information may indicate the reduced bit rate value or the reduced bit rate range, which can be determined according to actual needs. This embodiment of the application does not limit this.
[0234] Based on the same inventive concept, embodiments of this application provide a device for controlling a data acquisition device, which is used to implement any of the above-described methods for controlling a data acquisition device, for example, for... Figure 3 , Figure 4 or Figure 5 The method for controlling the acquisition device is shown, and the device can also perform the functions of the gateway device mentioned above.
[0235] Please refer to Figure 6 This is a schematic diagram of a device for controlling and acquiring data provided in an embodiment of this application. Figure 6 As shown, the device 600 for controlling and acquiring the equipment includes a transmitting module 601 and a receiving module 602.
[0236] For example, the receiving module 602 is configured to receive a first message from the first acquisition device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first acquisition device has sent to the device 600 controlling the acquisition device within a first time period; the sending module 601 is configured to send a first indication information to the first acquisition device if the ratio of the first data volume to the total amount is less than or equal to a first threshold, the first indication information indicating that the first acquisition device reduces the bitrate of the acquired video, the total amount being the amount of video data that at least one acquisition device has sent to the device 600 controlling the acquisition device within a first time period, the at least one acquisition device including the first acquisition device.
[0237] In one possible implementation, the device 600 for controlling the acquisition device further includes a processing module 603. The first message further indicates the first acquisition device at a first rate for currently transmitting video data. Before sending the first indication information to the first acquisition device, the processing module 603 is configured to determine that the first rate of the first acquisition device is less than or equal to a first preset rate; and / or, determine that the sequence number of the first rate of the first acquisition device is less than or equal to N, wherein the sequence number of the first rate is obtained by arranging at least one rate in ascending order, wherein at least one rate includes the rate at which at least one acquisition device currently transmits video data to the device 600 for controlling the acquisition device, and N is a positive integer.
[0238] In one possible implementation, before sending the first indication information to the first acquisition device, the sending module 601 is further configured to send a second indication information to the cloud platform, the second indication information indicating that the ratio of the first data volume to the total volume is less than or equal to a first threshold; the receiving module 602 is further configured to receive a third indication information from the cloud platform, the third indication information indicating to reduce the bit rate of the first acquisition device, the third indication information being sent by the cloud platform after determining that the priority of the first acquisition device meets the first condition.
[0239] In one possible implementation, before sending the first instruction information to the first acquisition device, the processing module 603 is further configured to determine that the priority of the first acquisition device meets the first condition.
[0240] In one possible implementation, the first message further indicates the first video data currently being sent by the first acquisition device; after sending the first indication information to the first acquisition device, the sending module 601 is further configured to send the first video data to the cloud platform; the receiving module 602 is further configured to receive a fourth indication information from the cloud platform, the fourth indication information indicating a reduction in the bit rate of the first acquisition device, the fourth indication information being sent by the cloud platform after determining that the second rate is greater than or equal to a second threshold, the second rate being the rate at which the cloud platform receives the first video data from the device 600 controlling the acquisition device; the sending module 601 is further configured to send a fifth indication information to the first acquisition device, the fifth indication information indicating that the first acquisition device reduces the bit rate.
[0241] In one possible implementation, before sending the first video data to the cloud platform, the processing module 603 is further configured to write the first video data into a sending queue; if the total amount of video data in the sending queue is greater than a third threshold, the communication connection with the first access network device is disconnected, and a communication connection with the second access network device is established; the video data in the sending queue is sent to the cloud platform through the second access network device.
[0242] In one possible implementation, the sending module 601 is further configured to send a sixth indication message to the second acquisition device if the priority of the first acquisition device does not meet the first condition. The sixth indication message indicates that the second acquisition device reduces the bit rate. The second acquisition device belongs to at least one acquisition device and the priority of the second acquisition device meets the first condition.
[0243] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, and the priority number of the acquisition device is obtained by arranging the priorities of at least one acquisition device in ascending order of priority, where K is a positive integer.
[0244] Please refer to Figure 7This is a schematic diagram of a device for controlling and acquiring data provided in an embodiment of this application. Figure 7 As shown, the device 700 for controlling the acquisition equipment includes a transmitting module 701 and a receiving module 702.
[0245] For example, the receiving module 702 is used to receive second indication information from the gateway device, the second indication information indicating that the ratio of the first data volume to the total volume is less than or equal to a first threshold, the first data volume being the amount of video data that the first acquisition device has sent to the gateway device within a first time period; the sending module 701 is used to send third indication information to the gateway device, the third indication information indicating to reduce the bit rate of the first acquisition device.
[0246] In one possible implementation, after receiving the second indication information from the gateway device, the receiving module 702 is further configured to receive first video data from the gateway device, the first video data being sent from the first acquisition device to the gateway device; the sending module 701 is further configured to send a fourth indication information to the gateway device if the second rate is greater than or equal to a second threshold and the priority of the first acquisition device meets a first condition, the fourth indication information indicating a reduction in the bit rate of the first acquisition device; or, if the second rate is less than a third threshold, send a seventh indication information to the gateway device, the seventh indication information indicating an increase in the bit rate of the first acquisition device; wherein, the second rate is the rate at which the device 700 controlling the acquisition device receives the first video data.
[0247] In one possible implementation, the sending module 701 is further configured to send an eighth indication message to the gateway device if the priority of the first acquisition device does not meet the first condition. The eighth indication message indicates that the bit rate of the second acquisition device should be reduced, and the priority of the second acquisition device meets the first condition.
[0248] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, the priority number of the acquisition device is obtained by arranging the priorities of at least one acquisition device in ascending order of priority, K is a positive integer, and at least one acquisition device includes a first acquisition device.
[0249] As an example, the device 700 for controlling the acquisition equipment can implement any of the methods for controlling the acquisition equipment described above, for example, for... Figure 3 , Figure 4 or Figure 5 The method for controlling the acquisition device is shown, and the device can also realize the functions of the cloud platform mentioned above.
[0250] Please refer to Figure 8 The diagram below illustrates the structure of a device for controlling and collecting data, as provided in this application embodiment. Figure 3 .like Figure 8 As shown, the device 800 for controlling and acquiring the equipment includes a transmitting module 801 and a receiving module 802.
[0251] For example, the sending module 801 is used to send a first message to the gateway device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the device 800 controlling the acquisition device has sent to the gateway device within a first time period; the receiving module 802 is used to receive a first indication information from the gateway device, the first indication information instructing the device 800 controlling the acquisition device to reduce the bitrate of the acquired video, the first indication information is sent by the gateway device after determining that the ratio of the first data volume to the total amount is less than or equal to a first threshold, the total amount being the amount of video data that at least one acquisition device has sent to the gateway device within the first time period, the at least one acquisition device including the device 800 controlling the acquisition device.
[0252] In one possible implementation, the first message further indicates the first video data currently being sent by the device 800 controlling the acquisition device; the receiving module 802 is further configured to receive a fifth indication message from the gateway device, the fifth indication message being sent by the gateway device after receiving a fourth indication message from the cloud platform, the fourth indication message being sent by the cloud platform after determining that the second rate is greater than or equal to a second threshold and that the priority of the device 800 controlling the acquisition device meets a first condition, the fourth indication message indicating to reduce the bit rate of the device 800 controlling the acquisition device, the second rate being the rate at which the cloud platform receives the first video data from the gateway device, and the fifth indication message indicating to reduce the bit rate of the device 800 controlling the acquisition device.
[0253] In one possible implementation, the first condition includes: the priority of the acquisition device is lower than a preset priority; and / or, the priority number of the acquisition device is less than or equal to K, and the priority number of the acquisition device is obtained by arranging the priorities of at least one acquisition device in ascending order of priority, where K is a positive integer.
[0254] As an example, the device 800 for controlling the acquisition equipment can implement any of the methods for controlling the acquisition equipment described above, for example, Figure 3 , Figure 4 or Figure 5 The method for controlling the acquisition device is shown, and the device can also perform the functions of the first acquisition device mentioned above.
[0255] This application provides a system for controlling data acquisition devices. The system includes a first data acquisition device, a second data acquisition device, a gateway device, a first access network device, a second access network device, and a cloud platform. The first data acquisition device is, for example, a… Figure 3 , Figure 4or Figure 5 The first acquisition device involved, and the second acquisition device, are, for example, Figure 3 , Figure 4 or Figure 5 The second acquisition device involved, the gateway device, is, for example, Figure 3 , Figure 4 or Figure 5 The gateway device involved, the first access network device, is, for example, Figure 3 , Figure 4 or Figure 5 The first access network device involved, and the second access network device, are, for example, Figure 3 or Figure 4 The second access network equipment involved; the cloud platform, for example, is Figure 3 , Figure 4 or Figure 5 The cloud platforms involved.
[0256] Please refer to Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 9 As shown, the electronic device 900 includes at least one processor 901 and a memory 902 communicatively connected to the at least one processor 901; wherein, the memory 902 stores instructions executable by the at least one processor 901, and the at least one processor 901 implements the method of controlling the acquisition device as described above by executing the instructions stored in the memory 902, for example, for Figure 3 , Figure 4 or Figure 5 The method for controlling the acquisition device is shown.
[0257] As an example, electronic device 900 can implement the functions of the aforementioned device 600, device 700, or device 800 for controlling the acquisition device. Furthermore, at least one processor 901 in electronic device 900 can also implement the functions of any of the aforementioned transmitting or receiving modules.
[0258] This application provides a computer-readable storage medium storing computer instructions. When these instructions are executed on a computer, they cause the computer to perform a method for controlling and acquiring any of the devices, such as... Figure 3 , Figure 4 or Figure 5 The method for controlling the acquisition device is shown.
[0259] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0260] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0261] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0262] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0263] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for controlling a data acquisition device, characterized in that, Applied to a gateway device, the method includes: Receive a first message from the first acquisition device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first acquisition device has sent to the gateway device within a first time period; If the ratio of the first data volume to the total volume is less than or equal to the first threshold, then a first instruction message is sent to the first acquisition device. The first instruction message instructs the first acquisition device to reduce the bitrate of the acquired video. The total volume is the amount of video data that at least one acquisition device has sent to the gateway device within the first time period. The at least one acquisition device includes the first acquisition device.
2. The method according to claim 1, characterized in that, The first message also indicates the first acquisition device at a first rate for currently transmitting video data; before sending the first indication information to the first acquisition device, the method includes: Determine that the first rate of the first acquisition device is less than or equal to the first preset rate; and / or, The sequence number of the first rate of the first acquisition device is determined to be less than or equal to N. The sequence number of the first rate is obtained by arranging the at least one rate in ascending order. The at least one rate includes the rate at which the at least one acquisition device is currently sending video data to the gateway device. N is a positive integer.
3. The method according to claim 1, characterized in that, Before sending the first indication information to the first acquisition device, the method further includes: Send a second instruction to the cloud platform, the second instruction indicating that the ratio of the first data volume to the total volume is less than or equal to the first threshold; The cloud platform receives a third instruction message, which instructs the first acquisition device to reduce its bit rate. The third instruction message is sent by the cloud platform after determining that the priority of the first acquisition device meets the first condition.
4. The method according to claim 1, characterized in that, Before sending the first indication information to the first acquisition device, the method further includes: The priority of the first acquisition device is determined to meet the first condition.
5. The method according to claim 1, characterized in that, The first message also indicates the first video data currently being sent by the first acquisition device; after sending the first indication information to the first acquisition device, the method further includes: Send the first video data to the cloud platform; The cloud platform receives a fourth indication message, which indicates that the bit rate of the first acquisition device should be reduced. The fourth indication message is sent by the cloud platform after it determines that the second rate is greater than or equal to the second threshold. The second rate is the rate at which the cloud platform receives the first video data from the gateway device. A fifth instruction message is sent to the first acquisition device, the fifth instruction message instructing the first acquisition device to reduce the bit rate.
6. The method according to claim 5, characterized in that, Before sending the first video data to the cloud platform, the method further includes: Write the first video data into the sending queue; If the total amount of video data in the sending queue exceeds the third threshold, the communication connection with the first access network device is disconnected, and a communication connection with the second access network device is established. The video data in the transmission queue is sent to the cloud platform through the second access network device.
7. The method according to claim 1, characterized in that, The method further includes: If the priority of the first acquisition device does not meet the first condition, a sixth indication message is sent to the second acquisition device. The sixth indication message indicates that the second acquisition device should reduce the bit rate. The second acquisition device belongs to the at least one acquisition device, and the priority of the second acquisition device meets the first condition.
8. The method according to claim 3, 4 or 7, characterized in that, The first condition includes: The priority of the data acquisition device is lower than the preset priority; and / or, The priority number of the acquisition device is less than or equal to K. The priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order, where K is a positive integer.
9. A method for controlling a data acquisition device, characterized in that, Applied to a cloud platform, the method includes: The system receives a second indication from the gateway device, which indicates that the ratio of the first data volume to the total volume is less than or equal to a first threshold. The first data volume is the amount of video data that the first acquisition device has sent to the gateway device within a first time period. A third instruction message is sent to the gateway device, the third instruction message instructing the bit rate of the first acquisition device to be reduced.
10. The method according to claim 9, characterized in that, After receiving the second indication information from the gateway device, the method further includes: Receive first video data from the gateway device, wherein the first video data is sent by the first acquisition device to the gateway device; If the second rate is greater than or equal to the second threshold, and the priority of the first acquisition device meets the first condition, then a fourth indication message is sent to the gateway device, the fourth indication message indicating that the bit rate of the first acquisition device be reduced; or, If the second rate is less than the third threshold, a seventh indication message is sent to the gateway device, the seventh indication message indicating to increase the bit rate of the first acquisition device; Wherein, the second rate is the rate at which the cloud platform receives the first video data.
11. The method according to claim 9, characterized in that, The method further includes: If the priority of the first acquisition device does not meet the first condition, then an eighth indication message is sent to the gateway device, the eighth indication message indicating that the bit rate of the second acquisition device be reduced, and the priority of the second acquisition device meets the first condition.
12. The method according to claim 10 or 11, characterized in that, The first condition includes: The priority of the data acquisition device is lower than the preset priority; and / or, The priority number of the acquisition device is less than or equal to K. The priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order of priority. K is a positive integer. The at least one acquisition device includes the first acquisition device.
13. A method for controlling a data acquisition device, characterized in that, Applied to a first data acquisition device, the method includes: Send a first message to the gateway device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first acquisition device has sent to the gateway device within a first time period; The first instruction information is received from the gateway device, which instructs the first acquisition device to reduce the bitrate of the acquired video. The first instruction information is sent by the gateway device after determining that the ratio of the first data volume to the total volume is less than or equal to a first threshold. The total volume is the amount of video data that at least one acquisition device has sent to the gateway device within the first time period. The at least one acquisition device includes the first acquisition device.
14. The method according to claim 13, characterized in that, The first message also indicates the first video data currently being sent by the first acquisition device; the method further includes: The gateway device receives a fifth indication message, which is sent by the gateway device after receiving a fourth indication message from the cloud platform. The fourth indication message is sent by the cloud platform after determining that the second rate is greater than or equal to a second threshold and the priority of the first acquisition device meets a first condition. The fourth indication message indicates that the bitrate of the first acquisition device should be reduced. The second rate is the rate at which the cloud platform receives the first video data from the gateway device. The fifth indication message indicates that the first acquisition device should reduce its bitrate.
15. The method according to claim 14, characterized in that, The first condition includes: The priority of the data acquisition device is lower than the preset priority; and / or, The priority number of the acquisition device is less than or equal to K. The priority number of the acquisition device is obtained by arranging the priorities of the at least one acquisition device in ascending order, where K is a positive integer.
16. A device for controlling a data acquisition device, characterized in that, include: The receiving module is configured to receive a first message from the first acquisition device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the first acquisition device has sent to the device within a first time period; The sending module is configured to send a first indication message to the first acquisition device if the ratio of the first data volume to the total volume is less than or equal to a first threshold. The first indication message indicates that the first acquisition device should reduce the bitrate of the acquired video. The total volume is the amount of video data that at least one acquisition device has sent to the device within the first time period. The at least one acquisition device includes the first acquisition device.
17. A device for controlling a data acquisition device, characterized in that, include: The receiving module is used to receive second indication information from the gateway device, the second indication information indicating that the ratio of the first data volume to the total volume is less than or equal to a first threshold, the first data volume being the amount of video data that the first acquisition device has sent to the gateway device within a first time period; The sending module is used to send a third indication message to the gateway device, the third indication message indicating to reduce the bit rate of the first acquisition device.
18. A device for controlling a data acquisition device, characterized in that, include: The sending module is used to send a first message to the gateway device, the first message indicating a first data volume, the first data volume indicating the amount of video data that the device has sent to the gateway device within a first time period; A receiving module is configured to receive first indication information from a gateway device, the first indication information instructing the device to reduce the bitrate of the captured video, the first indication information being sent by the gateway device after determining that the ratio of the first data volume to the total volume is less than or equal to a first threshold, the total volume being the amount of video data that at least one acquisition device has sent to the gateway device within the first time period, the at least one acquisition device including the device.
19. An electronic device, characterized in that, include: At least one processor, and A memory that is communicatively connected to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor implements the method as described in any one of claims 1-15 by executing the instructions stored in the memory.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-15.
Citation Information
Patent Citations
Vehicle-mounted video transmitting method and device
CN104486688A
Loosely coupled video target tracking implementation method
CN112637200A