Method for providing network signal in security scenario and method for establishing network connection

By detecting the connection status of the target device and switching the working mode of its wireless local area network chip, the problem of insufficient WiFi communication distance is solved, enabling data transmission over a wider range.

WO2026157521A1PCT designated stage Publication Date: 2026-07-30SHENZHEN OCEANWING SMART INNOVATIONS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
SHENZHEN OCEANWING SMART INNOVATIONS TECHNOLOGY CO LTD
Filing Date
2025-11-27
Publication Date
2026-07-30

AI Technical Summary

Technical Problem

In security scenarios, WiFi has a short communication range, making it difficult to meet the data transmission needs of large areas such as the whole house or the whole farm.

Method used

By detecting the connection status of the target device, it is determined whether a target plug-in with a data transmission distance greater than a preset threshold is connected, and the working mode of the target device's wireless local area network chip is switched to access point mode to expand the network signal coverage.

Benefits of technology

This technology extends network signal coverage and thus data transmission distance when the target device is connected to the target plug-in.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025138006_30072026_PF_FP_ABST
    Figure CN2025138006_30072026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to a method for providing a network signal in a security scenario and a method for establishing a network connection. The method for providing a network signal in a security scenario comprises: detecting a device connection state of a target device; on the basis of the device connection state, determining whether the target device is connected to a target plug-in; and when the target device is connected to the target plug-in, switching the working mode of a wireless network chip of the target device to an access point mode, so that the target device serves as an access point to provide a network signal, wherein the network signal is used for data transmission. Thus, when a target device is connected to a target plug-in, the working mode of a wireless network chip of the target device may be automatically switched to an access point mode, such that the target device serves as an access point to provide a network signal. In this way, the coverage range of the network signal may be expanded by connection to the target plug-in, thereby expanding the data transmission distance.
Need to check novelty before this filing date? Find Prior Art

Description

Methods for providing network signals and establishing network connections in security scenarios

[0001] This application claims priority to Chinese Patent Application No. 202510121669.4, filed on January 24, 2025, entitled "Method for Providing Network Signals and Method for Establishing Network Connections in Security Scenarios", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of security technology, and in particular to a method for providing network signals and establishing network connections in a security scenario. Background Technology

[0003] In related technologies, devices used in security scenarios typically employ communication technologies such as WiFi (Wireless Fidelity) for wireless connectivity, facilitating user installation and use. However, the operating range of WiFi in these devices is relatively short. For scenarios requiring whole-house or whole-farm coverage, WiFi communication needs are difficult to meet, resulting in short data transmission distances.

[0004] It is clear that how to extend the data transmission distance is a technical issue that deserves attention. Summary of the Invention

[0005] This application provides a method for providing network signals and establishing network connections in a security scenario, so as to expand the coverage of network signals and thereby extend the data transmission distance.

[0006] In a first aspect, embodiments of this application provide a method for providing network signals in a security scenario, the method comprising:

[0007] Detect the device connection status of the target device;

[0008] Based on the device connection status, it is determined whether the target device is connected to the target plugin, wherein the data transmission distance of the target plugin is greater than a preset distance threshold;

[0009] When the target device is connected to the target plug-in, the working mode of the target device's wireless local area network chip is switched to access point mode, so that the target device provides network signals as an access point, wherein the network signals are used for data transmission.

[0010] In conjunction with the first aspect, in a first possible implementation of the first aspect, determining whether the target device is connected to the target plug-in based on the device connection status includes:

[0011] Determine whether the device connection status has changed;

[0012] In the event that the device connection state changes, determine the event type that triggered the change in the device connection state;

[0013] Determine whether the event type indicates device access;

[0014] When the event type indicates device access, obtain the description information of the access device of the target device;

[0015] Based on the description information, it is determined whether the target device is connected to the target plugin.

[0016] In conjunction with the first aspect, in a second possible implementation of the first aspect, when the event type indicates device access, obtaining the description information of the access device of the target device includes:

[0017] Send a target request to the access device of the target device, wherein the target request is used to request description information of the access device;

[0018] Receive the description information returned by the access device.

[0019] In conjunction with the first aspect, in the third possible implementation of the first aspect, determining whether the target device is connected to the target plug-in based on the device connection status includes:

[0020] When the device connection status indicates that the target device is disconnected from other devices, it is determined that the target device is not connected to the target plug-in;

[0021] If the device connection status indicates that the target device is plugged into another device, it is determined that the target device is connected to the target plug-in.

[0022] In conjunction with the first aspect, in the fourth possible implementation of the first aspect, both the target device and the other devices are network cameras.

[0023] In conjunction with the first aspect, in the fifth possible implementation of the first aspect, the other device is a device into which the target plug-in is not inserted.

[0024] In conjunction with the first aspect, in the sixth possible implementation of the first aspect, the step of switching the operating mode of the wireless local area network chip of the target device to access point mode when the target device accesses the target plug-in includes:

[0025] When the target device is connected to the target plug-in, a reset signal is sent to the target plug-in, wherein the reset signal is used to indicate that the target plug-in enters a preset state;

[0026] After sending the reset signal to the target plug-in, the operating mode of the wireless local area network chip of the target device is switched to access point mode.

[0027] In conjunction with the first aspect, in the seventh possible implementation of the first aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the method further includes:

[0028] First configuration information is determined, wherein the first configuration information is: network configuration information of the base station to which the wireless local area network chip of the target device is connected in the pre-switching mode, wherein the pre-switching mode represents: the working mode of the wireless local area network chip before switching to the access point mode;

[0029] The first configuration information is determined as the second configuration information, wherein the second configuration information represents the network configuration information of the base station to which the wireless local area network chip is connected in access point mode;

[0030] The target device is configured using the second configuration information.

[0031] In conjunction with the first aspect, in an eighth possible implementation of the first aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the method further includes:

[0032] According to preset rules, third configuration information is generated, wherein the third configuration information represents the network configuration information of the base station to which the wireless local area network chip is connected in access point mode;

[0033] The target device is configured using the third configuration information.

[0034] In conjunction with the first aspect, in a ninth possible implementation of the first aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the method further includes:

[0035] Obtain first address information, wherein the first address information is: the address information of the base station to which the wireless local area network chip of the target device is connected;

[0036] If the first address information is obtained, the address information of the target device is configured based on the first address information.

[0037] In conjunction with the first aspect, in a tenth possible implementation of the first aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the method further includes:

[0038] Obtain first address information, wherein the first address information is: the address information of the base station to which the wireless local area network chip of the target device is connected;

[0039] If the first address information is not obtained, the address information of the target device is configured to a preset address information.

[0040] Secondly, embodiments of this application provide a method for establishing a network connection in a security scenario, the method comprising: determining a target network signal searched by a networked device;

[0041] Based on the target network signal, it is determined whether to establish a network connection with the target device, wherein the target device is used to provide network signals in accordance with the method for providing network signals in the security scenario;

[0042] If it is determined that a network connection has been established with the target device, the network device is controlled to establish a network connection with the target device and to transmit data through the established network connection.

[0043] In conjunction with the second aspect, in the first possible implementation of the second aspect, determining whether to establish a network connection with the target device based on the target network signal includes:

[0044] If the target network signal includes a network signal provided by the target device according to the method of providing network signals in the security scenario, and the target network signal does not include a network signal provided by the base station, then it is determined that a network connection is established with the target device.

[0045] In conjunction with the second aspect, in a second possible implementation of the second aspect, after determining the target network signal searched by the networked device, the method further includes:

[0046] When the target network signal includes a network signal provided by the target device in accordance with the method of providing network signals in the security scenario according to any one of the first aspects, and the target network signal includes a network signal provided by a base station, the network device is controlled to establish a network connection with the base station.

[0047] In conjunction with the second aspect, in the third possible implementation of the second aspect, both the target device and the networked device are network cameras.

[0048] In conjunction with the second aspect, in the fourth possible implementation of the second aspect, the networking device is a device that has not inserted the target plug-in.

[0049] Thirdly, embodiments of this application provide a device for providing network signals in a security scenario, the device comprising:

[0050] The detection unit is used to detect the device connection status of the target device;

[0051] The first determining unit is used to determine whether the target device is connected to the target plug-in based on the device connection status, wherein the data transmission distance of the target plug-in is greater than a preset distance threshold.

[0052] The switching unit is used to switch the operating mode of the wireless local area network chip of the target device to the access point mode when the target device is connected to the target plug-in, so that the target device provides network signals as an access point, wherein the network signals are used for data transmission.

[0053] In conjunction with the third aspect, in the first possible implementation of the third aspect, determining whether the target device is connected to the target plug-in based on the device connection status includes:

[0054] Determine whether the device connection status has changed;

[0055] In the event that the device connection state changes, determine the event type that triggered the change in the device connection state;

[0056] Determine whether the event type indicates device access;

[0057] When the event type indicates device access, obtain the description information of the access device of the target device;

[0058] Based on the description information, it is determined whether the target device is connected to the target plugin.

[0059] In conjunction with the third aspect, in the second possible implementation of the third aspect, when the event type indicates device access, obtaining the description information of the access device of the target device includes:

[0060] Send a target request to the access device of the target device, wherein the target request is used to request description information of the access device;

[0061] Receive the description information returned by the access device.

[0062] In conjunction with the third aspect, in the third possible implementation of the third aspect, determining whether the target device is connected to the target plug-in based on the device connection status includes:

[0063] When the device connection status indicates that the target device is disconnected from other devices, it is determined that the target device is not connected to the target plug-in;

[0064] If the device connection status indicates that the target device is plugged into another device, it is determined that the target device is connected to the target plug-in.

[0065] In conjunction with the third aspect, in the fourth possible implementation of the third aspect, both the target device and the other devices are network cameras.

[0066] In conjunction with the third aspect, in the fifth possible implementation of the third aspect, the other device is a device into which the target plug-in is not inserted.

[0067] In conjunction with the third aspect, in the sixth possible implementation of the third aspect, the step of switching the operating mode of the wireless local area network chip of the target device to access point mode when the target device accesses the target plug-in includes:

[0068] When the target device is connected to the target plug-in, a reset signal is sent to the target plug-in, wherein the reset signal is used to indicate that the target plug-in enters a preset state;

[0069] After sending the reset signal to the target plug-in, the operating mode of the wireless local area network chip of the target device is switched to access point mode.

[0070] In conjunction with the third aspect, in the seventh possible implementation of the third aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0071] The second determining unit is used to determine the first configuration information, wherein the first configuration information is: network configuration information of the base station to which the wireless local area network chip of the target device is connected in the pre-switching mode, wherein the pre-switching mode indicates: the working mode of the wireless local area network chip before switching to the access point mode;

[0072] The third determining unit is used to determine the first configuration information as the second configuration information, wherein the second configuration information represents the network configuration information of the base station to which the wireless local area network chip is connected in access point mode;

[0073] The first configuration unit is used to configure the target device using the second configuration information.

[0074] In conjunction with the third aspect, in the eighth possible implementation of the third aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0075] The generation unit is used to generate third configuration information according to preset rules, wherein the third configuration information represents the network configuration information of the base station to which the wireless local area network chip is connected in access point mode;

[0076] The second configuration unit is used to configure the target device using the third configuration information.

[0077] In conjunction with the third aspect, in a ninth possible implementation of the third aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0078] The first acquisition unit is used to acquire first address information, wherein the first address information is: the address information of the base station to which the wireless local area network chip of the target device is connected;

[0079] The third configuration unit is used to configure the address information of the target device based on the first address information when the first address information is obtained.

[0080] In conjunction with the third aspect, in a tenth possible implementation of the third aspect, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0081] The second acquisition unit is used to acquire first address information, wherein the first address information is: the address information of the base station to which the wireless local area network chip of the target device is connected;

[0082] The fourth configuration unit is used to configure the address information of the target device to preset address information when the first address information is not obtained.

[0083] Fourthly, embodiments of this application provide a device for establishing a network connection in a security scenario, the device comprising:

[0084] The fourth determining unit is used to determine the target network signal searched by the networked device;

[0085] The fifth determining unit is used to determine whether to establish a network connection with the target device based on the target network signal, wherein the target device is used to provide a network signal in accordance with the method for providing network signals in the security scenario according to any one of the second aspects;

[0086] The first control unit is configured to, upon determining that a network connection has been established with the target device, control the networked device to establish a network connection with the target device and to transmit data through the established network connection.

[0087] In conjunction with the fourth aspect, in the first possible implementation of the fourth aspect, determining whether to establish a network connection with the target device based on the target network signal includes:

[0088] If the target network signal includes a network signal provided by the target device according to the method of providing network signals in the security scenario, and the target network signal does not include a network signal provided by the base station, then it is determined that a network connection is established with the target device.

[0089] In conjunction with the fourth aspect, in a second possible implementation of the fourth aspect, after determining the target network signal searched by the networked device, the apparatus further includes:

[0090] The second control unit is configured to control the network device to establish a network connection with the base station when the target network signal includes a network signal provided by the target device according to the method of providing network signals in the security scenario, and the target network signal includes a network signal provided by the base station.

[0091] In conjunction with the fourth aspect, in the third possible implementation of the fourth aspect, both the target device and the networked device are network cameras.

[0092] In conjunction with the fourth aspect, in the fourth possible implementation of the fourth aspect, the networking device is a device that has not inserted the target plug-in.

[0093] Fifthly, embodiments of this application provide an electronic device, including:

[0094] Memory, used to store computer programs;

[0095] A processor is configured to execute a computer program stored in the memory, wherein, when the computer program is executed, it implements the method of any embodiment of the method for providing network signals in the security scenario of the first aspect of this application, or implements the method of any embodiment of the method for establishing network connections in the security scenario of the second aspect of this application.

[0096] Sixthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the method of any embodiment of the method for providing network signals in the security scenario of the first aspect of this application, or implements the method of any embodiment of the method for establishing network connections in the security scenario of the second aspect of this application.

[0097] In a seventh aspect, embodiments of this application provide a computer program product comprising computer-readable code that, when executed on a device, causes a processor in the device to implement the method of any embodiment of the method for providing network signals in the first aspect of this application, or to implement the method of any embodiment of the method for establishing network connections in the second aspect of this application.

