A networking method, apparatus, system, device and storage medium
By using a server to obtain communication addresses and wireless signal source usage information in a multi-wireless signal source environment, and selecting a suitable wireless signal source to connect to the target local area network, the problem of devices being unable to stay on the same local area network in a multi-wireless signal source environment is solved, and stable connection and interaction of devices are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-13
- Publication Date
- 2026-03-17
AI Technical Summary
In environments with multiple wireless signal sources, it is difficult for devices to remain on the same local area network, resulting in unstable network connections and ineffective interaction between devices in interactive service scenarios.
By connecting to the server, the communication addresses of the target local area network devices are obtained, the connection status is determined, and a suitable wireless signal source is selected to ensure that the devices can connect to the target local area network correctly. This includes networking methods with fixed and dynamic policies, and the wireless signal source with the strongest signal or the largest number of devices is preferred.
It enables devices to connect to the target local area network quickly and accurately, reduces the impact of network problems on device interaction, and ensures stable communication between devices within the same local area network.
Smart Images

Figure CN115802445B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and more specifically, to a networking method, apparatus, system, device, and storage medium. Background Technology
[0002] In interactive information-based business scenarios, to enable better interaction between devices in the same space (such as classrooms or conference rooms), these devices need to be on the same local area network (LAN) to reduce the pressure and consumption of external network bandwidth. However, in some interactive business scenarios, there are multiple wireless signal sources, and the different locations of different devices in the same space can lead to varying signal strengths received by each device. Different devices may easily connect to different wireless signal sources, and human error during device operation can also cause devices to connect to incorrect wireless signal sources, resulting in devices in the same space not being on the same LAN. Summary of the Invention
[0003] The present invention aims to overcome at least one defect (deficiency) of the prior art and provide a networking method, apparatus, system, device and storage medium to solve the problem that different devices that need to interact cannot stay on the same local area network when there are multiple wireless signal sources.
[0004] In a first aspect, embodiments of the present invention provide a networking method, applied to a device to be connected to a target local area network, comprising:
[0005] Select one of multiple wireless signal sources as the current wireless signal source, connect to the current wireless signal source, and connect to the server through the current wireless signal source;
[0006] Obtain the communication address of at least one device in the target local area network from the server;
[0007] Determine whether a communication connection can be established between the current wireless signal source and the device corresponding to the communication address based on the obtained communication address;
[0008] If so, then maintain connection to the current wireless signal source;
[0009] If not, obtain the wireless signal source usage information of at least one device in the target local area network from the server, determine a new current wireless signal source based on the wireless signal source usage information, and connect to the new current wireless signal source.
[0010] Optionally, obtaining wireless signal source usage information of at least one device in the target local area network from the server, and determining a new current wireless signal source based on the wireless signal source usage information, including:
[0011] Obtain wireless signal source usage information from at least one device with control authority in the target local area network from the server, and determine the new current wireless signal source as the wireless signal source connected to the device with control authority based on the wireless signal source usage information.
[0012] Alternatively, the server can obtain wireless signal source usage information for at least one device in the target local area network. This wireless signal source usage information is determined by the server based on the ranking of the number of connected devices to the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network. Based on the wireless signal source usage information, the server can determine the new current wireless signal source as either the wireless signal source with the highest number of connected devices or the wireless signal source with the strongest signal strength.
[0013] Optionally, obtaining wireless signal source usage information of at least one device in the target local area network from the server, and determining a new current wireless signal source based on the wireless signal source usage information, including:
[0014] If the networking policy set by the server is a fixed policy, the wireless signal source usage information of at least one device with control authority in the target local area network is obtained from the server, and the new current wireless signal source is determined to be the wireless signal source connected to the device with control authority based on the wireless signal source usage information.
[0015] If the networking policy set by the server is a dynamic policy, then the server obtains the wireless signal source usage information of at least one device in the target local area network. The wireless signal source usage information is determined by the server based on the ranking of the number of connected devices to the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network. Based on the wireless signal source usage information, the server determines the new current wireless signal source to be either the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength.
[0016] Optionally, the networking policy is set on the server by a device with control authority in the target local area network.
[0017] Optionally, if the new current wireless signal source is determined to be the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength, then after connecting to the new current wireless signal source, the method further includes:
[0018] Reassess whether a communication connection can be established between the device corresponding to the new current wireless signal source and the obtained communication address;
[0019] If so, then maintain the connection to the new current wireless signal source;
[0020] If not, then obtain new wireless signal source usage information from the server again, and based on the new wireless signal source usage information, determine the new current wireless signal source as either the wireless signal source with the highest number of connected devices or the wireless signal source with the strongest signal strength, and connect to the new current wireless signal source.
[0021] Optionally, obtaining the communication address of at least one device in the local area network to be connected from the server includes:
[0022] Obtain the communication address of at least one device with control authority in the connected local area network from the server.
[0023] Optionally, before obtaining the communication address of at least one device in the local area network to be connected from the server, the method further includes:
[0024] Obtain the identification number, which is a unique identifier for the local area network;
[0025] Based on the identification number, determine the local area network to be connected to.
[0026] Secondly, embodiments of the present invention also provide a networking device, applied to a device to be connected to a target local area network, comprising:
[0027] The network connection module is used to select one of multiple wireless signal sources as the current wireless signal source, connect to the current wireless signal source, and connect to the server through the current wireless signal source.
[0028] The address acquisition module is used to obtain the communication address of at least one device in the target local area network from the server.
[0029] A communication judgment module is used to determine whether a communication connection can be established between the current wireless signal source and the device corresponding to the communication address based on the communication address obtained by the address acquisition module.
[0030] The information acquisition module is used to acquire wireless signal source usage information of at least one device in the target local area network from the server when the communication judgment module determines that a communication connection cannot be established.
[0031] The signal determination module is used to determine a new current wireless signal source based on the wireless signal source usage information obtained by the information acquisition module.
[0032] The network connection module is further configured to maintain connection to the current wireless signal source when the communication judgment module determines that a communication connection can be established, and to connect to the new current wireless signal source determined by the signal determination module when the communication judgment module determines that a communication connection cannot be established.
[0033] Thirdly, embodiments of the present invention also provide a networking system, including a device and a server, wherein the device performs the networking method described above.
[0034] Fourthly, embodiments of the present invention also provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the networking method described above.
[0035] Fifthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the networking method described above.
[0036] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention allows a device to first connect to a server via a wireless signal source, obtain the communication address of at least one device in the target local area network (LAN) from the server, and determine whether a communication connection can be established with the device in the target LAN using the obtained communication address. This determines whether the device has connected to an incorrect wireless signal source and thus to an incorrect LAN. If the device has connected to an incorrect wireless signal source, it can obtain the wireless signal source usage information of at least one device in the target LAN from the server, and connect to the correct wireless signal source based on the obtained information, thereby correctly connecting to the target LAN. This invention allows devices to quickly and correctly connect to the target LAN, reducing the impact of network problems on the interaction between different devices that need to be in the same target LAN. Attached Figure Description
[0037] Figure 1 This is a schematic diagram of the network architecture on which the networking method of Embodiment 1 of the present invention is based.
[0038] Figure 2 This is a flowchart of the networking method in Embodiment 1 of the present invention.
[0039] Figure 3 This is a flowchart of another networking method in Embodiment 1 of the present invention.
[0040] Figure 4 This is a schematic diagram of the network architecture on which the networking method of Embodiment 2 of the present invention is based.
[0041] Figure 5 This is a flowchart of the networking method in Embodiment 2 of the present invention.
[0042] Figure 6 This is a flowchart of another networking method in Embodiment 2 of the present invention.
[0043] Figure 7 This is a diagram of the networking system in Embodiment 3 of the present invention.
[0044] Figure 8 This is a diagram of another networking system in Embodiment 3 of the present invention. Detailed Implementation
[0045] The accompanying drawings of the embodiments of this invention are for illustrative purposes only and should not be construed as limiting the invention. To better illustrate the following embodiments, some components in the drawings may be omitted, enlarged, or reduced, and do not represent the actual dimensions of the product; it is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0046] The technical solutions of the present invention will now be described with reference to the accompanying drawings in the embodiments of the present invention.
[0047] Example 1
[0048] This embodiment provides a networking method that can be applied to devices that need to wirelessly connect to a local area network (LAN), or to control devices that control the wireless network connection of such devices. In an environment with multiple wireless signal sources, a suitable wireless signal source is selected, allowing the device to connect to the desired LAN through that suitable wireless signal source.
[0049] Figure 1 This is a schematic diagram of a network architecture. The networking method provided in this embodiment can be based on, for example... Figure 1 The network architecture shown allows for connection to the server in an environment with multiple wireless signal sources, where each wireless signal source is connected to the server, and each device can connect to the server through any wireless signal source. In this network architecture, each device or its control device can utilize the networking method provided in this embodiment. The wireless signal sources can be provided by wireless network access devices such as routers, and one router can provide one or more wireless signal sources. The number of devices can vary depending on the specific requirements. Figure 1 This is just an example.
[0050] Figure 2 This is a flowchart of the networking method in this embodiment, as follows: Figure 2 As shown, the networking method provided in this embodiment, taking a device that needs to connect to a target local area network as an example, includes the following steps:
[0051] S101. Select one of the multiple wireless signal sources as the current wireless signal source, connect to the current wireless signal source, and connect to the server through the current wireless signal source.
[0052] In an environment with multiple wireless signal sources, the device to be connected to the network can first select any wireless signal source that can be successfully connected to as the current wireless signal source.
[0053] Specifically, the device to be connected to the network can scan multiple wireless signal sources in the current environment and select one of them as the currently selected wireless signal source.
[0054] In one implementation: the device to be connected to the network automatically selects one of the scanned wireless signal sources as the currently selected wireless signal source. The selection can be based on a preset automatic selection principle, or it can be random selection without a preset automatic selection principle. The preset automatic selection principle can be automatically selecting the first wireless signal source scanned, automatically selecting the wireless signal source with the strongest signal strength among the scanned wireless signal sources, or other automatic selection principles; this embodiment does not limit this.
[0055] In another implementation: the device to be connected to the network can display multiple scanned wireless signal sources to the user, receive the user's manual selection of the multiple scanned wireless signal sources, and determine one wireless signal source as the currently selected wireless signal source based on the user's manual selection. The user simply selects one of the multiple wireless signal sources displayed by the device to be connected to the network.
[0056] After the device seeking to connect selects one of the multiple wireless signal sources it has scanned as the current wireless signal source, it attempts to connect to the currently selected wireless signal source and determines whether the connection can be successfully established. If so, the connection is maintained; otherwise, the device selects the next wireless signal source from the multiple wireless signal sources it has scanned as the current wireless signal source and continues to determine whether the connection can be successfully established until a wireless signal source is successfully established. The currently selected wireless signal source that can be successfully established is then designated as the current wireless signal source.
[0057] Each wireless signal source is connected to the server, meaning the current wireless signal source is connected to the server. Therefore, after the device to be connected to the network successfully connects to the current wireless signal source, the device to be connected to the network can connect to the server through the current wireless signal source.
[0058] S102. Obtain the communication address of at least one device in the target local area network from the server.
[0059] After a device connects to the server via the current wireless signal source, it can obtain the communication address of at least one device already connected to the local area network from the server. This communication address can be pre-reported to the server by the at least one device before connecting to the target local area network, or it can be reported to the server by the at least one device after connecting to the target local area network, or it can be manually pre-set in the server backend.
[0060] Understandably, the device corresponding to the communication address obtained by the device to be connected from the server can be either a device with control over the establishment of the local area network (LAN) or a device indistinguishable from other devices. In interactive business scenarios where individuals are differentiated, such as the differences between a host, speaker, and audience in a meeting, or between a teacher and students in a classroom, control over the establishment of the LAN can be granted to one or more devices based on these differences. In interactive business scenarios where individuals are equal, such as a leaderless group discussion, the devices forming the LAN can be indistinguishable. This allows for flexible adaptation to the needs of different interactive business scenarios.
[0061] In practice, a server can simultaneously serve multiple local area networks (LANs), each assigned a unique identifier. Within the server, the communication address of at least one device connected to a particular LAN is maintained under that LAN's identifier. In this scenario, the identifier can be obtained first, the target LAN can be determined based on it, and then the communication address of at least one device within that target LAN can be retrieved from the server. More specifically, the communication address of at least one device within the target LAN can be obtained through polling based on the identifier.
[0062] S103. Determine whether a communication connection can be established between the current wireless signal source and the device corresponding to the communication address based on the obtained communication address. If yes, proceed to S104; otherwise, proceed to S105.
[0063] Once the network-connected device obtains the communication address of at least one device in the target local area network, it can attempt to establish a local area network communication connection with that device through the current wireless signal source. Whether or not a communication connection can be successfully established determines whether the connection to the target local area network has been successfully established.
[0064] S104. Maintain connection to the current wireless signal source.
[0065] When the device to be connected to the network determines that a communication connection can be successfully established, it means that it can successfully connect to the target local area network through the current wireless signal source. In this case, the device to be connected to the network can maintain its connection with the current wireless signal source.
[0066] S105. Obtain the wireless signal source usage information of at least one device in the target local area network from the server, determine the new current wireless signal source based on the wireless signal source usage information, and connect to the new current wireless signal source.
[0067] When a device trying to connect to the network determines that it cannot successfully establish a communication connection, it indicates that it cannot successfully connect to the target local area network through the current wireless signal source and needs to change the wireless signal source. To determine which wireless signal source to replace it with, you can refer to the wireless signal source usage information of at least one device in the target local area network and refer to the wireless signal source that the device is currently using.
[0068] Wireless signal source usage information is essentially the network connection status information of a device, reflecting the device's use of the wireless signal source and some information about the wireless signal source itself. This information can be automatically reported to the server by the device after connecting to the wireless signal source, or it can be actively obtained and monitored by the server. More specifically, the device's wireless signal source usage information may include the SSID (Service Set Identifier) and password of the wireless signal source that the device is currently using (i.e., connecting to). After the network-connected device obtains the SSID and password of a wireless signal source from the server, it can authenticate using the SSID and password to complete the connection with that wireless signal source.
[0069] If the wireless signal source usage information is reported to the server by the device itself, the networking method provided in this embodiment further includes, after step S105: generating wireless signal source usage information and reporting it to the server based on the currently connected wireless signal source.
[0070] One networking strategy can directly refer to the wireless signal sources used by devices with control permissions already connected to the local area network to determine the new current wireless signal source. Specifically, step S105 may include:
[0071] Obtain the wireless signal source usage information of at least one device with control authority in the target local area network from the server. Based on the wireless signal source usage information, determine the new current wireless signal source as the wireless signal source connected to the device with control authority.
[0072] Connecting to the same wireless signal source as a device with control over setting up a local area network ensures that the device can connect to the same local area network as the device with control over the network.
[0073] Another networking strategy involves first statistically analyzing and ranking the wireless signal sources used by devices already connected to the local area network, and then selecting the most frequently used wireless signal source as the new current wireless signal source, or selecting the wireless signal source with the strongest signal strength. Specifically, step S105 may include:
[0074] The server retrieves wireless signal source usage information for at least one device in the target local area network. The wireless signal source usage information is determined by the server based on the ranking of the number of connected devices to the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network.
[0075] Based on the obtained wireless signal source usage information, the new current wireless signal source is determined to be either the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength.
[0076] It is understandable that when only one device is connected to the target local area network, there is only one wireless signal source in the ranking of the number of connected devices or the ranking of signal strength. The wireless signal source that the device connected to the target local area network is currently connecting to is the wireless signal source with the most devices or the wireless signal source with the strongest signal strength.
[0077] If a wireless signal source is used by the most devices in a local area network, it indicates that the wireless signal source is relatively easy for devices to successfully connect to the target local area network. Therefore, it can be determined that the new current wireless signal source is the wireless signal source with the most connected devices.
[0078] Specifically, when a device connects to a wireless signal source and successfully connects to the target local area network (LAN) through that wireless signal source, the device reports the wireless signal source to the server, and the server records the connection between the device and the wireless signal source. Based on the recorded connections between each device and the wireless signal source in the target LAN, the server ranks the wireless signal sources in the LAN by the number of connected devices. The wireless signal source with the highest number of connected devices is then used to determine its usage information. In practice, this determined usage information consists of the SSID and password of the wireless signal source with the highest number of connected devices.
[0079] Signal strength is crucial to whether a connection to the local area network (LAN) is successful and whether the connection can be maintained. Therefore, the strongest signal among the wireless signal sources currently being used by devices on the LAN can be selected as the new current wireless signal source.
[0080] Specifically, when a device connects to a wireless signal source and successfully connects to the target local area network (LAN) through that wireless signal source, the device reports the wireless signal source and its signal strength to the server. The server records the connection between the device and the wireless signal source, as well as the signal strength of the wireless signal source. Based on the recorded connections of each device in the target LAN to wireless signal sources and the signal strength of the connected wireless signal sources, the server ranks the signal strength of each wireless signal source in the target LAN. The wireless signal source with the strongest signal strength is used to determine its usage information. In practice, the determined usage information is the SSID and password of the wireless signal source with the strongest signal strength.
[0081] Regarding the signal strength of a wireless signal source, the device can detect the power of the wireless signal emitted by the source through its own communication antenna. The higher the power, the stronger the signal; the lower the power, the weaker the signal. More specifically, the device can use the built-in detector to detect the waveform amplitude of the wireless signal received by the communication antenna and calculate the wireless signal power as the signal strength of the wireless signal source.
[0082] like Figure 3 As shown, preferably, the two networking strategies described above can be integrated to leverage the advantages of each. This is achieved by setting up a networking strategy on the server to integrate the two strategies. The networking strategy can be pre-configured on the server by a device with control authority within the target LAN and stored on the server; alternatively, it can be pre-configured on the local machine by a device with control authority, and then retrieved by the server from that device; or it can be manually pre-configured directly in the server's backend.
[0083] At this point, step 105 may include:
[0084] S151. If the network policy set by the server is a fixed policy, obtain the wireless signal source usage information of at least one device with control authority in the target local area network from the server, and determine the new current wireless signal source as the wireless signal source connected to the device with control authority based on the wireless signal source usage information.
[0085] If the networking policy is a fixed policy, then the device with control authority selects and uses a wireless signal source, and other devices in the local area network use the same wireless signal source.
[0086] S152. If the networking policy set by the server is a dynamic policy, the server obtains the wireless signal source usage information of at least one device in the target local area network. The wireless signal source usage information is determined by the server based on the ranking of the number of connected devices in the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network. Based on the wireless signal source usage information, the server determines the new current wireless signal source to be either the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength.
[0087] If the networking strategy is dynamic, then a suitable wireless signal source will be automatically matched based on the ranking of the number of connected devices or the ranking of signal strength.
[0088] The specific implementation process of step S152 can be based on ranking the wireless signal sources according to the number of connected devices in the target local area network or according to the signal strength of the wireless signal sources, determining the top-ranked wireless signal source as the new current wireless signal source. Alternatively, when ranking, both the number of connected devices in the local area network and the signal strength of the wireless signal source can be combined to comprehensively evaluate the suitability of the wireless signal sources and make a ranking based on the comprehensive evaluation results. Besides the number of connected devices and signal strength, other evaluation dimensions can also be used in practical applications.
[0089] Following step S152, the following may also be included:
[0090] S153. Re-determine whether a communication connection can be established between the device corresponding to the new current wireless signal source and the obtained communication address. If yes, proceed to S154; otherwise, proceed to S155.
[0091] Once the device seeking to connect to the network identifies the top-ranked wireless signal source as the new current wireless signal source, it attempts to establish a local area network (LAN) communication connection with the device corresponding to the previously acquired communication address using the new current wireless signal. Based on whether a communication connection can be successfully established, it determines whether the connection to the target LAN has been successful, further improving the reliability of enabling the device seeking to connect to the target LAN.
[0092] S154. Maintain connection to the new current wireless signal source.
[0093] When the device to be connected to the network determines that a communication connection can be successfully established, it means that it can successfully connect to the target local area network through the top-ranked wireless signal source, and then it can maintain the connection with the current wireless signal source.
[0094] S155. Retrieve new wireless signal source usage information from the server. Based on the new wireless signal source usage information, determine the new current wireless signal source as either the wireless signal source with the highest number of connected devices or the wireless signal source with the strongest signal strength, and connect to the new current wireless signal source.
[0095] When a device trying to connect to the network determines that it cannot successfully establish a communication connection, it means that it cannot successfully connect to the target local area network through the first-ranked wireless signal source. Then, the second-ranked wireless signal source, i.e., the next ranked wireless signal source, can be re-determined as the new current wireless signal source, and so on, until it successfully connects to the target local area network and successfully establishes a communication connection with the device corresponding to the obtained communication address.
[0096] The networking method provided in this embodiment can be applied when a device is initially connected to a local area network (LAN) or when the device is disconnected from the LAN. In other words, this embodiment can simultaneously achieve intelligent networking and network repair, allowing the device to connect to the target LAN as soon as possible and preventing prolonged disconnection from the already connected LAN.
[0097] Example 2
[0098] Based on the same inventive concept as Embodiment 1, this embodiment provides a networking method that is specifically applied in the interactive classroom business scenario of educational informatization.
[0099] Figure 4 This is a schematic diagram of the network architecture in an interactive classroom scenario. The networking method provided in this embodiment can be based on, for example... Figure 4 The network architecture shown depicts a scenario with multiple wireless signal sources, where each wireless signal source connects to the server, and each device can connect to the server through any wireless signal source. These devices include teacher devices and student devices; teacher devices are those controlled and used by teachers, and student devices are those controlled and used by students. The number of teacher and student devices can vary depending on the specific needs. Figure 4 This is just an example.
[0100] In this network architecture, the teacher's device is a device with local area network (LAN) setup control authority. The networking method provided in this embodiment can be applied to student devices or devices that control student devices. In an environment with multiple wireless signal sources, a suitable wireless signal source is selected so that the student devices can quickly maintain the same LAN with the teacher's device through the suitable wireless signal source, thus ensuring normal teaching order.
[0101] Figure 5 This is a flowchart of the networking method in this embodiment, as follows: Figure 5As shown, the networking method provided in this embodiment, taking a student device to be connected to the network as an example, requires the student device to connect to the same target local area network as the teacher device. It includes the following steps:
[0102] S201. Select one of the multiple wireless signal sources as the current wireless signal source, connect to the current wireless signal source, and connect to the server through the current wireless signal source.
[0103] S202. Obtain the communication address of the teacher's device in the target local area network from the server.
[0104] The communication address can be pre-reported to the server by the teacher's device before connecting to the target LAN, or it can be pre-set manually in the server backend.
[0105] In practice, different classrooms correspond to different local area networks (LANs), and the server needs to serve multiple LANs simultaneously. Each classroom, and thus each LAN, can be assigned a unique identifier—a class ID. The communication address of a teacher's device in a given classroom is maintained on the server under that class ID. In this scenario, student devices can first obtain the class ID, determine the target LAN based on it, and then retrieve the communication address of the teacher's device within that target LAN from the server. More specifically, the communication addresses of teacher's devices within the LAN can be obtained through polling based on the class ID.
[0106] S203. Determine whether a communication connection can be established with the teacher's equipment through the current wireless signal source based on the obtained communication address. If yes, proceed to S204; otherwise, proceed to S205.
[0107] S204. Maintain connection to the current wireless signal source.
[0108] S205. Obtain the wireless signal source usage information of at least one device in the target local area network from the server, determine the new current wireless signal source based on the wireless signal source usage information, and connect to the new current wireless signal source.
[0109] When a student device determines that it cannot successfully establish a communication connection, it indicates that it cannot successfully connect to the target local area network through the current wireless signal source and needs to change the wireless signal source. To determine which wireless signal source to replace it with, the wireless signal source can be determined based on the wireless signal source usage information of at least one device in the target local area network. The wireless signal source that the device is currently using can be referenced. The referenced device can be a teacher's device or other student devices that are already connected to the target local area network.
[0110] Wireless signal source usage information is essentially the network connection status information of a device, reflecting the device's use of the wireless signal source and some information about the wireless signal source itself. This information can be automatically reported to the server by the device after connecting to the wireless signal source, or it can be actively obtained and monitored by the server. More specifically, the device's wireless signal source usage information may include the SSID (Service Set Identifier) and password of the wireless signal source the device is connecting to. After the network-connected device obtains the SSID and password of a wireless signal source from the server, it can authenticate using the SSID and password to complete the connection with that wireless signal source.
[0111] If the wireless signal source usage information is reported to the server by the device itself, the networking method provided in this embodiment further includes, after step S205: generating wireless signal source usage information and reporting it to the server based on the currently connected wireless signal source.
[0112] One networking strategy can directly refer to the wireless signal sources used by teacher equipment already connected to the local area network to determine the new current wireless signal source. Specifically, step S205 may include:
[0113] Obtain the wireless signal source usage information of the teacher's device in the target local area network from the server, and determine the new current wireless signal source as the wireless signal source connected to the teacher's device based on the wireless signal source usage information of the teacher's device.
[0114] This allows student devices and teacher devices to connect to the same wireless signal source, ensuring that student devices and teacher devices are connected to the same local area network.
[0115] Another networking strategy involves first statistically analyzing and sorting the wireless signal sources used by devices already connected to the local area network (which could be teacher devices or student devices), and then selecting the best wireless signal source as the new current wireless signal source. Specifically, step S205 may include:
[0116] The server retrieves wireless signal source usage information for at least one device in the target local area network. The wireless signal source usage information is determined by the server based on the ranking of the number of connected devices to the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network.
[0117] Based on the obtained wireless signal source usage information, the new current wireless signal source is determined to be either the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength.
[0118] It is understandable that when only one device is connected to the target local area network, there is only one wireless signal source in the ranking of the number of connected devices or the ranking of signal strength. The wireless signal source that the device connected to the target local area network is currently connecting to is the wireless signal source with the most devices or the wireless signal source with the strongest signal strength.
[0119] If a certain wireless signal source is used by the most devices in the local area network, it indicates that the wireless signal source is relatively easy for devices to successfully connect to the local area network. Therefore, it can be determined that the new current wireless signal source is the wireless signal source with the most connected devices.
[0120] Signal strength is crucial to whether a connection to the local area network (LAN) is successful and whether the connection can be maintained. Therefore, the strongest signal among the wireless signal sources currently being used by devices on the LAN can be selected as the new current wireless signal source.
[0121] like Figure 6 As shown, preferably, the two networking strategies described above can be integrated to leverage the advantages of each. This is achieved by setting up a networking strategy on the server to integrate the two strategies. The networking strategy can be pre-configured on the server by the teacher's device in the target local area network and stored on the server; it can also be pre-configured on the teacher's device and stored locally, with the server then retrieving it from the teacher's device; or it can be manually pre-configured in the server's backend.
[0122] At this point, step S205 may include:
[0123] S251. If the network policy set by the server is a fixed policy, obtain the wireless signal source usage information of the teacher's equipment in the target local area network from the server, and determine the new current wireless signal source as the wireless signal source connected to the teacher's equipment based on the wireless signal source usage information.
[0124] If the networking strategy is a fixed strategy, the teacher's equipment selects and uses a wireless signal source, and other student equipment in the local area network uses the same wireless signal source, thus ensuring that the teacher's equipment and student equipment are in the same target local area network.
[0125] S252. If the networking policy set by the server is a dynamic policy, the server obtains the wireless signal source usage information of multiple devices in the target local area network. The wireless signal source usage information is determined by the server based on the ranking of the number of connected devices in the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network. Based on the wireless signal source usage information, the server determines the new current wireless signal source to be the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength.
[0126] If the networking strategy is dynamic, then a suitable wireless signal source will be automatically matched based on the ranking of the number of connected devices or the ranking of signal strength.
[0127] The specific implementation process of step S252 can be as follows: ranking the wireless signal sources based on the number of devices connected to the local area network or ranking them based on their signal strength, and determining the top-ranked wireless signal source as the new current wireless signal source. Alternatively, when ranking, both the number of devices connected to the wireless signal source and its signal strength can be combined to comprehensively evaluate the suitability of the wireless signal sources and make a ranking based on the comprehensive evaluation results. Besides the number of connected devices and signal strength, other evaluation dimensions can also be used in practical applications.
[0128] After step S252, the following may also be included:
[0129] S253. Re-determine whether a communication connection can be established with the teacher's equipment through the new current wireless signal source based on the obtained communication address. If yes, proceed to S254; otherwise, proceed to S255.
[0130] Once the student device to be connected to the network identifies the top-ranked wireless signal source as the new current wireless signal source, it attempts to establish a local area network (LAN) communication connection with the teacher's device through the new current wireless signal. The connection is determined as to whether it has been successfully established based on the success of the communication connection.
[0131] S254. Maintain connection to the new current wireless signal source.
[0132] When a student device that is about to connect to the network determines that it can successfully establish a communication connection with the teacher's device, it means that it can successfully connect to the target local area network through the top-ranked wireless signal source. In this case, it can maintain the connection with the current wireless signal source.
[0133] S255. Retrieve new wireless signal source usage information from the server. Based on the new wireless signal source usage information, determine the new current wireless signal source as either the wireless signal source with the highest number of connected devices or the wireless signal source with the strongest signal strength, and connect to the new current wireless signal source.
[0134] When a student device that is trying to connect to the network determines that it cannot successfully establish a communication connection with the teacher's device, it means that it cannot successfully connect to the target local area network through the first-ranked wireless signal source. Then, the second-ranked wireless signal source, that is, the next ranked wireless signal source, can be re-selected as the new current wireless signal source, and so on, until it successfully connects to the target local area network and successfully establishes a communication connection with the teacher's device.
[0135] The networking method described in this embodiment only requires teachers to perform simple operations on their devices (reporting the communication address of the teacher's device, setting networking policies, reporting the currently connected wireless signal sources, etc.) to ensure that the teacher's and students' devices in the classroom are always on the same local area network. Even if a student's device mistakenly connects to the local area network of a neighboring classroom or loses its connection to the local area network, it can quickly reconnect to the local area network of its own classroom, reducing the impact of network problems on normal teaching order.
[0136] Example 3
[0137] Based on the same inventive concept as Embodiment 1, this embodiment provides a networking system that can be built into or externally placed on a device that needs to wirelessly connect to a local area network, or it can be built into or externally placed on a control device that controls the wireless network connection of the device. In an environment with multiple wireless signal sources, a suitable wireless signal source is selected so that the device can connect to the target local area network through the suitable wireless signal source.
[0138] Figure 7 This is a diagram of the network system composition in this embodiment. (See diagram below.) Figure 7 As shown, the networking system provided in this embodiment includes:
[0139] The network connection module 301 is used to select one of multiple wireless signal sources as the current wireless signal source, connect to the current wireless signal source, and connect to the server through the current wireless signal source.
[0140] Address acquisition module 302 is used to obtain the communication address of at least one device in the target local area network from the server; the communication address can be reported to the server in advance by the device, or it can be set in advance directly in the server background;
[0141] The communication judgment module 303 is used to determine whether a communication connection can be established between the current wireless signal source and the device corresponding to the communication address based on the communication address obtained by the address acquisition module 302.
[0142] The information acquisition module 304 is used to acquire wireless signal source usage information of at least one device in the target local area network from the server when the communication judgment module 303 determines that a communication connection cannot be established.
[0143] The signal determination module 305 is used to determine a new current wireless signal source based on the wireless signal source usage information obtained by the information acquisition module 304.
[0144] The network connection module 301 is also used to maintain the connection to the current wireless signal source when the communication judgment module 303 determines that a communication connection can be established, and to connect to the new current wireless signal source determined by the signal determination module 305 when the communication judgment module 303 determines that a communication connection cannot be established.
[0145] Wireless signal source usage information is essentially the network connection status information of the device, reflecting the device's use of the wireless signal source and some information about the wireless signal source itself. This information can be automatically reported to the server by the device after connecting to the wireless signal source, or it can be actively obtained and monitored by the server.
[0146] If the wireless signal source usage information is reported to the server by the device itself, the networking system provided in this embodiment also includes: an information reporting module, which is used to generate wireless signal source usage information and report it to the server based on the current wireless signal source connected to the network connection module 301.
[0147] Under one networking strategy, the new current wireless signal source can be determined by directly referencing the wireless signal sources used by devices with control permissions already connected to the local area network. Specifically, the information acquisition module 304 can be used to: obtain wireless signal source usage information from the server for at least one device with control permissions in the target local area network when the communication judgment module 303 determines that a communication connection cannot be established. Specifically, the signal determination module 305 can be used to: determine, based on the wireless signal source usage information obtained by the information acquisition module 304, that the new current wireless signal source is the wireless signal source connected to by the device with control permissions.
[0148] In another networking strategy, the wireless signal sources used by devices already connected to the local area network can be statistically analyzed and ranked first, and then the most frequently used wireless signal source can be selected as the new current wireless signal source. The information acquisition module 304 can be specifically used to: when the communication judgment module 303 determines that a communication connection cannot be established, obtain wireless signal source usage information from the server for at least one device in the target local area network. This wireless signal source usage information is determined by the server based on the ranking of the number of connected devices to the wireless signal sources connected to the devices in the target local area network, or based on the ranking of the signal strength of the wireless signal sources connected to the devices in the target local area network. The signal determination module 305 can be specifically used to: based on the wireless signal source usage information obtained by the information acquisition module 304, determine the new current wireless signal source as either the wireless signal source with the highest number of connected devices or the wireless signal source with the strongest signal strength.
[0149] Preferably, the two networking strategies described above can be integrated to leverage the advantages of each. This is achieved by setting up a networking strategy on the server to integrate the two strategies. The networking strategy can be pre-configured on the server by a device with control authority within the target LAN and stored on the server; alternatively, it can be pre-configured on the local machine by a device with control authority, and then retrieved by the server from that device; or it can be manually pre-configured in the server's backend.
[0150] If the networking policy set by the server is a fixed policy, the information acquisition module 304 can be specifically used to: obtain the wireless signal source usage information of at least one device with control authority in the local area network to be connected from the server; the signal determination module 305 can be specifically used to: determine the new current wireless signal source as the wireless signal source connected to by the device with control authority based on the wireless signal source usage information obtained by the information acquisition module 304.
[0151] If the networking policy set by the server is a dynamic policy, the information acquisition module 304 can be specifically used to: obtain the wireless signal source usage information of at least one device in the local area network to be connected from the server. The wireless signal source usage information is determined by the server based on the ranking of the number of connected devices of the wireless signal source connected to the device in the target local area network, or based on the ranking of the signal strength of the wireless signal source connected to the device in the target local area network. Based on the wireless signal source usage information, the new current wireless signal source is determined to be the wireless signal source with the most connected devices or the wireless signal source with the strongest signal strength.
[0152] The communication judgment module 303 can also be used to: if the signal determination module 305 determines that the new current wireless signal source is the wireless signal source with the largest number of connected devices, or the wireless signal source with the strongest signal strength among the wireless signal sources connected by multiple devices, that is, if the networking strategy is a dynamic strategy, then after the network connection module 301 connects to the new current wireless signal source determined by the signal determination module 305, it re-determines whether it can establish a communication connection with the device corresponding to the communication address through the new current wireless signal source;
[0153] The signal determination module 305 can also be used to: when the communication determination module 303 re-determines that a communication connection cannot be established, obtain new wireless signal source usage information from the server, and based on the new wireless signal source usage information, re-determine the new current wireless signal source as the wireless signal source with the highest number of device connections or the wireless signal source with the strongest signal strength.
[0154] In practice, a server can simultaneously serve multiple local area networks (LANs), each of which can be assigned a unique identifier. Within the server, the communication address of at least one device connected to a particular LAN is maintained under that LAN's identifier. In this scenario, such as... Figure 8 As shown, the networking system provided in this embodiment further includes: a network determination module 306, used to obtain an identification number and determine the target local area network based on the identification number. The address acquisition module 302 is specifically used to obtain the communication address of at least one device in the local area network determined by the network determination module 306 from the server.
[0155] This embodiment also provides a networking system, including a device and a server, wherein the device performs the steps of the method as described in Embodiment 1 or Embodiment 2.
[0156] This embodiment also provides a computer device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in Embodiment 1 or Embodiment 2.
[0157] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described in Embodiment 1 or Embodiment 2.
[0158] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the claims of the present invention should be included within the protection scope of the claims of the present invention.
Claims
1. A networking method applied to a device to be networked which needs to connect a target local area network, characterized in that, The application relates to a method for connecting a device to a target local area network (LAN), comprising the following steps: selecting one of a plurality of wireless signal sources as a current wireless signal source, connecting to the current wireless signal source, and connecting to a server through the current wireless signal source; obtaining a communication address of at least one device in the target LAN from the server; determining whether a communication connection can be established between the current wireless signal source and the device corresponding to the communication address according to the obtained communication address; if yes, maintaining the connection to the current wireless signal source; if no, obtaining wireless signal source usage information of at least one device in the target LAN from the server, and determining a new current wireless signal source according to the wireless signal source usage information; obtaining wireless signal source usage information of at least one device in the target LAN from the server, and determining a new current wireless signal source according to the wireless signal source usage information, comprising: if a networking strategy set by the server is a fixed strategy, obtaining wireless signal source usage information of at least one device with control authority in the target LAN from the server, and determining the new current wireless signal source as a wireless signal source connected by the device with control authority according to the wireless signal source usage information; if the networking strategy set by the server is a dynamic strategy, obtaining wireless signal source usage information of at least one device in the target LAN from the server, wherein the wireless signal source usage information is determined by the server according to a connection device quantity ranking of wireless signal sources connected by devices in the target LAN or according to a signal strength ranking of the wireless signal sources; and determining the new current wireless signal source as a wireless signal source with the most connection device quantity ranking or as a wireless signal source with the strongest signal strength ranking according to the wireless signal source usage information; the at least one device reports the wireless signal source and the signal strength of the wireless signal source to the server, the server records the connection between the device and the wireless signal source, and the signal strength of the wireless signal source.
2. The method of claim 1, wherein, obtaining wireless signal source usage information of at least one device in the target LAN from the server, and determining a new current wireless signal source according to the wireless signal source usage information, comprising: obtaining wireless signal source usage information of at least one device with control authority in the target LAN from the server, and determining the new current wireless signal source as a wireless signal source connected by the device with control authority according to the wireless signal source usage information; or, obtaining wireless signal source usage information of at least one device in the target LAN from the server, wherein the wireless signal source usage information is determined by the server according to a connection device quantity ranking of wireless signal sources connected by devices in the target LAN or according to a signal strength ranking of the wireless signal sources; and determining the new current wireless signal source as a wireless signal source with the most connection device quantity ranking or as a wireless signal source with the strongest signal strength ranking according to the wireless signal source usage information.
3. The method of claim 1, wherein, The networking strategy is set by a device with control authority in the target LAN at the server.
4. The networking method according to any one of claims 1 to 3, characterized in that, If it is determined that the new current wireless signal source is the wireless signal source with the most number of connected devices or the wireless signal source with the strongest signal strength, after connecting the new current wireless signal source, the method further comprises: re-determining whether a communication connection can be established between the new current wireless signal source and a device corresponding to the communication address according to the obtained communication address; if yes, maintaining the connection to the new current wireless signal source; if no, re-obtaining new wireless signal source usage information from the server, re-determining that the new current wireless signal source is the wireless signal source with the next most number of connected devices or the wireless signal source with the next strongest signal strength according to the new wireless signal source usage information, and connecting the new current wireless signal source.
5. The method of any of claims 1 to 3, wherein, obtaining a communication address of at least one device in a LAN to be connected from the server, comprising: obtaining a communication address of at least one device with control authority in a connected LAN from the server.
6. The method of any one of claims 1 to 3, wherein, Before obtaining the communication address of at least one device in a LAN to be connected from the server, the method further comprises: obtaining an identification number, the identification number being a unique identifier of a LAN; determining a LAN to be connected according to the identification number.
7. A networking device for implementing the networking method of claim 1, applied to a device to be networked which needs to be connected to a target local area network, characterized in that, comprising: a network connection module for selecting one from a plurality of wireless signal sources as a current wireless signal source, connecting the current wireless signal source, and connecting a server through the current wireless signal source; an address obtaining module for obtaining a communication address of at least one device in the target LAN from the server; a communication determining module for determining whether a communication connection can be established between the current wireless signal source and a device corresponding to the communication address according to the communication address obtained by the address obtaining module; an information obtaining module for obtaining wireless signal source usage information of at least one device in the target LAN from the server when the communication determining module determines that the communication connection cannot be established; a signal determining module for determining a new current wireless signal source according to the wireless signal source usage information obtained by the information obtaining module; the network connection module is further configured to maintain the connection to the current wireless signal source when the communication determining module determines that the communication connection can be established, and connect the new current wireless signal source determined by the signal determining module when the communication determining module determines that the communication connection cannot be established.
8. A networking system comprising a device and a server, wherein the device performs the networking method according to any one of claims 1 to 6. 9.A computer device, comprising a memory and a processor, the memory storing a computer program, and the computer device is characterized in that, The processor implements the networking method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program implements the networking method according to any one of claims 1 to 6 when executed by the processor.
Citation Information
Patent Citations
Communication system, information processing device, connection device, and connection device designation method for designating connection device for communication device to connect to
US20050018686A1