CN113068231A - Network access method and device - Google Patents

Network access method and device Download PDF

Info

Publication number
CN113068231A
CN113068231A CN202010000564.0A CN202010000564A CN113068231A CN 113068231 A CN113068231 A CN 113068231A CN 202010000564 A CN202010000564 A CN 202010000564A CN 113068231 A CN113068231 A CN 113068231A
Authority
CN
China
Prior art keywords
network access
connection
identification information
unit
equipment
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.)
Pending
Application number
CN202010000564.0A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010000564.0A priority Critical patent/CN113068231A/en
Publication of CN113068231A publication Critical patent/CN113068231A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0027Control or signalling for completing the hand-off for data sessions of end-to-end connection for a plurality of data sessions of end-to-end connections, e.g. multi-call or multi-bearer end-to-end data connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The invention discloses a network access method, which comprises the following steps: the method comprises the steps that the gateway equipment opens a first channel under the condition that a first preset condition is met, and first connection is established with the first equipment on the basis of the first channel; obtaining a network access request sent by first equipment based on the first connection; and sending network access information to the first equipment under the condition that the network access request meets a second preset condition, wherein the network access information is used for switching the first equipment from the first connection to a second connection so as to access a network. The invention also discloses a network access device.

Description

Network access method and device
Technical Field
The present invention relates to network access technologies, and in particular, to a network access method and apparatus.
Background
At present, many Wireless Fidelity (Wi-Fi) devices, such as an intelligent refrigerator, an intelligent sound box and the like, need to be accessed to an intelligent gateway to realize an internet surfing function, but most WIFI devices do not have a display function, so how to set the devices to enable the devices to be accessed to the intelligent gateway becomes an important problem.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a network access method and apparatus.
The technical scheme of the embodiment of the invention is realized as follows:
according to an aspect of an embodiment of the present invention, there is provided a network access method, including:
the method comprises the steps that under the condition that a first preset condition is met, a first channel is opened by gateway equipment, and a first connection is established with first equipment on the basis of the first channel;
obtaining a network access request sent by first equipment based on the first connection;
and sending network access information to the first equipment under the condition that the network access request meets a second preset condition, wherein the network access information is used for switching the first equipment from the first connection to a second connection so as to access a network.
In the foregoing solution, when the gateway device meets a first preset condition, the opening a first channel includes:
receiving a first instruction sent by second equipment, and opening a first channel based on the first instruction.
In the foregoing scheme, the network access request meeting a second preset condition includes:
acquiring first identification information carried in the network access request, wherein the first identification information uniquely represents the first equipment;
searching the first identification information in a pre-stored identification information set;
and determining that the network access request meets a second preset condition under the condition that the first identification information is found in the identification information set.
In the foregoing scheme, before the opening the first channel, the method further includes:
receiving first identification information of the first equipment sent by second equipment; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device;
and storing the first identification information into a pre-generated identification information set.
In the above scheme, the method further comprises:
receiving a network access success message sent by the first device;
closing the first channel based on the network access success message.
According to another network access method of the embodiment of the invention, the method comprises the following steps:
the first device establishes a first connection with the gateway device; the first connection is established based on a first channel opened by the gateway equipment;
sending a network access request to the gateway device based on the first connection;
receiving network access information sent by the gateway equipment under the condition that the network access request meets a second preset condition;
switching from the first connection to a second connection based on the network access information to access a network.
In the above scheme, the method further comprises:
and sending a network access success message to the gateway equipment, and deleting the related information corresponding to the first channel.
According to a third aspect of the embodiments of the present invention, there is provided a network access apparatus, the apparatus including:
the device comprises an opening unit, a first communication unit and a second communication unit, wherein the opening unit is used for opening a first channel and establishing first connection with first equipment based on the first channel under the condition that a first preset condition is met;
an obtaining unit, configured to obtain, based on the first connection, a network access request sent by a first device;
a sending unit, configured to send network access information to the first device when the network access request meets a second preset condition, where the network access information is used for the first device to switch from the first connection to a second connection to access a network.
In the above scheme, the apparatus further comprises:
the receiving unit is used for receiving a first instruction sent by the second equipment;
the opening unit is specifically configured to open a first channel based on the first instruction.
In the above scheme, the apparatus further comprises: a searching unit and a determining unit;
the obtaining unit is further configured to obtain first identification information carried in the network access request, where the first identification information uniquely represents the first device;
the searching unit is used for searching the first identification information in a pre-stored identification information set;
the determining unit is configured to determine that the network access request meets a second preset condition when the first identification information is found in the identification information set.
In the above scheme, the apparatus further comprises: a generating unit;
the receiving unit is further configured to receive first identification information of the first device sent by a second device; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device;
the generating unit is used for storing the first identification information into a pre-generated identification information set.
According to a fourth aspect of the embodiments of the present invention, there is provided a network access apparatus, the apparatus including:
the device comprises an establishing unit, a receiving unit and a sending unit, wherein the establishing unit is used for establishing first connection with gateway equipment; the first connection is established based on a first channel opened by the gateway equipment;
a sending unit, configured to send a network access request to the gateway device based on the first connection;
a receiving unit, configured to receive network access information sent by the gateway device when the network access request meets a second preset condition;
a switching unit, configured to switch from the first connection to a second connection based on the network access information, so as to access a network.
In the above scheme, the apparatus further comprises: a deletion unit;
the sending unit is further configured to send a network access success message to the gateway device;
and the deleting unit is used for deleting the relevant information corresponding to the first channel.
According to a fifth aspect of the embodiments of the present invention, there is provided a network access apparatus, the apparatus including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of any of the above network access methods when executing the computer program.
According to a sixth aspect of embodiments of the present invention, there is provided a computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of any one of the above-described network access methods.
According to the network access method and the network access device provided by the embodiment of the invention, the first channel is opened through the gateway equipment under the condition that the first preset condition is met, and the first connection is established with the first equipment based on the first channel; obtaining a network access request sent by first equipment based on the first connection; and sending network access information to the first equipment under the condition that the network access request meets a second preset condition, wherein the network access information is used for switching the first equipment from the first connection to a second connection so as to access a network. In this way, the first device can be enabled to automatically establish a connection with the gateway device to access the network.
Drawings
Fig. 1 is a first schematic flow chart illustrating an implementation of a network access method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a second implementation flow of the network access method according to the embodiment of the present invention;
fig. 3 is a schematic flow chart of a third implementation of the network access method in the embodiment of the present invention;
fig. 4a is a schematic structural diagram of a network access device according to an embodiment of the present invention;
fig. 4b is a schematic structural diagram of a network access device according to an embodiment of the present invention;
fig. 5a is a schematic structural diagram of a network access device according to an embodiment of the present invention;
fig. 5b is a schematic structural diagram of a network access device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a network access device in the embodiment of the present application.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
In various embodiments of the present invention, the system architecture to which the network access method is applied may include a gateway device, a first device, and a second device; as an embodiment, the first device may have a wireless network access function, and the first device may have a Wi-Fi function therein, for example, the first device may be a household appliance with a Wi-Fi function, such as an air conditioner, a washing machine, a refrigerator, an electric cooker, and the like.
In one scenario, the first device may establish a connection with the gateway device through the second device. So as to realize the purpose of the first device accessing the network. For example, the second device may be a cell phone, a tablet, a wearable device, or the like.
Specifically, the second device is also provided with a Client corresponding to the first device, the first device opens an independent hotspot a in a Host (Wi-Fi Host) mode, the user connects to the hotspot a by using the second device, and inputs network access information (a name and a password of a hotspot B of the gateway device) through the Client, so that the network access information is transmitted to the first device through the hotspot a, and after receiving the network access information through the hotspot a, the first device switches from the Host (Wi-Fi Host) mode to the Client (Wi-Fi Client) mode, and closes the hotspot a to access the hotspot B through the network access information. In this way, the first device is connected to the gateway device so that the first device accesses the network through the hotspot B.
In this scenario, because the user needs to manually input the network access information, for some users who do not use the functions of the smart device, the problem of input error is likely to occur, so that the success rate of accessing the first device to the network is low and the speed is slow. In this embodiment of the present invention, when the second device sends a first instruction to the gateway device through the client, the gateway device may receive the first instruction, and may open a first channel based on the first instruction, and the first device may directly establish a first connection with the gateway device based on the first channel.
The following detailed description of embodiments of the invention refers to the accompanying drawings.
Fig. 1 is a schematic flow chart of a first implementation process of a network access method in an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, the gateway device opens a first channel when meeting a first preset condition, and establishes a first connection with the first device based on the first channel.
In this application, when the gateway device receives a first instruction sent by the second device, it is characterized that the gateway device meets a first preset condition, and at this time, the gateway device may open the first channel based on the first instruction.
Here, the second device may be a mobile phone, a tablet, a wearable device, or the like. The first instruction may specifically refer to a device network access instruction sent by the second device.
When the gateway device opens the first channel based on the first instruction, the gateway device may also establish a first connection with the first device based on the first channel.
Here, the first channel may specifically be a channel that is pre-agreed in the gateway device and corresponds to a hotspot used for access by the first device. The hotspot may also include a preset name.
And 102, acquiring a network access request sent by the first equipment based on the first connection.
In this application, after the gateway device establishes the first connection with the first device based on the first channel, the first device may send a network access request to the gateway device through the first connection to request to access the network, and the gateway device may receive the network access request sent by the first device through the first connection.
Alternatively, the gateway device may send a network entry notification message to the first device through the first connection to notify that the first device may send a network entry request to the gateway device. And under the condition that the first equipment receives the network access notification message, sending a network access request to the gateway equipment through the first connection so as to request for accessing the network.
Step 103, sending network access information to the first device when the network access request meets a second preset condition, where the network access information is used for the first device to switch from the first connection to a second connection to access a network.
In the application, when the gateway device receives a network access request sent by the first device, the first identification information carried in the network access request can be acquired, and the first identification information is searched in a preset stored identification information set to obtain a search result. And when the search result represents that the first identification information is searched in the preset stored identification information set, representing that the network access request meets a second preset condition. At this time, the gateway device may transmit the network access information to the first device through the first connection.
Here, the first identification information uniquely represents the first device. For example, the first identification information may be a Media Access Control (MAC) address of the first device, or other address that may uniquely represent the first device.
In this application, the network access information sent by the gateway device to the first device may include an internet Service Set Identifier (SSID) and a password. The first device may switch from the first connection to the second connection to access the network through the network access information.
In this application, because the first channel is a channel agreed by the gateway device and the first device, it can be understood that the first channel is an open channel, and the first device can only send a network access request to the gateway device through the first connection corresponding to the first channel and receive the network access information sent by the gateway device, but cannot access the network to implement the internet surfing function.
In the application, after the first device successfully accesses the network based on the network access information, the first device may further send a network access success message to the gateway device through the second connection, and after the gateway device receives the network access success message sent by the first device, the gateway device may further send the network access success message to the second device, and meanwhile, the first device and the gateway device may further delete related information corresponding to the first connection.
For example, the related information corresponding to the first connection includes interface information and/or a channel name corresponding to the first channel, and the like.
In the application, before the gateway device opens the first channel, the gateway device may further receive first identification information of the first device, which is sent by the second device; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device.
For example, the second device may scan the graphic symbol on the first device in a code scanning manner, and read the graphic symbol information corresponding to the graphic symbol to obtain the first identification information of the first device. For example, the graphical symbol may be a two-dimensional code, a bar code, or the like.
When the second device obtains the first identification information of the first device, the second device may send the first identification information to the gateway device, and after receiving the first identification information, the gateway device stores the first identification information in a white list of a database, so as to verify the access qualification of the first device subsequently.
Here, the white list of the database stores a set of identification information.
According to the method and the device, the MAC address of the first equipment is acquired in a code scanning mode, and for some users who can not use mobile phone functions, the error transmission probability existing in manual input of the users can be avoided, so that the success rate of the first equipment accessing the network quickly can be greatly improved.
Through the network access scheme provided by the application, the network access function of the first equipment can be realized, and any text information does not need to be manually input by a user, so that the error input probability of the user can be avoided, and the network access efficiency of the equipment is improved.
Fig. 2 is a schematic diagram of a second implementation flow of the network access method in the embodiment of the present invention, as shown in fig. 2, the method includes:
step 201, a first device establishes a first connection with a gateway device; the first connection is established based on a first channel opened by the gateway equipment;
in this application, first equipment specifically can be refrigerator, washing machine, air conditioner, electric rice cooker etc. that have the WIFI function.
When the gateway device receives a first instruction sent by the second device, the gateway device may open the first channel based on the first instruction, and at this time, the first device may establish a first connection with the gateway device based on the first channel.
Here, the second device may be a mobile phone, a tablet, a wearable device, or the like.
The first channel may be an agreed public channel between the gateway device and the first device, for example, the first channel may be a WIFI hotspot channel, and the first channel may include a preset name, or a preset name and a preset password.
For example, the preset name may use the name of the first device.
Step 202, sending a network access request to the gateway device based on the first connection;
in the application, after the first device establishes the first connection with the gateway device, the first device sends a network access request to the gateway device through the first connection to request to access the network.
Here, the network access request generally carries first identification information of the first device, and the first identification information uniquely represents the first device.
For example, the first identification information is a MAC address of the first device, or other information uniquely representing the first device.
Step 203, receiving network access information sent by the gateway device under the condition that the network access request meets a second preset condition;
in the application, when the gateway device receives a network access request sent by the first device, the first identification information carried in the network access request can be acquired, and the first identification information is searched in a preset stored identification information set to obtain a search result. And when the search result represents that the first identification information is searched in the preset stored identification information set, representing that the network access request meets a second preset condition. At this time, the gateway device may transmit the network access information to the first device through the first connection.
Here, the network access information may include an SSID and a password.
Step 204, switching from the first connection to a second connection based on the network access information to access a network.
In the application, the first channel is a public channel, and the first device can only send a network access request to the gateway device through the first connection corresponding to the first channel and receive the network access information sent by the gateway device, but cannot access the network to realize the internet surfing function, so that the first device can be switched from the first connection to the second connection based on the network access information only under the condition that the network access information sent by the gateway device through the first connection is received, and the internet surfing function is realized by accessing the network.
Here, the first device may also delete the related information corresponding to the first channel after switching from the first connection to the second connection based on the network access information to successfully access the network.
For example, the related information corresponding to the first channel includes interface information and/or a channel name and the like corresponding to the first channel.
In the application, the first device, when switching from the first connection to the second connection based on the network access information to successfully access the network, also sends a network access success message to the gateway device, so that the gateway device deletes the relevant information corresponding to the first channel.
For example, the related information corresponding to the first channel includes interface information and/or a channel name and the like corresponding to the first channel.
The gateway device also sends the network access success message to the second device when receiving the network access success message sent by the first device.
Fig. 3 is a schematic flowchart of a third implementation flow of the network access method in the embodiment of the present invention, as shown in fig. 3, a system to which the network access method is applied may include a mobile phone 100, an intelligent gateway 200, and a Wi-Fi device 300, where the mobile phone 100 is equivalent to the second device in the foregoing embodiment; the WIFI device 300 corresponds to the first device in the foregoing embodiments. An application program (APP) of the WIFI device is installed on the mobile phone 100.
In the preparation stage:
1. the user scans the two-dimensional code of the WIFI device 300 through the two-dimensional code scanning function of the mobile phone 100 to read the graphic symbol information on the WIFI device 300, and obtain the MAC address of the WIFI device 300. Sending the MAC address to the intelligent gateway 200, and adding the MAC address into a white list of a database by the intelligent gateway 200;
2. a user sends an instruction for starting a device distribution network to the intelligent gateway 200 through the APP on the mobile phone 100;
3. after receiving the instruction, the intelligent gateway 200 opens a channel of the WIFI hotspot. And the channel is an open channel agreed by the smart gateway 200 and the WIFI device 300. The public channel also comprises a name CMCC-QLINK (the name is a contracted name, no password or a set contracted password);
4. meanwhile, after the WIFI equipment 300 is powered on and started, the equipment enters a distribution network process;
and a network distribution stage:
5. the WIFI equipment 300 tries to connect with the CMCC-QLINK and sends a network access request to the intelligent gateway 200, and the network access request carries the MAC address of the WIFI equipment 300;
6. the intelligent gateway 200 compares the received MAC address with a white list stored in a database, and if the MAC address is found in the white list, the WIFI equipment 300 is allowed to access the network;
7. the intelligent gateway 200 sends an internet SSID and a password to the WIFI device 300 through the CMCC-QLINK hotspot channel;
8. after receiving the message of the network access SSID and the password, the WIFI device 300 switches the network access channel to disconnect the first connection corresponding to the CMCC-QLINK hotspot channel and reestablish a second connection with the gateway device through the network access SSID and the password;
9. after the second connection is completed, the WIFI device 300 sends a notification of successful network access to the intelligent gateway 200;
10. the intelligent gateway 200 sends a device network access success notification to the APP of the mobile phone 100, and clears the relevant resources corresponding to the CMCC-QLINK hotspot channel.
By the network access method, the network access function of the WIFI equipment can be achieved, the whole process of accessing the WIFI equipment into the network is very simple, convenience is provided for users using household appliances with WIFI modules, and user experience is improved.
Fig. 4a is a schematic structural diagram of a network access device according to an embodiment of the present invention, where the network access device may be applied to a gateway device. As shown in fig. 4a, the apparatus comprises:
the starting unit 401 is configured to, when a first preset condition is met, start a first channel, and establish a first connection with a first device based on the first channel;
an obtaining unit 402, configured to obtain, based on the first connection, a network access request sent by a first device;
a sending unit 403, configured to send network access information to the first device when the network access request meets a second preset condition, where the network access information is used for the first device to switch from the first connection to a second connection to access a network.
Fig. 4b is a schematic structural diagram of a network access device in the embodiment of the present invention, and as shown in fig. 4b, the device further includes:
a receiving unit 404, configured to receive a first instruction sent by a second device;
the opening unit 401 is specifically configured to open a first channel based on the first instruction.
In an optional embodiment of the present application, the apparatus further comprises: a search unit 405 and a determination unit 406;
the obtaining unit 402 is further configured to obtain first identification information carried in the network access request, where the first identification information uniquely represents the first device;
the searching unit 405 is configured to search the first identification information in a pre-stored identification information set;
the determining unit 406 is configured to determine that the network access request meets a second preset condition when the first identification information is found in the identification information set.
In an optional embodiment of the present application, the apparatus further comprises: a generation unit 407;
the receiving unit 404 is further configured to receive first identification information of the first device sent by a second device; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device;
the generating unit 407 is configured to store the first identification information in a pre-generated identification information set.
It should be noted that: in the network access device provided in the foregoing embodiment, when performing network access, only the division of the program modules is described as an example, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the network access device is divided into different program modules to complete all or part of the above-described processing. In addition, the network access apparatus provided in the foregoing embodiment and the network access method embodiment corresponding to fig. 1 belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Fig. 5a is a third schematic structural diagram of a network access device according to an embodiment of the present invention, where the network access device is applicable to a first device. As shown in fig. 5a, the apparatus comprises:
an establishing unit 501, configured to establish a first connection with a gateway device; the first connection is established based on a first channel opened by the gateway equipment;
a sending unit 502, configured to send a network access request to the gateway device based on the first connection;
a receiving unit 503, configured to receive network access information sent by the gateway device when the network access request meets a second preset condition;
a switching unit 504, configured to switch from the first connection to a second connection based on the network access information to access a network.
Fig. 5b is a schematic structural diagram of a network access apparatus in the embodiment of the present invention, and as shown in fig. 5b, the apparatus further includes: a deletion unit 505;
specifically, the sending unit 502 is further configured to send a network access success message to the gateway device;
the deleting unit 505 is configured to delete the relevant information corresponding to the first channel.
According to the network access device, the WIFI equipment and the intelligent gateway are connected through the established publicly-known hotspot channel, the WIFI equipment can be connected with the intelligent gateway through the publicly-known hotspot channel, and the intelligent gateway sends information of the internet access hotspot to the WIFI equipment through the publicly-known hotspot channel, so that the WIFI equipment can realize a network distribution process. The whole distribution process is automatically realized.
On the other hand, the intelligent terminal scans the codes of the WIFI equipment to acquire the MAC address of the WIFI equipment, so that the gateway equipment realizes the access qualification verification of the WIFI equipment based on the MAC address, the WIFI equipment realizes a distribution network flow, the whole distribution network flow is simple and convenient, and the distribution network efficiency is high.
It should be noted that: in the network access device according to the embodiment corresponding to fig. 5a and 5b, when performing network access, the division of the program modules is merely illustrated, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the network access device may be divided into different program modules to complete all or part of the above-described processing. In addition, the network access apparatus provided in the above embodiment corresponding to fig. 5a and fig. 5b and the network access method embodiment corresponding to fig. 2 both belong to the same concept, and the specific implementation process thereof is detailed in the method embodiment and is not described herein again.
Fig. 6 is a schematic structural diagram of a network access device in an embodiment of the present application, and as shown in fig. 6, the network access device 600 may be an air purifier, a mobile phone, a computer, a digital broadcast terminal, an information transceiver, a game console, a tablet device, a personal digital assistant, an information push server, a content server, or an identity authentication server. The network access apparatus 600 shown in fig. 6 includes: at least one processor 601, memory 602, and at least one network interface 603. The various components in network access device 600 are coupled together by a bus system 604. It is understood that the bus system 604 is used to enable communications among the components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 6.
It will be appreciated that the memory 602 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 602 described in embodiments herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the embodiments of the present application may be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 601 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 602, and the processor 601 reads the information in the memory 602 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the network access Device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
Specifically, when the processor 601 runs the computer program, it executes: the method comprises the steps that under the condition that a first preset condition is met, a first channel is opened by gateway equipment, and a first connection is established with first equipment on the basis of the first channel; obtaining a network access request sent by first equipment based on the first connection; and sending network access information to the first equipment under the condition that the network access request meets a second preset condition, wherein the network access information is used for switching the first equipment from the first connection to a second connection so as to access a network.
When the processor 601 runs the computer program, it further executes: receiving a first instruction sent by second equipment, and opening a first channel based on the first instruction.
When the processor 601 runs the computer program, it further executes: acquiring first identification information carried in the network access request, wherein the first identification information uniquely represents the first equipment; searching the first identification information in a pre-stored identification information set; and determining that the network access request meets a second preset condition under the condition that the first identification information is found in the identification information set.
When the processor 601 runs the computer program, it further executes: receiving first identification information of the first equipment sent by second equipment; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device; and storing the first identification information into a pre-generated identification information set.
When the processor 601 runs the computer program, it further executes: receiving a network access success message sent by the first device;
closing the first channel based on the network access success message.
On the other hand, when the processor 601 runs the computer program, it executes: the first device establishes a first connection with the gateway device; the first connection is established based on a first channel opened by the gateway equipment; sending a network access request to the gateway device based on the first connection; receiving network access information sent by the gateway equipment under the condition that the network access request meets a second preset condition; switching from the first connection to a second connection based on the network access information to access a network.
When the processor 601 runs the computer program, it further executes: and sending a network access success message to the gateway equipment, and deleting the related information corresponding to the first channel.
In an exemplary embodiment, the present application further provides a computer readable storage medium, such as a memory 602 including a computer program, which is executable by a processor 601 of the network access apparatus 600 to perform the steps of the foregoing method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs: the method comprises the steps that under the condition that a first preset condition is met, a first channel is opened by gateway equipment, and a first connection is established with first equipment on the basis of the first channel; obtaining a network access request sent by first equipment based on the first connection; and sending network access information to the first equipment under the condition that the network access request meets a second preset condition, wherein the network access information is used for switching the first equipment from the first connection to a second connection so as to access a network.
The computer program, when executed by the processor, further performs: receiving a first instruction sent by second equipment, and opening a first channel based on the first instruction.
The computer program, when executed by the processor, further performs: acquiring first identification information carried in the network access request, wherein the first identification information uniquely represents the first equipment; searching the first identification information in a pre-stored identification information set; and determining that the network access request meets a second preset condition under the condition that the first identification information is found in the identification information set.
The computer program, when executed by the processor, further performs: receiving first identification information of the first equipment sent by second equipment; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device; and storing the first identification information into a pre-generated identification information set.
The computer program, when executed by the processor, further performs: receiving a network access success message sent by the first device; closing the first channel based on the network access success message.
In another aspect, the computer program, when executed by the processor, performs: the first device establishes a first connection with the gateway device; the first connection is established based on a first channel opened by the gateway equipment; sending a network access request to the gateway device based on the first connection; receiving network access information sent by the gateway equipment under the condition that the network access request meets a second preset condition; switching from the first connection to a second connection based on the network access information to access a network.
The computer program, when executed by the processor, further performs: and sending a network access success message to the gateway equipment, and deleting the related information corresponding to the first channel.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method for network access, the method comprising:
the method comprises the steps that under the condition that a first preset condition is met, a first channel is opened by gateway equipment, and a first connection is established with first equipment on the basis of the first channel;
obtaining a network access request sent by first equipment based on the first connection;
and sending network access information to the first equipment under the condition that the network access request meets a second preset condition, wherein the network access information is used for switching the first equipment from the first connection to a second connection so as to access a network.
2. The method of claim 1, wherein the gateway device opens the first channel when the first preset condition is met, and the method comprises:
receiving a first instruction sent by second equipment, and opening a first channel based on the first instruction.
3. The method of claim 1, wherein the network entry request satisfies a second preset condition, comprising:
acquiring first identification information carried in the network access request, wherein the first identification information uniquely represents the first equipment;
searching the first identification information in a pre-stored identification information set;
and determining that the network access request meets a second preset condition under the condition that the first identification information is found in the identification information set.
4. The method of any of claims 1 to 3, further comprising, prior to said opening the first channel:
receiving first identification information of the first equipment sent by second equipment; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device;
and storing the first identification information into a pre-generated identification information set.
5. The method of claim 1, further comprising:
receiving a network access success message sent by the first device;
closing the first channel based on the network access success message.
6. A method for network access, the method comprising:
the first device establishes a first connection with the gateway device; the first connection is established based on a first channel opened by the gateway equipment;
sending a network access request to the gateway device based on the first connection;
receiving network access information sent by the gateway equipment under the condition that the network access request meets a second preset condition;
switching from the first connection to a second connection based on the network access information to access a network.
7. The method of claim 6, further comprising:
and sending a network access success message to the gateway equipment, and deleting the related information corresponding to the first channel.
8. A network access apparatus, the apparatus comprising:
the device comprises an opening unit, a first communication unit and a second communication unit, wherein the opening unit is used for opening a first channel and establishing first connection with first equipment based on the first channel under the condition that a first preset condition is met;
an obtaining unit, configured to obtain, based on the first connection, a network access request sent by a first device;
a sending unit, configured to send network access information to the first device when the network access request meets a second preset condition, where the network access information is used for the first device to switch from the first connection to a second connection to access a network.
9. The apparatus of claim 8, further comprising:
the receiving unit is used for receiving a first instruction sent by the second equipment;
the opening unit is specifically configured to open a first channel based on the first instruction.
10. The apparatus of claim 8, further comprising: a searching unit and a determining unit;
the obtaining unit is further configured to obtain first identification information carried in the network access request, where the first identification information uniquely represents the first device;
the searching unit is used for searching the first identification information in a pre-stored identification information set;
the determining unit is configured to determine that the network access request meets a second preset condition when the first identification information is found in the identification information set.
11. The apparatus of claim 9, further comprising: a generating unit;
the receiving unit is further configured to receive first identification information of the first device sent by a second device; the first identification information is obtained by the second device by reading the graphic symbol information corresponding to the first device;
the generating unit is used for storing the first identification information into a pre-generated identification information set.
12. A network access apparatus, the apparatus comprising:
the device comprises an establishing unit, a receiving unit and a sending unit, wherein the establishing unit is used for establishing first connection with gateway equipment; the first connection is established based on a first channel opened by the gateway equipment;
a sending unit, configured to send a network access request to the gateway device based on the first connection;
a receiving unit, configured to receive network access information sent by the gateway device when the network access request meets a second preset condition;
a switching unit, configured to switch from the first connection to a second connection based on the network access information, so as to access a network.
13. The apparatus of claim 12, further comprising: a deletion unit;
the sending unit is further configured to send a network access success message to the gateway device;
and the deleting unit is used for deleting the relevant information corresponding to the first channel.
14. A network access apparatus, the apparatus comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the method of any one of claims 1 to 5 or the steps of the method of any one of claims 6 to 7 when running the computer program.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 5 or the steps of the method of any one of claims 6 to 7.
CN202010000564.0A 2020-01-02 2020-01-02 Network access method and device Pending CN113068231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010000564.0A CN113068231A (en) 2020-01-02 2020-01-02 Network access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010000564.0A CN113068231A (en) 2020-01-02 2020-01-02 Network access method and device

