CN113242060B - Network access method and device, storage medium and electronic device - Google Patents

Network access method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113242060B
CN113242060B CN202110356399.7A CN202110356399A CN113242060B CN 113242060 B CN113242060 B CN 113242060B CN 202110356399 A CN202110356399 A CN 202110356399A CN 113242060 B CN113242060 B CN 113242060B
Authority
CN
China
Prior art keywords
equipment
network
mac address
networked
tag
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
CN202110356399.7A
Other languages
Chinese (zh)
Other versions
CN113242060A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110356399.7A priority Critical patent/CN113242060B/en
Publication of CN113242060A publication Critical patent/CN113242060A/en
Application granted granted Critical
Publication of CN113242060B publication Critical patent/CN113242060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H04B5/77
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a method and a device for accessing a network, a storage medium and an electronic device, wherein the method comprises the following steps: determining the MAC address of the equipment to be networked according to the tag data read from the equipment tag; establishing communication connection with the equipment to be networked according to the MAC address; and sending network information to the equipment to be accessed through the communication connection so as to enable the equipment to be accessed to be connected with a network according to the network information. The invention solves the technical problem that the equipment needing networking cannot be automatically connected in the related technology.

Description

Network access method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for accessing a network, a storage medium, and an electronic apparatus.
Background
In the related art, with the popularization of smart home devices and the development of Near Field Communication (NFC) technology, a network distribution process of devices can be assisted by using a network module in an NFC touch device. However, in the related art, production of the NFC tag, production of the network module, and production of the complete device are independent production lines, and a Media Access Control (MAC) address of the device cannot be written in the NFC tag during NFC tag production. Therefore, when the network is configured for the device, the MAC address of the device cannot be read from the NFC tag by reading the NFC tag, and thus the device requiring networking cannot be automatically connected.
Aiming at the technical problem that the devices needing networking cannot be automatically connected in the related art, an effective technical scheme is not provided yet.
Disclosure of Invention
The embodiment of the invention provides a method and a device for accessing a network, a storage medium and an electronic device, which at least solve the technical problem that equipment needing networking cannot be automatically connected in the related art.
According to an embodiment of the present invention, there is provided a method for accessing a network, including: determining the MAC address of the equipment to be networked according to the tag data read from the equipment tag; establishing communication connection with the equipment to be networked according to the MAC address; and sending network information to the equipment to be accessed through the communication connection so as to enable the equipment to be accessed to be connected with a network according to the network information.
Optionally, the determining the MAC address of the device to be networked according to the tag data read from the device tag includes: reading the tag data from the device tag by means of near field communication; and sending the tag data to a backend platform so as to acquire the MAC address corresponding to the tag data from the backend platform.
Optionally, the establishing, according to the MAC address, a communication connection with the device to be networked includes: and establishing the Bluetooth connection of the equipment to be accessed corresponding to the MAC address according to the MAC address.
Optionally, the method further comprises: and sending the encryption information received from the back-end platform to the equipment to be accessed to verify the encryption information by the equipment to be accessed, wherein the Bluetooth connection is maintained under the condition that the equipment to be accessed successfully verifies the encryption information, and the encryption information is obtained after the back-end platform encrypts the MAC address and the tag data.
Optionally, the sending network information to the device to be networked through the communication connection, so that the device to be networked connects to a network according to the network information, includes: and sending the service set identification (ssid) and the password of the network to the equipment to be accessed to enable the equipment to be accessed to be connected with the network according to the ssid and the password.
Optionally, before determining the MAC address of the device to be networked according to the tag data read from the device tag, the method further includes: establishing a one-to-one correspondence relationship between a plurality of label data and MAC addresses of a plurality of devices through a backend platform, wherein the plurality of label data comprise label data written in the device labels, and the MAC addresses of the plurality of devices comprise the MAC addresses of the devices to be networked; and storing the corresponding relation through the rear-end platform.
According to another embodiment of the present invention, there is provided an apparatus for accessing a network, including: the determining module is used for determining the MAC address of the equipment to be networked according to the tag data read from the equipment tag; the communication module is used for establishing communication connection with the equipment to be accessed to the network according to the MAC address; the communication module is further configured to send network information to the device to be networked through the communication connection, so that the device to be networked connects a network according to the network information.
Optionally, the determining module includes: a near field communication unit for reading the tag data from the device tag by means of near field communication; and the sending unit is used for sending the label data to a back-end platform so as to obtain the MAC address corresponding to the label data from the back-end platform.
Alternatively, according to another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is arranged to perform the above-mentioned method when executed.
Alternatively, according to another embodiment of the present invention, there is provided an electronic apparatus, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the above method.
According to the invention, the MAC address of the equipment to be networked is determined according to the tag data read from the equipment tag; establishing communication connection with the equipment to be networked according to the MAC address; and sending network information to the equipment to be accessed through the communication connection so as to enable the equipment to be accessed to be connected with a network according to the network information. The MAC address of the equipment to be networked can be determined according to the tag data read from the equipment tag, so that the equipment to be networked can be determined and then automatically connected, therefore, the technical problem that the equipment to be networked cannot be automatically connected in the related technology is solved, the equipment to be networked can be automatically connected, and the efficiency of accessing the equipment to the network is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic application scenario diagram of a method for accessing a network according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of accessing a network according to an embodiment of the present invention;
fig. 3 is a flow chart of a method of accessing a network according to another embodiment of the present invention;
FIG. 4 is a flowchart of a method of accessing a network according to yet another embodiment of the present invention;
FIG. 5 is a flow chart of a method of accessing a network according to yet another embodiment of the present invention;
fig. 6 is a block diagram of an apparatus for accessing a network according to an embodiment of the present invention;
fig. 7 is a block diagram of an apparatus for accessing a network according to another embodiment of the present invention;
fig. 8 is a block diagram of an apparatus for accessing a network according to still another embodiment of the present invention;
fig. 9 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The embodiment of the invention provides a method for accessing a network. Fig. 1 is a schematic application scenario diagram of a method for accessing a network according to an embodiment of the present invention. The tag data in the device tag 104 can be read through the terminal 102, the terminal 102 acquires the MAC address corresponding to the tag data from the backend platform 106 according to the tag data, and then automatically connects the network module 108 in the device to be networked corresponding to the MAC address, and sends network information to the network module 108 in the device to be networked to connect the device to be networked to the network, thereby completing the process of network distribution of the device to be networked.
Fig. 2 is a flowchart of a method for accessing a network according to an embodiment of the present invention, as shown in fig. 2, including:
step S202, determining the MAC address of the equipment to be networked according to the tag data read from the equipment tag;
step S204, establishing communication connection with the equipment to be accessed to the network according to the MAC address;
step S206, network information is sent to the device to be networked through the communication connection, so that the device to be networked is connected to a network according to the network information.
According to the invention, the MAC address of the equipment to be networked is determined according to the tag data read from the equipment tag; establishing communication connection with the equipment to be networked according to the MAC address; and sending network information to the equipment to be accessed through the communication connection so as to enable the equipment to be accessed to be connected with a network according to the network information. The MAC address of the equipment to be networked can be determined according to the tag data read from the equipment tag, so that the equipment to be networked can be determined and then automatically connected, therefore, the technical problem that the equipment to be networked cannot be automatically connected in the related technology is solved, the equipment to be networked can be automatically connected, and the efficiency of accessing the equipment to the network is improved.
As an alternative embodiment, the device label may be attached or installed on the device to be networked. The device to be networked includes but is not limited to household devices such as refrigerators, washing machines, air conditioners and the like.
The establishing of the communication connection with the device to be networked includes, but is not limited to: and establishing communication connection with a network module in the equipment to be networked.
It should be noted that, as shown in fig. 3, in the foregoing embodiment, the determining a MAC address of a device to be networked according to tag data read from a device tag includes:
step S302, reading the tag data from the device tag in a near field communication mode;
step S304, the tag data is sent to a backend platform, so that the MAC address corresponding to the tag data is obtained from the backend platform.
In the above embodiment, the establishing, according to the MAC address, a communication connection with the device to be networked includes: and establishing the Bluetooth connection of the equipment to be accessed corresponding to the MAC address according to the MAC address.
Wherein, according to the MAC address, the Bluetooth connection between the network modules of the equipment corresponding to the MAC address can be established.
As an optional implementation, the foregoing embodiment is further configured to implement the following technical solutions: and sending the encryption information received from the back-end platform to the equipment to be accessed to verify the encryption information by the equipment to be accessed, wherein the Bluetooth connection is maintained under the condition that the equipment to be accessed successfully verifies the encryption information, and the encryption information is obtained after the back-end platform encrypts the MAC address and the tag data.
It should be noted that, in the above embodiment, the backend platform stores the key of the device tag. And after receiving the label data, the back-end platform searches the MAC address corresponding to the label data, and encrypts the searched MAC address and the label data by using the key of the equipment label corresponding to the label data to obtain encrypted information.
After the network access equipment receives the encrypted information, the encrypted information is decrypted by using a self key, and when the MAC address obtained by decryption is consistent with the MAC address stored by the self device, the encrypted information is determined to be successfully verified. If the encryption information verification fails, the Bluetooth connection is disconnected, namely, the Bluetooth connection is disconnected under the condition that the encryption information verification of the portable network access equipment fails.
Optionally, the sending network information to the device to be networked through the communication connection, so that the device to be networked connects to a network according to the network information, includes: and sending the service set identification (ssid) and the password of the network to the equipment to be accessed to enable the equipment to be accessed to be connected with the network according to the ssid and the password.
Based on the above embodiment, as shown in fig. 4, before determining the MAC address of the device to be networked according to the tag data read from the device tag, the method further includes:
step S402, establishing a one-to-one correspondence relationship between a plurality of label data and MAC addresses of a plurality of devices through a backend platform, wherein the plurality of label data comprise label data written in the device label, and the MAC addresses of the plurality of devices comprise the MAC addresses of the devices to be networked;
and S404, storing the corresponding relation through the back-end platform.
As an optional implementation manner, a one-to-one correspondence between the tag data and the MAC address may be established and stored in the backend platform in advance, so that the corresponding MAC address may be queried according to the received tag data. For example, the one-to-one correspondence relationship may be established and stored in the backend platform during the whole process of the device.
The method for accessing the network in the above embodiment is explained with reference to an example, but is not limited to the technical solution of the embodiment of the present invention.
As shown in fig. 5, in an alternative embodiment, the method for accessing a network includes the following steps:
step 1, the terminal reads the tag data from the device tag by touching the device tag. Optionally, the tag data includes, but is not limited to, a random number written into the device tag.
And 2, establishing connection between the terminal and the rear-end platform. Backend platforms include, but are not limited to, cloud platforms.
And 3, performing bidirectional authentication on the terminal and the rear platform.
And 4, after the bidirectional authentication is passed, the terminal requests the back-end platform to inquire the MAC address corresponding to the read tag data.
And 5, the back-end platform inquires the MAC address corresponding to the label data, and encrypts the MAC address and the label data by using the key corresponding to the MAC address to obtain encrypted information.
And 6, the back-end platform returns the inquired MAC address and the encryption information to the terminal.
And 7, the terminal finds the equipment to be accessed according to the MAC address, establishes connection with a network module in the equipment to be accessed, and transmits the received encrypted information to the network module.
Step 8, the network module decrypts the encrypted information by using the key thereof, matches the MAC address obtained by decryption with the MAC address thereof, if the MAC address is consistent with the MAC address thereof, the verification is passed, and the communication connection between the network module and the terminal is maintained; otherwise, the communication connection is disconnected.
And 9, under the condition that the encrypted information is verified, the terminal issues the ssid and the password to the network module through the communication connection between the terminal and the network module, so that the network module accesses the network according to the ssid and the password.
As an alternative embodiment, before step 1, the network module may broadcast the information to be networked and the MAC address.
The back-end platform generates the key of the network module in a unified way and writes the key into the network module in the production process of the network module; writing the tag data into the device tag during the production process of the device tag; and in the production process of the whole network equipment to be accessed, establishing a corresponding relation between the label data in the equipment label and the MAC address of the equipment and storing the corresponding relation in a back-end platform.
In the above embodiment, by writing the random number in the tag in the production process of the NFC tag (i.e., the device tag in the above embodiment), the association between the block MAC of the network module and the random number in the NFC is established at the cloud end when the complete device is produced, so as to establish the corresponding relationship between the NFC tag and the device. When the equipment is in a network distribution, the terminal finds the corresponding equipment to establish Bluetooth connection and carries out network distribution on the equipment through NFC touch. And burning a unique secret key in the network module, wherein the secret key is uniformly managed by the cloud, when the terminal inquires the equipment MAC from the cloud, the terminal simultaneously acquires signature encryption information of the MAC address and the random number from the cloud to form authentication data, and the network module authenticates the information after the terminal is connected to the network module, so that the Bluetooth connection can be established between the terminal and the network module only if the terminal is legal.
In this embodiment, a device for accessing a network is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details of the description already made are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of an apparatus for accessing a network according to an embodiment of the present invention, as shown in fig. 6, the apparatus including:
a determining module 62, configured to determine, according to tag data read from a device tag, an MAC address of a device to be networked;
the communication module 64 is configured to establish a communication connection with the device to be networked according to the MAC address;
the communication module 64 is further configured to send network information to the device to be networked through the communication connection, so that the device to be networked connects to a network according to the network information.
According to the invention, the MAC address of the equipment to be networked is determined according to the tag data read from the equipment tag; establishing communication connection with the equipment to be networked according to the MAC address; and sending network information to the equipment to be networked through the communication connection so that the equipment to be networked is connected with a network according to the network information. The MAC address of the equipment to be networked can be determined according to the tag data read from the equipment tag, so that the equipment to be networked can be determined and then automatically connected, therefore, the technical problem that the equipment to be networked cannot be automatically connected in the related technology is solved, the equipment to be networked can be automatically connected, and the efficiency of accessing the equipment to the network is improved.
Optionally, as shown in fig. 7, the determining module 62 includes: a near field communication unit 72 for reading the tag data from the device tag by means of near field communication; a sending unit 74, configured to send the tag data to a backend platform, so as to obtain the MAC address corresponding to the tag data from the backend platform.
It should be noted that, the communication module 64 is further configured to: and establishing the Bluetooth connection of the equipment to be accessed corresponding to the MAC address according to the MAC address.
Wherein the communication module 64 is further configured to: and sending the encryption information received from the back-end platform to the equipment to be accessed to verify the encryption information by the equipment to be accessed, wherein the Bluetooth connection is maintained under the condition that the equipment to be accessed successfully verifies the encryption information, and the encryption information is obtained after the back-end platform encrypts the MAC address and the tag data.
In the above embodiment, the communication module 64 is further configured to: and sending the service set identification (ssid) and the password of the network to the equipment to be accessed to enable the equipment to be accessed to be connected with the network according to the ssid and the password.
In an optional embodiment, as shown in fig. 8, the apparatus further includes an establishing module 82 and a storing module 84, where the establishing module 82 is configured to establish a one-to-one correspondence relationship between a plurality of tag data and MAC addresses of a plurality of devices through a backend platform, where the plurality of tag data includes tag data written in the device tag, and the MAC addresses of the plurality of devices include MAC addresses of the devices to be networked; the storage module 84 is configured to store the corresponding relationship through the backend platform.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
In an exemplary embodiment, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining the MAC address of the device to be networked according to the tag data read from the device tag;
s2, establishing communication connection with the equipment to be accessed according to the MAC address;
and S3, sending network information to the device to be networked through the communication connection, so that the device to be networked is connected to the network according to the network information.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, in the present embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining the MAC address of the device to be networked according to the tag data read from the device tag;
s2, establishing communication connection with the equipment to be accessed according to the MAC address;
and S3, sending network information to the device to be networked through the communication connection, so that the device to be networked is connected to the network according to the network information.
In an exemplary embodiment, for specific examples in this embodiment, reference may be made to the examples described in the above embodiments and optional implementation manners, and details of this embodiment are not described herein again.
Fig. 9 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention. Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the network connection method and the network connection device in the embodiment of the present invention, and the processor 1004 executes various functional applications and data processing by executing the software programs and modules stored in the memory 1002, that is, implementing the network connection method. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. As an example, the memory 1002 may include, but is not limited to, the determination module 62 and the communication module 64 of the scene recommendation device. In addition, the scene recommendation device may further include, but is not limited to, other module units in the scene recommendation device, which is not described in this example again.
Optionally, the transmission device 1006 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transport device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1008 for displaying a screen; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication form. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, which may be centralized on a single computing device or distributed across a network of computing devices, and in one exemplary embodiment may be implemented using program code executable by a computing device, such that the steps shown and described may be executed by a computing device stored in a memory device and, in some cases, executed in a sequence different from that shown and described herein, or separately fabricated into individual integrated circuit modules, or multiple ones of them fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for accessing a network, comprising:
determining the MAC address of the equipment to be networked according to the tag data read from the equipment tag;
establishing communication connection with the equipment to be networked according to the MAC address;
sending network information to the equipment to be accessed through the communication connection so that the equipment to be accessed is connected with a network according to the network information; wherein, the determining the MAC address of the device to be networked according to the tag data read from the device tag comprises:
reading the tag data from the device tag by means of near field communication;
and sending the tag data to a backend platform so as to acquire the MAC address corresponding to the tag data from the backend platform.
2. The method according to claim 1, wherein the establishing a communication connection with the device to be networked according to the MAC address comprises:
and establishing the Bluetooth connection of the equipment to be accessed corresponding to the MAC address according to the MAC address.
3. The method of claim 2, further comprising:
and sending the encryption information received from the back-end platform to the equipment to be accessed to verify the encryption information by the equipment to be accessed, wherein the Bluetooth connection is maintained under the condition that the equipment to be accessed successfully verifies the encryption information, and the encryption information is obtained after the back-end platform encrypts the MAC address and the tag data.
4. The method according to claim 1, wherein the sending network information to the device to be networked through the communication connection so that the device to be networked connects to a network according to the network information comprises:
and sending the service set identification (ssid) and the password of the network to the equipment to be accessed to enable the equipment to be accessed to be connected with the network according to the ssid and the password.
5. The method of claim 1, wherein prior to determining the MAC address of the device to be networked from the tag data read from the device tag, the method further comprises:
establishing a one-to-one correspondence relationship between a plurality of label data and MAC addresses of a plurality of devices through a backend platform, wherein the plurality of label data comprise label data written in the device labels, and the MAC addresses of the plurality of devices comprise the MAC addresses of the devices to be networked;
and storing the corresponding relation through the rear-end platform.
6. An apparatus for accessing a network, comprising:
the determining module is used for determining the MAC address of the equipment to be networked according to the tag data read from the equipment tag;
the communication module is used for establishing communication connection with the equipment to be accessed to the network according to the MAC address;
the communication module is further configured to send network information to the device to be networked through the communication connection, so that the device to be networked connects a network according to the network information; wherein the determining module comprises:
a near field communication unit for reading the tag data from the device tag by means of near field communication;
and the sending unit is used for sending the label data to a back-end platform so as to obtain the MAC address corresponding to the label data from the back-end platform.
7. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 5 by means of the computer program.
CN202110356399.7A 2021-04-01 2021-04-01 Network access method and device, storage medium and electronic device Active CN113242060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110356399.7A CN113242060B (en) 2021-04-01 2021-04-01 Network access method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110356399.7A CN113242060B (en) 2021-04-01 2021-04-01 Network access method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113242060A CN113242060A (en) 2021-08-10
CN113242060B true CN113242060B (en) 2022-07-05

