Automatic collaboration method, device and storage medium of network devices
By detecting and controlling the collaboration mode of network devices, the problem of high-speed and stable Internet access when multiple devices are connected to PCs at the same time is solved, and automatic collaborative access to the network is realized, routing settings are simplified and user experience is improved.
Patent Information
- Application Number
- CN202011433605.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-10
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2040-12-10
AI Technical Summary
When existing mobile wireless data terminals connect to PCs at the same time with multiple devices, they cannot achieve high-speed and stable Internet access, and the settings and routing are cumbersome.
By detecting the connection between the second network device and the terminal, the first network device and the second network device are controlled to enter the collaboration mode, and automatic collaboration is realized to access the network.
Without the need for complex configuration, users can access the network at high speed and stability through multiple network devices, simplifying routing settings and improving user experience.
Smart Images

Figure CN114630390B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminals, and in particular to an automatic collaboration method, device and storage medium for network devices. Background Art
[0002] For existing mobile wireless data terminals, such as data cards, portable WiFi and other devices, when multiple devices are connected to a PC at the same time, users can only use one device for data services in the default state without configuring routing. In some cases, for example, different operators in different regions have different delays or speeds when accessing different target websites, or when using multiple devices for rate superposition, users need to use multiple devices to maintain a highly stable connection. At this time, setting up routing is very cumbersome. Summary of the invention
[0003] The embodiment of the present invention provides a method, device and storage medium for automatic collaboration of network devices, which at least enables a user to surf the Internet at high speed and stably without complicated configuration when surfing the Internet through multiple network devices.
[0004] An embodiment of the present invention provides an automatic collaboration method for network devices, the method comprising: after a first network device is connected to a terminal, detecting the connection between a second network device and the terminal; when it is detected that the second network device is connected to the terminal, controlling the first network device and the second network device to enter a collaboration mode; the first network device and the second network device automatically collaborate to enable the terminal to access the network through at least one of the first network device and the second network device that collaborate with each other.
[0005] In one implementation, detecting that the second network device is connected to the terminal includes: when an identifier of the terminal connected to the first network device is consistent with an identifier of the terminal connected to the second network device, determining that the connection between the second network device and the terminal is detected.
[0006] In one embodiment, the method also includes: after the first network device is connected to the terminal, detecting whether the second network device exists around; when the second network device is detected to exist around, the first network device connects to the second network device via short-range communication so as to exchange the identifiers of the terminals connected to each other with the second network device; or when the second network device is detected to exist around, the first network device configures its own state to be searched for subsequent search by other network devices that access the terminal.
[0007] In one implementation, the detecting whether the second network device exists around includes: the first network device detecting whether the second network device of the same model exists around.
[0008] In one embodiment, when it is detected that a second network device is connected to the terminal, controlling the first network device and the second network device to enter a collaborative mode includes: when it is detected that the second network device is connected to the terminal, the first network device and the second network device enter a collaborative mode according to a preset confirmation message or a preset instruction.
[0009] In one embodiment, the first network device and the second network device automatically collaborate to enable the terminal to access the network through at least one of the first network device and the second network device that collaborate with each other, including: the first network device creates a hotspot for the second network device to connect to, and disconnects from the terminal, so that the second network device uses at least one of the first network device and the second network device to access the network when the terminal accesses the network; or, the first network device connects to the second network device after the second network device creates the hotspot, and after the second network device disconnects from the terminal, uses at least one of the first network device and the second network device to access the network when the terminal accesses the network.
[0010] In one embodiment, accessing the network using at least one of the first network device and the second network device includes: receiving operation information used to access the network; when the operation information is operation information for downloading a file, accessing the network using the first network device and the second network device; or when the operation information is operation information for non-downloading a file, accessing the network using the first network device or the second network device.
[0011] In one implementation, the accessing the network using the first network device or the second network device includes: obtaining a delay time for the first network device and the second network device to access the network, and accessing the network using a network device with a smaller delay time.
[0012] An embodiment of the present invention provides an automatic collaboration device for network devices, the device comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein the program implements the steps of the automatic collaboration method for network devices described above when executed by the processor.
[0013] An embodiment of the present invention provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned automatic collaboration method of network devices.
[0014] The embodiment of the present invention provides an automatic collaboration method, device and storage medium for network devices. After the first network device is connected to a terminal, it detects whether the second network device is connected to the terminal; when it is detected that the second network device is connected to the terminal, the first network device and the second network device are controlled to enter a collaboration mode; the first network device and the second network device automatically collaborate so that the terminal can access the network through at least one of the first network device and the second network device that collaborate with each other. In this way, when a user accesses the Internet through multiple network devices, high-speed and stable Internet access can be achieved without complex configuration, which simplifies routing settings and improves user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a schematic flow chart of automatic collaboration of network devices provided by an embodiment of the present invention;
[0016] Figure 2 It is a schematic diagram of the system structure in the initial state of multiple devices simultaneously accessing the same PC provided by an embodiment of the present invention;
[0017] Figure 3 is a schematic diagram of the system structure after multiple devices realize the automatic collaboration function provided by an embodiment of the present invention;
[0018] Figure 4 is a schematic flow chart of connecting a device to a PC according to an embodiment of the present invention;
[0019] Figure 5 is a schematic flow chart of automatic negotiation pairing of devices provided in an embodiment of the present invention;
[0020] Figure 6 is a schematic flow chart of a device entering a collaborative mode according to an embodiment of the present invention;
[0021] Figure 7 is a schematic flow chart of executing a routing strategy provided by an embodiment of the present invention;
[0022] Figure 8 is a schematic diagram of the structure of an automatic collaboration device for network devices provided by an embodiment of the present invention;
[0023] Fig. 9 It is a schematic diagram of the structure of an automatic collaboration device of network devices provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0024] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0025] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no special meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0026] The embodiments of the present invention provide a method, apparatus, device and storage medium for automatic collaboration of network devices. After multiple network devices (or wireless data terminals, Internet terminals, etc.) are simultaneously connected to a terminal (e.g., a PC), the method helps a user to simultaneously insert multiple devices into the terminal, so that the multiple network devices automatically collaborate without the need for the user to perform complex configuration, thereby enabling the terminal to access the target network at high speed and stably.
[0027] Figure 1 is a schematic flow chart of automatic collaboration of network devices provided by an embodiment of the present invention, such as Figure 1 As shown, the method may include:
[0028] Step S101: After a first network device is connected to a terminal, detecting a connection between a second network device and the terminal.
[0029] Specifically, the identifier of the terminal connected to the first network device and the identifier of the terminal connected to the second network device are obtained. When the identifier of the terminal connected to the first network device is consistent with the identifier of the terminal connected to the second network device, it is determined that the connection between the second network device and the terminal is detected. Taking the terminal as a PC as an example, the identifier can be the online input and output system name (NetBIOS NAME) of the PC. At this time, the first network device obtains the NetBIOS NAME of the PC to which it is connected, and obtains the NetBIOS NAME of the PC to which the second network device is connected by interacting closely with the second network device. The first network device compares the NetBIOS NAME of the PC to which it is connected and the NetBIOS NAME of the PC to which the second network device is connected. When they are consistent, the first network device determines that the second network device is connected to the same PC, or when they are inconsistent, the first network device determines that the second network device is connected to a different PC, and the close communication connection with the second network device can be disconnected at this time.
[0030] Generally, after the first network device is connected to the terminal, it detects whether the second network device exists in the surrounding area. When the second network device is detected to exist in the surrounding area, the first network device connects to the second network device through a short-distance communication method, so as to exchange the identification of the terminal connected to each other with the second network device, or when it is detected that the second network device does not exist in the surrounding area, the first network device configures its own state to be searched for subsequent search by other network devices connected to the terminal. In one embodiment, after the first network device is connected to the terminal, it detects whether the second network device of the same model exists in the surrounding area; if the second network device of the same model exists in the surrounding area, the first network device connects to the second network device of the same model through a short-distance communication method, so as to exchange the identification of the terminal connected to each other with the second network device of the same model; if the second network device of the same model does not exist in the surrounding area, the first network device configures its own state to be searched for subsequent search by other network devices connected to the terminal. Also taking the case where the terminal is a PC and the identifier is the NetBIOS NAME of the PC as an example, after the first network device is connected to the PC, it can detect whether there is the second network device of the same model around, for example, discovering whether there is the second network device of the same model around through Bluetooth. When it is detected that there is the second network device of the same model around, the first network device connects to the second network device of the same model through a short-range communication method such as Bluetooth, so as to exchange the NetBIOS NAME of the PC to which each is connected with the second network device of the same model. Or when it is detected that there is no second network device of the same model around, the first network device configures its own state to be searched state, so as to be searched by other network devices that are subsequently connected to the PC.
[0031] Step S102: when it is detected that the second network device is connected to the terminal, control the first network device and the second network device to enter a collaboration mode.
[0032] Specifically, when it is detected that the second network device is connected to the terminal, the first network device and the second network device enter the collaboration mode according to a preset confirmation message or a preset instruction.
[0033] Entering the collaboration mode according to a preset confirmation message may include: the first network device obtains a first preset confirmation message from the screen of the first network device and a second preset confirmation message from the second network device, and confirms that the first network device and the second network device enter the collaboration mode according to the first preset confirmation message and the second preset confirmation message. Specifically, when the first preset confirmation message and the second preset confirmation message are both confirmation messages for entering the collaboration mode, the first network device and the second network device can enter the collaboration mode.
[0034] Entering the collaboration mode according to a preset instruction may include: after the first network device and the second network device are connected to the terminal, the first network device and the second network device enter the collaboration mode according to the preset instructions saved by each.
[0035] Step S103: the first network device and the second network device automatically cooperate to enable the terminal to access the network through at least one of the first network device and the second network device that cooperate with each other.
[0036] In one embodiment, the first network device creates a hotspot for the second network device to connect to, and disconnects from the terminal, so that the second network device uses at least one of the first network device and the second network device to access the network when the terminal accesses the network. Specifically, the second network device receives operation information used to access the network. When the operation information is operation information for downloading files, the second network device uses the first network device and the second network device to access the network, that is, speeds up the download by speed superposition, or when the operation information is operation information for non-download files, such as browsing web pages, the second network device uses the first network device or the second network device to access the network. For example, the second network device obtains the delay time of the first network device and the second network device in accessing the network, and uses a network device with a small delay time to access the network.
[0037] In another embodiment, the first network device is connected to the second network device after the second network device creates a hotspot, and after the second network device disconnects from the terminal, the first network device uses at least one of the first network device and the second network device to access the network when the terminal accesses the network. Specifically, the first network device receives operation information used to access the network. When the operation information is operation information for downloading a file, the first network device uses the first network device and the second network device to access the network, that is, speeds up the download by speed superposition, or when the operation information is operation information for browsing a web page, the first network device uses the first network device or the second network device to access the network. For example, the first network device obtains the delay time of the first network device and the second network device in accessing the network, and uses a network device with a small delay time to access the network.
[0038] In the above implementation manner, the hotspot may be a WIFI hotspot or the like.
[0039] It should be noted that the first network device and the second network device of this embodiment can be network devices of the same user. There are many ways to determine whether multiple network devices are network devices of the same user. For example, the Bluetooth signal strength can be used to determine whether device A and device B belong to the same user to avoid user operations. For another example, the two network devices can obtain GPS information and then communicate with a remote server. The remote server determines whether the two network devices belong to the same user in the same area based on the GPS information of the two network devices, so as to enter the collaboration mode.
[0040] The present invention is applied when a terminal realizes a higher speed and more stable network by accessing multiple mobile data devices (or network devices, Internet access devices), and uses automatic collaboration of devices to enable users to achieve network acceleration, latency reduction, automatic routing and other purposes without the need for complex configuration (or without perception).
[0041] Combine the following Figures 2 to 7 , taking the case where the terminal is a PC and the identifier is the NetBIOS NAME of the PC as an example, the present invention is described in detail.
[0042] The present invention solves the IP address conflict problem that may occur when multiple devices are simultaneously plugged into a PC while realizing automatic collaboration of multiple devices when multiple devices are simultaneously connected to the same PC. When resolving IP address conflicts, the mobile data device (or network device, Internet access device) adopts an automatic identification scheme, that is, the mobile data device must be able to automatically identify that there are two mobile data devices connected to the same PC. To implement this scheme, a Bluetooth chip and a WIFI chip must be installed on the mobile data device. The steps may include: device A is plugged into the PC, and the Bluetooth adapter searches for the presence of the same device nearby; device B is plugged into the PC, and the Bluetooth adapter searches for the presence of the same device nearby; if the same device is found, devices A and B simultaneously determine whether the NetBios Name connected to the two devices at the same time is the same. If they are not the same, it is considered that devices A and B are connected to two PCs. If they are the same, Figure 2 As shown, devices A and B simultaneously perform DNS redirection or send authentication information to the PC, so that the user can see a prompt in the operating system interface that the PC is connected to two devices at the same time, asking the user whether to enter the multi-device collaboration mode; if the user uses the multi-device collaboration mode, the device that does not respond to the user's operation will automatically disconnect from the PC. For example, if device A disconnects from the PC, at this time, device A and device B automatically negotiate a WIFI connection; device A establishes a WIFI connection with device B, and at this time the PC connects to device A through device B, as shown in FIG. Figure 3 Through the above steps, device A and device B can be connected to the PC at the same time without the need for the user to perform routing configuration.
[0043] The present invention can realize other functions such as automatic load balancing or automatic routing when realizing automatic collaboration of multiple devices when multiple devices are connected to the same PC at the same time. When realizing automatic collaboration of multiple devices, the steps can be as follows: device A has a WAN port connected to the Internet, a LAN port (wireless) connected to device B, device B has a WAN port (wireless) connected to device A, another WAN port connected to the Internet, and a LAN port connected to the PC, such as Figure 3 As shown; Device B implements intelligent routing. The routing strategy is that if the PC is in download mode, device A is used for acceleration. If the PC is in page browsing or game mode, device B determines the connection status between device A, B and the target before establishing the connection, and uses the device with fast connection to communicate with the target when the connection is established; if device A or device B has insufficient traffic, the WAN port of device A or device B with insufficient traffic is automatically disconnected, and the next time device A or device B with insufficient traffic connects to the PC and performs Bluetooth scanning to establish a WIFI connection, device A or device B with insufficient traffic will not directly establish a connection with the PC. So far, the steps of automatic collaboration of multiple devices have been implemented.
[0044] Figure 4 is a schematic flow chart of a device accessing a PC provided by an embodiment of the present invention, such as Figure 4 As shown, the steps may include:
[0045] Step S401: The network device is plugged into a PC USB port.
[0046] The network device of this embodiment is a USB device, so the process of this embodiment is a USB device process. In practical applications, the network device can also be a WIFI device, and the process of the WIFI device is basically the same as the USB device process of this embodiment, which will not be repeated here.
[0047] Step S402: The virtual RNIDS (Remote Network Driver Interface Specification) network card of the network device communicates normally with the PC.
[0048] Step S403: The network device turns on Bluetooth to scan nearby devices.
[0049] Step S404: The network device determines whether a device of the same model is detected. If no device of the same model is found, step S411 is executed, and the network device enters the Bluetooth search mode to be in the search state. If a device of the same model is found, step S405 is executed, and the Bluetooth of the two devices automatically negotiates a connection.
[0050] It should be noted that if the countdown is stopped, the task will be terminated.
[0051] During implementation, if a Bluetooth device of the same model is found, the user may be prompted whether to enter the collaboration mode, and after the user confirms, an automatic negotiation connection may be performed.
[0052] Generally, the device Bluetooth name uses the model + suffix, for example, the device A name is MobileDataCard_A123, and the device B name is MobileDataCard_B234, so it is possible to confirm whether they are Bluetooth devices of the same model by the device Bluetooth name. It should be noted that the network device of the present invention, whether it is a USB device, a WiFi device or other type of device, can confirm whether the other party has this function by the device name.
[0053] Step S406: After the two devices are connected, they exchange the NetBIOS names of the PCs they are connected to via the Bluetooth protocol.
[0054] Step S407: The network devices determine whether the NetBIOS names of the connected PCs are consistent. If the NetBIOS names are consistent, step S408 is executed to prompt the user whether to enter the collaboration mode. If the NetBIOS names are inconsistent, step S412 is executed and the Bluetooth of the network device enters the search state.
[0055] It should be noted that the present invention prompts the user on the network device screen whether to enter the collaboration mode, and can also use the DNS jump technology to prompt the user on the PC page, thereby improving the user experience.
[0056] Step S409: If the user confirms to enter the collaboration mode on device B, step S410 is executed and the two devices enter the collaboration mode.
[0057] When the user confirms whether to enter the collaboration mode, some network devices with a touch screen can prompt the user whether to enter the collaboration mode through the screen display and buttons of the network device, and click the button to enter the collaboration mode.
[0058] It should be noted that, in this embodiment, the prerequisite for entering the collaboration mode is the same PC (NetBIOSname) and the same user. To prevent a user from illegally entering the collaboration mode by modifying the NetBIOSname nearby, the user must press a button on device B to confirm.
[0059] Figure 5 is a schematic flow chart of automatic negotiation pairing of devices provided in an embodiment of the present invention, such as Figure 5 As shown, the steps may include:
[0060] Step S501-Step S502: Device A has been connected to the PC and communicates with the PC normally. After searching for similar devices around, it enters the search mode and is in the search state.
[0061] Step S503-Step S504: Device B is plugged into the PC and communicates normally with the PC, and starts searching for whether there is a device of the same model nearby.
[0062] Step S505-Step S506: Device B searches for device A of the same model and connects to device A. At this time, device A is connected to device B.
[0063] Steps S507a and S507b: Device A and device B obtain the NetBIOS name of the PC to which they are connected.
[0064] Step S508: Device A confirms that the NetBIos name of the PCs to which device A and device B are respectively connected are consistent, then executes step S509a to prompt the user whether to enter the collaboration mode.
[0065] Step S510a, after confirmation, device A waits for user confirmation on device B (ie, steps S509b and S510b).
[0066] Steps S511a and S511b: After confirmation, device A and device B enter the collaboration mode.
[0067] Figure 6 is a schematic flow chart of a device entering a collaborative mode provided by an embodiment of the present invention, such as Figure 6 As shown, the steps may include:
[0068] Steps S601a and S601b: Device A and device B enter into a collaboration mode.
[0069] Step S602-Step S603: Device B creates a WIFI hotspot, and device A connects to the WIFI hotspot created by device B. The wifissid and password are automatically randomly generated by Bluetooth negotiation and can be hidden so that the user is unaware.
[0070] It should be pointed out that the Wi-Fi hotspot created by device B should use a different network segment from the connection created by device A and PC. For example, if the network segment of device A and PC is 192.168.0.1 and the subnet mask is 255.255.255.0, then the network segment of the connection between device B and device A is 192.168.1.1 and the subnet mask is 255.255.255.0.
[0071] Step S604-Step S605: Device B disconnects from the PC, and the routing policy of device A automatically determines whether to access the Internet through the wireless network of device A or through the wireless network of device B.
[0072] The routing strategy may include the following points: if browsing web pages, the exit is determined based on the Ping value with the target network; if downloading files, the speed of device A and device B are superimposed; if the flow of a device is 0, access to the Internet is automatically stopped. The user uses another device to access the Internet.
[0073] Figure 7 is a schematic flow chart of executing a routing strategy provided by an embodiment of the present invention, such as Figure 7 As shown, the steps may include:
[0074] Step S701: receiving user operation.
[0075] Step S702: Determine whether the operation is used to download files. If so, execute step S703, and superimpose the rates of device A and device B, that is, use device A and device B to download at the same time. If not, execute steps S704 to S706 to confirm that the operation is not used to download files but to browse the web. At this time, the delays of device A and device B are recorded, and the exit with low delay is used to access the network.
[0076] It should be pointed out that routing strategies can be flexible and changeable. For example, when a user is on a long-distance train, the delay in accessing the target network through two network cards changes at any time. It is necessary to record the delay at regular intervals in order to optimize network access.
[0077] Step S707-Step S708: Determine whether device A and device B have traffic. If a device has no traffic, disable the outlet of the device without traffic.
[0078] It should be noted that the present invention is applicable to 2 or more network devices. When applied to more than 2 network devices, since the network devices connected to the PC are connected to other devices via WIFI respectively, the processing steps are consistent with the solutions of the above embodiments.
[0079] It should be noted that after the user unplugs and then plugs back in the network device, the collaboration mode can be entered directly without user selection.
[0080] Figure 8 is a schematic diagram of the structure of an automatic collaboration device for network devices provided by an embodiment of the present invention, such as Figure 8 As shown, the device may include a detection module 81, a control module 82 and a collaboration module 83. Among them:
[0081] The detection module 81 is used to detect the connection between the second network device and the terminal after the first network device is connected to the terminal. Specifically, the detection module 81 obtains the identifier of the terminal connected to the first network device and the identifier of the terminal connected to the second network device. When the identifier of the terminal connected to the first network device is consistent with the identifier of the terminal connected to the second network device, it is determined that the connection between the second network device and the terminal is detected. Taking the terminal as a PC as an example, the identifier can be the online input and output system name (NetBIOS NAME) of the PC. At this time, the detection module 81 obtains the NetBIOS NAME of the PC connected to the first network device, and obtains the NetBIOS NAME of the PC connected to the second network device by interacting with the second network device at close range, and compares the NetBIOS NAME of the PCs connected to the first network device and the second network device respectively. When they are consistent, it is determined that the first network device and the second network device are connected to the same PC. When they are inconsistent, it is determined that the first network device and the second network device are connected to different PCs. At this time, the close range communication connection between the first network device and the second network device can be disconnected. Generally, after the first network device is connected to the terminal, the detection module 81 can detect whether the second network device (for example, the second network device of the same model) exists around the first network device; when it is detected that the second network device (for example, the second network device of the same model) exists around, the first network device and the second network device are connected through short-range communication so that the first network device and the second network device exchange the identifications of their respective connected terminals; or when it is detected that the second network device (for example, the second network device of the same model) does not exist around, the detection module configures the state of the first network device to be searched for subsequent search by other network devices connected to the terminal. Also, taking the case where the terminal is a PC and the identifier is the NetBIOS NAME of the PC as an example, after the first network device is connected to the PC, the detection module 81 can detect whether there is the second network device of the same model around the first network device, for example, by discovering whether there is the second network device of the same model around the first network device through Bluetooth. When it is detected that there is the second network device of the same model around the first network device, the first network device is connected to the second network device of the same model through a short-range communication method such as Bluetooth, so that the first network device and the second network device of the same model can exchange the NetBIOS NAME of the PC to which they are connected respectively. Or, when it is detected that there is no second network device of the same model around the first network device, the first network device is configured to be in a searched state for subsequent search by other network devices connected to the PC.
[0082] The control module 82 is used to control the first network device and the second network device to enter the collaborative mode when it is detected that the second network device is connected to the terminal. Specifically, when the control module 82 detects that the second network device is connected to the terminal, the first network device and the second network device enter the collaborative mode according to a preset confirmation message or a preset instruction. In one embodiment, the confirmation module 82 obtains a first preset confirmation message from the screen of the first network device and a second preset confirmation message from the second network device, and confirms that the first network device and the second network device enter the collaborative mode according to the first preset confirmation message and the second preset confirmation message. Further, when the first preset confirmation message and the second preset confirmation message are both confirmation messages for entering the collaborative mode, the first network device and the second network device can enter the collaborative mode. In another embodiment, after the first network device and the second network device are connected to the terminal, the first network device and the second network device enter the collaborative mode according to their respective saved preset instructions.
[0083] The collaboration module 83 is used to enable the first network device to automatically collaborate with the second network device so that the terminal can access the network through at least one of the first network device and the second network device that collaborate with each other.
[0084] In one embodiment, the collaboration module 83 creates a hotspot (e.g., a WIFI hotspot) for the second network device to connect to the first network device as a hotspot, and disconnects the first network device from the terminal, so that the second network device uses at least one of the first network device and the second network device to access the network when the terminal accesses the network. Specifically, the second network device receives operation information of the user accessing the network. When the operation information is operation information for downloading files, the second network device uses the first network device and the second network device to access the network, that is, speeds up the download by speed superposition, or when the operation information is operation information for non-download files, such as browsing web pages, the second network device uses the first network device or the second network device to access the network. For example, the second network device obtains the delay time of the first network device and the second network device to access the network, and uses a network device with a small delay time to access the network.
[0085] In another embodiment, the collaboration module 83 connects the first network device to the second network device serving as the hotspot after the second network device creates a hotspot (e.g., a WIFI hotspot), and after the second network device disconnects from the terminal, uses at least one of the first network device and the second network device to access the network when the terminal accesses the network. Specifically, the collaboration module 83 receives operation information of the user accessing the network, and when the operation information is operation information for downloading a file, uses the first network device and the second network device to access the network, that is, speeds up the download by means of rate superposition, or when the operation information is operation information for browsing a web page, uses the first network device or the second network device to access the network, for example, obtains the delay time of the first network device and the second network device in accessing the network, and uses a network device with a small delay time to access the network.
[0086] It should be noted that the first network device and the second network device in this embodiment are network devices of the same user.
[0087] The embodiment of the present invention is applied when a user wants to achieve a higher speed and more stable network by accessing multiple network devices, and uses the automatic collaboration of devices to enable the user to achieve network acceleration, latency reduction, automatic routing and other purposes without the need for complex configuration.
[0088] Fig. 9 is a schematic diagram of the structure of an automatic cooperation device of a network device provided in an embodiment of the present invention, such as Fig. 9 As shown, the device includes a memory 91, a processor 92, and a program stored in the memory 91 and executable on the processor 92. When the program is executed by the processor 92, the steps of the above-mentioned automatic collaboration method of network devices are implemented.
[0089] The processor 92 may be a central processing unit, a digital signal processor or a microprocessor, etc., and the memory 91 may be a RAM, a ROM, an EEPROM, etc.
[0090] In a scenario where users have high demands on the network, the embodiments of the present invention can enable users to access the network through multiple network devices, thereby improving user experience.
[0091] An embodiment of the present invention further provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned automatic collaboration method of network devices.
[0092] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0093] In hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0094] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the present invention is not limited thereby. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the present invention shall be within the scope of the present invention.
Claims
1. A method for automatic collaboration of network devices, characterized in that: The method comprises: After the first network device is connected to the terminal, detecting the connection between the second network device and the terminal; When it is detected that the second network device is connected to the terminal, controlling the first network device and the second network device to enter a collaboration mode; The first network device and the second network device automatically cooperate to enable the terminal to access the network through at least one of the first network device and the second network device that cooperate with each other.
2. The method according to claim 1, characterized in that: The detecting the connection between the second network device and the terminal comprises: When the identifier of the terminal connected to the first network device is consistent with the identifier of the terminal connected to the second network device, it is determined that the connection between the second network device and the terminal is detected.
3. The method according to claim 2, characterized in that The method further comprises: After the first network device is connected to the terminal, detecting whether the second network device exists around; When the second network device is detected to be present in the surrounding, the first network device connects to the second network device through short-distance communication, so as to exchange identifications of the terminals connected to the first network device with the second network device; or When it is detected that the second network device does not exist in the surroundings, the first network device configures its own state to be searched state, so as to be searched by other network devices that subsequently access the terminal.
4. The method according to claim 3, characterized in that: The detecting whether the second network device exists around includes: The first network device detects whether there is the second network device of the same model around.
5. The method according to claim 1, characterized in that When detecting that the second network device is connected to the terminal, controlling the first network device and the second network device to enter the collaboration mode includes: When it is detected that the second network device is connected to the terminal, the first network device and the second network device enter a collaboration mode according to a preset confirmation message or a preset instruction.
6. The method according to claim 1, characterized in that The first network device and the second network device automatically cooperate to enable the terminal to access the network through at least one of the first network device and the second network device that cooperate with each other, including: The first network device creates a hotspot for the second network device to connect to, and disconnects from the terminal, so that the second network device uses at least one of the first network device and the second network device to access the network when the terminal accesses the network; Alternatively, the first network device is connected to the second network device after the second network device creates a hotspot, and after the second network device disconnects from the terminal, the first network device uses at least one of the first network device and the second network device to access the network when the terminal accesses the network.
7. The method according to claim 6, characterized in that The accessing a network by using at least one of the first network device and the second network device comprises: receiving operational information used to access the network; When the operation information is operation information for downloading a file, accessing a network using the first network device and the second network device; or When the operation information is operation information of a file other than downloading, the network is accessed by using the first network device or the second network device.
8. The method according to claim 7, characterized in that The using the first network device or the second network device to access the network comprises: Obtain the delay time of the first network device and the second network device in accessing the network, and use the network device with a smaller delay time to access the network.
9. An automatic cooperation device for network devices, characterized in that: The device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the steps of the automatic collaboration method for network devices according to any one of claims 1 to 8 are implemented.
10. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the automatic collaboration method of network devices according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for network access
CN104243266A