Publications (1)

Publication Number Publication Date
CN113068231A true CN113068231A (en) 2021-07-02

Family

ID=76558406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010000564.0A Pending CN113068231A (en) 2020-01-02 2020-01-02 Network access method and device

Country Status (1)

Country Link
CN (1) CN113068231A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208583A (en) * 2015-08-27 2015-12-30 青岛海尔智能家电科技有限公司 Intelligent household electrical appliance networking method and apparatus, and intelligent equipment
CN108616882A (en) * 2018-04-10 2018-10-02 青岛海尔科技有限公司 Household appliance matches network method, method of network entry, device, storage medium and equipment
WO2019153143A1 (en) * 2018-02-07 2019-08-15 华为技术有限公司 Network access method, device, and system
CN110461024A (en) * 2019-07-23 2019-11-15 深圳合强电子有限公司 Method, router and the smart machine that smart machine is connect automatically with router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208583A (en) * 2015-08-27 2015-12-30 青岛海尔智能家电科技有限公司 Intelligent household electrical appliance networking method and apparatus, and intelligent equipment
WO2019153143A1 (en) * 2018-02-07 2019-08-15 华为技术有限公司 Network access method, device, and system
CN108616882A (en) * 2018-04-10 2018-10-02 青岛海尔科技有限公司 Household appliance matches network method, method of network entry, device, storage medium and equipment
CN110461024A (en) * 2019-07-23 2019-11-15 深圳合强电子有限公司 Method, router and the smart machine that smart machine is connect automatically with router