[0098] The network signal provision method provided in this application can detect the device connection status of a target device, and then, based on the device connection status, determine whether the target device is connected to a target plug-in, wherein the data transmission distance of the target plug-in is greater than a preset distance threshold. Then, if the target device is connected to the target plug-in, the operating mode of the target device's wireless local area network chip is switched to access point mode, so that the target device acts as an access point to provide network signals, wherein the network signals are used for data transmission. Therefore, when the target device is connected to the target plug-in, the operating mode of the target device's wireless network chip can be automatically switched to access point mode, so that the target device acts as an access point to provide network signals. In this way, by connecting to the target plug-in, the coverage area of ​​the network signal can be expanded, thereby extending the data transmission distance.

[0099] The method for establishing a network connection in a security scenario provided in this application embodiment determines a target network signal searched by a networked device, and then determines whether to establish a network connection with the target device based on the target network signal. The target device provides a network signal according to the method for providing network signals in the security scenario. Then, if it is determined that a network connection will be established with the target device, the networked device is controlled to establish the network connection with the target device and to transmit data through the established network connection. Therefore, the networked device can establish network connections with target devices over a wider range, thereby extending the data transmission distance. Attached Figure Description

[0100] To more clearly illustrate the technical solution of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0101] Figure 1 is a flowchart illustrating a method for providing network signals in a security scenario according to an embodiment of this application;

[0102] Figure 2 is a flowchart illustrating another method for providing network signals in a security scenario provided by an embodiment of this application;

[0103] Figure 3 is a flowchart illustrating a method for establishing a network connection in a security scenario according to an embodiment of this application;

[0104] Figure 4A is a schematic diagram of an application scenario of a method for providing network signals in a security scenario in the prior art;

[0105] Figure 4B is a schematic diagram of an application scenario of a method for providing network signals in a security scenario provided by an embodiment of this application;

[0106] Figure 4C is a flowchart illustrating another method for providing network signals in a security scenario provided by an embodiment of this application;

[0107] Figure 4D is a schematic diagram of an application scenario of a method for establishing a network connection in a security scenario provided by an embodiment of this application;

[0108] Figure 4E is a schematic flowchart of network configuration in a method for providing network signals in a security scenario provided by an embodiment of this application;

[0109] Figure 5 is a schematic diagram of the structure of a device for providing network signals in a security scenario according to an embodiment of this application;

[0110] Figure 6 is a schematic diagram of a device for establishing a network connection in a security scenario provided in an embodiment of this application;

[0111] Figure 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0112] Various exemplary embodiments of this application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this application.

[0113] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of this application are only used to distinguish different steps, devices or modules, and do not represent any specific technical meaning, nor do they indicate the logical order between them.

[0114] It should also be understood that in this embodiment, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.

[0115] It should also be understood that any component, data or structure mentioned in the embodiments of this application can generally be understood as one or more unless explicitly defined or given contrary guidance in the context.

[0116] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.

[0117] It should also be understood that the description of the various embodiments in this application emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.

[0118] The following description of at least one exemplary embodiment is merely illustrative and is not intended to limit the scope of this application or its application or use.

[0119] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0120] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0121] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. To facilitate understanding of the embodiments of this application, the application will be described in detail below with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0122] To address the technical problem of how to extend the data transmission distance in existing technologies, this application provides a method for providing network signals and establishing network connections in security scenarios, which can extend the data transmission distance.

[0123] Figure 1 is a flowchart illustrating a method for providing network signals in a security scenario according to an embodiment of this application. This method can be applied to one or more electronic devices such as network cameras, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the execution entity of this method can be hardware or software. When the execution entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the execution entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are made here.

[0124] As shown in Figure 1, the method specifically includes:

[0125] Step 101: Detect the device connection status of the target device.

[0126] In this embodiment, the target device can be any device. As an example, the target device may include, but is not limited to, a network camera, a smartphone, a laptop, a desktop computer, a portable computer, etc.

[0127] Device connection status can refer to the connection status between the target device and other devices. As an example, the target device can be represented as: the target device is connected to other devices, the target device is disconnected from other devices, other devices are plugged into the target device, and other devices are removed from the target device.

[0128] The "other devices" mentioned above can be any device other than the target device. These other devices can belong to the same or different categories as the target device. For example, both the target device and the other devices could be network cameras.

[0129] In some cases, other devices may be devices that do not have the target plugin inserted.

[0130] The target plugin's data transmission distance exceeds a preset distance threshold. In other words, the target plugin can be a long-distance data transmission plugin, such as a long-distance image transmission plugin.

[0131] The aforementioned preset distance threshold can be a predetermined distance value. For example, the preset distance threshold can be greater than or equal to 100 meters.

[0132] A long-distance data transmission plugin is a software or hardware component used to enable data transmission over a relatively long distance. Typically, the data transmission distance of a long-distance data transmission plugin is greater than or equal to 100 meters.

[0133] A long-distance image transmission plugin is a device or module that enables image data transmission over a relatively long distance. Typically, long-distance image transmission plugins can transmit image data over a distance greater than or equal to 100 meters.

[0134] Step 102: Based on the device connection status, determine whether the target device is connected to the target plugin, wherein the data transmission distance of the target plugin is greater than a preset distance threshold.

[0135] In this embodiment, please refer to the above description for the specific meanings of the target plugin and the preset distance threshold, which will not be repeated here.

[0136] Here, multiple methods can be used to determine whether the target device is connected to the target plugin based on the device connection status.

[0137] As an example, when the device connection status indicates that the target device is disconnected from other devices, it can be determined that the target device is not connected to the target plug-in. When the device connection status indicates that the target device is connected to another device, it can be determined that the target device is connected to the target plug-in.

[0138] Step 103: When the target device is connected to the target plug-in, switch the working mode of the wireless network chip of the target device to the access point mode so that the target device provides network signals as an access point, wherein the network signals are used for data transmission.

[0139] In this embodiment, the target device may be equipped with a wireless network chip (WiFi chip). A wireless network chip is an integrated circuit chip that enables a device to connect to a wireless network, and it typically integrates multiple components such as a processor, radio frequency module, and memory.

[0140] Wireless network chips can operate in various modes, including STA (Station) mode, AP (Access Point) mode, repeater mode, monitoring mode, and bridge mode.

[0141] Typically, before the target device connects to the target plugin, the target device's wireless network chip can operate in site mode.

[0142] In some optional implementations of this embodiment, when the target device accesses the target plug-in, the working mode of the wireless network chip of the target device can be switched to access point mode in the following manner:

[0143] The first step is to send a reset signal to the target plug-in.

[0144] The reset signal is used to indicate that the target plug-in enters a preset state.

[0145] The aforementioned preset state is usually a known state. Once the target plugin enters the preset state, the initialization of the target plugin can be completed.

[0146] The second step is to send the reset signal to the target plug-in and then switch the working mode of the wireless network chip of the target device to access point mode.

[0147] It is understandable that, among the above optional implementation methods, the target plugin can be controlled to enter a preset state to achieve its initialization. This can avoid problems such as abnormal operation, lag, and data errors in the plugin, thereby improving the stability of data transmission.

