Network connection method, network connection device, video monitoring equipment and storage medium
By setting up a user identification module and wireless LAN cascade in the monitoring system, the problem of insufficient coverage of the monitoring system in outdoor wireless networks is solved, and the network connection reliability of video surveillance equipment is improved, and remote monitoring failure is avoided.
Patent Information
- Application Number
- CN202411291987.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-10
AI Technical Summary
When the existing monitoring system is insufficient outdoor wireless network coverage, the network connection reliability of the video surveillance equipment is low, which can easily lead to the failure of remote video surveillance.
By setting up the user identification module (such as SIM card or eSIM) of each video surveillance device in the monitoring system, it can access the Internet through the mobile communication network by default, and use a wireless LAN to connect to each other. If the mobile communication network of a certain device is in use, it can be connected to each other by default. When the networking conditions are not met, switch to the mobile communication network of other devices to access the Internet.
It improves the network connection reliability of video surveillance equipment, avoids remote monitoring failure caused by single network failure, and enhances the stability of the surveillance system.
Smart Images

Figure CN119110358A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a network connection method, a network connection device, a video monitoring device, and a computer-readable storage medium. Background Art
[0002] When deploying surveillance systems for remote video surveillance in places such as outdoor areas where wired networks are not available, mobile networking solutions are generally considered. However, for multiple video surveillance devices in the surveillance system, the current common topology solutions will bring about network connection reliability issues, which may cause remote video surveillance to fail. Summary of the invention
[0003] The present application provides a network connection method, a network connection device, a video surveillance device, and a computer-readable storage medium, which can improve the network connection reliability of the video surveillance device.
[0004] In a first aspect, the present application provides a network connection method, which is applied to a first video surveillance device in a monitoring system; the monitoring system includes at least two video surveillance devices cascaded to each other through a wireless local area network; the first video surveillance device is any video surveillance device; each video surveillance device is provided with a corresponding subscriber identity module (Subscriber Identity Module, SIM), and the first video surveillance device accesses the Internet through a first mobile communication network by default, wherein the first mobile communication network is a mobile communication network provided by the subscriber identity module corresponding to the first video surveillance device; the network connection method includes:
[0005] Determining whether the first mobile communication network meets a preset networking condition;
[0006] In the case where the first mobile communication network does not meet the networking condition, determining a second video monitoring device among other video monitoring devices in the monitoring system, wherein the second mobile communication network meets the networking condition and is a mobile communication network provided by a user identification module corresponding to the second video monitoring device;
[0007] The channel for accessing the Internet is changed so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network.
[0008] In a second aspect, the present application provides a network connection device, which is applied to a first video surveillance device in a monitoring system; the monitoring system includes at least two video surveillance devices cascaded to each other through a wireless local area network; the first video surveillance device is any video surveillance device; each video surveillance device is provided with a corresponding user identification module, and the first video surveillance device accesses the Internet through a first mobile communication network by default, wherein the first mobile communication network is a mobile communication network provided by the user identification module corresponding to the first video surveillance device; the network connection method includes:
[0009] A first determination module, used to determine whether the first mobile communication network meets a preset networking condition;
[0010] A second determination module is used to determine a second video surveillance device from other video surveillance devices in the monitoring system when the first mobile communication network does not meet the networking condition, wherein the second mobile communication network meets the networking condition and is a mobile communication network provided by a user identification module corresponding to the second video surveillance device;
[0011] The access module is used to change the channel for accessing the Internet so that the first video surveillance device can access the Internet through the wireless local area network and the second mobile communication network.
[0012] In a third aspect, the present application provides a video surveillance device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of the first aspect when executing the computer program.
[0013] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method of the first aspect are implemented.
[0014] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by one or more processors, it implements the steps of the method of the first aspect.
[0015] Compared with the prior art, the present application has the following beneficial effects: the present application proposes a new topology scheme for the monitoring system, specifically: the video monitoring devices in the monitoring system are cascaded to each other through a wireless local area network, and each video monitoring device itself is also provided with a user identification module that can provide a mobile communication network. Under this topology scheme, each video monitoring device accesses the Internet through the mobile communication network provided by its own user identification module by default; if the mobile communication network provided by the user identification module of a certain video monitoring device does not meet the networking conditions, the Internet access mode of the video monitoring device can be switched to control it to access the Internet through the wireless local area network and the mobile communication network provided by the user identification modules of other video monitoring devices. Through the scheme of this application, the network connection reliability of the video monitoring devices in the monitoring system is improved.
[0016] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 is an example diagram of the topological architecture of the monitoring system provided in an embodiment of the present application;
[0019] Figure 2 It is a schematic diagram of the implementation process of the network access method provided in the embodiment of the present application;
[0020] Figure 3 is a structural block diagram of a network access device provided in an embodiment of the present application;
[0021] Figure 4 It is a structural diagram of the video surveillance device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0024] In the description of the embodiments of the present application, technical terms such as "first" and "second" are only used to distinguish different objects and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features.
[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0026] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0027] In the description of the embodiments of the present application, the term "plurality" refers to more than two (including two), unless otherwise clearly and specifically defined.
[0028] When deploying a surveillance system for remote video surveillance in places such as outdoors where wired networks are not covered, mobile networking solutions are generally considered. Currently, the common topology solutions for surveillance systems are:
[0029] Solution 1: A router or a network video recorder (NVR) equipped with a mobile communication network (including but not limited to 4G and 5G, etc.), and multiple video surveillance devices connected to the router or the network video recorder via a wireless LAN; thus, each video surveillance device can access the Internet through the wireless LAN and the mobile communication network.
[0030] Solution 2: Multiple video surveillance devices, each of which is equipped with a mobile communication network (including but not limited to 4G and 5G) through its user identification module, and no communication connection is established between different video surveillance devices; thus, each video surveillance device can access the Internet through its own mobile communication network. The user identification module can be physical (such as a SIM card) or virtual (such as an eSIM), which will not be described in detail here.
[0031] For Solution 1, the networking of all video surveillance devices depends on the router or NVR. If the mobile communication network of the router or NVR has an abnormal connection, all video surveillance devices will be unable to connect to the Internet.
[0032] For Solution 2, if the mobile communication network of any video surveillance device has an abnormal connection, the video surveillance device will be unable to connect to the Internet. In addition, since each video surveillance device under this solution uses a separate user identification module and a corresponding traffic package, when the monitoring bit rates and / or monitoring scenarios are different, there may be a certain degree of difference between the videos uploaded by different video surveillance devices, which may cause the traffic packages of some video surveillance devices to be exhausted first.
[0033] In this regard, the present application proposes a network connection method, a network connection device, a video surveillance device, and a computer-readable storage medium, which can improve the network connection reliability of the video surveillance device. In order to illustrate the technical solution proposed in the embodiment of the present application, a specific embodiment is used for description below.
[0034] The following first introduces the topology scheme adopted by the monitoring system in which the video monitoring device is located in the embodiment of the present application. Figure 1 , Figure 1 An example of the topology of the monitoring system is given. Figure 1 As shown, the monitoring system includes at least two video surveillance devices. Specifically, on the one hand, each video surveillance device is provided with a corresponding user identification module (including but not limited to a SIM card or an eSIM, etc.); based on this, each video surveillance device can access the Internet by default through the mobile communication network provided by its own user identification module. On the other hand, different video surveillance devices can also establish a cascade connection with each other through a wireless local area network; based on this, each video surveillance device can access other video surveillance devices through the wireless local area network and realize data interaction. In summary, each video surveillance device in the monitoring system has both mobile communication functions (such as 4G and 5G, etc.) and wireless local area network functions (such as Wi-Fi, etc.).
[0035] Based on the topology proposed above, please refer to Figure 2 , Figure 2The implementation process of the network connection method proposed in the embodiment of the present application is given. Among them, the network connection method is applied to the first video monitoring device in the monitoring system, and the video monitoring device can be any video monitoring device in the monitoring system. The implementation process is detailed as follows:
[0036] Step 201: Determine whether the first mobile communication network meets a preset networking condition.
[0037] In the embodiment of the present application, for the sake of distinction, the mobile communication network provided by the user identification module of the first video surveillance device itself is recorded as the first mobile communication network. It has been explained in the foregoing that each video surveillance device can access the Internet by default through the mobile communication network provided by its own user identification module; therefore, for the first video surveillance device, after it is powered on and started, it will use the first mobile communication network by default to access the Internet, for example, uploading the currently collected monitoring data to the preset monitoring platform through the first mobile communication network, etc., which will not be elaborated here.
[0038] To ensure the network reliability of the first video surveillance device, the first mobile communication network can be tested through preset networking conditions, wherein the networking conditions can be set based on relevant network parameters required for normal networking to evaluate whether the network has reliable networking capabilities.
[0039] In one application scenario, considering that the mobile communication network provided by the user identification module usually has some restrictions on traffic, the networking conditions here may include traffic conditions, and the traffic conditions may be specifically: the remaining network traffic is greater than or equal to a preset traffic threshold. Wherein, the traffic threshold may be set based on a threshold setting instruction input by the user; or, the traffic threshold may also be set based on a default value (e.g., 300 megabytes); or, the traffic threshold may also be set based on the maximum value of the traffic package of the user identification module, for example, set to a specified proportion of the maximum value of the traffic package, the specified proportion is less than 1 and greater than 0 (e.g., 10%), wherein the maximum value of the traffic package can be obtained by sending a package information request to the network operator of the user identification module, which is not limited here. It can be understood that only when the traffic conditions are met, the network is considered to have sufficient remaining traffic to support the video surveillance device to upload and / or receive data.
[0040] In another application scenario, considering that in an outdoor monitoring scenario, network fluctuations may occur due to environmental factors, the networking conditions here may also include quality conditions, which may specifically be: the network speed is greater than or equal to a preset speed threshold; and / or the network packet loss rate is less than or equal to a preset packet loss rate threshold; and / or the network delay is less than or equal to a preset delay threshold. Of course, the quality condition can also be set from other angles, such as network bandwidth, etc., which are not limited here. It can be understood that only when the quality conditions are met, the network is considered sufficient to support the real-time monitoring function of the video surveillance equipment.
[0041] Of course, in addition to the traffic condition and the quality condition, the networking condition may also include other conditions, which are not limited here.
[0042] In some embodiments, from the perspective of traffic flow, the reduction of the user identification module package traffic flow is not a sudden change process, but a cumulative process; from the perspective of quality, when the monitoring system is deployed outdoors, the location of each video monitoring device is usually fixed, so its network fluctuation is usually not short-term. Based on this, considering the above characteristics, in order to reduce energy consumption and resource occupation, the first video monitoring device can determine whether the first mobile communication network meets the networking conditions based on a preset interval time, wherein the interval time can be specifically set according to the networking conditions. For example, for the networking condition of traffic conditions, the interval time can be set to 30 minutes; for the networking condition of quality conditions, the interval time can be set to 10 minutes, which is not limited here. Of course, the first video monitoring device can also continuously and in real time determine whether the first mobile communication network meets the networking conditions, which is not limited here.
[0043] Step 202: when the first mobile communication network does not meet the networking conditions, determine a second video surveillance device from other video surveillance devices in the monitoring system.
[0044] In the embodiment of the present application, when the first video surveillance device detects that its first mobile communication network does not meet the networking conditions, it can be known that its first mobile communication network can no longer meet the normal network requirements of the first video surveillance device. If the network is not switched in time, remote monitoring may fail. Based on this, the first video surveillance device can determine a second video surveillance device from other video surveillance devices in the monitoring system. Among them, the mobile communication network provided by the user identification module corresponding to the second video surveillance device can be recorded as the second mobile communication network, and when determining the second video surveillance device, the second mobile communication network is required to meet the networking conditions. That is, in this step, the first video surveillance device is the second video surveillance device determined in its video surveillance device based on the networking conditions proposed in the previous text.
[0045] Specifically, it has been described above that video surveillance devices are cascaded to each other through a wireless local area network; based on this, for each video surveillance device, the video surveillance device can propagate the network parameters of its own mobile communication network through the wireless local area network in the monitoring system. Among them, the network parameters include but are not limited to: network remaining traffic, network speed, network packet loss rate, network delay, connection frequency band and signal strength, etc., which are not limited here. In this way, for the first video surveillance device, when the first mobile communication network does not meet the networking conditions, it can obtain the network parameters of the mobile communication networks of each other video surveillance device through the wireless local area network, so as to determine whether the mobile communication networks of each other video surveillance device meet the networking conditions, thereby determining the second video surveillance device.
[0046] Step 203, changing the channel for accessing the Internet so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network.
[0047] In the embodiment of the present application, the determined second video surveillance device is more capable of normal networking than the first video surveillance device itself. Based on this, the first video surveillance device can adjust its own access channel to the Internet so that it no longer accesses the Internet through its own first mobile communication network, but instead accesses the Internet through a wireless local area network and a second mobile communication network. For example, when it is necessary to upload monitoring data to a preset monitoring platform, the first video surveillance device can first send the monitoring data to be uploaded to the second video surveillance device through the wireless local area network, and then the second video surveillance device uploads the monitoring data to the monitoring platform through its second mobile communication network.
[0048] It is important to note that after the first video surveillance device changes the channel for accessing the Internet and instead accesses the Internet through the wireless local area network and the second mobile communication network, the first video surveillance device can still monitor the first mobile communication network, specifically, monitor whether the first mobile communication network has recovered to meet the networking conditions. Once the first mobile communication network recovers to meet the networking conditions, it is considered that the first mobile communication network has been able to work normally, and the first video surveillance device can thereby restore its channel for accessing the Internet, that is, control itself to access the Internet through the first mobile communication network again, so as to avoid excessive occupation of the mobile communication networks of other video surveillance devices at inappropriate times.
[0049] In some embodiments, in order to ensure the communication quality when the first monitoring device accesses the Internet through the wireless local area network and the second mobile communication network, in step 202, the second video monitoring device can be determined in the following manner:
[0050] A1. In the monitoring system, candidate video monitoring devices are determined in order of distance from the first video monitoring device from small to large.
[0051] In general, for any two devices, the smaller the distance between them, the higher the signal strength received by the device from the other device; that is, it can be considered that the distance between the devices is negatively correlated with the communication quality between the devices. Based on this, the embodiment of the present application considers determining the candidate video surveillance devices in order of distance from the first video surveillance device from small to large; that is, the video surveillance device that is relatively closer to the first video surveillance device will be preferentially determined as the candidate video surveillance device. It should be noted that the distance here can be the actual distance between the devices or the topological distance between the devices, which is not limited here.
[0052] A2. Determine whether the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking conditions.
[0053] The first video surveillance device can obtain the network parameters of its own mobile communication network sent by the current candidate video surveillance device through the wireless local area network; thus, the first video surveillance device can determine whether the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking conditions.
[0054] A3. When the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking condition, the current candidate video surveillance device is determined as the second video surveillance device.
[0055] It can be understood that, when the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking conditions, the current candidate video surveillance device can be determined as the second video surveillance device, and the execution jumps to step 203; on the contrary, when the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device does not meet the networking conditions, the next candidate video surveillance device can be determined in order of distance from the first video surveillance device from small to large, and step A2 is executed again. The above process is repeated until the second video surveillance device is determined, or the traversal in the monitoring system is completed (that is, all other video surveillance devices are successively determined as candidate video surveillance devices, and none of them can be determined as the second video surveillance device).
[0056] In some embodiments, after step 203, the first video surveillance device may first generate a reminder message, and then send the reminder message to a preset server, wherein the generated reminder message may be used to describe that the first mobile communication network does not meet the networking conditions. Through the above operations, remote staff can be informed that there may be problems with the first mobile communication network of the first video surveillance device, and it is necessary to take corresponding measures. It should be noted that the reminder message does not need to be sent repeatedly; that is, each time the first mobile communication network does not meet the networking conditions and switches to the wireless local area network and the second mobile communication network to access the Internet, only one reminder message needs to be reported to the server.
[0057] Specifically, when the reminder message describes that the first mobile communication network does not meet the traffic conditions, the staff can promptly recharge the traffic package for the user identification module of the first video surveillance device; when the reminder message describes that the first mobile communication network does not meet the quality conditions, the staff can promptly troubleshoot and repair the network fault of the first video surveillance device through other video surveillance devices (such as the second video surveillance device).
[0058] As an example only, the process of network troubleshooting and repair may be: through other video surveillance devices (such as the second video surveillance device), query whether the mobile communication module (such as the 4G module and the 5G module, etc.) of the first video surveillance device is recognized normally, query whether the signal strength and signal-to-noise ratio of the first video surveillance device are poor (for example, the signal strength is lower than the strength threshold, and / or the signal-to-noise ratio is lower than the signal-to-noise ratio threshold), query whether the user identification module of the first video surveillance device is recognized normally, etc., and determine the cause of the network failure of the first mobile communication network based on each query result, and make corresponding repair processing for the cause of the network failure.
[0059] As can be seen from the above, in the embodiment of the present application, a new topology scheme is proposed for the monitoring system, specifically: the video monitoring devices in the monitoring system are cascaded to each other through a wireless local area network, and each video monitoring device itself is also provided with a user identification module. Under this topology scheme, each video monitoring device accesses the Internet by default through the mobile communication network provided by its own user identification module; if the mobile communication network provided by the user identification module of a certain video monitoring device does not meet the networking conditions, the Internet access method of the video monitoring device can be switched to control it to access the Internet through the wireless local area network and the mobile communication network provided by the user identification modules of other video monitoring devices. Through the solution of this application, the network connection reliability of the video monitoring devices in the monitoring system is improved.
[0060] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0061] Corresponding to the network connection method provided above, the embodiment of the present application also provides a network connection device. The network connection device is applied to the first video surveillance device in the monitoring system; the monitoring system includes at least two video surveillance devices cascaded to each other through a wireless local area network; the first video surveillance device is any video surveillance device; each video surveillance device is provided with a corresponding user identification module (including but not limited to a SIM card or an eSIM, etc.), and the first video surveillance device accesses the Internet through a first mobile communication network by default, wherein the first mobile communication network is a mobile communication network provided by the user identification module corresponding to the first video surveillance device. See Figure 3 , the network connection device 3 in the embodiment of the present application includes:
[0062] A first determination module 301 is used to determine whether the first mobile communication network meets a preset networking condition;
[0063] A second determination module 302 is used to determine a second video surveillance device from other video surveillance devices in the monitoring system when the first mobile communication network does not meet the networking condition, wherein the second mobile communication network meets the networking condition and is a mobile communication network provided by a user identification module corresponding to the second video surveillance device;
[0064] The access module 303 is used to change the channel for accessing the Internet so that the first video surveillance device can access the Internet through the wireless local area network and the second mobile communication network.
[0065] In some embodiments, the network connection device 3 further includes:
[0066] A generating module, configured to generate a reminder message after the access module 303 changes the channel for accessing the Internet so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network, wherein the reminder message is used to describe that the first mobile communication network does not meet the networking condition;
[0067] The sending module is used to send a reminder message to a preset server.
[0068] In some embodiments, the network connection device 3 further includes:
[0069] A monitoring module, configured to monitor whether the first mobile communication network is restored to meet the networking conditions after the access module 303 changes the channel for accessing the Internet so that the first video monitoring device accesses the Internet through the wireless local area network and the second mobile communication network;
[0070] The access module 303 is further configured to access the Internet through the first mobile communication network when the first mobile communication network recovers and satisfies the networking conditions.
[0071] In some embodiments, the second determining module 302 includes:
[0072] A first determining unit is used to determine, in the monitoring system, candidate video monitoring devices in order of distance from the first video monitoring device from small to large;
[0073] A second determining unit is used to determine whether the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking condition;
[0074] The third determining unit is configured to determine the current candidate video surveillance device as the second video surveillance device if the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking condition.
[0075] In some embodiments, the first determination module 301 is specifically configured to determine whether the first mobile communication network meets the networking condition based on a preset interval time, wherein the interval time is set according to the networking condition.
[0076] In some embodiments, the networking conditions include: traffic conditions; the traffic conditions are: the remaining network traffic is greater than or equal to a preset traffic threshold.
[0077] In some embodiments, the networking conditions include: quality conditions; the quality conditions are: the network speed is greater than or equal to a preset speed threshold; and / or, the network packet loss rate is less than or equal to a preset packet loss rate threshold; and / or, the network delay is less than or equal to a preset delay threshold.
[0078] As can be seen from the above, in the embodiment of the present application, a new topology scheme is proposed for the monitoring system, specifically: the video monitoring devices in the monitoring system are cascaded to each other through a wireless local area network, and each video monitoring device itself is also provided with a user identification module. Under this topology scheme, each video monitoring device accesses the Internet by default through the mobile communication network provided by its own user identification module; if the mobile communication network provided by the user identification module of a certain video monitoring device does not meet the networking conditions, the Internet access method of the video monitoring device can be switched to control it to access the Internet through the wireless local area network and the mobile communication network provided by the user identification modules of other video monitoring devices. Through the solution of this application, the network connection reliability of the video monitoring devices in the monitoring system is improved.
[0079] Corresponding to the network connection method provided above, the embodiment of the present application further provides a video surveillance device. The video surveillance device and at least one other video surveillance device are cascaded with each other through a wireless local area network to form a surveillance system; all video surveillance devices in the surveillance system are provided with corresponding user identification modules. Figure 4 The video surveillance device 4 in the embodiment of the present application includes: a memory 401, one or more processors 402 ( Figure 4 Only one is shown) and a computer program stored in the memory 401 and executable on the processor. Wherein: the memory 401 is used to store software programs and modules, and the processor 402 executes various functional applications and data processing by running the software programs and units stored in the memory 401 to obtain the resources corresponding to the above-mentioned preset events. Specifically, the video surveillance device 4 accesses the Internet through the first mobile communication network by default, and the first mobile communication network is a mobile communication network provided by the user identification module corresponding to the video surveillance device 4; the processor 402 implements the following steps when running the above-mentioned computer program stored in the memory 401:
[0080] Determining whether the first mobile communication network meets a preset networking condition;
[0081] In the case where the first mobile communication network does not meet the networking condition, determining a second video monitoring device among other video monitoring devices in the monitoring system, wherein the second mobile communication network meets the networking condition and is a mobile communication network provided by a user identification module corresponding to the second video monitoring device;
[0082] The channel for accessing the Internet is changed so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network.
[0083] Assuming that the above is the first possible implementation, in a second possible implementation provided on the basis of the first possible implementation, after changing the channel for accessing the Internet so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network, the processor 402 further implements the following steps when running the computer program stored in the memory 401:
[0084] generating a reminder message, where the reminder message is used to describe that the first mobile communication network does not meet the networking condition;
[0085] Send reminder messages to the preset server.
[0086] In a third possible implementation provided on the basis of the first possible implementation, after changing the channel for accessing the Internet so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network, the processor 402 further implements the following steps when running the computer program stored in the memory 401:
[0087] Monitoring whether the first mobile communication network is restored to meet the networking conditions;
[0088] When the first mobile communication network recovers and meets the networking conditions, access the Internet through the first mobile communication network.
[0089] In a fourth possible implementation provided on the basis of the first possible implementation, or the second possible implementation, or the third possible implementation, in other video surveillance devices of the monitoring system, a second video surveillance device is determined, including:
[0090] In the monitoring system, determining candidate video monitoring devices in order of distance from the first video monitoring device from smallest to largest;
[0091] Determine whether the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking conditions;
[0092] When the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking condition, the current candidate video surveillance device is determined as the second video surveillance device.
[0093] In a fifth possible implementation provided on the basis of the first possible implementation, or the second possible implementation, or the third possible implementation, determining whether the first mobile communication network meets a preset networking condition includes:
[0094] Based on a preset interval time, it is determined whether the first mobile communication network meets the networking condition, wherein the interval time is set according to the networking condition.
[0095] In the sixth possible implementation provided based on the first possible implementation, or the second possible implementation, or the third possible implementation, the networking conditions include: traffic conditions; the traffic conditions are: the remaining network traffic is greater than or equal to a preset traffic threshold.
[0096] In the seventh possible implementation manner provided on the basis of the first possible implementation manner, or on the basis of the second possible implementation manner, or on the basis of the third possible implementation manner, the networking conditions include: quality conditions; the quality conditions are: the network speed is greater than or equal to a preset speed threshold; and / or, the network packet loss rate is less than or equal to a preset packet loss rate threshold; and / or, the network delay is less than or equal to a preset delay threshold.
[0097] It should be understood that in the embodiment of the present application, the processor 402 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0098] The memory 401 may include a read-only memory and a random access memory, and provide instructions and data to the processor 402. A part or all of the memory 401 may also include a non-volatile random access memory. For example, the memory 401 may also store information on the device type.
[0099] As can be seen from the above, in the embodiment of the present application, a new topology scheme is proposed for the monitoring system, specifically: the video monitoring devices in the monitoring system are cascaded to each other through a wireless local area network, and each video monitoring device itself is also provided with a user identification module. Under this topology scheme, each video monitoring device accesses the Internet by default through the mobile communication network provided by its own user identification module; if the mobile communication network provided by the user identification module of a certain video monitoring device does not meet the networking conditions, the Internet access method of the video monitoring device can be switched to control it to access the Internet through the wireless local area network and the mobile communication network provided by the user identification modules of other video monitoring devices. Through the solution of this application, the network connection reliability of the video monitoring devices in the monitoring system is improved.
[0100] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0101] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0102] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of external device software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0103] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are merely schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0104] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the associated hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The above-mentioned computer-readable storage medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer-readable memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media does not include electrical carrier signals and telecommunication signals.
[0106] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A network connection method, characterized in that: The network connection method is applied to a first video surveillance device in a monitoring system; the monitoring system comprises at least two video surveillance devices cascaded to each other through a wireless local area network; the first video surveillance device is any of the video surveillance devices; each of the video surveillance devices is provided with a corresponding user identification module, and the first video surveillance device accesses the Internet via a first mobile communication network by default, wherein the first mobile communication network is a mobile communication network provided by the user identification module corresponding to the first video surveillance device; the network connection method comprises: Determining whether the first mobile communication network meets a preset networking condition; In the case where the first mobile communication network does not meet the networking condition, determining a second video monitoring device from other video monitoring devices in the monitoring system, wherein the second mobile communication network meets the networking condition, and the second mobile communication network is a mobile communication network provided by the user identification module corresponding to the second video monitoring device; The channel for accessing the Internet is changed so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network.
2. The network connection method according to claim 1, characterized in that: After the channel for accessing the Internet is changed so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network, the network connection method further includes: generating a reminder message, wherein the reminder message is used to describe that the first mobile communication network does not meet the networking condition; The reminder message is sent to a preset server.
3. The network connection method according to claim 1, characterized in that: After the channel for accessing the Internet is changed so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network, the network connection method further includes: Monitoring whether the first mobile communication network is restored to meet the networking condition; When the first mobile communication network is restored to meet the networking condition, the channel for accessing the Internet is restored so that the first video surveillance device can access the Internet again through the first mobile communication network.
4. The network connection method according to any one of claims 1 to 3, characterized in that: Determining a second video surveillance device among other video surveillance devices in the surveillance system includes: In the monitoring system, determining candidate video monitoring devices in order of distance from the first video monitoring device from smallest to largest; Determine whether the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking condition; In the case that the mobile communication network provided by the user identification module corresponding to the current candidate video surveillance device meets the networking condition, the current candidate video surveillance device is determined as the second video surveillance device.
5. The network connection method according to any one of claims 1 to 3, characterized in that: The determining whether the first mobile communication network meets a preset networking condition includes: Based on a preset interval time, it is determined whether the first mobile communication network meets the networking condition, wherein the interval time is set according to the networking condition.
6. The network connection method according to any one of claims 1 to 3, characterized in that: The networking condition includes: a flow condition; the flow condition is: the remaining network flow is greater than or equal to a preset flow threshold.
7. The network connection method according to any one of claims 1 to 3, characterized in that: The networking conditions include: quality conditions; the quality conditions are: network speed is greater than or equal to a preset speed threshold; and / or, network packet loss rate is less than or equal to a preset packet loss rate threshold; and / or, network delay is less than or equal to a preset delay threshold.
8. A network connection device, characterized in that: The network connection device is applied to a first video surveillance device in a monitoring system; the monitoring system includes at least two video surveillance devices cascaded to each other through a wireless local area network; the first video surveillance device is any of the video surveillance devices; each of the video surveillance devices is provided with a corresponding user identification module, and the first video surveillance device accesses the Internet through a first mobile communication network by default, wherein the first mobile communication network is a mobile communication network provided by the user identification module corresponding to the first video surveillance device; the network connection method includes: A first determining module, used to determine whether the first mobile communication network meets a preset networking condition; A second determination module is used to determine a second video surveillance device from other video surveillance devices in the monitoring system when the first mobile communication network does not meet the networking condition, wherein the second mobile communication network meets the networking condition and the second mobile communication network is a mobile communication network provided by the user identification module corresponding to the second video surveillance device; The access module is used to change the channel for accessing the Internet so that the first video surveillance device accesses the Internet through the wireless local area network and the second mobile communication network.
9. A video surveillance device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