Similar Documents

Publication Publication Date Title
CN110557305B (en) Method, equipment and computer readable storage medium for accessing wireless router
CN109862605B (en) Networking method and equipment for terminal equipment
RU2421931C2 (en) Authentication in communication networks
KR20180026520A (en) Cross-terminal login-free method and device
CN105373089B (en) Home control gateway and gateway online method thereof
JP6602475B2 (en) Method, device and system for authenticating to mobile network, and server for authenticating device to mobile network
CN110267314B (en) Method and device for switching network slices
CN109462601B (en) Multi-platform access method and device based on eSIM
CN104581727A (en) Equipment connecting method and device and AP (access point) end electronic equipment
CN107148068B (en) Method and equipment for connecting wireless access point
US11739970B2 (en) Air-conditioning device control method and air-conditioning device
US20170126556A1 (en) Information transmission method and apparatus, device and storage medium
CN111865731B (en) Intelligent equipment adding method and device, intelligent household control panel and storage medium
CN111132305B (en) Method for 5G user terminal to access 5G network, user terminal equipment and medium
CN114531254B (en) Authentication information acquisition method and device, related equipment and storage medium
CN109151822A (en) Wireless network connecting method and device, storage medium, electronic device
CN105792215A (en) Detection method of pseudo base station and terminal thereof
CN114270781A (en) Device access method, device, system control method, electronic device and storage medium
JP2015001784A (en) Information processing system, information processing apparatus, and information processing program
CN109842515B (en) Method for multi-device network distribution, server and computer storage medium
CN105323156A (en) Home control gateway and home control network connection method thereof
CN109218994B (en) Equivalent equipment Bluetooth communication method and device based on gateway
WO2017181465A1 (en) Access point name configuration method and device
CN109040050A (en) Data interactive method and Related product
KR20120107152A (en) Remote operation system and remote operation method for terminal

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210702

RJ01 Rejection of invention patent application after publication