[0148] In some optional implementations of this embodiment, before switching the operating mode of the wireless network chip of the target device to access point mode, the following steps may also be performed:

[0149] The first step is to determine the initial configuration information.

[0150] The first configuration information is: the network configuration information of the base station to which the wireless network chip of the target device is connected in the mode before the handover.

[0151] The "pre-switch mode" refers to the operating mode of the wireless network chip before switching to the access point mode.

[0152] As an example, the mode before switching can be site mode; in other words, the wireless network chip can operate in site mode before switching to access point mode.

[0153] Network configuration information may include, but is not limited to: wireless network account and wireless network password.

[0154] The second step is to determine the first configuration information as the second configuration information.

[0155] The second configuration information refers to the network configuration information of the base station to which the wireless network chip is connected in access point mode.

[0156] The third step is to configure the target device using the second configuration information.

[0157] It is understandable that, in the above-mentioned optional implementation methods, if the network configuration information of the base station to which the wireless network chip in the previous mode was connected can be determined, the same network configuration information can be used to configure the target device. This allows for more efficient network configuration of the target device. After configuration, the target device can generate an AP hotspot identical to the base station, allowing other devices to access this hotspot. Since the data transmission distance of the target plug-in is relatively long, the data transmission distance can be extended. Furthermore, when other devices are within the coverage area of ​​the network signal provided by the target device, they can automatically access the network without being aware of it, and the efficiency of other devices connecting to the target device can be improved.

[0158] In some optional implementations of this embodiment, before switching the operating mode of the wireless network chip of the target device to access point mode, the following steps may also be performed:

[0159] The first step is to generate third-party configuration information according to preset rules.

[0160] The third configuration information refers to the network configuration information of the base station to which the wireless network chip is connected in access point mode.

[0161] The aforementioned preset rules can be used to generate third configuration information.

[0162] As an example, the default rule could be: set the SSID (Service Set Identifier) ​​of the network provided by the target device to the prefix "eufy_" plus the SN (Serial Number) of the target device, and set the PWD (Password) to an 8-digit random password. Network configuration information may include, but is not limited to: the wireless network account and the wireless network password.

[0163] The second step is to configure the target device using the third configuration information.

[0164] In some cases, after configuring the target device using the third configuration information, the SSID and password can be further communicated to other devices via a private management frame communication protocol, enabling other devices to connect to the AP hotspot when they come into the WiFi coverage area of ​​the target.

[0165] It is understandable that, in the above-mentioned optional implementation methods, when the network configuration information of the base station to which the wireless network chip in the previous mode was connected cannot be directly obtained, the network of the target device can be automatically generated and configured according to preset rules. Thus, after configuration is completed, other devices can still access the hotspot. Therefore, even when the network configuration information of the base station to which the wireless network chip in the previous mode was connected cannot be directly obtained, other devices can still automatically access the network without being aware of it when they are within the coverage area of ​​the network signal provided by the target device, and the efficiency of other devices connecting to the target device can be improved.

[0166] In some optional implementations of this embodiment, before switching the operating mode of the wireless network chip of the target device to access point mode, the following steps may also be performed:

[0167] The first step is to obtain the first address information.

[0168] The first address information is the address information of the base station to which the wireless network chip of the target device is connected.

[0169] As an example, the first address information may include, but is not limited to: channel, IP (Internet Protocol) address, and subnet mask.

[0170] The subnet mask is a 32-bit binary number used to distinguish between the network address and the host address in an IP address. It can be used in conjunction with an IP address to determine the network range to which an IP address belongs.

[0171] An IP address is a contiguous range of IP addresses, defined and divided by a subnet mask. Devices on the same network segment can communicate directly, while devices on different network segments need to communicate through a router.

[0172] The second step is to configure the address information of the target device based on the first address information, after obtaining the first address information.

[0173] As an example, if the first address information includes an IP network segment and a subnet mask, the target device's hotspot AP can be set to an IP network segment different from the base station based on the subnet mask and IP network segment in the first address information, and then the corresponding routing rules can be configured.

[0174] Routing rules are used to determine how to forward data packets. Based on the destination IP address and information in the routing table, it can be determined from which interface the data packet should be sent out to reach the target network segment.

[0175] It is understood that, in the above optional implementation methods, the address information of the target device can be configured based on the address information of the base station to which the wireless network chip of the target device is connected. In this way, the address of the target device can be avoided from conflicting with the address of the base station.

[0176] In some optional implementations of this embodiment, before switching the operating mode of the wireless network chip of the target device to access point mode, the following steps may also be performed:

[0177] The first step is to obtain the first address information.

[0178] The first address information is the address information of the base station to which the wireless network chip of the target device is connected.

[0179] As an example, the first address information may include, but is not limited to: channel, IP (Internet Protocol) address, and subnet mask.

[0180] The subnet mask is a 32-bit binary number used to distinguish between the network address and the host address in an IP address. It is used in conjunction with the IP address to determine the network range to which an IP address belongs.

[0181] An IP address is a contiguous range of IP addresses, defined and divided by a subnet mask. Devices on the same network segment can communicate directly, while devices on different network segments need to communicate through a router.

[0182] The second step is to configure the address information of the target device to a preset address information if the first address information is not obtained.

[0183] The preset address information can be a pre-determined address. For example, the preset address information could be: IP address segment 192.168.1.1, subnet mask 255.255.0.0.

[0184] It is understood that, in the above optional implementation methods, if the first address information cannot be obtained, the address information of the target device can be configured to a preset address information, which can improve the efficiency of network configuration.

[0185] It should be noted that, where there is no conflict, the technical features described in different alternative implementations can be included in the same embodiment. For the sake of brevity, they will not be elaborated here.

[0186] The network signal provision method provided in this application can detect the device connection status of a target device, and then, based on the device connection status, determine whether the target device is connected to a target plug-in, wherein the data transmission distance of the target plug-in is greater than a preset distance threshold. Then, if the target device is connected to the target plug-in, the operating mode of the target device's wireless local area network chip is switched to access point mode, so that the target device acts as an access point to provide network signals, wherein the network signals are used for data transmission. Therefore, when the target device is connected to the target plug-in, the operating mode of the target device's wireless network chip can be automatically switched to access point mode, so that the target device acts as an access point to provide network signals. In this way, by connecting to the target plug-in, the coverage area of ​​the network signal can be expanded, thereby extending the data transmission distance.

[0187] Figure 2 is a flowchart illustrating another method for providing network signals in a security scenario according to an embodiment of this application. As shown in Figure 2, the method specifically includes:

[0188] Step 201: Detect the device connection status of the target device.

[0189] In this embodiment, step 201 is basically the same as step 101 in the embodiment corresponding to Figure 1, and will not be described again here.

[0190] Step 202: Determine whether the device connection status has changed.

[0191] In this embodiment, when the device connection state changes from one state to another, it can be determined that the device connection state has changed.

[0192] Step 203: If the device connection state changes, determine the event type of the event that triggered the change in the device connection state.

[0193] In this embodiment, the event type may include one of the following: the target device is in a state of being connected to other devices, the target device is in a state of being disconnected from other devices, other devices are inserted into the target device, and other devices are removed from the target device.

[0194] Step 204: Determine whether the event type indicates device access.

[0195] Step 205: If the event type indicates device access, obtain the description information of the access device of the target device.

[0196] In this embodiment, the access device can be another device that accesses the target device. For example, the access device can be the target plugin mentioned above, or it can be something other than the target plugin mentioned above.

[0197] The description information can be used to uniquely identify the aforementioned access devices. For example, the description information could be: Vendor ID, Product ID, etc.

[0198] Step 206: Based on the description information, determine whether the target device is connected to the target plugin, wherein the data transmission distance of the target plugin is greater than a preset distance threshold.

[0199] In this embodiment, after obtaining the description information, it can be further determined whether the target device is connected to the target plugin through the description information.

[0200] Step 207: When the target device is connected to the target plug-in, switch the working mode of the wireless network chip of the target device to access point mode so that the target device provides network signals as an access point, wherein the network signals are used for data transmission.

[0201] In this embodiment, step 207 is basically the same as step 103 in the embodiment corresponding to Figure 1, and will not be described again here.

[0202] In some optional implementations of this embodiment, when the event type indicates device access, the description information of the access device of the target device can be obtained in the following manner:

[0203] The first step is to send a target request to the access device of the target device.

[0204] The target request is used to request description information of the access device.

[0205] The second step is to receive the description information returned by the access device.

[0206] It is understandable that, among the above optional implementation methods, requesting the description information from the access device can improve the accuracy of obtaining the description information.

[0207] It should be noted that, in addition to the contents described above, this embodiment may also include the corresponding technical features described in the embodiment corresponding to FIG1, thereby achieving the technical effect of the method for providing network signals in the security scenario shown in FIG1. ​​For details, please refer to the relevant description in FIG1. ​​For the sake of brevity, it will not be elaborated here.

[0208] The method for providing network signals in a security scenario provided in this application embodiment can determine whether the target device is connected to a target plugin based on the description information of the connected device when the device connection status of the target device changes and the event type of the event that triggers the change in device connection status indicates device access. This improves the accuracy of determining whether the target device is connected to the target plugin.

[0209] Figure 3 is a flowchart illustrating a method for establishing a network connection in a security scenario according to an embodiment of this application. This method can be applied to one or more electronic devices such as network cameras, smartphones, laptops, desktop computers, portable computers, and servers. Furthermore, the execution entity of this method can be hardware or software. When the execution entity is hardware, it can be one or more of the aforementioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the execution entity is software, this method can be implemented as multiple software programs or software modules, or as a single software program or software module. No specific limitations are imposed here.

[0210] In some cases, the entity that performs the method of establishing a network connection in a security scenario can be a network camera, and the entity that performs the method of providing network signals in a security scenario can be another network camera.

[0211] As shown in Figure 3, the method specifically includes:

[0212] Step 301: Determine the target network signal found by the networked device.

[0213] In this embodiment, the network-connected device can be any device to be connected to the network. As an example, the network-connected device may include, but is not limited to, network cameras, smartphones, laptops, desktop computers, and portable computers.

[0214] The target network signal can include all network signals detected by the connected device.

[0215] Step 302: Based on the target network signal, determine whether to establish a network connection with the target device, wherein the target device is used to provide network signals in accordance with the method for providing network signals in the security scenario.

[0216] In this embodiment, the target device can be any device. As an example, the target device may include, but is not limited to, a network camera, a smartphone, a laptop, a desktop computer, a portable computer, etc.

[0217] The aforementioned network-connected device and the aforementioned target device can be two different devices. The network-connected device and the target device can belong to the same category or different categories. For example, both the target device and the network-connected device can be network cameras.

[0218] In some cases, the networked device may be a device without the target plug-in inserted.

[0219] The target plugin's data transmission distance exceeds a preset distance threshold. In other words, the target plugin can be a long-distance data transmission plugin, such as a long-distance image transmission plugin.

[0220] The aforementioned preset distance threshold can be a predetermined distance value. For example, the preset distance threshold can be greater than or equal to 100 meters.

[0221] A long-distance data transmission plugin is a software or hardware component used to enable data transmission over a relatively long distance. Typically, the data transmission distance of a long-distance data transmission plugin is greater than or equal to 100 meters.

[0222] A long-distance image transmission plugin is a device or module that enables image data transmission over a relatively long distance. Typically, long-distance image transmission plugins can transmit image data over a distance greater than or equal to 100 meters.

[0223] In some optional implementations of this embodiment, the following method can be used to determine whether to establish a network connection with the target device based on the target network signal:

[0224] If the target network signal includes a network signal provided by the target device according to the method of providing network signals in the security scenario, and the target network signal does not include a network signal provided by the base station, then it is determined that a network connection is established with the target device.

[0225] It is understandable that in the above optional implementation methods, if the network device is far from the base station and is not within the coverage area of ​​the base station's network signal, but is within the coverage area of ​​the network signal provided by the target device, the network device can establish a network connection with the target device and thus realize data transmission, thereby increasing the data transmission distance.

[0226] In some optional implementations of this embodiment, after determining the target network signal searched by the networked device, the following steps may also be performed:

[0227] When the target network signal includes a network signal provided by the target device according to the method of providing network signals in the security scenario, and the target network signal includes a network signal provided by the base station, the network device is controlled to establish a network connection with the base station.

[0228] It is understandable that in the above optional implementation methods, when the network device is located within the coverage area of ​​the base station's network signal and also within the coverage area of ​​the network signal provided by the target device, the network device can preferentially connect to the network provided by the base station, thereby improving the stability of data transmission.

[0229] Step 303: If it is determined that a network connection has been established with the target device, control the networked device to establish a network connection with the target device and to transmit data through the established network connection.

[0230] In this embodiment, after the network connection is established between the network device and the target device, data transmission can be performed through the established network connection.

[0231] It should be noted that, where there is no conflict, the technical features described in different alternative implementations can be included in the same embodiment. For the sake of brevity, they will not be elaborated here.

[0232] The method for establishing a network connection in a security scenario provided in this application embodiment determines a target network signal searched by a networked device, and then determines whether to establish a network connection with the target device based on the target network signal. The target device provides a network signal according to the method for providing network signals in the security scenario. Then, if it is determined that a network connection will be established with the target device, the networked device is controlled to establish the network connection with the target device and to transmit data through the established network connection. Therefore, the networked device can establish network connections with target devices over a wider range, thereby extending the data transmission distance.

[0233] The following describes the embodiments of this application by way of example. However, it should be noted that the following content is only used to understand the technical solutions of the embodiments of this application and does not constitute a limitation on the protection scope of the embodiments of this application.

[0234] Before introducing this plan, the following explanations are provided for the technical terms used in it:

[0235] SSID is the name of a WiFi network.

[0236] An access point (AP) is a device that provides wireless network connectivity.

[0237] STA mode is the mode in which a WiFi device connects to an AP as a client.

[0238] AP mode is a mode in which a WiFi device acts as an access point to provide wireless network connectivity.

[0239] A channel is a frequency range used in wireless communication.

[0240] DHCP (Dynamic Host Configuration Protocol) can be used to automatically assign IP addresses.

