CN112714420A - Network access method and device of wifi hotspot providing equipment and electronic equipment - Google Patents

Network access method and device of wifi hotspot providing equipment and electronic equipment Download PDF

Info

Publication number
CN112714420A
CN112714420A CN202011540320.8A CN202011540320A CN112714420A CN 112714420 A CN112714420 A CN 112714420A CN 202011540320 A CN202011540320 A CN 202011540320A CN 112714420 A CN112714420 A CN 112714420A
Authority
CN
China
Prior art keywords
wifi hotspot
equipment
providing
network
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011540320.8A
Other languages
Chinese (zh)
Other versions
CN112714420B (en
Inventor
王斌
王庆
黄启立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202011540320.8A priority Critical patent/CN112714420B/en
Publication of CN112714420A publication Critical patent/CN112714420A/en
Application granted granted Critical
Publication of CN112714420B publication Critical patent/CN112714420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/50Service provisioning or reconfiguring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The application discloses a network access method and device of wifi hotspot providing equipment and electronic equipment, and relates to the fields of wireless communication, intelligent transportation and the like. The specific implementation scheme is as follows: when detecting that a connection device connected to a wifi hotspot exists, the wifi hotspot providing device sends a request message to the connection device to confirm whether the connection device supports providing a network for the wifi hotspot providing device or not through the request message; when the fact that the connecting equipment supports providing the network for the wifi hotspot providing equipment is determined according to the response message sent by the connecting equipment, the network is accessed based on the internet protocol address of the connecting equipment, the access of the wifi hotspot providing equipment to the network is achieved through software, in the whole implementation process, the hardware of the wifi hotspot providing equipment does not need to be upgraded, and therefore the operation difficulty is reduced.

Description

Network access method and device of wifi hotspot providing equipment and electronic equipment
Technical Field
The application relates to the technical field of internet, in particular to a network access method and device of wifi hotspot providing equipment and electronic equipment, and the network access method and device can be specifically used in the technical fields of wireless communication, intelligent transportation and the like.
Background
Through the wifi hotspot, a wireless network connection can be established between the wifi hotspot provider and the wifi hotspot connector. The network sharing provided by the wifi hotspot is single-phase, i.e., wifi hotspot connectors can only share the network provided by the wifi hotspot provider.
However, in some scenarios, when the wifi hotspot provider needs to access the internet, in order to meet the requirement that the wifi hotspot provider needs to access the internet, hardware of the wifi hotspot provider needs to be upgraded, a new network card is added to the wifi hotspot provider, and the wifi hotspot provider is enabled to access the internet through the new network card.
However, when hardware of the wifi hotspot provider is upgraded, the hardware structure of the wifi hotspot provider may also need to be adjusted, which results in a higher operation difficulty.
Disclosure of Invention
The application provides a network access method and device of wifi hotspot providing equipment and electronic equipment, access of the wifi hotspot providing equipment to a network is achieved, hardware of the wifi hotspot providing equipment does not need to be upgraded, and operation difficulty is reduced.
According to an aspect of the present application, a network access method for a wifi hotspot providing device is provided, where the network access method for the wifi hotspot providing device may include:
when detecting that the connection equipment connected to the wifi hotspot exists, sending a request message to the connection equipment, wherein the request message is used for indicating the connection equipment to determine whether the network is provided for the wifi hotspot providing equipment.
And receiving a response message sent by the connecting equipment, wherein the response message is used for indicating that the connecting equipment supports providing a network for the wifi hotspot providing equipment.
Accessing a network based on an internet protocol address of the connected device.
According to another aspect of the present application, a network access device of a wifi hotspot providing device is provided, which may include:
the device comprises a sending unit and a receiving unit, wherein the sending unit is used for sending a request message to the connecting device when detecting that the connecting device connected to the wifi hotspot exists, and the request message is used for indicating the connecting device to determine whether the network is provided for the wifi hotspot providing device.
And the receiving unit is used for receiving a response message sent by the connecting equipment, wherein the response message is used for indicating that the connecting equipment supports the network provision for the wifi hotspot providing equipment.
A first processing unit for accessing a network based on an internet protocol address of the connection device.
According to another aspect of the present application, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the network access method of the wifi hotspot providing device of the first aspect.
According to another aspect of the present application, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the network access method of the wifi hotspot providing device of the first aspect.
According to another aspect of the present application, there is provided a computer program product comprising a computer program stored in a readable storage medium, the computer program being readable from the readable storage medium by at least one processor of an electronic device, the computer program being executable by the at least one processor to cause the electronic device to perform the network access method of the wifi hotspot providing device of the first aspect.
According to the technical scheme of the application, when the connecting equipment connected to the wifi hotspot is detected, the request message is sent to the connecting equipment, so that whether the connecting equipment supports providing a network for the wifi hotspot providing equipment or not is confirmed through the request message; when the fact that the connecting equipment supports providing the network for the wifi hotspot providing equipment is determined according to the response message sent by the connecting equipment, the network is accessed based on the internet protocol address of the connecting equipment, the access of the wifi hotspot providing equipment to the network is achieved through software, in the whole implementation process, the hardware of the wifi hotspot providing equipment does not need to be upgraded, and therefore the operation difficulty is reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a diagram of a wireless communication system architecture provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a network access method of a wifi hotspot providing device according to a first embodiment of the present application;
fig. 3 is a schematic flowchart of a network access method of a wifi hotspot providing device according to a second embodiment of the present application;
fig. 4 is a schematic flowchart of a network access method of a wifi hotspot providing device according to a third embodiment of the present application;
fig. 5 is a schematic block diagram of a network access device 50 of a wifi hotspot providing device provided according to a fourth embodiment of the present application;
fig. 6 is a schematic block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. In the description of the text of the present application, the character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
With the continuous development of internet technology, the use of wireless networks, especially wifi networks, is more and more common. As a boundary device for user access, the wifi hotspot becomes a key node for enhancing data security and performing user access control. Through the wifi hotspot, a wireless network connection can be established between the wifi hotspot provider and the wifi hotspot connector. The wifi hotspot provider can convert the received network signal into a wifi signal and send the wifi signal out, so that other electronic equipment, such as other portable equipment such as a mobile phone, a tablet or a notebook, can be connected with the wifi signal through a wireless network card or a WLAN module, and network resource sharing is achieved.
The network sharing provided by the wifi hotspot is single-phase, i.e., wifi hotspot connectors can only share the network provided by the wifi hotspot provider. However, in some scenarios, when the wifi hotspot provider needs to access the internet, in order to meet the requirement that the wifi hotspot provider needs to access the internet, hardware of the wifi hotspot provider needs to be upgraded, a new network card is added to the wifi hotspot provider, and the wifi hotspot provider is enabled to access the internet through the new network card.
However, when hardware of the wifi hotspot provider is upgraded, the hardware structure of the wifi hotspot provider may also need to be adjusted, which results in a higher operation difficulty.
In order to avoid upgrading hardware of the wifi hotspot provider, so as to reduce the operation difficulty, a pure software mode can be considered to realize access of the wifi hotspot provider to the network. When the access of the wifi hotspot providing equipment to the network is realized in a pure Software mode, a Software Development Kit (SDK) is developed based on a Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol, and the developed SDK is respectively installed in two equipment, namely a wifi hotspot provider and a wifi hotspot connector, the wifi hotspot provider is used as a client, the wifi hotspot connector is used as a server, when the wifi hotspot provider needs to access the network, the wifi hotspot connector is used as a server, the Internet Protocol address (IP) address of the wifi hotspot provider can be provided, so that the wifi hotspot provider can access the network based on the IP address of the wifi hotspot connector, the access of the wifi hotspot providing equipment to the network is realized, and the hardware of the wifi hotspot provider does not need to be upgraded in the whole realization process, thereby reducing the operational difficulty.
Based on the above conception, the embodiment of the application provides a network access method of wifi hotspot providing equipment, which can be applied to the technical fields of wireless communication, intelligent traffic and the like in the technical field of internet. Referring to fig. 1, fig. 1 is an architecture diagram of a wireless communication system including a wifi hotspot providing device for providing a wifi hotspot and a connection device for connecting the wifi hotspot according to an embodiment of the present application. The method comprises the steps that when detecting that a connection device connected to a wifi hotspot exists, wifi hotspot providing equipment sends a request message to the connection device; the request message is used for indicating the connection equipment to determine whether the connection equipment supports providing a network for the wifi hotspot providing equipment; receiving a response message sent by the connecting equipment, wherein the response message is used for indicating that the connecting equipment supports providing a network for the wifi hotspot providing equipment; and when the connected device is determined to support the network provision for the wifi hotspot providing device, accessing the network based on the internet protocol address of the connected device.
The wifi hotspot providing device refers to a device for providing a wifi hotspot, for example, a router or other devices, and when the wifi hotspot providing device leaves a factory, the wifi hotspot providing device is positioned only to provide the wifi hotspot and cannot access a network, but in the process of continuously iterating and updating the wifi hotspot, a network access requirement may exist. The connection device is an electronic device for connecting the wifi hotspot, such as a mobile phone, a tablet, or a notebook.
It should be noted that, when detecting that there is a connected device connected to the wifi hotspot, the wifi hotspot providing device sends the request message to the connected device, which may include two possible scenarios:
in a possible scenario, when the wifi hotspot providing device has a network access requirement and the wifi hotspot providing device is not currently configured with a proxy, that is, the wifi hotspot providing device does not currently access the network based on the IP address of the connection device, in such a scenario, when the wifi hotspot providing device detects that there is a connection device connected to the wifi hotspot, a request message is sent to the connection device, so as to confirm whether the connection device supports providing the network for the wifi hotspot providing device through the request message, and when it is confirmed that the connection device supports providing the network for the wifi hotspot providing device, the network is directly accessed through the IP address of the connection device.
In another scenario, when the wifi hotspot providing device has a network access requirement and is currently configured with an agent, that is, when the wifi hotspot providing device detects that there is a connected device connected to the wifi hotspot, in this scenario, when the wifi hotspot providing device detects that there is a connected device connected to the wifi hotspot, a request message is sent to the connected device to confirm whether the connected device supports providing a network for the wifi hotspot providing device through the request message, and when it is confirmed that the connected device supports providing a network for the wifi hotspot providing device, the network is accessed instead of being directly switched and based on the IP address of the connected device, but the IP address of the new connected device may be recorded in a historical network access record. As to why the IP address of the new connection device is to be recorded in the history network access record, it will be described in detail later. It should be noted that, if the network access terminal caused by the handover is not considered, the network may also be directly handed over and accessed based on the IP address of the connection device, and specifically, the setting may be performed according to actual needs, and herein, the embodiment of the present application is not limited further.
Therefore, it can be seen that, for the wifi hotspot providing device, even though the network has been currently accessed based on the IP address of the connected device, a request message may be sent to the connected device when detecting that there is a connected device, to confirm whether the connected device supports providing the network for the wifi hotspot providing device through the request message.
It can be seen that when a connection device connected to a wifi hotspot is detected, a request message is sent to the connection device to confirm whether the connection device supports providing a network for the wifi hotspot providing device or not through the request message; when the fact that the connecting equipment supports providing the network for the wifi hotspot providing equipment is determined according to the response message sent by the connecting equipment, the network is accessed based on the internet protocol address of the connecting equipment, the access of the wifi hotspot providing equipment to the network is achieved through software, in the whole implementation process, the hardware of the wifi hotspot providing equipment does not need to be upgraded, and therefore the operation difficulty is reduced.
In the following, with the above first possible scenario, when the wifi hotspot providing device has a network access requirement and the wifi hotspot providing device is not currently configured with an agent, if it is determined that the connection device supports providing a network for the wifi hotspot providing device, the network is directly accessed through the IP address of the connection device, which is taken as an example, and the network access method of the wifi hotspot providing device provided by the present application is described in detail through a specific embodiment. It is to be understood that the following detailed description may be combined with other embodiments, and that the same or similar concepts or processes may not be repeated in some embodiments.
Example one
Fig. 2 is a flowchart illustrating a network access method of a wifi hotspot providing device according to a first embodiment of the present application, where the network access method of the wifi hotspot providing device may be executed by software and/or hardware devices. For example, referring to fig. 2, the network access method of the wifi hotspot providing device may include:
s201, when detecting that the connecting device connected to the wifi hotspot exists, the wifi hotspot providing device sends a request message to the connecting device.
The request message is used for indicating the connection device to determine whether the connection device supports providing a network for the wifi hotspot providing device.
When detecting whether a connection device connected to the wifi hotspot exists, if the connection device is not detected, continuing to detect; on the contrary, if the connected device is detected, the network is not accessed based on the IP address of the connected device directly, but whether the connected device supports providing the network for the wifi hotspot providing device is determined first, and then whether the network is accessed based on the IP address of the connected device is determined according to the determination result.
For example, when it is determined whether the connection device supports providing a network for a wifi hotspot providing device, a request message for instructing the connection device to determine whether the connection device supports providing a network for the wifi hotspot providing device may be sent to the connection device; correspondingly, after receiving the request message, the connection device determines whether the connection device supports providing a network for the wifi hotspot providing device. In a possible situation, if the connection device does not support the network provision for the wifi hotspot providing device, a response message indicating that the network provision for the wifi hotspot providing device is not supported may be sent to the wifi hotspot providing device; or, when the connection device does not support providing a network for the wifi hotspot providing device, the connection device may not send the response message; if the wifi hotspot providing equipment does not receive the response message sent by the connecting equipment, the default connecting equipment does not support the network provision for the wifi hotspot providing equipment; or, when the connection device does not support providing a network for the wifi hotspot providing device, it may not receive a request message sent by the connection device to instruct the connection device to determine whether the connection device supports providing a network for the wifi hotspot providing device, so that a response message may not be sent to the wifi hotspot providing device, and if the wifi hotspot providing device does not receive the response message sent by the connection device, it may also be defaulted that the connection device does not support providing a network for the wifi hotspot providing device.
In another possible case, if the connected device supports providing a network for the wifi hotspot providing device, the connected device may send a message to the wifi hotspot providing device to indicate that the connected device supports providing a network for the wifi hotspot providing device, that is, the following S202 is performed:
s202, the connection device sends a response message.
The response message is used for indicating that the connecting device supports providing a network for the wifi hotspot providing device.
S203, the wifi hotspot providing equipment accesses the network based on the internet protocol address of the connecting equipment.
After receiving a response message sent by the connection device and used for indicating that the connection device supports providing a network for the wifi hotspot providing device, the wifi hotspot providing device confirms that the connection device supports providing the network for the wifi hotspot providing device, so that the wifi hotspot providing device can directly access the network based on the internet protocol address of the connection device, and the access of the wifi hotspot providing device to the network is realized.
It can be seen that when a connection device connected to a wifi hotspot is detected, a request message is sent to the connection device to confirm whether the connection device supports providing a network for the wifi hotspot providing device or not through the request message; when the fact that the connecting equipment supports providing the network for the wifi hotspot providing equipment is determined according to the response message sent by the connecting equipment, the network is accessed based on the internet protocol address of the connecting equipment, the access of the wifi hotspot providing equipment to the network is achieved through software, in the whole implementation process, the hardware of the wifi hotspot providing equipment does not need to be upgraded, and therefore the operation difficulty is reduced.
Based on the embodiment shown in fig. 2, when the wifi hotspot providing device accesses the network based on the IP address of the currently connected connection device, if the currently connected connection device is disconnected, but the wifi hotspot providing device needs to continue accessing the network, how to achieve the access of the wifi hotspot providing device to the network. Next, by using the second embodiment described below, how to realize the access of the wifi hotspot providing device to the network when the currently connected connection device is disconnected but the wifi hotspot providing device needs to continue to access the network will be described in detail.
Example two
Fig. 3 is a flowchart illustrating a network access method of a wifi hotspot providing device according to a second embodiment of the present application, where the network access method of the wifi hotspot providing device may also be executed by software and/or hardware devices. For example, referring to fig. 3, the network access method of the wifi hotspot providing device may include:
s301, when the fact that the connecting device is disconnected with the wifi hotspot providing device is detected, determining target connecting devices from other connecting devices connected with the wifi hotspot providing device currently.
The target connection device supports network provision for wifi hotspot providing devices.
For example, when determining the target connection device from other connection devices currently connected to the wifi hotspot providing device, at least two possible implementations may be included:
in a possible implementation manner, referring to the embodiment shown in fig. 2, a request message for determining whether the connection device supports providing a network for the wifi hotspot providing device may be sequentially sent to other currently connected connection devices, and according to a response condition of the connection device, a connection device capable of providing a network for the wifi hotspot providing device is determined from the other currently connected connection devices to the wifi hotspot providing device, so as to determine the target connection device.
In another possible implementation manner, the target connection device does not need to be determined by sending the request message, but the connection device capable of providing the network for the wifi hotspot providing device is determined from other connection devices currently connected with the wifi hotspot providing device according to the historical network access record; and determining target connection equipment in the connection equipment capable of providing a network for the wifi hotspot providing equipment.
It can be understood that, in the embodiment of the present application, for a wifi hotspot providing device, each time a network is accessed based on an IP address of a connected device, the IP address of the connected device may be recorded in a historical network access record; or when the network is accessed based on the IP address of the connection device every time, if it is detected that a new connection device can provide the network connection device for the wifi hotspot providing device, even though the wifi hotspot providing device may not pass through the network based on the IP address of the new connection device, the IP address of the new connection device may be recorded in the history network access record, and the setting may be specifically performed according to actual needs.
In the possible implementation manner, when the connection device capable of providing the network for the wifi hotspot providing device is determined, the IP address of the connection device is recorded in the historical network access record, so that the wifi hotspot providing device can directly determine the connection device capable of providing the network for the wifi hotspot providing device from the connection device connected with the wifi hotspot providing device according to the historical network access record, thereby avoiding that the wifi hotspot providing device sequentially sends a request message for determining whether the connection device supports providing the network for the wifi hotspot providing device to other currently connected connection devices, determining the connection device capable of providing the network for the wifi hotspot providing device through the response condition, and improving the acquisition efficiency.
After determining the connection device capable of providing the network for the wifi hotspot providing device from other connection devices currently connected with the wifi hotspot providing device, the target connection device can be determined in the connection device capable of providing the network for the wifi hotspot providing device. For example, in a connection device capable of providing a network for a wifi hotspot providing device, when determining a target connection device, at least three possible implementations may be included:
in a possible implementation manner, the connection device with the most used internet protocol address number may be determined in the connection device capable of providing a network for the wifi hotspot providing device; and determines the connection device most frequently used as the target connection device.
It can be seen that, in this possible implementation manner, when selecting the target connection device, if the number of times that the internet protocol address of a certain connection device is used by the wifi hotspot providing device is greater, it is indicated that the wifi hotspot providing device is more preferable to access the network using the internet protocol address of the connection device, and by determining the connection device with the greatest number of times of use as the target connection device, the target connection device can be determined according to the use preference of the wifi hotspot providing device, thereby satisfying the use preference requirement of the wifi hotspot providing device.
In another possible implementation manner, a connection device corresponding to an internet protocol address used last time may be determined in a connection device capable of providing a network for a wifi hotspot providing device; and determining the connecting equipment corresponding to the internet protocol address which is used last time as the target connecting equipment.
It can be seen that, in this possible implementation manner, when the target connection device is selected, since it is highly possible that the connection device corresponding to the internet protocol address that is used last time currently will continue to support providing a network for the wifi hotspot providing device, and other previous connection devices may have unloaded the SDK currently and may no longer support providing a network for the wifi hotspot providing device, by determining the connection device corresponding to the internet protocol address that is used last time as the target connection device, it is possible to ensure that the selected target connection device provides a connection of the network for the wifi hotspot providing device, so that the reliability of the selected target connection device can be improved.
In yet another possible implementation, the target connected device may be randomly selected from connected devices that can provide a network for wifi hotspot providing devices.
In this possible implementation manner, when selecting the target connection device, the target connection device may also be determined by randomly selecting the target connection device from the connection devices that can provide the network for the wifi hotspot providing device.
S302, accessing the network based on the Internet protocol address of the target connection device.
After the target connection device is selected by the method, the network can be accessed based on the internet protocol address of the target connection device, so that for the wifi hotspot providing device, even if the currently connected connection device is disconnected, the access of the wifi hotspot providing device to the network can still be realized based on the internet protocol address of the target connection device.
EXAMPLE III
In a possible application scenario, for example, please refer to fig. 4, where fig. 4 is a flowchart illustrating a network access method of a wifi hotspot providing device according to a third embodiment of the present application, when the wifi hotspot providing device shares a wifi network, the wifi hotspot providing device may wait for a connection device to connect, and detect whether there is a connection device connected to the wifi hotspot, and if no connection device is detected, continue to wait for the connection device to connect; if the connected equipment is detected, whether the connected equipment supports the network provision for the wifi hotspot providing equipment or not is confirmed by sending a request message; if the connection equipment does not support the network for the wifi hotspot providing equipment, waiting for the connection of the connection equipment, and detecting whether the connection equipment connected to the wifi hotspot exists; if the connection equipment supports the network provision for the wifi hotspot providing equipment, the network is not accessed directly based on the IP address of the connection equipment, but whether the wifi hotspot providing equipment is configured with an agent at present is further judged, so that the access of the wifi hotspot providing equipment to the network is realized; if the agent is configured at present, recording the IP address of the connecting equipment in a historical network access record, and continuously waiting for the connecting equipment to be connected; if the agent is not configured at present, the network is accessed based on the IP address of the connection equipment, and the connection of the connection equipment is waited, so that the access of the wifi hotspot providing equipment to the network is realized, and in the whole realization process, the hardware of the wifi hotspot providing party is not required to be upgraded, so that the operation difficulty is reduced.
Example four
Fig. 5 is a schematic block diagram of a network access device 50 of a wifi hotspot providing device according to a fourth embodiment of the present application, for example, please refer to fig. 5, the network access device 50 of the wifi hotspot providing device may include:
the sending unit 501 is configured to send a request message to a connection device when detecting that the connection device is connected to a wifi hotspot, where the request message is used to instruct the connection device to determine whether to support providing a network for a wifi hotspot providing device.
A receiving unit 502, configured to receive a response message sent by a connection device, where the response message is used to indicate that the connection device supports providing a network for a wifi hotspot providing device.
A first processing unit 503 for accessing the network based on the internet protocol address of the connected device.
Optionally, the network access apparatus 50 of the wifi hotspot providing device further includes a second processing unit 504 and a third processing unit 505.
The second processing unit 504 is configured to determine a target connection device from other connection devices currently connected to the wifi hotspot providing device when it is detected that the connection device is disconnected from the wifi hotspot providing device, where the target connection device supports providing a network for the wifi hotspot providing device.
A third processing unit 505 for accessing the network based on the internet protocol address of the target connection device.
Optionally, the second processing unit 504 includes a first processing module and a second processing module.
The first processing module is used for determining the connecting equipment capable of providing the network for the wifi hotspot providing equipment from other connecting equipment currently connected with the wifi hotspot providing equipment according to historical network access records.
And the second processing module is used for determining target connection equipment in the connection equipment which can provide a network for the wifi hotspot providing equipment.
Optionally, the first processing module includes a first processing sub-module.
The first processing submodule is used for determining the connecting equipment with the most used Internet protocol addresses in the connecting equipment capable of providing networks for the wifi hotspot providing equipment; and determines the connection device most frequently used as the target connection device.
Optionally, the first processing module includes a second processing sub-module.
The second processing submodule is used for determining the connecting equipment corresponding to the internet protocol address which is used last time in the connecting equipment which can provide a network for the wifi hotspot providing equipment; and determining the connecting equipment corresponding to the internet protocol address which is used last time as the target connecting equipment.
Optionally, the first processing module includes a third processing sub-module.
And the third processing sub-module is used for randomly selecting a target connecting device from the connecting devices which can provide networks for the wifi hotspot providing devices.
The network access device 50 of the wifi hotspot providing device provided in the embodiment of the present application may execute the technical solution of the network access method of the wifi hotspot providing device shown in any one of the above embodiments, and its implementation principle and beneficial effects are similar to those of the network access method of the wifi hotspot providing device, and reference may be made to the implementation principle and beneficial effects of the network access method of the wifi hotspot providing device, which are not described herein again.
An embodiment of the present application further provides a computer program product, including a computer program, where the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to enable the electronic device to execute the network access method of the wifi hotspot providing device in the first aspect, where an implementation principle and beneficial effects of the network access method of the wifi hotspot providing device are similar to those of the wifi hotspot providing device, and reference may be made to the implementation principle and beneficial effects of the network access method of the wifi hotspot providing device, and details are not repeated here.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 6 is a schematic block diagram of an electronic device 600 provided in an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 601 performs the respective methods and processes described above, such as the network access method of the wifi hotspot providing device. For example, in some embodiments, the network access method of the wifi hotspot providing device may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the network access method of the wifi hotspot providing device described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured by any other suitable means (e.g., by means of firmware) to perform the network access method of the wifi hotspot providing device.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (15)

1. A network access method of a wifi hotspot providing device comprises the following steps:
when detecting that a connection device connected to a wifi hotspot exists, sending a request message to the connection device, wherein the request message is used for indicating the connection device to determine whether the connection device supports providing a network for a wifi hotspot providing device;
receiving a response message sent by the connecting device, wherein the response message is used for indicating that the connecting device supports providing a network for the wifi hotspot providing device;
accessing a network based on an internet protocol address of the connected device.
2. The method of claim 1, further comprising:
when the connection device is detected to be disconnected from the wifi hotspot providing device, determining a target connection device from other connection devices currently connected with the wifi hotspot providing device, wherein the target connection device supports providing a network for the wifi hotspot providing device;
accessing a network based on the internet protocol address of the target connected device.
3. The method of claim 2, wherein the determining a target connected device from among other connected devices currently connected with the wifi hotspot providing device comprises:
according to historical network access records, determining connection equipment capable of providing a network for the wifi hotspot providing equipment from other connection equipment currently connected with the wifi hotspot providing equipment;
and determining the target connection equipment in the connection equipment capable of providing the network for the wifi hotspot providing equipment.
4. The method of claim 3, wherein the determining the target connected device in the connected devices capable of providing networks for the wifi hotspot providing device comprises:
determining the connection equipment with the most used Internet protocol address in the connection equipment capable of providing the network for the wifi hotspot providing equipment;
and determining the connection device with the largest number of use times as the target connection device.
5. The method of claim 3, wherein the determining the target connected device in the connected devices capable of providing networks for the wifi hotspot providing device comprises:
determining the connecting equipment corresponding to the internet protocol address which is used last time in the connecting equipment capable of providing the network for the wifi hotspot providing equipment;
and determining the connecting equipment corresponding to the internet protocol address which is used last time as the target connecting equipment.
6. The method of claim 3, wherein the determining the target connected device in the connected devices capable of providing networks for the wifi hotspot providing device comprises:
and randomly selecting the target connection equipment from the connection equipment capable of providing the network for the wifi hotspot providing equipment.
7. A network access device of a wifi hotspot providing device comprises:
the device comprises a sending unit and a receiving unit, wherein the sending unit is used for sending a request message to the connecting equipment when the connecting equipment connected to the wifi hotspot is detected, and the request message is used for indicating the connecting equipment to determine whether the network is provided for the wifi hotspot providing equipment;
a receiving unit, configured to receive a response message sent by the connection device, where the response message is used to indicate that the connection device supports providing a network for the wifi hotspot providing device;
a first processing unit for accessing a network based on an internet protocol address of the connection device.
8. The apparatus of claim 7, further comprising a second processing unit and a third processing unit;
the second processing unit is used for determining target connection equipment from other current connection equipment connected with the wifi hotspot providing equipment when the connection equipment is detected to be disconnected from the wifi hotspot providing equipment, and the target connection equipment supports the network provision for the wifi hotspot providing equipment;
the third processing unit is used for accessing a network based on the internet protocol address of the target connection device.
9. The apparatus of claim 8, wherein the second processing unit comprises a first processing module and a second processing module;
the first processing module is used for determining connecting equipment capable of providing a network for the wifi hotspot providing equipment from other connecting equipment currently connected with the wifi hotspot providing equipment according to historical network access records;
the second processing module is used for determining the target connection device in the connection device capable of providing a network for the wifi hotspot providing device.
10. The apparatus of claim 9, wherein the first processing module comprises a first processing sub-module;
the first processing submodule is used for determining the connecting equipment with the largest number of times of using the internet protocol address in the connecting equipment capable of providing the network for the wifi hotspot providing equipment; and determining the connection device with the largest number of use times as the target connection device.
11. The apparatus of claim 9, wherein the first processing module comprises a second processing sub-module;
the second processing submodule is used for determining the connecting equipment corresponding to the internet protocol address which is used last time in the connecting equipment which can provide the network for the wifi hotspot providing equipment; and determining the connecting equipment corresponding to the internet protocol address which is used last time as the target connecting equipment.
12. The apparatus of claim 9, wherein the first processing module comprises a third processing sub-module;
and the third processing sub-module is used for randomly selecting the target connection equipment from the connection equipment capable of providing the network for the wifi hotspot providing equipment.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the network access method of the wifi hotspot providing device of any one of claims 1-6.
14. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the network access method of the wifi hotspot providing device of any one of claims 1-6.
15. A computer program product comprising a computer program which, when executed by a processor, implements a network access method of a wifi hotspot providing device according to any one of claims 1-6.
CN202011540320.8A 2020-12-23 2020-12-23 Network access method and device of wifi hotspot providing equipment and electronic equipment Active CN112714420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011540320.8A CN112714420B (en) 2020-12-23 2020-12-23 Network access method and device of wifi hotspot providing equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011540320.8A CN112714420B (en) 2020-12-23 2020-12-23 Network access method and device of wifi hotspot providing equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN112714420A true CN112714420A (en) 2021-04-27
CN112714420B CN112714420B (en) 2023-10-20

Family

ID=75543811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011540320.8A Active CN112714420B (en) 2020-12-23 2020-12-23 Network access method and device of wifi hotspot providing equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN112714420B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928540A (en) * 2022-05-13 2022-08-19 南京炫佳网络科技有限公司 Preemptive injection method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701876A (en) * 2013-12-12 2014-04-02 北京奇虎科技有限公司 Method and device based on shared network resources
CN109862605A (en) * 2019-01-22 2019-06-07 上海连尚网络科技有限公司 A kind of networking methods and equipment for terminal device
WO2019128906A1 (en) * 2017-12-29 2019-07-04 阿里巴巴集团控股有限公司 Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
CN110113744A (en) * 2019-04-18 2019-08-09 杭州涂鸦信息技术有限公司 Communication means, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701876A (en) * 2013-12-12 2014-04-02 北京奇虎科技有限公司 Method and device based on shared network resources
WO2019128906A1 (en) * 2017-12-29 2019-07-04 阿里巴巴集团控股有限公司 Method, apparatus, and system for accessing network hotspot device by device to be distributed a network
CN109862605A (en) * 2019-01-22 2019-06-07 上海连尚网络科技有限公司 A kind of networking methods and equipment for terminal device
CN110113744A (en) * 2019-04-18 2019-08-09 杭州涂鸦信息技术有限公司 Communication means, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928540A (en) * 2022-05-13 2022-08-19 南京炫佳网络科技有限公司 Preemptive injection method, device, electronic equipment and storage medium
CN114928540B (en) * 2022-05-13 2024-02-23 南京炫佳网络科技有限公司 Preemption method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112714420B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN110839084B (en) Session management method, device, equipment and medium
US20170230308A1 (en) Cloud-based service resource provisioning based on network characteristics
CN114697391B (en) Data processing method, device, equipment and storage medium
CN114500633B (en) Data forwarding method, related device, program product and data transmission system
CN112714420B (en) Network access method and device of wifi hotspot providing equipment and electronic equipment
CN104753825A (en) Instant messaging multi-terminal login status issuing method and system
CN113656198A (en) Copying and pasting method and device from client to cloud mobile phone
CN115514718B (en) Data interaction method, control layer and equipment based on data transmission system
CN113067769A (en) Router restarting method, device, equipment and storage medium
CN111988776A (en) Network switching method, device, equipment and storage medium
CN114449040B (en) Configuration issuing method and device based on cloud platform
CN113612643B (en) Network configuration method, device and equipment of cloud mobile phone and storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN113076175B (en) Memory sharing method and device for virtual machine
CN114553778A (en) Heartbeat control method and device, storage medium and electronic equipment
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN115567602A (en) CDN node back-to-source method, device and computer readable storage medium
CN113726881A (en) Communication connection establishment method, related device and computer program product
CN112925623A (en) Task processing method and device, electronic equipment and medium
CN110764932A (en) Data processing method, system, medium and computing device
CN112306371A (en) Method, apparatus and computer program product for storage management
CN115664842B (en) Communication link setting method, device, equipment and storage medium
CN114726901B (en) Container access method, device, equipment and storage medium
CN114025037B (en) Cloud mobile phone overhaul method and device, electronic equipment and storage medium
CN114780470B (en) Cloud mobile phone management system, method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20211026

Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Zhilian (Beijing) Technology Co.,Ltd.

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant