CN112714420B - 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
CN112714420B
CN112714420B CN202011540320.8A CN202011540320A CN112714420B CN 112714420 B CN112714420 B CN 112714420B CN 202011540320 A CN202011540320 A CN 202011540320A CN 112714420 B CN112714420 B CN 112714420B
Authority
CN
China
Prior art keywords
wifi hotspot
connection
network
providing
connection device
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.)
Active
Application number
CN202011540320.8A
Other languages
Chinese (zh)
Other versions
CN112714420A (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
Apollo Zhilian Beijing 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 Apollo Zhilian Beijing Technology Co Ltd filed Critical Apollo Zhilian Beijing 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

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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

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 the wifi hotspot providing device detects that the connection device connected to the wifi hotspot exists, the connection device sends a request message to confirm whether the connection device supports providing a network for the wifi hotspot providing device or not through the request message; when the connection equipment supports providing the network for the wifi hotspot providing equipment according to the response message sent by the connection equipment, the network is accessed based on the internet protocol address of the connection equipment, the network is accessed by the wifi hotspot providing equipment through software, and in the whole implementation process, hardware of a wifi hotspot provider is not required to be upgraded, so that 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, which can be particularly used in the technical fields of wireless communication, intelligent transportation and the like.
Background
Through wifi hotspot, can establish wireless network connection between wifi hotspot provider and the wifi hotspot connector. The network sharing provided by the wifi hotspot is single-phase, i.e. the wifi hotspot connector 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 of the wifi hotspot provider for accessing the internet, the hardware of the wifi hotspot provider needs to be upgraded, a new network card is added in the wifi hotspot provider, and the wifi hotspot provider accesses the internet through the new network card.
However, when the hardware of the wifi hotspot provider is upgraded, the hardware structure of the wifi hotspot provider may also need to be adjusted, resulting in greater operation difficulty.
Disclosure of Invention
The application provides a network access method, a device and electronic equipment of a wifi hotspot providing device, which realize the access of the wifi hotspot providing device to a network, and the hardware of the wifi hotspot providing device is not required to be updated, so that the operation difficulty is reduced.
According to an aspect of the present application, there is provided a network access method of a wifi hotspot providing apparatus, where the network access method of the wifi hotspot providing apparatus may include:
and when detecting that the connecting device connected to the wifi hotspot exists, sending a request message to the connecting device, wherein the request message is used for indicating the connecting device to determine whether the network providing device is supported for the wifi hotspot providing device.
And receiving a response message sent by the connection device, wherein the response message is used for indicating that the connection device supports providing a network for the wifi hotspot providing device.
The network is accessed based on an internet protocol address of the connected device.
According to another aspect of the present application, there is provided a network access apparatus of a wifi hotspot providing device, where the network access apparatus of the wifi hotspot providing device may include:
and the sending unit is used for sending a request message to the connection equipment when the connection equipment connected to the wifi hotspot is detected, wherein the request message is used for indicating the connection equipment to determine whether the network is supported to be provided for the wifi hotspot providing equipment.
And the receiving unit is used for receiving a response message sent by the connection equipment, wherein the response message is used for indicating that the connection equipment supports providing a network for the wifi hotspot providing equipment.
And the first processing unit is used for accessing the network based on the internet protocol address of the connecting equipment.
According to another aspect of the present application, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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 apparatus 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 the computer to execute the network access method of the wifi hotspot providing apparatus according to 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, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the network access method of the wifi hotspot providing device according to the first aspect.
According to the technical scheme, when the connection equipment connected to the wifi hotspot is detected, a request message is sent to the connection equipment, so that whether the connection equipment supports providing a network for the wifi hotspot providing equipment or not is confirmed through the request message; when the connection equipment supports providing the network for the wifi hotspot providing equipment according to the response message sent by the connection equipment, the network is accessed based on the internet protocol address of the connection equipment, the network is accessed by the wifi hotspot providing equipment through software, and in the whole implementation process, hardware of a wifi hotspot provider is not required to be upgraded, so that the operation difficulty is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
fig. 1 is a schematic diagram of a wireless communication system according to an embodiment of the present application;
fig. 2 is a flowchart of a network access method of a wifi hotspot providing apparatus according to the first embodiment of the present application;
fig. 3 is a flowchart of a network access method of a wifi hotspot providing apparatus according to a second embodiment of the present application;
fig. 4 is a flowchart of a network access method of a wifi hotspot providing apparatus according to a third embodiment of the present application;
fig. 5 is a schematic block diagram of a network access apparatus 50 of a wifi hotspot providing device provided according to a fourth embodiment of the application;
fig. 6 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. In the text description of the present application, the character "/" generally indicates that the front-rear associated object is an or relationship.
With the continuous development of internet technology, wireless networks, especially wifi networks, are becoming more and more popular. As a boundary device accessed by a user, a wifi hotspot becomes a key node for enhancing data security and performing user access control. Through wifi hotspot, can establish wireless network connection between wifi hotspot provider and the wifi hotspot connector. The wifi hotspot provider can convert the received network signals into wifi signals and send the wifi signals out, so that other electronic equipment, such as a mobile phone, a tablet or a notebook, and other portable equipment can be connected with the wifi signals 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. the wifi hotspot connector 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 of the wifi hotspot provider for accessing the internet, the hardware of the wifi hotspot provider needs to be upgraded, a new network card is added in the wifi hotspot provider, and the wifi hotspot provider accesses the internet through the new network card.
However, when the hardware of the wifi hotspot provider is upgraded, the hardware structure of the wifi hotspot provider may also need to be adjusted, resulting in greater operation difficulty.
In order to avoid upgrading the hardware of the wifi hotspot provider and thus reduce the operation difficulty, the access of the wifi hotspot provider to the network by adopting a pure software mode can be considered. When the wifi hotspot providing device accesses to the network in a pure software mode, a software development kit (Software Development Kit, SDK) can be developed based on a transmission control protocol/internet protocol (Transmission Control Protocol/Internet Protocol, for short, TCP/IP) protocol, the developed SDKs are respectively installed in two devices of a wifi hotspot provider and a wifi hotspot connector, the wifi hotspot provider is used as a client, and the wifi hotspot connector is used as a service end, so that when the wifi hotspot provider needs to access the network, the wifi hotspot connector is used as the service end, the internet protocol address (Internet Protocol, for short, IP) address of the wifi hotspot provider can be provided for the wifi hotspot provider to access the network based on the IP address of the wifi hotspot connector, the access of the wifi hotspot provider to the network is realized, and in the whole implementation process, the hardware of the wifi hotspot provider is not required to be upgraded, so that the operation difficulty is reduced.
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 transportation and the like in the technical field of internet. Referring to fig. 1, fig. 1 is a schematic diagram of a wireless communication system according to an embodiment of the present application, where the wireless communication system includes a wifi hotspot providing device for providing a wifi hotspot and a connection device for connecting the wifi hotspot. The wifi hotspot providing device sends a request message to the connection device when detecting that the connection device connected to the wifi hotspot exists; 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; receiving a response message sent by the connection device, wherein the response message is used for indicating that the connection device supports providing a network for wifi hotspot providing devices; upon determining that the connected device supports providing the network for the wifi hotspot providing device, accessing the network based on an internet protocol address of the connected device.
The wifi hotspot providing device is a device for providing a wifi hotspot, for example, a device such as a router, and the wifi hotspot providing device is located to be only used for providing the wifi hotspot when leaving a factory, and cannot access a network, but may have a network access requirement in the continuous iterative updating process of the wifi hotspot providing device. The connection device is an electronic device for connecting wifi hotspots, such as a mobile phone, a tablet or a notebook, and other portable devices.
It should be noted that, when the wifi hotspot providing device detects that there is a connection device connected to the wifi hotspot, sending a request message to the connection device may include two possible scenarios:
in one possible scenario, when the wifi hotspot providing apparatus has a network access requirement and the wifi hotspot providing apparatus does not currently configure an agent, that is, the wifi hotspot providing apparatus does not currently access the network based on the IP address of the connection apparatus, in this scenario, when the wifi hotspot providing apparatus detects that there is a connection apparatus connected to the wifi hotspot, a request message is sent to the connection apparatus, so as to confirm whether the connection apparatus supports providing the network for the wifi hotspot providing apparatus through the request message, and when it is confirmed that the connection apparatus supports providing the network for the wifi hotspot providing apparatus, the network is directly accessed through the IP address of the connection apparatus.
In another scenario, when the wifi hotspot providing apparatus has a network access requirement, and the wifi hotspot providing apparatus is currently configured with an agent, that is, the wifi hotspot providing apparatus has currently accessed the network based on the IP address of the connection apparatus, in this scenario, when the wifi hotspot providing apparatus detects that there is a connection apparatus connected to the wifi hotspot, a request message is sent to the connection apparatus to confirm whether the connection apparatus supports providing the network for the wifi hotspot providing apparatus through the request message, and when it is confirmed that the connection apparatus supports providing the network for the wifi hotspot providing apparatus, the IP address of the new connection apparatus may be recorded in the history network access record instead of directly switching and accessing the network based on the IP address of the connection apparatus. As to why the IP address of the new connected device is to be recorded in the history of network access, it will be described in detail later. If the network access terminal caused by the handover is not considered, the network may be directly switched and accessed based on the IP address of the connection device, and the setting may be specifically performed according to the actual needs, and the embodiment of the present application is not limited further herein.
Thus, it can be seen that, for the wifi hotspot providing apparatus, even if the network has been accessed based on the IP address of the connecting apparatus currently, a request message can be sent to the connecting apparatus when the presence of the connecting apparatus is detected, to confirm through the request message whether the connecting apparatus supports providing the network for the wifi hotspot providing apparatus.
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 connection equipment supports providing the network for the wifi hotspot providing equipment according to the response message sent by the connection equipment, the network is accessed based on the internet protocol address of the connection equipment, the network is accessed by the wifi hotspot providing equipment through software, and in the whole implementation process, hardware of a wifi hotspot provider is not required to be upgraded, so that the operation difficulty is reduced.
In the following, taking the first possible scenario described above, when the wifi hotspot providing apparatus has a network access requirement and the wifi hotspot providing apparatus is not currently configured with an agent, if it is confirmed that the connection apparatus supports providing a network for the wifi hotspot providing apparatus, the network is directly accessed through an IP address of the connection apparatus as an example, and the network access method of the wifi hotspot providing apparatus provided by the present application is described in detail through a specific embodiment. It is to be understood that the following embodiments may be combined with each other and that some embodiments may not be repeated for the same or similar concepts or processes.
Example 1
Fig. 2 is a flowchart of a network access method of a wifi hotspot providing apparatus according to a first embodiment of the present application, where the network access method of the wifi hotspot providing apparatus may be executed by a software and/or hardware device. For example, referring to fig. 2, the network access method of the wifi hotspot providing device may include:
s201, when the wifi hotspot providing device detects that a connection device connected to the wifi hotspot exists, the wifi hotspot providing device sends a request message to the connection 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 the connecting device connected to the wifi hotspot exists or not, if the connecting device is not detected, continuing to detect; in contrast, if the connection device is detected, the network is not directly accessed based on the IP address of the connection device, but whether the connection device supports providing the network for the wifi hotspot providing device is confirmed, and whether the network is accessed based on the IP address of the connection device is determined according to the confirmation result.
For example, when confirming whether the connection device supports providing the network for the wifi hotspot providing device, a request message for indicating the connection device to determine whether the connection device supports providing the network for the wifi hotspot providing device may be sent to the connection device; correspondingly, after receiving the request message, the connection device confirms whether the connection device supports providing a network for the wifi hotspot providing device. If the connection device does not support providing the network for the wifi hotspot providing device, the connection device may send a response message to the wifi hotspot providing device, where the response message indicates that the network for the wifi hotspot providing device is not supported; or when the connection device does not support providing the network for the wifi hotspot providing device, the connection device may not send the response message; if the wifi hotspot providing device does not receive the response message sent by the connecting device, the default connecting device does not support providing a network for the wifi hotspot providing device; or when the connection device does not support providing the network for the wifi hotspot providing device, the connection device may not receive a request message sent by the connection device and used for indicating the connection device to determine whether the connection device supports providing the network for the wifi hotspot providing device, so that a response message is not 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, the connection device may also default that the connection device does not support providing the network for the wifi hotspot providing device.
In another possible case, if the connection device supports providing the network for the wifi hotspot providing device, the connection device may send a message to the wifi hotspot providing device to indicate that the connection device supports providing the network for the wifi hotspot providing device, i.e. the following S202 is executed:
s202, the connection device sends a response message to the sending device.
The response message is used for indicating that the connection device supports providing a network for the wifi hotspot providing device.
S203, the wifi hotspot providing device accesses the network based on the internet protocol address of the connecting device.
After receiving a response message sent by the connection device and used for indicating that the connection device supports providing the 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 network can be accessed directly based on the internet protocol address of the connection device, and access of the wifi hotspot providing device to the network is achieved.
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 connection equipment supports providing the network for the wifi hotspot providing equipment according to the response message sent by the connection equipment, the network is accessed based on the internet protocol address of the connection equipment, the network is accessed by the wifi hotspot providing equipment through software, and in the whole implementation process, hardware of a wifi hotspot provider is not required to be upgraded, so that the operation difficulty is reduced.
Based on the embodiment shown in fig. 2, when the wifi hotspot providing apparatus accesses the network based on the IP address of the currently connected connection apparatus, if the currently connected connection apparatus is disconnected, but the wifi hotspot providing apparatus needs to continue to access the network, how to implement the access of the wifi hotspot providing apparatus to the network. In the following, through the following second embodiment, how to implement access to the network by the wifi hotspot providing apparatus when the currently connected connection apparatus is disconnected, but the wifi hotspot providing apparatus needs to continue to access the network will be described in detail.
Example two
Fig. 3 is a flowchart of a network access method of a wifi hotspot providing apparatus according to a second embodiment of the present application, where the network access method of the wifi hotspot providing apparatus may also be executed by a software and/or hardware device. For example, referring to fig. 3, the network access method of the wifi hotspot providing device may include:
and S301, when the connection equipment is detected to be disconnected with the wifi hotspot providing equipment, determining the target connection equipment from other connection equipment currently connected with the wifi hotspot providing equipment.
The target connection device supports the network providing for the wifi hotspot providing device.
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 confirming whether the connection device supports providing a network for the wifi hotspot providing device may be sequentially sent to other connection devices currently connected, and according to a response situation of the connection device, a connection device capable of providing a network for the wifi hotspot providing device is determined from other connection devices currently connected to the wifi hotspot providing device, so as to determine a target connection device.
In another possible implementation manner, the target connection device may not need to be determined by sending a request message, but the connection device capable of providing a 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 the target connection device in the connection devices capable of providing a network for the wifi hotspot providing device.
It may be appreciated that, in the embodiment of the present application, for a wifi hotspot providing apparatus, each time the network is accessed based on the IP address of the connection apparatus, the IP address of the connection apparatus may be recorded in a historical network access record; or when the network is accessed based on the IP address of the connecting device every time, if the connecting device which can provide the network for the wifi hotspot providing device is detected at the same time, even if the wifi hotspot providing device may not pass through the network based on the IP address network of the new connecting device, the IP address of the new connecting device can be recorded in the history network access record, and particularly can be set 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 wifi hotspot providing device can directly determine the connection device capable of providing the network for the wifi hotspot providing device from the connection devices currently connected with the wifi hotspot providing device according to the history network access record by recording the IP address of the connection device in the history network access record, so that the wifi hotspot providing device is prevented from sequentially sending a request message for confirming whether the connection device supports providing the network for the wifi hotspot providing device to other connection devices currently connected, and the connection device capable of providing the network for the wifi hotspot providing device is determined through response conditions, thereby 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, determining the target connection device from the connection devices capable of providing the network for the wifi hotspot providing device. For example, in the connection device capable of providing a network for the wifi hotspot providing device, when determining the target connection device, at least three possible implementations may be included:
in one possible implementation manner, the connection device with the most use times of the internet protocol address can be determined from the connection devices capable of providing a network for the wifi hotspot providing device; and the connection device with the largest number of uses is determined as the target connection device.
It can be seen that, in this possible implementation manner, when selecting the target connection device, if the more the internet protocol address of a certain connection device is used by the wifi hotspot providing device, it is indicated that the wifi hotspot providing device prefers to access the network by using the internet protocol address of the connection device, and by determining the connection device with the largest use number as the target connection device, the target connection device can be determined according to the use preference of the wifi hotspot providing device, so as to meet the use preference requirement of the wifi hotspot providing device.
In another possible implementation manner, the connection device corresponding to the internet protocol address used last time may be determined in the connection devices capable of providing a network for the wifi hotspot providing device; and determining the connection device corresponding to the last used Internet protocol address as the target connection device.
It can be seen that in this possible implementation manner, when the target connection device is selected, since the connection device corresponding to the internet protocol address used last time is likely to be still supporting to provide the network for the wifi hotspot providing device currently, while other previous connection devices may have already offloaded the SDK and may not support to provide the network for the wifi hotspot providing device any more, by determining the connection device corresponding to the internet protocol address used last time as the target connection device, the selected target connection device may be ensured to be a connection supporting to provide the network for the wifi hotspot providing device to a certain extent, so that the reliability of the selected target connection device may be improved.
In yet another possible implementation, the target connection device may be selected randomly from connection devices capable of providing 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 capable of providing 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 equipment is selected by the method, the network can be accessed based on the internet protocol address of the target connection equipment, so that the wifi hotspot providing equipment can still access the network based on the internet protocol address of the target connection equipment even if the currently connected connection equipment is disconnected.
Example III
In a possible application scenario, for example, please refer to fig. 4, fig. 4 is a schematic flow chart of 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, detect whether there is a connection device connected to the wifi hotspot, and if no connection device is detected, continue waiting for the connection device to connect; if the connection equipment is detected, confirming whether the connection equipment supports providing a network for the wifi hotspot providing equipment or not by sending a request message; if the connection equipment does not support providing a network for the wifi hotspot providing equipment, waiting for the connection equipment to connect, and detecting whether the connection equipment connected to the wifi hotspot exists; if the connection device supports providing a network for the wifi hotspot providing device, the network is not directly accessed based on the IP address of the connection device, but whether the wifi hotspot providing device is currently provided with an agent is further judged, and the network access of the wifi hotspot providing device is realized; if the proxy is configured at present, recording the IP address of the connecting device in a history network access record, and continuing to wait for the connecting device to connect; if no agent is configured at present, the network is accessed based on the IP address of the connection equipment and the connection equipment is waited for connection, 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 provider is not required to be upgraded, so that the operation difficulty is reduced.
Example IV
Fig. 5 is a schematic block diagram of a network access apparatus 50 of a wifi hotspot providing device according to a fourth embodiment of the application, and as shown in fig. 5, for example, the network access apparatus 50 of the wifi hotspot providing device may include:
the sending unit 501 is configured to send, when detecting that there is a connection device connected to the wifi hotspot, a request message to the connection device, where the request message is used to instruct the connection device to determine whether to support providing a network for the wifi hotspot providing device.
And the receiving unit 502 is 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 503 for accessing the network based on the internet protocol address of the connected device.
Optionally, the network access device 50 of the wifi hotspot providing apparatus further includes a second processing unit 504 and a third processing unit 505.
And the second processing unit 504 is configured to determine, when it is detected that the connection device is disconnected from the wifi hotspot providing device, a target connection device from other connection devices currently connected to 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 is configured to access 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 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 according to the historical network access record.
And the second processing module is used for determining the target connection equipment in the connection equipment capable of providing the network for the wifi hotspot providing equipment.
Optionally, the first processing module includes a first processing sub-module.
The first processing sub-module is used for determining the connection equipment with the most use times of the Internet protocol address in the connection equipment capable of providing a network for the wifi hotspot providing equipment; and the connection device with the largest number of uses is determined as the target connection device.
Optionally, the first processing module includes a second processing sub-module.
The second processing sub-module is used for determining the connection equipment corresponding to the last used Internet protocol address in the connection equipment capable of providing a network for the wifi hotspot providing equipment; and determining the connection device corresponding to the last used internet protocol address as the target connection device.
Optionally, the first processing module includes a third processing sub-module.
And the third processing sub-module is used for randomly selecting the target connection device from the connection devices capable of providing the network for the wifi hotspot providing device.
The network access device 50 of the wifi hotspot providing apparatus according to the embodiment of the present application may execute the technical scheme of the network access method of the wifi hotspot providing apparatus shown in any of the foregoing embodiments, and the implementation principle and the beneficial effects of the network access method of the wifi hotspot providing apparatus are similar to those of the wifi hotspot providing apparatus, and may be referred to the implementation principle and the beneficial effects of the network access method of the wifi hotspot providing apparatus, which are not described herein again.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is stored in a readable storage medium, 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, so that the 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 the implementation principle and beneficial effects of the network access method of the wifi hotspot providing device can be seen, and are not repeated herein.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
Fig. 6 is a schematic block diagram of an electronic device 600 provided by 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary 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 that 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 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; 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 computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a network access method of a 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 on a machine-readable medium, such as 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 apparatus described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the network access method of the wifi hotspot providing device in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A network access method of a wifi hotspot providing device, where the wifi hotspot providing device accesses a network currently based on an internet protocol address of a first connection device, and the first connection device is currently connected with the wifi hotspot providing device, including:
when a second connection device connected to the wifi hotspot providing device is detected, sending a request message to the second connection device, wherein the request message is used for indicating the second connection device to determine whether the second connection device supports providing a network for the wifi hotspot providing device;
when receiving a response message sent by the second connection device, recording an internet protocol address of the second connection device in a historical network access record, wherein the response message is used for indicating that the second connection device supports providing a network for the wifi hotspot providing device; the wifi hotspot providing equipment records the IP address of the connecting equipment in the historical network access record when accessing the network based on the IP address of the connecting equipment each time;
when the first connection device is detected to be disconnected with the wifi hotspot providing device, determining a target connection device from other connection devices currently connected with the wifi hotspot providing device according to the historical network access record;
and accessing a network based on the internet protocol address of the target connection device.
2. The method of claim 1, wherein determining a target connection device from the other connection devices currently connected to the wifi hotspot providing device according to the historical network access record comprises:
determining the connection equipment with the most use times of the Internet protocol address in the connection equipment capable of providing a network for the wifi hotspot providing equipment;
and determining the connection device with the largest use number as the target connection device.
3. The method of claim 1, wherein determining a target connection device from the other connection devices currently connected to the wifi hotspot providing device according to the historical network access record comprises:
determining a connection device corresponding to the last used Internet protocol address in connection devices capable of providing a network for the wifi hotspot providing device;
and determining the connection equipment corresponding to the last used Internet protocol address as the target connection equipment.
4. The method of claim 1, wherein determining a target connection device from the other connection devices currently connected to the wifi hotspot providing device according to the historical network access record comprises:
and randomly selecting the target connection device from connection devices capable of providing a network for the wifi hotspot providing device.
5. A network access apparatus of a wifi hotspot providing device, the wifi hotspot providing device currently accessing a network based on an internet protocol address of a first connection device, the first connection device currently being connected with the wifi hotspot providing device, comprising:
a sending unit, configured to send a request message to a second connection device when detecting that the second connection device is connected to the wifi hotspot providing device, where the request message is used to instruct the second connection device to determine whether to support providing a network for the wifi hotspot providing device;
a receiving unit, configured to record, when receiving a response message sent by the second connection device, an internet protocol address of the second connection device in a historical network access record, where the response message is used to indicate that the second connection device supports providing a network for the wifi hotspot providing device; the wifi hotspot providing equipment records the IP address of the connecting equipment in the historical network access record when accessing the network based on the IP address of the connecting equipment each time;
the second processing unit is used for determining a target connection device from the other connection devices currently connected with the wifi hotspot providing device according to the historical network access record when the first connection device is detected to be disconnected with the wifi hotspot providing device;
and the first processing unit is used for accessing the network based on the internet protocol address of the target connection equipment.
6. The apparatus of claim 5, wherein,
the second processing unit is specifically configured to determine, among connection devices capable of providing a network for the wifi hotspot providing device, a connection device with a maximum number of internet protocol address uses; and determining the connection device with the largest number of uses as the target connection device.
7. The apparatus of claim 5, wherein,
the second processing unit is specifically configured to determine, among connection devices capable of providing a network for the wifi hotspot providing device, a connection device corresponding to an internet protocol address that is used last time; and determining the connection device corresponding to the last used internet protocol address as the target connection device.
8. The apparatus of claim 5, wherein,
the second processing unit is specifically configured to randomly select the target connection device from connection devices capable of providing a network for the wifi hotspot providing device.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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 apparatus of any of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the network access method of the wifi hotspot providing apparatus of any of claims 1-4.
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 CN112714420A (en) 2021-04-27
CN112714420B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928540B (en) * 2022-05-13 2024-02-23 南京炫佳网络科技有限公司 Preemption method and 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

Also Published As

Publication number Publication date
CN112714420A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
WO2020207454A1 (en) Information pushing method and device
CN113626224B (en) NFC data interaction method and device, electronic equipment and storage medium
US20170230308A1 (en) Cloud-based service resource provisioning based on network characteristics
CN109729040B (en) Method, apparatus and computer readable medium for selection of a protocol
KR20150013860A (en) Clientless cloud computing
CN110839084A (en) Session management method, device, equipment and 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
CN114025037B (en) Cloud mobile phone overhaul method and device, electronic equipment and storage medium
CN114697391A (en) Data processing method, device, equipment and storage medium
CN104753825A (en) Instant messaging multi-terminal login status issuing method and system
US20210250408A1 (en) Server node selection method and terminal device
CN115514718B (en) Data interaction method, control layer and equipment based on data transmission system
CN111988776A (en) Network switching method, device, equipment and storage medium
CN113612643B (en) Network configuration method, device and equipment of cloud mobile phone and storage medium
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN112153754B (en) Point-to-point connection method and device, electronic equipment and storage medium
US10795721B2 (en) Transferring tasks from failing devices using IoT
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN113630298A (en) Intelligent control system, method and device
CN108111431B (en) Service data sending method, device, computing equipment and computer readable storage medium
CN110764932A (en) Data processing method, system, medium and computing device
CN112306371A (en) Method, apparatus and computer program product for storage management
US10218799B2 (en) Optimizing client distance to network nodes

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