[0241] dnsmasq: A lightweight DHCP and DNS (Domain Name System) server.

[0242] hostapd: A tool for configuring and managing AP modes.

[0243] wpa_supplicant: A tool for managing WiFi connections, typically used in STA mode.

[0244] Current IPC (IP Camera, network camera) and similar products (i.e., the aforementioned target devices) typically use wireless communication technologies such as WiFi for easy installation and use. However, WiFi has a relatively short operating range, making it difficult to meet the communication needs of scenarios requiring whole-house or whole-farm coverage.

[0245] Therefore, for these scenarios, this solution has developed accessories and other products that support long-distance image transmission (i.e., the aforementioned target plug-in, which is an auxiliary device or component that can help achieve long-distance image transmission). However, when these IPCs are used with these long-distance accessories, their original WiFi chip will be wasted if it is in STA mode.

[0246] Based on considerations of maximizing utilization and saving costs, this solution will connect to the WiFi of long-distance image transmission accessories, enable the AP (Access Point) function, and negotiate the same SSID and PWD (i.e., the second configuration information mentioned above) as the original base station. In this way, users can continue to use low-cost WiFi access to expand the monitoring area on the basis of this long-distance IPC without having to perform re-pairing or other actions, which is both cost-effective and convenient.

[0247] The WiFi chip originally operated in STA mode for IPC products. When connected to a base station hotspot within WiFi range, the IPC device could record information such as the base station's hotspot account (i.e., the first configuration information mentioned above), password (i.e., the first address information mentioned above), channel (i.e., the first address information mentioned above), IP network segment (i.e., the first address information mentioned above), and network mask (i.e., the first address information mentioned above). Then, by extending the distance between the IPC device and the base station and using a long-distance image transmission plugin, the IPC device could continue to communicate with the base station, but the WiFi chip was not working at this time.

[0248] Here, the WiFi chip can be utilized by switching its operating mode from STA mode to AP mode, allowing other devices (i.e., the aforementioned network devices) to connect to it, thereby extending the network coverage.

[0249] The following are the differences between general scenarios and distance-extended scenarios:

[0250] As shown in Figure 4A, in a typical WiFi connection scenario, the base station's Ethernet port connects to the external network, and multiple IPC devices are connected to its AP hotspot.

[0251] As shown in Figure 4B, in the distance extension scenario, both the base station and the IPC device are connected to the long-distance image transmission plugin. The IPC device can also switch the working mode of the WiFi chip to AP mode, allowing other IPC devices (i.e., the aforementioned network devices) to connect, thus playing a role in distance extension.

[0252] The automatic mode switching process is shown in Figure 4C. When the IPC device (i.e. the target device mentioned above) is connected to the long-distance image transmission plug-in through the USB (Universal Serial Bus) interface, the USB controller in the IPC device can detect the change in physical connection (i.e., whether the device connection status has changed) and generate a hardware interrupt signal.

[0253] After receiving the signal, the kernel of the IPC device calls the corresponding interrupt handler. The interrupt handler reads the status register of the USB controller to confirm the specific event type (such as device insertion, device removal, etc.).

[0254] The device enumeration process begins, its purpose being to identify and initialize newly connected USB devices (i.e., the access devices mentioned above) so that the host can communicate with them. The enumeration process involves sending a series of standard USB requests to obtain device descriptor information (such as Vendor ID, Product ID, etc.) and assigning an address to the USB device.

[0255] Specifically, the enumeration process includes:

[0256] a. Obtaining the USB Device Descriptor: The IPC device sends a GET_DESCRIPTOR request (i.e., the target request mentioned above) to the long-distance image transmission plugin to obtain the device descriptor (i.e., the description information mentioned above). The device descriptor contains basic information about the device, such as Vendor ID, Product ID, and device class.

[0257] b. Reset device: The IPC device sends a reset signal to the long-distance image transmission plug-in to ensure that the plug-in is in a known state.

[0258] c. Address allocation: The IPC device sends a SET_ADDRESS request to the long-distance image transmission plugin to allocate a unique address for the long-distance image transmission plugin.

[0259] d. Configuration settings: The IPC device sends a SET_CONFIGURATION request to the long-distance image transmission plugin to set the configuration information and put the plugin into working state.

[0260] The IPC device listens for kernel events and determines whether it is a long-distance image transmission plugin access based on the device descriptor information (Vendor ID, Product ID). If so, it triggers the WiFi chip to switch its working mode from STA mode to AP mode.

[0261] During network configuration, unified configuration can be performed without the user's awareness, and connection information does not need to be reconfigured.

[0262] When an IPC device connects to a base station hotspot using a WiFi chip in STA mode, the IPC device can record information such as the base station's hotspot account, password, channel, IP network segment, and subnet mask into flash memory for storage.

[0263] AP Hotspot Information Synchronization: When the IPC-A device (i.e. the target device mentioned above) is connected to the long-distance image transmission plugin, the WiFi chip of the IPC-A device can switch to AP mode, at which point it will determine whether base station information has been recorded.

[0264] If the flash memory contains information about the previously connected base station, the relevant information will be extracted and configured. Once the configuration is complete, IPC-A will also have an AP hotspot that is identical to the base station, allowing other IPCs (i.e., the aforementioned network devices, such as IPC-B) to access and extend the distance.

[0265] When IPC-B was originally connected to a base station, or when a user purchases it and first pairs and binds it to a base station before taking it near IPC-A for use, IPC-B can automatically access the hotspot function provided by IPC-A, allowing users to easily complete the installation and deployment.

[0266] If there is no relevant base station information in the flash, the SSID of the IPC-A device AP is set to the prefix "eufy_" plus the device SN number, and the password PWD is set to an 8-digit random password. Then, the SSID and password are communicated to other IPC devices (such as IPC-B) through the private management frame communication protocol, so that other IPC-B devices can connect to the AP hotspot when they come into the WiFi coverage area of ​​the IPC-A. See Figures 4D and 4E.

[0267] AP interface enabled:

[0268] Stop the current WiFi connection (by default, long-distance image transmission chips are preferred for communication). Then, write the synchronized AP hotspot information to the hostapd.conf configuration file, start the hostapd and dnsmasq processes, and launch the AP hotspot's network interface. If the base station's IP address segment and subnet mask information are available, configure the IPC device's hotspot AP to a different IP address segment than the base station, and then configure the corresponding routing rules. If the base station's IP address segment and subnet mask information are not available, the default configuration is 192.168.1.1 with a subnet mask of 255.255.0.0.

[0269] It should be noted that, in addition to the contents described above, this embodiment may also include the technical features described in the above embodiments, thereby achieving the technical effects of the method shown above. Please refer to the above description for details. For the sake of brevity, it will not be elaborated here.