Family

ID=77130946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110356399.7A Active CN113242060B (en) 2021-04-01 2021-04-01 Network access method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113242060B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547699A (en) * 2010-12-24 2012-07-04 广州盛华信息技术有限公司 System and method for achieving binding of media access control address
CN106211044A (en) * 2016-08-18 2016-12-07 美的智慧家居科技有限公司 Gateway, ZigBee equipment, ZigBee distribution network systems
CN108833607A (en) * 2018-06-12 2018-11-16 腾讯科技(深圳)有限公司 Physical address acquisition methods, device and readable medium
CN110868748A (en) * 2019-11-06 2020-03-06 北京小米移动软件有限公司 Intelligent equipment network access method, device, equipment, system and medium
CN111465123A (en) * 2020-04-17 2020-07-28 深圳康佳电子科技有限公司 Network connection method, terminal and storage medium
CN111510919A (en) * 2019-01-31 2020-08-07 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853409B (en) * 2010-05-24 2013-08-07 中兴通讯股份有限公司 RFID (Radio Frequency Identification) system, reader and data transmission method
CN105228146A (en) * 2014-06-30 2016-01-06 北京奇虎科技有限公司 A kind of In-vehicle networking equipment based on RFID and authentication method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547699A (en) * 2010-12-24 2012-07-04 广州盛华信息技术有限公司 System and method for achieving binding of media access control address
CN106211044A (en) * 2016-08-18 2016-12-07 美的智慧家居科技有限公司 Gateway, ZigBee equipment, ZigBee distribution network systems
CN108833607A (en) * 2018-06-12 2018-11-16 腾讯科技(深圳)有限公司 Physical address acquisition methods, device and readable medium
CN111510919A (en) * 2019-01-31 2020-08-07 阿里巴巴集团控股有限公司 Network configuration method, device, equipment and system
CN110868748A (en) * 2019-11-06 2020-03-06 北京小米移动软件有限公司 Intelligent equipment network access method, device, equipment, system and medium
CN111465123A (en) * 2020-04-17 2020-07-28 深圳康佳电子科技有限公司 Network connection method, terminal and storage medium