[0270] This solution can detect changes in the physical connection of the USB interface and automatically switch the WiFi chip's operating mode from STA mode to AP mode. This automated mode switching reduces manual operation by the user and improves the device's intelligence and ease of use. In STA mode, the IPC device records the base station's hotspot information (such as SSID, password, channel, IP network segment, subnet mask, etc.) and automatically configures this information after switching to AP mode. This unified configuration method eliminates the need for users to reconfigure connection information, improving the user experience. By connecting a long-distance image transmission plugin, the device can continue to communicate with the base station even when far away and extend network coverage using the WiFi chip's AP mode. This effectively solves the problem of limited coverage in traditional WiFi and meets communication needs in large-scale scenarios. When other IPC devices enter the WiFi coverage area of ​​an AP-mode IPC device, they can automatically connect to that AP hotspot, achieving seamless network coverage extension. This automatic connection mechanism improves system intelligence and user convenience. Therefore, through automatic mode switching and automatic connection mechanisms, the system's intelligence level is improved. Unified configuration and automatic connection reduce manual operation by the user and enhance the user experience. By combining a long-distance image transmission plugin with AP mode, the problem of limited coverage of traditional WiFi is solved, meeting the communication needs in a wide range of scenarios.

[0271] Figure 5 is a schematic diagram of a device for providing network signals in a security scenario according to an embodiment of this application. Specifically, it includes:

[0272] Detection unit 401 is used to detect the device connection status of the target device;

[0273] The first determining unit 402 is used to determine whether the target device is connected to the target plug-in based on the device connection status, wherein the data transmission distance of the target plug-in is greater than a preset distance threshold.

[0274] The switching unit 403 is used to switch the working mode of the wireless local area network chip of the target device to the access point mode when the target device is connected to the target plug-in, so that the target device provides network signals as an access point, wherein the network signals are used for data transmission.

[0275] In one possible implementation, determining whether the target device is connected to the target plug-in based on the device connection status includes:

[0276] Determine whether the device connection status has changed;

[0277] In the event that the device connection state changes, determine the event type that triggered the change in the device connection state;

[0278] Determine whether the event type indicates device access;

[0279] When the event type indicates device access, obtain the description information of the access device of the target device;

[0280] Based on the description information, it is determined whether the target device is connected to the target plugin.

[0281] In one possible implementation, when the event type indicates device access, obtaining the description information of the access device of the target device includes:

[0282] Send a target request to the access device of the target device, wherein the target request is used to request description information of the access device;

[0283] Receive the description information returned by the access device.

[0284] In one possible implementation, when the target device accesses the target plug-in, switching the operating mode of the target device's wireless local area network chip to access point mode includes:

[0285] When the target device is connected to the target plug-in, a reset signal is sent to the target plug-in, wherein the reset signal is used to indicate that the target plug-in enters a preset state;

[0286] After sending the reset signal to the target plug-in, the operating mode of the wireless local area network chip of the target device is switched to access point mode.

[0287] In one possible implementation, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0288] The second determining unit (not shown in the figure) is used to determine the first configuration information, wherein the first configuration information is: the network configuration information of the base station to which the wireless local area network chip of the target device is connected in the pre-switching mode, wherein the pre-switching mode indicates: the working mode of the wireless local area network chip before switching to the access point mode;

[0289] The third determining unit (not shown in the figure) is used to determine the first configuration information as the second configuration information, wherein the second configuration information represents the network configuration information of the base station to which the wireless local area network chip is connected in access point mode;

[0290] A first configuration unit (not shown in the figure) is used to configure the target device using the second configuration information.

[0291] In one possible implementation, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0292] A generation unit (not shown in the figure) is used to generate third configuration information according to preset rules, wherein the third configuration information represents the network configuration information of the base station to which the wireless local area network chip is connected in access point mode;

[0293] The second configuration unit (not shown in the figure) is used to configure the target device using the third configuration information.

[0294] In one possible implementation, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0295] The first acquisition unit (not shown in the figure) is used to acquire first address information, wherein the first address information is: the address information of the base station to which the wireless local area network chip of the target device is connected;

[0296] The third configuration unit (not shown in the figure) is used to configure the address information of the target device based on the first address information when the first address information is obtained.

[0297] In one possible implementation, before switching the operating mode of the wireless local area network chip of the target device to access point mode, the apparatus further includes:

[0298] The second acquisition unit (not shown in the figure) is used to acquire the first address information, wherein the first address information is: the address information of the base station to which the wireless local area network chip of the target device is connected;

[0299] The fourth configuration unit (not shown in the figure) is used to configure the address information of the target device to preset address information when the first address information is not obtained.

[0300] The device for providing network signals in the security scenario provided in this embodiment can be the same as the device for providing network signals in the security scenario shown in Figure 5. It can execute all the steps of the methods for providing network signals in the various security scenarios described above, thereby achieving the technical effects of the methods for providing network signals in the various security scenarios described above. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.

[0301] Figure 6 is a schematic diagram of a device for establishing a network connection in a security scenario provided in an embodiment of this application. Specifically, it includes:

[0302] The fourth determining unit 411 is used to determine the target network signal searched by the networked device;

[0303] The fifth determining unit 412 is used to determine whether to establish a network connection with the target device based on the target network signal, wherein the target device is used to provide network signals in accordance with the method for providing network signals in the security scenario;

[0304] The first control unit 413 is configured to, upon determining that a network connection has been established with the target device, control the networked device to establish a network connection with the target device and to transmit data through the established network connection.

[0305] In one possible implementation, determining whether to establish a network connection with the target device based on the target network signal includes:

[0306] If the target network signal includes a network signal provided by the target device according to the method of providing network signals in the security scenario, and the target network signal does not include a network signal provided by the base station, then it is determined that a network connection is established with the target device.

[0307] In one possible implementation, after determining the target network signal detected by the networked device, the apparatus further includes:

[0308] The second control unit (not shown in the figure) is used to control the network device to establish a network connection with the base station when the target network signal includes a network signal provided by the target device in accordance with the method of providing network signals in the security scenario, and the target network signal includes a network signal provided by the base station.

[0309] The device for establishing a network connection in a security scenario provided in this embodiment can be the same as the device for establishing a network connection in a security scenario shown in Figure 6. It can execute all the steps of the methods for establishing a network connection in various security scenarios described above, thereby achieving the technical effects of the methods for establishing a network connection in various security scenarios described above. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.

[0310] Figure 7 is a schematic diagram of an electronic device provided in an embodiment of this application. The electronic device 500 shown in Figure 7 includes: at least one processor 501, a memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together through a bus system 505. It is understood that the bus system 505 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 505 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 505 in Figure 7.

[0311] The user interface 503 may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).

[0312] It is understood that the memory 502 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0313] In some implementations, memory 502 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 5021 and application program 5022.

[0314] The operating system 5021 includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 5022 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this application embodiment can be included in application program 5022.

[0315] In this embodiment, by calling the program or instructions stored in memory 502, specifically the program or instructions stored in application program 5022, processor 501 executes the method steps provided in each method embodiment, including, for example:

[0316] Detect the device connection status of the target device;

[0317] Based on the device connection status, it is determined whether the target device is connected to the target plugin, wherein the data transmission distance of the target plugin is greater than a preset distance threshold;

[0318] When the target device is connected to the target plug-in, the operating mode of the target device's wireless network chip is switched to access point mode so that the target device acts as an access point to provide network signals, wherein the network signals are used for data transmission.

[0319] or,

[0320] Determine the target network signal detected by the connected device;

[0321] Based on the target network signal, it is determined whether to establish a network connection with the target device, wherein the target device is used to provide network signals in accordance with the method for providing network signals in the security scenario;

[0322] If it is determined that a network connection has been established with the target device, the network device is controlled to establish a network connection with the target device and to transmit data through the established network connection.

[0323] The methods disclosed in the embodiments of this application can be applied to or implemented by processor 501. Processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or can be executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 502. Processor 501 reads the information in memory 502 and, in conjunction with its hardware, completes the steps of the above method.

[0324] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described above, or combinations thereof.

[0325] For software implementation, the techniques described herein can be implemented by units that perform the functions described above. The software code can be stored in memory and executed by a processor. The memory can be implemented within the processor or external to the processor.

[0326] The electronic device provided in this embodiment can be the electronic device shown in Figure 7, which can execute all the steps of the methods described above, thereby achieving the technical effects of the methods described above. For details, please refer to the relevant descriptions above. For the sake of brevity, it will not be elaborated here.

[0327] In a specific implementation, this application also provides a computer storage medium, wherein the computer storage medium may store a program, and the program, when executed, may include some or all of the steps in the foregoing embodiments. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0328] Those skilled in the art will clearly understand that the techniques in the embodiments of this application can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application or some parts of the embodiments.

[0329] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, for the embodiments of ..., since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0330] The embodiments described above do not constitute a limitation on the scope of protection of this application.

Claims

1. A method for providing network signals in a security scenario, characterized in that, The method includes: Detect the device connection status of the target device; Based on the device connection status, it is determined whether the target device is connected to the target plugin, wherein the data transmission distance of the target plugin is greater than a preset distance threshold; When the target device is connected to the target plug-in, the operating mode of the target device's wireless network chip is switched to access point mode so that the target device acts as an access point to provide network signals, wherein the network signals are used for data transmission.

2. The method according to claim 1, characterized in that, Determining whether the target device is connected to the target plugin based on the device connection status includes: Determine whether the device connection status has changed; In the event that the device connection state changes, determine the event type that triggered the change in the device connection state; Determine whether the event type indicates device access; When the event type indicates device access, obtain the description information of the access device of the target device; Based on the description information, it is determined whether the target device is connected to the target plugin.

3. The method according to claim 2, characterized in that, When the event type indicates device access, obtaining the description information of the access device of the target device includes: Send a target request to the access device of the target device, wherein the target request is used to request description information of the access device; Receive the description information returned by the access device.

4. The method according to claim 1, characterized in that, Determining whether the target device is connected to the target plugin based on the device connection status includes: When the device connection status indicates that the target device is disconnected from other devices, it is determined that the target device is not connected to the target plug-in; If the device connection status indicates that the target device is plugged into another device, it is determined that the target device is connected to the target plug-in.

5. The method according to claim 4, characterized in that, The target device and the other devices are all network cameras.

6. The method according to claim 4, characterized in that, The other devices are those that have not had the target plug-in inserted.

7. The method according to claim 1, characterized in that, When the target device accesses the target plug-in, switching the operating mode of the target device's wireless network chip to access point mode includes: When the target device is connected to the target plug-in, a reset signal is sent to the target plug-in, wherein the reset signal is used to indicate that the target plug-in enters a preset state; After sending the reset signal to the target plug-in, the operating mode of the wireless network chip of the target device is switched to access point mode.

8. The method according to any one of claims 1-7, characterized in that, Before switching the operating mode of the wireless network chip of the target device to access point mode, the method further includes: First configuration information is determined, wherein the first configuration information is: network configuration information of the base station to which the wireless network chip of the target device is connected in the pre-switching mode, wherein the pre-switching mode represents: the working mode of the wireless network chip before switching to the access point mode; The first configuration information is determined as the second configuration information, wherein the second configuration information represents the network configuration information of the base station to which the wireless network chip is connected in access point mode; The target device is configured using the second configuration information.

9. The method according to any one of claims 1-7, characterized in that, Before switching the operating mode of the wireless network chip of the target device to access point mode, the method further includes: According to preset rules, third configuration information is generated, wherein the third configuration information represents the network configuration information of the base station to which the wireless network chip is connected in access point mode; The target device is configured using the third configuration information.

10. The method according to any one of claims 1-7, characterized in that, Before switching the operating mode of the wireless network chip of the target device to access point mode, the method further includes: Obtain first address information, wherein the first address information is: the address information of the base station to which the wireless network chip of the target device is connected; If the first address information is obtained, the address information of the target device is configured based on the first address information.

11. The method according to any one of claims 1-7, characterized in that, Before switching the operating mode of the wireless network chip of the target device to access point mode, the method further includes: Obtain first address information, wherein the first address information is: the address information of the base station to which the wireless network chip of the target device is connected; If the first address information is not obtained, the address information of the target device is configured to a preset address information.

12. A method for establishing a network connection in a security scenario, characterized in that, The method includes: Determine the target network signal detected by the connected device; Based on the target network signal, it is determined whether to establish a network connection with the target device, wherein the target device is used to provide a network signal in accordance with the method for providing network signals in the security scenario according to any one of claims 1-11; If it is determined that a network connection has been established with the target device, the network device is controlled to establish a network connection with the target device and to transmit data through the established network connection.

13. The method according to claim 12, characterized in that, The step of determining whether to establish a network connection with the target device based on the target network signal includes: If the target network signal includes a network signal provided by the method for providing network signals in the security scenario according to any one of claims 1-10, and the target network signal does not include a network signal provided by a base station, then it is determined that a network connection with the target device is established.

14. The method according to claim 12 or 13, characterized in that, After determining the target network signal detected by the networked device, the method further includes: When the target network signal includes a network signal provided by the method for providing network signals in the security scenario according to any one of claims 1-8, and the target network signal includes a network signal provided by a base station, the network device is controlled to establish a network connection with the base station.

15. The method according to claim 12, characterized in that, Both the target device and the network-connected device are network cameras.

16. The method according to claim 12, characterized in that, The networked device is not a device into which the target plug-in has been inserted.

17. A device for providing network signals in a security scenario, characterized in that, The device includes: The detection unit is used to detect the device connection status of the target device; The first determining unit is used to determine whether the target device is connected to the target plug-in based on the device connection status, wherein the data transmission distance of the target plug-in is greater than a preset distance threshold. The switching unit is used to switch the operating mode of the wireless network chip of the target device to the access point mode when the target device is connected to the target plug-in, so that the target device provides network signals as an access point, wherein the network signals are used for data transmission.

18. A device for establishing a network connection in a security scenario, characterized in that, The device includes: The fourth determining unit is used to determine the target network signal searched by the networked device; The fifth determining unit is used to determine whether to establish a network connection with the target device based on the target network signal, wherein the target device is used to provide a network signal according to the method for providing network signals in the security scenario according to any one of claims 1-8; The first control unit is configured to, upon determining that a network connection has been established with the target device, control the networked device to establish a network connection with the target device and to transmit data through the established network connection.

19. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, it implements the method for providing network signals in the security scenario according to any one of claims 1-11, or implements the method for establishing network connections in the security scenario according to any one of claims 12-16.

20. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for providing network signals in the security scenario according to any one of claims 1-11, or implements the method for establishing network connections in the security scenario according to any one of claims 12-16.