Also Published As

Publication number Publication date
CN113242060A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN110235456B (en) Intelligent device network access method, mobile terminal, cloud server, device and system
CN112738805B (en) Device control method and apparatus, storage medium, and electronic device
CN102801616B (en) Message sending and receiving method, device and system
CN106851632A (en) A kind of smart machine accesses the method and device of WLAN
CN108540433B (en) User identity verification method and device
US20070066280A1 (en) Connection management system, method and program
CN112737902B (en) Network configuration method and device, storage medium and electronic equipment
KR20040054466A (en) Wide area network system, access authentification system using the network, access device providing access point, terminal connecting to the access device, and access authentification method there of
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN104935435A (en) Login methods, terminal and application server
CN108293055A (en) Method, apparatus and system for authenticating to mobile network and for by the server of device authentication to mobile network
CN105338529A (en) Wireless network connecting method and system
CN106453349A (en) An account number login method and apparatus
CN106792994A (en) A kind of dual system termi-nal WIFI shared method and apparatus
CN111066014A (en) Apparatus, method and program for remotely managing devices
CN105072212B (en) To code method and to code system
CN113613227B (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
CN112564901B (en) Method and system for generating secret key, storage medium and electronic device
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
CN103607449A (en) Method, device and system for enterprise internal network physical machine to visit cloud storage virtual machine
CN111132373B (en) Network connection method, device and equipment
CN110602693B (en) Networking method and equipment of wireless network
CN113242060B (en) Network access method and device, storage medium and electronic device
CN110072235B (en) Networking method and device for intelligent equipment, electronic device and storage medium
CN113709849A (en) Network access method and device of equipment to be accessed to network, storage medium and electronic device

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
GR01 Patent grant
GR01 Patent grant