WO2022135143A1 - 设备配网方法、移动终端及存储介质 - Google Patents

设备配网方法、移动终端及存储介质 Download PDF

Info

Publication number
WO2022135143A1
WO2022135143A1 PCT/CN2021/136272 CN2021136272W WO2022135143A1 WO 2022135143 A1 WO2022135143 A1 WO 2022135143A1 CN 2021136272 W CN2021136272 W CN 2021136272W WO 2022135143 A1 WO2022135143 A1 WO 2022135143A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
mobile terminal
network card
wireless router
network
Prior art date
Application number
PCT/CN2021/136272
Other languages
English (en)
French (fr)
Inventor
张云翔
代栓青
赵昕
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21909140.2A priority Critical patent/EP4247030A4/en
Publication of WO2022135143A1 publication Critical patent/WO2022135143A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • 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
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the embodiments of the present application relate to the field of communications technologies, and in particular, to a device network distribution method, a mobile terminal, and a storage medium.
  • IoT devices usually use the Internet to register identity information in a cloud server, thereby enabling users to manage and control IoT devices.
  • Embodiments of the present application provide a device network distribution method, a mobile terminal, and a storage medium, so as to provide a method for network distribution of IoT devices.
  • an embodiment of the present application provides a device network distribution method, which is applied to a mobile terminal, including:
  • the mobile terminal may be a mobile device such as a mobile phone or a tablet, or other types of mobile devices, and the specific type of the mobile terminal is not particularly limited in this embodiment of the present application.
  • the first device may be an IoT device to be distributed, for example, smart devices such as smart lamps and smart sockets. The implementation of this application does not specifically limit the specific type of the above-mentioned first device.
  • the virtual network card may correspond to the real network card in the first device.
  • the network information can be used to establish a connection with the wireless router.
  • the network information can include channel information, key information, IP address information and MAC address information Wait.
  • the network information is sent to the first device, so that the first device uses the network information to establish a connection with the wireless router.
  • the first device by using the virtual network corresponding to the real network card of the first device at the mobile terminal to obtain network information corresponding to the wireless router, and sending the network information to the first device, the first device can be saved.
  • the time required to obtain the merchant's network information improves the efficiency of the network distribution of the first device.
  • acquiring the network card information of the first device includes:
  • the first device may actively broadcast the network card information, thereby enabling nearby mobile terminals to receive the network card information.
  • the above-mentioned first device may broadcast the network card information when the connection with the wireless router is not established, and may stop broadcasting the network card information after establishing the connection with the wireless router.
  • the method before acquiring the network card information of the first device, the method further includes:
  • the mobile terminal may actively request the first device to acquire network card information.
  • the mobile terminal may approach the first device and send a request to the first device by means of NFC.
  • the query request is also used to request to obtain the identity information of the first device, and further includes:
  • the first device may also send identity information to the mobile terminal, where the identity information may be the device ID of the first device, and the identity information may be a unique identifier for identifying the first device Therefore, the identity information may also be other types of identifiers, and this application does not specifically limit the specific form of the above-mentioned identity information.
  • a registration request is sent to the second device based on the identity information, where the registration request is used to obtain a registration code.
  • the registration code is used for the identity registration of the first device on the Internet.
  • One of the possible implementations also includes:
  • the step of applying for the registration code at the first device can be omitted, which can improve the efficiency of network distribution of the first device.
  • the network information includes channel information, key information, and IP address information
  • using a virtual network card to obtain network information corresponding to the wireless router includes:
  • the channel information may be information of a channel used to establish a connection with the wireless router.
  • the SSID of the wireless router may be retrieved.
  • the above key information is used to encrypt or decrypt the data transmitted between any device and the wireless router. It can be understood that the above key can be an asymmetric key or a symmetric key.
  • the form is not particularly limited.
  • the above IP address information may include an IP address, an NDS address and a gateway address.
  • the network information further includes MAC address information
  • using a virtual network card to obtain network information corresponding to the wireless router includes:
  • the MAC address information may be the MAC address of the wireless router.
  • an embodiment of the present application provides a device distribution network, including:
  • a receiving module used to obtain the network card information of the first device
  • the acquisition module is used to acquire the network information corresponding to the wireless router by using the virtual network card;
  • the first sending module is configured to send the network information to the first device, so that the first device uses the network information to establish a connection with the wireless router.
  • the above receiving module is further configured to receive network card information broadcast by the first device.
  • the above-mentioned device further includes:
  • the query module is configured to send a query request to the first device, where the query request is used to request to acquire network card information of the first device.
  • the above query request is further used to request to obtain the identity information of the first device, and the above device further includes:
  • the registration module is configured to receive the identity information sent by the first device; send a registration request to the second device based on the identity information, and the registration request is used to obtain a registration code.
  • the above-mentioned device further includes:
  • the second sending module is configured to receive the registration code sent by the second device, and send the registration code to the first device.
  • the network information includes channel information, key information and IP address information
  • the acquisition module is further configured to use a virtual network card to perform channel scanning to obtain channel information; use the virtual network card to access the wireless router Authentication, get the key information; use the virtual network card to apply for DHCP, get the IP address information.
  • the above-mentioned network information further includes MAC address information
  • the above-mentioned obtaining module is further configured to use a virtual network card to perform ARP analysis to obtain the MAC address information.
  • an embodiment of the present application provides a mobile terminal, including:
  • a memory the memory is used to store computer program codes, and the computer program codes include instructions.
  • the mobile terminal reads the instructions from the memory, the mobile terminal performs the following steps:
  • the network information is sent to the first device, so that the first device uses the network information to establish a connection with the wireless router.
  • causing the above-mentioned mobile terminal to execute the step of acquiring the network card information of the first device includes:
  • the above query request is also used to request to obtain the identity information of the first device, and when the above instruction is executed by the above mobile terminal, the above mobile terminal further performs the following steps:
  • a registration request is sent to the second device based on the identity information, where the registration request is used to obtain a registration code.
  • the above-mentioned mobile terminal when executed by the above-mentioned mobile terminal, the above-mentioned mobile terminal further performs the following steps:
  • the network information includes channel information, key information, and IP address information
  • the mobile terminal when the instruction is executed by the mobile terminal, the mobile terminal causes the mobile terminal to execute the process of obtaining network information corresponding to the wireless router by using a virtual network card. Steps include:
  • the network information further includes MAC address information
  • causing the mobile terminal to perform the step of obtaining the network information corresponding to the wireless router by using the virtual network card includes:
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
  • an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
  • FIG. 1 provides an application scenario architecture diagram for an embodiment of the present application
  • FIG. 2 is a flowchart of an embodiment of a device network distribution method provided by the present application
  • FIG. 3 provides a schematic diagram of an access authentication process according to an embodiment of the present application
  • FIG. 4 is a flowchart of another embodiment of a device network distribution method provided by the present application.
  • FIG. 5 is a schematic structural diagram of a device network distribution device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • IoT devices are usually connected to the Internet through a router, so that the identity information of the IoT devices can be registered in the cloud server.
  • an IoT device When an IoT device is connected to a router, it usually goes through processes such as wireless hotspot (WIFI) channel scanning, WIFI access authentication, and Dynamic Host Configuration Protocol (DHCP).
  • WIFI wireless hotspot
  • DHCP Dynamic Host Configuration Protocol
  • an embodiment of the present application proposes a device network distribution method, which can speed up the speed of device networking and improve the connection success rate of IoT devices, thereby improving the efficiency of device network distribution.
  • mobile terminals may also be referred to as terminal equipment, user equipment (User Equipment, UE), access terminals, subscriber units, subscriber stations, mobile stations, mobile stations, A remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user equipment.
  • UE User Equipment
  • the mobile terminal may be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, a Wireless Local Loop (WLL) station, a personal digital processing (Personal Digital Assistant, PDA) devices, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, connected car terminals, computers, laptop computers, handheld communication devices, handheld Computing equipment, satellite wireless equipment, wireless modem cards, Set Top Box (STB), Customer Premise Equipment (CPE) and/or other equipment for communicating over wireless systems and next generation communication systems
  • IoT devices may include living devices with wireless communication functions, such as lights, sockets, refrigerators, air conditioners, and the like.
  • the embodiments of the present application do not specifically limit the specific forms of the mobile terminal and the Internet of Things device that implement the technical solution.
  • the device network distribution method provided by the embodiment of the present application will now be described with reference to FIG. 1 to FIG. 3 .
  • FIG. 1 is an architectural diagram of an embodiment of an application scenario of the device network distribution method provided by the present application.
  • the mobile terminal 100 can communicate with the first device 200 through an ultra-short-range mode (eg, WIFI ultra-short-range or near field communication (Near Field Communication, NFC), etc.) or other wireless communication methods.
  • the first device 200 may be an IoT device.
  • Communication between the mobile terminal 100 and the wireless router 300 may be performed in a wireless manner (eg, WIFI).
  • Communication between the first device 200 and the wireless router 300 may also be performed wirelessly (eg, WIFI), thereby establishing a wireless connection.
  • the wireless router 300 may perform wired connection with the second device 400 .
  • the second device 400 may be a cloud server, and the cloud server may include a single server or a server cluster. This embodiment of the present application does not limit this.
  • a schematic flowchart of an embodiment of a device network distribution method provided by the present application may include:
  • Step 101 the first device 200 broadcasts network card information.
  • the network card information may include information related to the network card of the first device 200, for example, a media access control layer (Media Access Control, MAC) address of the network card, and the like.
  • the network card of the first device 200 may be used to establish a connection with the wireless router 200 .
  • the first device 200 can detect the connection state with the wireless router 300 , and thus can determine whether to establish a connection with the wireless router 200 .
  • the first device 200 determines that the connection with the wireless router 300 is not established, it can broadcast the network card information, so that the nearby mobile terminals 100 can receive the network card information.
  • the first device 200 may also send a prompt that no connection is established with the wireless router 300 to prompt the user.
  • the first device 200 may flash the indicator light to give a prompt, for example, it may be a yellow light flashing, a red light flashing, or other colors, which are not limited in this embodiment of the present application.
  • the first device 200 determines that the connection with the wireless router 300 has been established, it stops broadcasting the network card information.
  • the first device 200 may also send a prompt that a connection has been established with the wireless router 300 to prompt the user.
  • the first device 200 may display the indicator light to be always on, for example, it may be a green light that is always on, or it may be of other colors, which is not limited in this embodiment of the present application.
  • the range in which the first device 200 broadcasts the network card information is related to the power of the antenna. That is to say, the greater the antenna power, the greater the range in which the first device 200 broadcasts the network card information, and the lower the antenna power. The smaller the range of broadcast network card information.
  • the power of the antenna may be preset in the first device 200 or manually adjusted by a user, which is not limited in this embodiment of the present application.
  • Step 102 the mobile terminal 100 receives the network card information of the first device 200 .
  • the network card information can be received.
  • Step 103 the mobile terminal 100 creates a virtual network card according to the network card information.
  • the mobile terminal 100 can establish a virtual network card according to the network card information.
  • the virtual network card may correspond to the first device 200 , that is, the virtual network card simulates the real network card of the first device 200 .
  • Step 104 the mobile terminal 100 uses the virtual network card and the wireless router 300 to complete channel scanning to obtain channel information corresponding to the virtual network card.
  • the mobile terminal 100 may use the virtual network card to perform channel scanning, thereby obtaining channel information corresponding to the wireless router 300 , that is, the channel information may correspond to the wireless router 300 .
  • the channel may be used to identify the communication channel with the wireless router 300 . Exemplarily, through the channel information, it can be determined on which channel the service set identifier (Service Set Identifier, SSID) of the wireless router 300 is located.
  • the mobile terminal 100 uses a virtual network card to perform channel scanning, obtains channel information, and sends the above-mentioned channel information to the first device 200, so that the first device 200 can directly use the above-mentioned channel information without performing channel scanning. Save time in channel scanning.
  • the first device 200 can communicate with the wireless router 300 on a channel corresponding to the channel information based on the channel information.
  • step 105 the mobile terminal 100 uses the virtual network card to complete the access authentication with the wireless router 300, and obtains key information corresponding to the virtual network card.
  • the mobile terminal 100 may also use the virtual network to complete access authentication with the wireless router 300 , thereby establishing an association relationship with the wireless router 300 .
  • the wireless router 300 may also initiate a 4-step handshake, thereby obtaining key information corresponding to the virtual network card.
  • the key information can be used to encrypt service data (eg, to send a registration request).
  • the key information may include a pairwise transit key (Pairwise Transit Key, PTK) and a group temporary key (Group Temporal Key, GTK), and the PTK may be a key used to encrypt unicast data, GTK can be a key used to encrypt multicast or broadcast data. It can be understood that the key information is stored on both the mobile terminal 100 and the wireless router 300 .
  • FIG. 3 is a schematic diagram of a four-step handshake process between the mobile terminal 100 and the wireless router 300 .
  • Step 106 the mobile terminal 100 uses the virtual network card to complete the DHCP application with the wireless router 300, and obtains IP address information corresponding to the virtual network card.
  • the IP address information may include information such as an IP address, a gateway address, and a domain name system (Domain Name System, DNS) server address corresponding to the virtual network card, that is, the IP address information corresponds to the first device 200.
  • DNS Domain Name System
  • the mobile terminal 100 interacts with the wireless router 300 through DHCP, and can dynamically obtain IP address information.
  • DHCP is a network protocol of a local area network. It is usually used in a large-scale local area network environment. Its main function is to centrally manage and assign IP addresses, so that hosts in the network environment can dynamically obtain IP addresses, gateway addresses, and DNS server addresses. and other information, and can improve the utilization rate of the address.
  • DHCP is the prior art, for details, reference may be made to relevant documents, and details are not repeated here.
  • step 104, step 105, and step 106 may be performed simultaneously, or may be performed in any order, which is not limited in this embodiment of the present application.
  • Step 107 the mobile terminal 100 sends the channel information, key information and IP address information to the first device 200 .
  • the mobile terminal 100 can send the channel information, key information and IP address information to the first device 200 .
  • the mobile terminal 100 can also close the virtual network card to cut off the communication with the wireless router, thereby saving the mobile terminal 100 from communicating with the wireless router.
  • Resources of the wireless router 300 The step of sending the channel information, the key information, and the IP address information and the step of closing the virtual network card may be performed simultaneously, or may be performed in any order, which is not limited in this embodiment of the present application.
  • Step 108 the first device 200 sends a registration request to the wireless router 300 .
  • the first device 200 can directly switch to the channel corresponding to the channel information, thereby enabling the first device 200 to communicate with the channel on the channel.
  • the wireless router 300 communicates.
  • the first device 200 can save the scanning time of the channel, thereby improving the time for device network configuration and the efficiency of device network configuration.
  • the first device 200 may also perform Address Resolution Protocol (Address Resolution Protocol, ARP) analysis according to the gateway address in the above IP address information, thereby obtaining the MAC address of the wireless router 300.
  • Address Resolution Protocol Address Resolution Protocol
  • the first device 200 After setting the IP address, gateway address and DNS server address according to the IP address information, and obtaining the MAC address of the wireless router 300, the first device 200 can communicate with the wireless router 300 on the channel.
  • the first device 200 may send a registration request to the wireless router 300, thereby enabling the wireless router 300 to forward the registration request.
  • the first device 200 may encrypt the registration request through key information.
  • the wireless router 300 can decrypt the registration request based on the pre-stored key information, and forward the registration request to the second device 400 (for example, a cloud server), so that the second device 400
  • the registration request may be processed.
  • the registration request is used for the first device 200 to request a registration code from the second device 400 .
  • the registration request includes the identity information of the first device 200 (for example, information such as the device ID of the first device 200).
  • the first device 200 can also encapsulate the registration request into a data packet, so that the data packet can be transmitted on the Internet.
  • the data packet may include a header and a payload, the header may include information such as an IP address (for example, the IP address of the second device 400 and the IP address of the first device 200), and the payload may include registration request information.
  • IP address of the first device 200 is the source IP address
  • IP address of the second device 400 is the destination IP address.
  • Step 109 the wireless router 300 forwards the registration request sent by the first device 200 to the second device 400 .
  • the wireless router 300 may acquire packet header information corresponding to the registration request.
  • the wireless router 300 may also forward the registration request to the second device 400 according to the target IP address (eg, the IP address of the second device 400 ) in the packet header.
  • Step 110 the second device 400 receives the registration request forwarded by the wireless router 300 and sends a registration code to the wireless router 300 .
  • the second device 400 can parse the source IP address (eg, the IP address of the first device 200) in the packet header, and assign a registration code.
  • the registration code may correspond to the identity information of the first device 200 in the registration request.
  • the registration code can be any number or character, which is not limited in this application.
  • the registration code may also be sent to the wireless router 300 .
  • the second device 400 may encapsulate the registration code into a data packet.
  • the header of the data packet includes the IP address of the second device 400 and the IP address of the first device 200 . It can be understood that the IP address of the first device 200 is the target IP address, and the IP address of the second device 400 is the source IP address.
  • Step 111 the wireless router 300 receives the registration code of the second device 400 and forwards the registration code to the first device 200 .
  • the wireless router 300 may perform forwarding according to the target IP address (eg, the IP address of the first device 200 ) corresponding to the registration code.
  • the target IP address eg, the IP address of the first device 200
  • Step 112 the first device 200 receives the registration code forwarded by the wireless router 300 , and sends the registration authentication information to the wireless router 300 .
  • the registration authentication information may include the identity information and the registration code of the first device 200, so that the second device can perform verification according to the identity information and the registration code.
  • Step 113 the wireless router 300 forwards the registration authentication information to the second device 400 .
  • Step 114 the second device 400 receives the registration authentication information forwarded by the wireless router, and verifies the registration authentication information.
  • the second device 400 parses the identity information and registration code of the first device 200 in the registration authentication information, and analyzes the identity information and registration code of the first device 200 in the registration authentication information. The registration code is compared with the pre-stored identity information and registration code of the first device 200 .
  • Step 115 the second device 400 sends a registration success message or a registration failure message to the wireless router 300 .
  • the verification is passed this time, and the first device 200 in the second device is completed. 400, and send a registration success message to the wireless router 300.
  • the verification fails this time, and the authentication of the first device 200 on the second device 400 is rejected.
  • To register send a registration failure message to the wireless router 300 .
  • Step 116 the wireless router 300 receives the registration success message or the registration failure message sent by the second device 400 , and forwards the registration success message or the registration failure message to the first device 200 .
  • Step 117 the first device 200 determines whether the received message is a registration success message or a registration failure message.
  • Step 118 if the first device 200 receives the registration success message forwarded by the wireless router 300, the network configuration is successful this time.
  • Step 119 if the first device 200 receives the registration failure message forwarded by the wireless router 300, the network configuration fails this time.
  • the first device 200 can also initiate a registration request again.
  • steps 108 to 117 can be repeatedly performed until a registration success message is received, or the first device 200 can also be preset to re-initiate the registration.
  • the threshold of the number of requests When the number of re-initiated registration requests reaches the threshold, the registration request can be stopped.
  • FIG. 4 is a schematic flowchart of another embodiment of a device network distribution method provided by the present application, which may include:
  • Step 201 the mobile terminal 100 requests the first device 200 for network card information.
  • the mobile terminal 100 can actively obtain the network card information of the first device 200.
  • the user can open the APP of the mobile terminal 100, and through the APP, the mobile terminal 100 can initiate a query request to the first device 200, thereby obtaining the first The network card information of the device 200.
  • the user can also approach the first device by holding the mobile terminal 100 (for example, NFC) to trigger the mobile terminal 100 to send a query request to the first device 200, thereby obtaining network card information of the first device 200.
  • the mobile terminal 100 for example, NFC
  • the mobile terminal 100 may also be triggered to send a query request to the first device 200 in other manners to acquire the network card information of the first device 200, which is not limited in this embodiment of the present application.
  • Step 202 the first device 200 sends the network card information to the mobile terminal 100 .
  • the first device 200 may send the network card information to the mobile terminal 100 .
  • the first device 200 may also send the identity information of the first device 200 to the mobile terminal 100 , where the identity information may be information such as the device ID of the first device 200 .
  • Step 203 the mobile terminal 100 receives the network card information and identity information of the first device 200 .
  • Step 204 the mobile terminal 100 creates a virtual network card according to the network card information of the first device 200 .
  • the mobile terminal 100 can establish a virtual network card according to the network card information.
  • the virtual network card may correspond to the first device 200 , that is, the virtual network card simulates the real network card of the first device 200 .
  • Step 205 the mobile terminal 100 uses the virtual network card to perform channel scanning to obtain channel information corresponding to the virtual network card.
  • the mobile terminal 100 may use the virtual network card to perform channel scanning, thereby obtaining channel information corresponding to the wireless router 300 , that is, the channel information may correspond to the wireless router 300 .
  • the channel may be used to identify the communication channel with the wireless router 300 . Exemplarily, through the channel information, it can be determined which channel the service set identifier (SSID) of the wireless router 300 is on.
  • the mobile terminal 100 uses a virtual network card to perform channel scanning, obtains channel information, and sends the above-mentioned channel information to the first device 200, so that the first device 200 can directly use the above-mentioned channel information without performing channel scanning. Save time in channel scanning.
  • the first device 200 can communicate with the wireless router 300 on a channel corresponding to the channel information based on the channel information.
  • Step 206 the mobile terminal 100 uses the virtual network card to perform access authentication, and obtains key information corresponding to the virtual network card.
  • the mobile terminal 100 may also use the virtual network to complete access authentication with the wireless router 300 , thereby establishing an association relationship with the wireless router 300 .
  • the wireless router 300 may also initiate a 4-step handshake, thereby obtaining key information corresponding to the virtual network card.
  • the key information can be used to encrypt service data (eg, to send a registration request).
  • the key information may include a pairwise transit key (Pairwise Transit Key, PTK) and a group temporary key (Group Temporal Key, GTK), and the PTK may be a key used to encrypt unicast data, GTK can be a key used to encrypt multicast or broadcast data. It can be understood that the key information is stored on both the mobile terminal 100 and the wireless router 300 .
  • Step 207 the mobile terminal 100 uses the virtual network card to apply for DHCP, and obtains IP address information corresponding to the virtual network card.
  • the IP address information may include information such as an IP address, a gateway address, and a domain name system (Domain Name System, DNS) server address corresponding to the virtual network card, that is, the IP address information corresponds to the first device 200.
  • DNS Domain Name System
  • the mobile terminal 100 interacts with the wireless router 300 through DHCP, and can dynamically obtain IP address information.
  • DHCP is a network protocol of a local area network. It is usually used in a large-scale local area network environment. Its main function is to centrally manage and assign IP addresses, so that hosts in the network environment can dynamically obtain IP addresses, gateway addresses, and DNS server addresses. and other information, and can improve the utilization rate of the address.
  • DHCP is the prior art, for details, reference may be made to relevant documents, and details are not repeated here.
  • Step 208 the mobile terminal 100 uses the virtual network card to perform ARP analysis to obtain the MAC address information of the wireless router 300 .
  • the mobile terminal 100 can perform ARP analysis according to the gateway address in the IP address information, thereby obtaining the MAC address information of the wireless router 300 .
  • Step 209 the mobile terminal 100 sends a registration request to the wireless router 300 .
  • the registration request may be sent by the mobile terminal 100 .
  • the registration request may contain identity information of the first device 200 .
  • the registration request is used for the mobile terminal 100 to request a registration code from the second device 400 .
  • the mobile terminal 100 may send a registration request to the wireless router 300, thereby enabling the wireless router 300 to forward the registration request.
  • the mobile terminal can encrypt the registration request through key information.
  • the wireless router 300 can decrypt the registration request based on the pre-stored key information, and forward the registration request to the second device 400 (for example, a cloud server), so that the second device 400
  • the registration request may be processed.
  • the registration request is used for the mobile terminal 100 to request a registration code from the second device 400 .
  • the registration request may include identity information of the first device 200 (for example, information such as the device ID of the first device 200).
  • the mobile terminal 100 can also encapsulate the registration request into a data packet, so that the data packet can be transmitted on the Internet.
  • the data packet may include a header and a payload, the header may include information such as an IP address (for example, the IP address of the second device 400 and the IP address of the mobile terminal 100), and the payload may include registration request information.
  • IP address for example, the IP address of the second device 400 and the IP address of the mobile terminal 100
  • the payload may include registration request information. It can be understood that the IP address of the mobile terminal is the source IP address, and the IP address of the second device 400 is the target IP address.
  • Step 210 the wireless router 300 forwards the registration request to the second device 400 .
  • the wireless router 300 may acquire packet header information corresponding to the registration request.
  • the wireless router 300 may also forward the registration request to the second device 400 according to the target IP address (eg, the IP address of the second device 400 ) in the packet header.
  • Step 211 the second device 400 sends a registration code to the wireless router 300 .
  • the second device 400 may assign a registration code.
  • the registration code may correspond to the identity information of the first device 200 in the registration request.
  • the registration code can be any number or character, which is not limited in this application.
  • the registration code may also be sent to the wireless router 300 .
  • the second device 400 may encapsulate the registration code into a data packet.
  • the header of the data packet includes the IP address of the second device 400 and the IP address of the mobile terminal 100 . It can be understood that the IP address of the mobile terminal 100 is the target IP address, and the IP address of the second device 400 is the source IP address.
  • Step 212 the wireless router 300 forwards the registration code to the mobile terminal 100 .
  • the wireless router 300 may forward the registration code to the mobile terminal 100 based on the target IP address (eg, the IP address of the mobile terminal 100) corresponding to the registration code.
  • the target IP address eg, the IP address of the mobile terminal 100
  • step 209 to step 212 may be executed after any one of step 203 to step 208 , which is not limited in this embodiment of the present application.
  • Step 213 the mobile terminal 100 sends the channel information, key information, IP address information, MAC address information and registration code to the first device 200 .
  • Step 214 the first device 200 sends the registration authentication information to the wireless router 300 .
  • the first device 200 can directly switch to the channel corresponding to the channel information, thereby saving time for channel scanning. Then, based on the above MAC address information, the first device 200 can communicate with the wireless router 300, thereby saving time for ARP parsing, and further improving the speed of device network configuration. At this time, the first device 200 may also send the registration authentication information encrypted by the key information to the wireless router 300, and the registration authentication information may include the identity information and registration code of the first device 200, so that the second device 400 can be made according to the The identity information and the registration code are used to verify the first device 200 .
  • Step 215 the wireless router 300 forwards the registration authentication information to the second device 400 .
  • Step 216 the second device 400 verifies the registration authentication information.
  • the second device 400 parses the identity information and registration code of the first device 200 in the registration authentication information, and parses the identity information of the first device 200 in the registration authentication information. and the registration code is compared with the pre-stored identity information and registration code of the first device 200 .
  • Step 217 the second device 400 sends a registration success message or a registration failure message to the wireless router 300 .
  • the verification is passed this time, and the first device 200 in the second device is completed. 400, and send a registration success message to the wireless router 300.
  • the verification fails this time, and the authentication of the first device 200 on the second device 400 is rejected.
  • To register send a registration failure message to the wireless router 300 .
  • Step 218 the wireless router 300 forwards the registration success message or the registration failure message to the first device 200 .
  • Step 219 the first device 200 determines whether the received message is a registration success message or a registration failure message.
  • Step 220 if the first device 200 receives the registration success message forwarded by the wireless router 300, the network configuration is successful this time.
  • Step 221 if the first device 200 receives the registration failure message forwarded by the wireless router 300, the network configuration fails this time.
  • the first device 200 can also initiate a registration request again until it receives a registration success message, or the first device 200 can also preset a threshold for the number of times to re-initiate the registration request. When the number of times reaches the threshold, the registration request can be stopped.
  • FIG. 5 is a schematic structural diagram of an embodiment of a device network distribution device of the present application.
  • the above-mentioned device network distribution device 50 may include: a receiving module 51, a creating module 52, an obtaining module 53 and a first sending module 54; wherein ,
  • the receiving module 51 is used to obtain the network card information of the first device
  • a creation module 52 is used to create a virtual network card based on the network card information
  • an acquisition module 53 used for acquiring network information corresponding to the wireless router by using a virtual network card
  • the first sending module 54 is configured to send the network information to the first device, so that the first device uses the network information to establish a connection with the wireless router.
  • the foregoing receiving module 51 is further configured to receive network card information broadcast by the first device.
  • the above-mentioned apparatus 50 further includes: a query module 55; wherein,
  • the query module 55 is configured to send a query request to the first device, where the query request is used to request to acquire network card information of the first device.
  • the above query request is also used to request to obtain the identity information of the first device, and the above apparatus 50 further includes: a registration module 56, wherein
  • the registration module 56 is configured to receive the identity information sent by the first device; send a registration request to the second device based on the identity information, and the registration request is used to obtain a registration code.
  • the above-mentioned apparatus 50 further includes: a second sending module 57; wherein,
  • the second sending module 57 is configured to receive the registration code sent by the second device, and send the registration code to the first device.
  • the above-mentioned network information includes channel information, key information and IP address information
  • the above-mentioned obtaining module 53 is further configured to use a virtual network card to perform channel scanning to obtain channel information; use the virtual network card to connect with the wireless router Enter the authentication to obtain the key information; use the virtual network card to apply for DHCP to obtain the IP address information.
  • the network information further includes MAC address information
  • the obtaining module 53 is further configured to perform ARP analysis using a virtual network card to obtain the MAC address information.
  • each module of the equipment distribution apparatus shown in FIG. 5 above is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
  • the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
  • FIG. 6 shows a schematic structural diagram of the mobile terminal 100 .
  • the mobile terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile terminal 100 .
  • the mobile terminal 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the mobile terminal 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through the CSI interface, so as to realize the shooting function of the mobile terminal 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the mobile terminal 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the mobile terminal 100, and can also be used to transmit data between the mobile terminal 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the mobile terminal 100 .
  • the mobile terminal 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the mobile terminal 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the mobile terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile terminal 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile terminal 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 may provide applications on the mobile terminal 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the mobile terminal 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile terminal 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the mobile terminal 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the mobile terminal 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the mobile terminal 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the mobile terminal 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile terminal 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and the like.
  • Video codecs are used to compress or decompress digital video.
  • the mobile terminal 100 may support one or more video codecs.
  • the mobile terminal 100 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the mobile terminal 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile terminal 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the mobile terminal 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the mobile terminal 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the mobile terminal 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or some functional modules of the audio module 170 may be provided in the processor 110.
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the mobile terminal 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the mobile terminal 100 may be provided with at least one microphone 170C.
  • the mobile terminal 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals.
  • the mobile terminal 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the mobile terminal 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the mobile terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the mobile terminal 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the mobile terminal 100 .
  • the angular velocity of the mobile terminal 100 about three axes ie, x, y and z axes
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the angle at which the mobile terminal 100 shakes, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shake of the mobile terminal 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the mobile terminal 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile terminal 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the mobile terminal 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the mobile terminal 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the mobile terminal 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the mobile terminal 100 may measure the distance through infrared or laser. In some embodiments, when shooting a scene, the mobile terminal 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the mobile terminal 100 emits infrared light to the outside through the light emitting diode.
  • the mobile terminal 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object near the mobile terminal 100 . When insufficient reflected light is detected, the mobile terminal 100 may determine that there is no object near the mobile terminal 100 .
  • the mobile terminal 100 can use the proximity light sensor 180G to detect that the user holds the mobile terminal 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the mobile terminal 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile terminal 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile terminal 100 can use the collected fingerprint characteristics to unlock the fingerprint, access the application lock, take a picture with the fingerprint, answer the incoming call with the fingerprint, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the mobile terminal 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile terminal 100 performs performance reduction of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the mobile terminal 100 when the temperature is lower than another threshold, the mobile terminal 100 heats the battery 142 to avoid abnormal shutdown of the mobile terminal 100 caused by the low temperature.
  • the mobile terminal 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the mobile terminal 100 , which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the mobile terminal 100 may receive key inputs and generate key signal inputs related to user settings and function control of the mobile terminal 100.
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the mobile terminal 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the mobile terminal 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the mobile terminal 100 interacts with the network through the SIM card to realize functions such as calls and data communication.
  • the mobile terminal 100 employs an eSIM, ie an embedded SIM card.
  • the eSIM card can be embedded in the mobile terminal 100 and cannot be separated from the mobile terminal 100 .
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the mobile terminal 100 .
  • the mobile terminal 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the above-mentioned mobile terminal includes corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
  • each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例提供一种设备配网方法、移动终端及存储介质,涉及通信技术领域,该方法包括:获取第一设备的网卡信息;基于所述网卡信息创建虚拟网卡;使用所述虚拟网卡获取与无线路由器对应的网络信息;将所述网络信息发送给所述第一设备,使得所述第一设备使用所述网络信息与所述无线路由器建立连接。本申请实施例提供的方法,能够加快设备联网的速度,提高物联网设备的连接成功率,由此可以提高设备配网的效率。

Description

设备配网方法、移动终端及存储介质
本申请要求于2020年12月23日提交中国专利局、申请号为202011538977.0、申请名称为“设备配网方法、移动终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种设备配网方法、移动终端及存储介质。
背景技术
随着移动互联网和物联网的快速发展,人们可以越来越方便的通过互联网对物联网设备进行管控。目前,物联网设备通常都是互联网将身份信息注册在云服务器,由此可以使得用户对物联网设备进行管控。
发明内容
本申请实施例提供了一种设备配网方法、移动终端及存储介质,以提供一种对物联网设备进行配网的方式。
第一方面,本申请实施例提供了一种设备配网方法,应用于移动终端,包括:
获取第一设备的网卡信息;具体地,上述移动终端可以是手机、平板等移动设备,也可以是其他类型的移动设备,本申请实施例对上述移动终端的具体类型不作特殊限定。该第一设备可以是待配网的物联网设备,例如,智能电灯、智能插座等智能设备。本申请实施对上述第一设备的具体类型不作特殊限定。
基于网卡信息创建虚拟网卡;具体地,该虚拟网卡可以和第一设备中真实的网卡对应。
使用虚拟网卡获取与无线路由器对应的网络信息;具体地,该网络信息可以用于与无线路由器建立连接,示例性的,该网络信息可以包括信道信息、密钥信息、IP地址信息及MAC地址信息等。
将网络信息发送给第一设备,使得第一设备使用网络信息与无线路由器建立连接。
本实施例中,通过在移动终端处使用与第一设备的真实网卡对应的虚拟网络,获取与无线路由器对应的网络信息,并将该网络信息发送给第一设备,由此可以节省第一设备获取商户网络信息的时间,提高第一设备配网的效率。
其中一种可能的实现方式中,获取第一设备的网卡信息包括:
接收第一设备广播的网卡信息。具体地,第一设备可以主动对网卡信息进行广播,由此可以使得附近的移动终端可以接收到该网卡信息。示例性的,上述第一设备可以在未与无线路由器建立连接时广播网卡信息,并可以在与无线路由器建立连接后停止广播网卡信息。
其中一种可能的实现方式中,获取第一设备的网卡信息之前,还包括:
向第一设备发送查询请求,查询请求用于请求获取第一设备的网卡信息。具体地,移动终端可以主动向第一设备请求获取网卡信息。示例性的,移动终端可以靠近第一设备,通过NFC方式向第一设备发送请求。
其中一种可能的实现方式中,查询请求还用于请求获取第一设备的身份信息,还包括:
接收第一设备发送的身份信息;具体地,第一设备还可以向移动终端发送身份信息,其中,身份信息可以是第一设备的设备ID,该身份信息可以是用于标识第一设备的唯一标识,因此,该身份信息也可以是其他类型的标识,本申请对上述身份信息的具体形式不作特殊限定。
基于身份信息向第二设备发送注册请求,注册请求用于获取注册码。具体地,该注册码用于第一设备在互联网上进行身份注册。
其中一种可能的实现方式中,还包括:
接收第二设备发送的注册码;将注册码发送给第一设备。具体地,通过移动终端进行注册码的申请,可以在第一设备处省去注册码申请的步骤,可以提高第一设备配网的效率。
其中一种可能的实现方式中,网络信息包括信道信息、密钥信息及IP地址信息,使用虚拟网卡获取与无线路由器对应的网络信息包括:
使用虚拟网卡进行信道扫描,得到信道信息;使用虚拟网卡与无线路由器进行接入认证,得到密钥信息;使用虚拟网卡进行DHCP申请,得到IP地址信息。具体地,该信道信息可以是用于与无线路由器建立连接的信道的信息,示例性,通过上述信道,可以检索到无线路由器的SSID。上述密钥信息用于对任一设备与无线路由器之间传输的数据进行加密或解密,可以理解的是,上述密钥可以是非对称密钥,也可以是对称密钥,本申请对上述密钥的形式不作特殊限定。上述IP地址信息可以包括IP地址、NDS地址及网关地址。
其中一种可能的实现方式中,网络信息还包括MAC地址信息,使用虚拟网卡获取与无线路由器对应的网络信息包括:
使用虚拟网卡进行ARP解析,得到MAC地址信息。具体地,该MAC地址信息可以是无线路由器的MAC地址。通过在移动终端处进行ARP解析,获得MAC地址,可以节省第一设备进行ARP解析的时间,由此可以提高第一设备配网的效率。
第二方面,本申请实施例提供一种设备配网,包括:
接收模块,用于获取第一设备的网卡信息;
创建模块,用于基于网卡信息创建虚拟网卡;
获取模块,用于使用虚拟网卡获取与无线路由器对应的网络信息;
第一发送模块,用于将网络信息发送给第一设备,使得第一设备使用网络信息与无线路由器建立连接。
其中一种可能的实现方式中,上述接收模块还用于接收第一设备广播的网卡信息。
其中一种可能的实现方式中,上述装置还包括:
查询模块,用于向第一设备发送查询请求,该查询请求用于请求获取第一设备的网卡信息。
其中一种可能的实现方式中,上述查询请求还用于请求获取第一设备的身份信息,上述装置还包括:
注册模块,用于接收第一设备发送的身份信息;基于身份信息向第二设备发送注册请求,注册请求用于获取注册码。
其中一种可能的实现方式中,上述装置还包括:
第二发送模块,用于接收第二设备发送的注册码;将注册码发送给第一设备。
其中一种可能的实现方式中,上述网络信息包括信道信息、密钥信息及IP地址信息,上述获取模块还用于使用虚拟网卡进行信道扫描,得到信道信息;使用虚拟网卡与无线路由器进行接入认证,得到密钥信息;使用虚拟网卡进行DHCP申请,得到IP地址信息。
其中一种可能的实现方式中,上述网络信息还包括MAC地址信息,上述获取模块还用于使用虚拟网卡进行ARP解析,得到MAC地址信息。
第三方面,本申请实施例提供一种移动终端,包括:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述移动终端从上述存储器中读取上述指令,以使得上述移动终端执行以下步骤:
获取第一设备的网卡信息;
基于网卡信息创建虚拟网卡;
使用虚拟网卡获取与无线路由器对应的网络信息;
将网络信息发送给第一设备,使得第一设备使用网络信息与无线路由器建立连接。
其中一种可能的实现方式中,上述指令被上述移动终端执行时,使得上述移动终端执行获取第一设备的网卡信息的步骤包括:
接收第一设备广播的网卡信息。
其中一种可能的实现方式中,上述指令被上述移动终端执行时,使得上述移动终端执行获取第一设备的网卡信息的步骤之前,还执行以下步骤:
向第一设备发送查询请求,该查询请求用于请求获取第一设备的网卡信息。
其中一种可能的实现方式中,上述查询请求还用于请求获取第一设备的身份信息,上述指令被上述移动终端执行时,使得上述移动终端还执行以下步骤:
接收第一设备发送的身份信息;
基于身份信息向第二设备发送注册请求,注册请求用于获取注册码。
其中一种可能的实现方式中,上述指令被上述移动终端执行时,使得上述移动终端还执行以下步骤:
接收第二设备发送的注册码;
将注册码发送给第一设备。
其中一种可能的实现方式中,上述网络信息包括信道信息、密钥信息及IP地址信息,上述指令被上述移动终端执行时,使得上述移动终端执行使用虚拟网卡获取与无线路由器对应的网络信息的步骤包括:
使用虚拟网卡进行信道扫描,得到信道信息;
使用虚拟网卡与无线路由器进行接入认证,得到密钥信息;
使用虚拟网卡进行DHCP申请,得到IP地址信息。
其中一种可能的实现方式中,上述网络信息还包括MAC地址信息,上述指令被上述移动终端执行时,使得上述移动终端执行使用虚拟网卡获取与无线路由器对应的网络信息的步骤包括:
使用虚拟网卡进行ARP解析,得到MAC地址信息。
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面所述的方法。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请实施例提供应用场景架构图;
图2为本申请提供的设备配网方法一个实施例的流程图;
图3为本申请实施例提供接入认证流程示意图;
图4为本申请提供的设备配网方法另一个实施例的流程图;
图5为本申请实施例提供的设备配网装置的结构示意图;
图6为本申请实施例提供的移动终端的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
目前,物联网设备在身份注册的过程中,通常都是通过路由器连接到互联网,由此可以使得物联网设备的身份信息注册在云服务器中。而物联网设备在与路由器连接时,通常要经过无线热点(WIFI)信道扫描、WIFI接入认证及动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)等过程,因此,耗时很长,且连接成功率不高,由此导致用户的体验降低。
基于上述问题,本申请实施例提出了一种设备配网方法,可以加快设备联网的速度,提高物联网设备的连接成功率,由此可以提高设备配网的效率。
本申请实施例可以应用于移动终端及物联网设备;其中,移动终端也可以称为终端设备、用户设备(User Equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。移动终端可以是WLAN中的站点(STAION,ST),可以是蜂窝电话、无绳电话、会话启动协议(Session Initiation Protocol,SIP)电话、无线本地环路(Wireless Local Loop,WLL)站、个人数字处理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、车联网终端、电脑、膝上型计算机、手持式通信设备、手持式计算设备、卫星无线设备、无线调制解调器卡、电视机顶盒(Set Top Box,STB)、用户驻地设备(Customer Premise Equipment,CPE)和/或用于在无线系统上进行通信的其它设备以及下一代通信系统,例如,5G网络中的移动终端或者未来演进的公共陆地移动网络(Public Land Mobile Network,PLMN)网络中的移动终端等。物联网设备可以包括具有无线通讯功能的生活设备,例如,灯、插座、冰箱、空调等。
本申请实施例对执行该技术方案的移动终端和物联网设备的具体形式不做特殊限制。
现结合图1-图3对本申请实施例提供的设备配网方法进行说明。
图1为本申请提供的设备配网方法的应用场景一个实施例的架构图。参考图1,移动终端100可以通过超短距模式(例如,WIFI超短距或近距离无线通讯(Near Field Communication,NFC)等)或其它无线通讯方式与第一设备200进行通讯。其中,第一设备200可以是物联网设备。移动终端100与无线路由器300之间可以通过无线方式(例如,WIFI)进行通讯。第一设备200与无线路由器300之间也可以通过无线方式(例如,WIFI)进行通讯,由此可以建立无线连接。无线路由器300可以与第二设备400进行有线连接。其中,第二设备400可以是云服务器,云服务器可以包括单台的服务器,也可以包括服务器集群。本申请实施例对此不作限定。
如图2所示,为本申请提供的设备配网方法一个实施例的流程示意图,可以包括:
步骤101,第一设备200广播网卡信息。
具体地,网卡信息可以包括与第一设备200的网卡相关的信息,例如,网卡的介质访问控制层(Media Access Control,MAC)地址等。其中,第一设备200的网卡可以用于与无线路由器200建立连接。
第一设备200可以检测与无线路由器300之间的连接状态,由此可以判断是否与无线路由器200建立连接。
若第一设备200判断未与无线路由器300建立连接,则可以广播网卡信息,使得附近的移动终端100可以接收该网卡信息。
进一步地,第一设备200还可以发送未与无线路由器300建立连接的提示,以提示用户。示例性的,第一设备200可以对指示灯进行闪烁,进行提示,例如,可以是黄灯闪烁,或者红灯闪烁,也可以是其它颜色,本申请实施例对此不作限定。
若第一设备200判断已与无线路由器300建立连接,则停止广播网卡信息。
进一步地,第一设备200还可以发送已与无线路由器300建立连接的提示,以提示用户。示例性的,第一设备200可以对指示灯进行常亮显示,例如,可以是绿灯常亮,也可以是其它颜色,本申请实施例对此不作限定。
需要说明的是,第一设备200广播网卡信息的范围和天线的功率相关,也就是说,天线功率越大,第一设备200广播网卡信息的范围越大,天线功率越小,第一设备200广播网卡信息的范围越小。其中,天线的功率可以预先在第一设备200中设定,也可以通过用户进行手动调整,本申请实施例对此不作限定。
步骤102,移动终端100接收第一设备200的网卡信息。
具体地,在移动终端100靠近第一设备200的过程中,若移动终端100处于第一设备200广播网卡信息的范围内,则可以接收到该网卡信息。
步骤103,移动终端100根据网卡信息创建虚拟网卡。
具体地,当移动终端100接收到第一设备200发送的网卡信息后,可以根据该网卡信息建立虚拟网卡。其中,该虚拟网卡可以与第一设备200对应,也就是说,该虚拟网卡是对第一设备200的真实网卡进行模拟。
步骤104,移动终端100使用虚拟网卡与无线路由器300完成信道扫描,得到与虚拟网卡对应的信道信息。
具体地,移动终端100可以使用虚拟网卡进行信道扫描,由此可以获得与无线路由器300对应的信道信息,也就是说,该信道信息可以与无线路由器300对应。其中,信道可以用于标识与无线路由器300之间的通讯通道。示例性的,通过信道信息,可以确定无线路由器300的服务集标识(Service Set Identifier,SSID)在哪个信道。通过移动终端100使用虚拟网卡进行信道扫描,获得信道信息,并将上述信道信息发送给第一设备200,由此可以使得第一设备200无需进行信道扫描,可以直接使用上述信道信息,由此可以节省信道扫描的时间。而第一设备200在接收到上述移动终端100发送的信道信息后,可以基于上述信道信息在与上述信道信息对应的信道上和无线路由器300进行通讯。
步骤105,移动终端100使用虚拟网卡与无线路由器300完成接入认证,得到与虚拟网卡对应的密钥信息。
具体地,移动终端100还可以使用虚拟网络与无线路由器300完成接入认证,由此可以与无线路由器300之间建立关联关系。当移动终端100与无线路由器300之间建立关联关系后,无线路由器300还可以发起4步握手,由此可以得到与虚拟网卡对应的密钥信息。其中,该密钥信息可以用于对业务数据(例如,发送一个注册请求)进行加密。示例性的,该密钥信息可以包括成对传输密钥(Pairwise Transit Key,PTK)及组临时密钥(Group Temporal Key,GTK),PTK可以是用于对单播数据进行加密的密钥,GTK可以是用于对组播或广播数据进行加密的密钥。可以理解的是,该密钥信息在移动终端100与无线路由器300上都进行存储。
图3为移动终端100与无线路由器300之间的4步握手流程示意图。
需要说明的是,上述接入认证和4步握手的过程具体可以参考WIFI-802.11协议,在此不再赘述。
步骤106,移动终端100使用虚拟网卡与无线路由器300完成DHCP申请,得到 与虚拟网卡对应的IP地址信息。
具体地,IP地址信息可以包括与虚拟网卡对应的IP地址、网关地址及域名系统(Domain Name System,DNS)服务器地址等信息,也就是说,该IP地址信息和第一设备200对应。
移动终端100通过DHCP与无线路由器300进行交互,可以动态的得到IP地址信息。其中,DHCP是一个局域网的网络协议,通常被应用在大型的局域网络环境中,主要作用是集中的管理、分配IP地址,使网络环境中的主机动态的获得IP地址、网关地址、DNS服务器地址等信息,并能够提升地址的使用率。DHCP为现有技术,具体可参考相关文献,在此不再赘述。
需要说明的,步骤104、步骤105与步骤106可以同时执行,也可以按照任意顺序执行,本申请实施例对此不作限定。
步骤107,移动终端100将信道信息、密钥信息及IP地址信息发送给第一设备200。
具体地,当移动终端100从无线路由器300处获取到信道信息、密钥信息及IP地址信息之后,可以向第一设备200发送信道信息、密钥信息及IP地址信息。
可选地,移动终端100从无线路由器300处获取到信道信息、密钥信息及IP地址信息之后,还可以关闭虚拟网卡,以切断与无线路由器之间的通讯,由此可以节省移动终端100与无线路由器300的资源。其中,发送信道信息、密钥信息及IP地址信息的步骤与关闭虚拟网卡的步骤可以同时执行,也可以以任意顺序执行,本申请实施例对此不作限定。
步骤108,第一设备200向无线路由器300发送注册请求。
具体地,第一设备200收到移动终端100发送的信道信息、密钥信息及IP地址信息之后,可以直接切换到与信道信息对应的信道,由此可以使得第一设备200在该信道上与无线路由器300进行通讯。第一设备200通过对信道的直接切换,可以节省信道的扫描时间,由此可以提高设备配网的时间,提高设备配网的效率。
进一步地,第一设备200还可以根据上述IP地址信息中的网关地址进行地址解析协议(Address Resolution Protocol,ARP)解析,由此可以得到无线路由器300的MAC地址。
第一设备200根据IP地址信息设置完IP地址、网关地址及DNS服务器地址,以及获得无线路由器300的MAC地址后,就可以在信道上与无线路由器300进行通信。
例如,第一设备200可以向无线路由器300发送注册请求,由此可以使得无线路由器300可以转发该注册请求。其中,该第一设备200可以通过密钥信息对该注册请求进行加密。无线路由器300可以在收到该加密的注册请求后,基于预先存储的密钥信息对该注册请求进行解密,并将该注册请求转发给第二设备400(例如,云服务器),使得第二设备400可以对该注册请求进行处理。其中,该注册请求用于第一设备200向第二设备400请求注册码。注册请求中包含第一设备200的身份信息(例如:第一设备200的设备ID等信息)。
在具体实现时,第一设备200还可以将注册请求封装成数据包,使得该数据包可 以在互联网上传输。其中,该数据包可以包括包头和载荷,包头可以包括IP地址等信息(例如,第二设备400的IP地址以及第一设备200的IP地址),载荷可以包括注册请求信息。可以理解的是,第一设备200的IP地址为源IP地址,第二设备400的IP地址为目标IP地址。
步骤109,无线路由器300将第一设备200发送的注册请求转发给第二设备400。
具体地,无线路由器300收到第一设备200发送的注册请求后,可以获取与该注册请求对应的包头信息。无线路由器300还可以根据包头中的目标IP地址(例如,第二设备400的IP地址)将注册请求转发给第二设备400。
步骤110,第二设备400接收到无线路由器300转发的注册请求,发送注册码给无线路由器300。
具体地,第二设备400接收到无线路由器300转发的注册请求之后,可以解析包头中的源IP地址(例如,第一设备200的IP地址),并分配一个注册码。其中,该注册码可以和注册请求中的第一设备200的身份信息对应。该注册码可以是任意的数字或字符,本申请对此不作限定。
第二设备400给第一设备200分配注册码后,还可以将注册码发送给无线路由器300。在具体实现时,第二设备400可以将注册码封装成数据包。其中,该数据包的包头包括第二设备400的IP地址以及第一设备200的IP地址。可以理解的是,第一设备200的IP地址为目标IP地址,第二设备400的IP地址为源IP地址。
步骤111,无线路由器300接收到第二设备400的注册码,将该注册码转发给第一设备200。
具体地,无线路由器300可以根据与该注册码对应的目标IP地址(例如,第一设备200的IP地址)进行转发。
步骤112,第一设备200接收到无线路由器300转发的注册码,向无线路由器300发送注册认证信息。
具体地,注册认证信息可以包括第一设备200的身份信息及注册码,使得第二设备可以根据身份信息及注册码进行验证。
步骤113,无线路由器300将注册认证信息转发给第二设备400。
步骤114,第二设备400接收到无线路由器转发的注册认证信息,对注册认证信息进行验证。
具体地,第二设备400接收到无线路由器转发的注册认证信息之后,解析注册认证信息中的第一设备200的身份信息及注册码,将该注册认证信息中的第一设备200的身份信息及注册码与预先存储的第一设备200的身份信息及注册码进行比对。
步骤115,第二设备400将注册成功消息或注册失败消息发送给无线路由器300。
具体地,若注册认证信息中的第一设备200的身份信息及注册码与预先存储的第一设备200的身份信息及注册码一致,则本次验证通过,完成第一设备200在第二设备400上的注册,发送注册成功消息给无线路由器300。
若注册认证信息中的第一设备200的身份信息及注册码与预先存储的第一设备 200的身份信息及注册码不一致,则本次验证失败,拒绝第一设备200在第二设备400上的注册,发送注册失败消息给无线路由器300。
步骤116,无线路由器300接收到第二设备400发送的注册成功消息或注册失败消息,将注册成功消息或注册失败消息转发给第一设备200。
步骤117,第一设备200判断接收到的是注册成功消息或注册失败消息。
步骤118,若第一设备200接收到无线路由器300转发的注册成功消息,则本次配网成功。
步骤119,若第一设备200接收到无线路由器300转发的注册失败消息,则本次配网失败。
可选地,第一设备200配网失败之后,还可以再次发起注册请求,例如,可以重复执行步骤108-步骤117,直至收到注册成功消息,或者第一设备200也可以预先设置重新发起注册请求的次数阈值,当重新发起注册请求的次数达到该次数阈值时,可以停止发起注册请求。
图4为本申请提供的设备配网方法另一个实施例的流程示意图,可以包括:
步骤201,移动终端100向第一设备200请求网卡信息。
具体地,移动终端100可以主动获取第一设备200的网卡信息,例如,用户可以打开移动终端100的APP,通过该APP移动终端100可以向第一设备200发起查询请求,由此可以获取第一设备200的网卡信息。
可选地,用户还可以通过手持移动终端100向第一设备靠近(例如,NFC),以触发移动终端100向第一设备200发送查询请求,由此可以获取第一设备200的网卡信息。
可以理解的是,还可以通过其他方式触发移动终端100向第一设备200发送查询请求,以获取第一设备200的网卡信息,本申请实施例对此不作限定。
步骤202,第一设备200向移动终端100发送网卡信息。
具体地,第一设备200收到移动终端100的查询请求后,可以向移动终端100发送网卡信息。
进一步地,第一设备200还可以向移动终端100发送第一设备200的身份信息,其中,该身份信息可以是第一设备200的设备ID等信息。
步骤203,移动终端100接收第一设备200的网卡信息及身份信息。
步骤204,移动终端100根据第一设备200的网卡信息创建虚拟网卡。
具体地,当移动终端100接收到第一设备200发送的网卡信息后,可以根据该网卡信息建立虚拟网卡。其中,该虚拟网卡可以与第一设备200对应,也就是说,该虚拟网卡是对第一设备200的真实网卡进行模拟。
步骤205,移动终端100使用虚拟网卡进行信道扫描,得到与虚拟网卡对应的信道信息。
具体地,移动终端100可以使用虚拟网卡进行信道扫描,由此可以获得与无线路由器300对应的信道信息,也就是说,该信道信息可以与无线路由器300对应。其中,信道可以用于标识与无线路由器300之间的通讯通道。示例性的,通过信道信息,可以确定无线路由器300的服务集标识(Service Set Identifier,SSID)在哪个信 道。通过移动终端100使用虚拟网卡进行信道扫描,获得信道信息,并将上述信道信息发送给第一设备200,由此可以使得第一设备200无需进行信道扫描,可以直接使用上述信道信息,由此可以节省信道扫描的时间。而第一设备200在接收到上述移动终端100发送的信道信息后,可以基于上述信道信息在与上述信道信息对应的信道上和无线路由器300进行通讯。
步骤206,移动终端100使用虚拟网卡进行接入认证,得到与虚拟网卡对应的密钥信息。
具体地,移动终端100还可以使用虚拟网络与无线路由器300完成接入认证,由此可以与无线路由器300之间建立关联关系。当移动终端100与无线路由器300之间建立关联关系后,无线路由器300还可以发起4步握手,由此可以得到与虚拟网卡对应的密钥信息。其中,该密钥信息可以用于对业务数据(例如,发送一个注册请求)进行加密。示例性的,该密钥信息可以包括成对传输密钥(Pairwise Transit Key,PTK)及组临时密钥(Group Temporal Key,GTK),PTK可以是用于对单播数据进行加密的密钥,GTK可以是用于对组播或广播数据进行加密的密钥。可以理解的是,该密钥信息在移动终端100与无线路由器300上都进行存储。
需要说明的是,上述接入认证和4步握手的过程具体可以参考WIFI-802.11协议,在此不再赘述。
步骤207,移动终端100使用虚拟网卡进行DHCP申请,得到与虚拟网卡对应的IP地址信息。
具体地,IP地址信息可以包括与虚拟网卡对应的IP地址、网关地址及域名系统(Domain Name System,DNS)服务器地址等信息,也就是说,该IP地址信息和第一设备200对应。
移动终端100通过DHCP与无线路由器300进行交互,可以动态的得到IP地址信息。其中,DHCP是一个局域网的网络协议,通常被应用在大型的局域网络环境中,主要作用是集中的管理、分配IP地址,使网络环境中的主机动态的获得IP地址、网关地址、DNS服务器地址等信息,并能够提升地址的使用率。DHCP为现有技术,具体可参考相关文献,在此不再赘述。
步骤208,移动终端100使用虚拟网卡进行ARP解析,得到无线路由器300的MAC地址信息。
具体地,移动终端100可以根据IP地址信息中的网关地址进行ARP解析,由此可以得到无线路由器300的MAC地址信息。
步骤209,移动终端100向无线路由器300发送注册请求。
具体地,该注册请求可以由移动终端100发送。注册请求可以包含第一设备200的身份信息。该注册请求用于移动终端100向第二设备400请求注册码。
例如,移动终端100可以向无线路由器300发送注册请求,由此可以使得无线路由器300可以转发该注册请求。其中,该移动终端可以通过密钥信息对该注册请求进行加密。无线路由器300可以在收到该加密的注册请求后,基于预先存储的密钥信息对该注册请求进行解密,并将该注册请求转发给第二设备400(例如,云服务器),使得第二设备400可以对该注册请求进行处理。其中,该注册请求用于移动终端100 向第二设备400请求注册码。注册请求中可以包含第一设备200的身份信息(例如:第一设备200的设备ID等信息)。
在具体实现时,移动终端100还可以将注册请求封装成数据包,使得该数据包可以在互联网上传输。其中,该数据包可以包括包头和载荷,包头可以包括IP地址等信息(例如,第二设备400的IP地址以及移动终端100的IP地址),载荷可以包括注册请求信息。可以理解的是,移动终端的IP地址为源IP地址,第二设备400的IP地址为目标IP地址。
步骤210,无线路由器300将注册请求转发给第二设备400。
具体地,无线路由器300收到移动终端100发送的注册请求后,可以获取与该注册请求对应的包头信息。无线路由器300还可以根据包头中的目标IP地址(例如,第二设备400的IP地址)将注册请求转发给第二设备400。
步骤211,第二设备400向无线路由器300发送注册码。
具体地,第二设备400接收到无线路由器300转发的注册请求之后,可以分配一个注册码。其中,该注册码可以和注册请求中的第一设备200的身份信息对应。该注册码可以是任意的数字或字符,本申请对此不作限定。
第二设备400给第一设备200分配注册码后,还可以将注册码发送给无线路由器300。在具体实现时,第二设备400可以将注册码封装成数据包。其中,该数据包的包头包括第二设备400的IP地址以及移动终端100的IP地址。可以理解的是,移动终端100的IP地址为目标IP地址,第二设备400的IP地址为源IP地址。
步骤212,无线路由器300向移动终端100转发注册码。
具体地,无线路由器300接收到第二设备400发送的注册码后,可以基于与该注册码对应的目标IP地址(例如,移动终端100的IP地址)向移动终端100转发该注册码。
需要说明的是,步骤209-步骤212可以在步骤203-步骤208中任一个步骤之后执行,本申请实施例对此不作限定。
步骤213,移动终端100发送信道信息、密钥信息、IP地址信息、MAC地址信息及注册码给第一设备200。
步骤214,第一设备200向无线路由器300发送注册认证信息。
具体地,第一设备200收到移动终端100发送的信道信息、密钥信息、IP地址信息及MAC地址信息之后,可以直接切换到与信道信息对应的信道,由此可以节省信道扫描的时间。接着,可以基于上述MAC地址信息,第一设备200可以与无线路由器300进行通信,由此可以节省ARP解析的时间,进而可以提高设备配网的速度。此时,第一设备200还可以向无线路由器300发送经过密钥信息加密的注册认证信息,该注册认证信息可以包括第一设备200的身份信息及注册码,由此可以使得第二设备400根据身份信息及注册码对第一设备200进行验证。
步骤215,无线路由器300向第二设备400转发注册认证信息。
步骤216,第二设备400验证注册认证信息。
具体地,第二设备400接收到无线路由器300转发的注册认证信息之后,解析注册认证信息中的第一设备200的身份信息及注册码,将该注册认证信息中的第一设备 200的身份信息及注册码与预先存储的第一设备200的身份信息及注册码进行比对。
步骤217,第二设备400向无线路由器300发送注册成功消息或注册失败消息。
具体地,若注册认证信息中的第一设备200的身份信息及注册码与预先存储的第一设备200的身份信息及注册码一致,则本次验证通过,完成第一设备200在第二设备400上的注册,发送注册成功消息给无线路由器300。
若注册认证信息中的第一设备200的身份信息及注册码与预先存储的第一设备200的身份信息及注册码不一致,则本次验证失败,拒绝第一设备200在第二设备400上的注册,发送注册失败消息给无线路由器300。
步骤218,无线路由器300向第一设备200转发注册成功消息或注册失败消息。
步骤219,第一设备200判断接收到的是注册成功消息或注册失败消息。
步骤220,若第一设备200接收到无线路由器300转发的注册成功消息,则本次配网成功。
步骤221,若第一设备200接收到无线路由器300转发的注册失败消息,则本次配网失败。
可选地,第一设备200配网失败之后,还可以再次发起注册请求,直至收到注册成功消息,或者第一设备200也可以预先设置重新发起注册请求的次数阈值,当重新发起注册请求的次数达到该次数阈值时,可以停止发起注册请求。
图5为本申请设备配网装置一个实施例的结构示意图,如图5所示,上述设备配网装置50可以包括:接收模块51、创建模块52、获取模块53及第一发送模块54;其中,
接收模块51,用于获取第一设备的网卡信息;
创建模块52,用于基于网卡信息创建虚拟网卡;
获取模块53,用于使用虚拟网卡获取与无线路由器对应的网络信息;
第一发送模块54,用于将网络信息发送给第一设备,使得第一设备使用网络信息与无线路由器建立连接。
其中一种可能的实现方式中,上述接收模块51还用于接收第一设备广播的网卡信息。
其中一种可能的实现方式中,上述装置50还包括:查询模块55;其中,
查询模块55,用于向第一设备发送查询请求,该查询请求用于请求获取第一设备的网卡信息。
其中一种可能的实现方式中,上述查询请求还用于请求获取第一设备的身份信息,上述装置50还包括:注册模块56,其中
注册模块56,用于接收第一设备发送的身份信息;基于身份信息向第二设备发送注册请求,注册请求用于获取注册码。
其中一种可能的实现方式中,上述装置50还包括:第二发送模块57;其中,
第二发送模块57,用于接收第二设备发送的注册码;将注册码发送给第一设备。
其中一种可能的实现方式中,上述网络信息包括信道信息、密钥信息及IP地址 信息,上述获取模块53还用于使用虚拟网卡进行信道扫描,得到信道信息;使用虚拟网卡与无线路由器进行接入认证,得到密钥信息;使用虚拟网卡进行DHCP申请,得到IP地址信息。
其中一种可能的实现方式中,上述网络信息还包括MAC地址信息,上述获取模块53还用于使用虚拟网卡进行ARP解析,得到MAC地址信息。
应理解以上图5所示的设备配网装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。
图6示出了移动终端100的结构示意图。
移动终端100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对移动终端100的具体限定。在本申请另一些实施例中,移动终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现移动终端100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现移动终端100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现移动终端100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为移动终端100充电,也可以用于移动终端100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对移动终端100的结构限定。在本申请另一些实施例中,移动终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过移动终端100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
移动终端100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。移动终端100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在移动终端100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处 理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在移动终端100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,移动终端100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得移动终端100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
移动终端100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,移动终端100可以包括1个或N个显示屏194,N为大于1的正整数。
移动终端100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,移动终端100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当移动终端100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。移动终端100可以支持一种或多种视频编解码器。这样,移动终端100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现移动终端100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展移动终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储移动终端100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行移动终端100的各种功能应用以及数据处理。
移动终端100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模 块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。移动终端100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当移动终端100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。移动终端100可以设置至少一个麦克风170C。在另一些实施例中,移动终端100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,移动终端100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。移动终端100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,移动终端100根据压力传感器180A检测所述触摸操作强度。移动终端100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定移动终端100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定移动终端100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测移动终端100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消移动终端100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,移动终端100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。移动终端100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当移动终端100是翻盖机时,移动终端100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测移动终端100在各个方向上(一般为三轴)加速度的大 小。当移动终端100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。移动终端100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,移动终端100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。移动终端100通过发光二极管向外发射红外光。移动终端100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定移动终端100附近有物体。当检测到不充分的反射光时,移动终端100可以确定移动终端100附近没有物体。移动终端100可以利用接近光传感器180G检测用户手持移动终端100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。移动终端100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测移动终端100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。移动终端100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,移动终端100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,移动终端100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,移动终端100对电池142加热,以避免低温导致移动终端100异常关机。在其他一些实施例中,当温度低于又一阈值时,移动终端100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于移动终端100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。移动终端100可以接收按键输入,产生与移动终端100的用户设置以及功能控制 有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和移动终端100的接触和分离。移动终端100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。移动终端100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,移动终端100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在移动终端100中,不能和移动终端100分离。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对移动终端100的结构限定。在本申请另一些实施例中,移动终端100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
可以理解的是,上述移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。
本申请实施例可以根据上述方法示例对上述移动终端等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种设备配网方法,应用于移动终端,其特征在于,所述方法包括:
    获取第一设备的网卡信息;
    基于所述网卡信息创建虚拟网卡;
    使用所述虚拟网卡获取与无线路由器对应的网络信息;
    将所述网络信息发送给所述第一设备,使得所述第一设备使用所述网络信息与所述无线路由器建立连接。
  2. 根据权利要求1所述的方法,其特征在于,所述获取第一设备的网卡信息包括:
    接收第一设备广播的网卡信息。
  3. 根据权利要求1所述的方法,其特征在于,所述获取第一设备的网卡信息之前,所述方法还包括:
    向第一设备发送查询请求,所述查询请求用于请求获取所述第一设备的网卡信息。
  4. 根据权利要求3所述的方法,其特征在于,所述查询请求还用于请求获取所述第一设备的身份信息,所述方法还包括:
    接收所述第一设备发送的身份信息;
    基于所述身份信息向第二设备发送注册请求,所述注册请求用于获取注册码。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    接收所述第二设备发送的注册码;
    将所述注册码发送给所述第一设备。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述网络信息包括信道信息、密钥信息及IP地址信息,所述使用所述虚拟网卡获取与无线路由器对应的网络信息包括:
    使用所述虚拟网卡进行信道扫描,得到信道信息;
    使用所述虚拟网卡与无线路由器进行接入认证,得到密钥信息;
    使用所述虚拟网卡进行DHCP申请,得到IP地址信息。
  7. 根据权利要求6所述的方法,其特征在于,所述网络信息还包括MAC地址信息,所述使用所述虚拟网卡获取与无线路由器对应的网络信息包括:
    使用所述虚拟网卡进行ARP解析,得到MAC地址信息。
  8. 一种移动终端,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述移动终端从所述存储器中读取所述指令,以使得所述移动终端执行以下步骤:
    获取第一设备的网卡信息;
    基于所述网卡信息创建虚拟网卡;
    使用所述虚拟网卡获取与无线路由器对应的网络信息;
    将所述网络信息发送给所述第一设备,使得所述第一设备使用所述网络信息与所述无线路由器建立连接。
  9. 根据权利要求8所述的移动终端,其特征在于,所述指令被所述移动终端执 行时,使得所述移动终端执行获取第一设备的网卡信息的步骤包括:
    接收第一设备广播的网卡信息。
  10. 根据权利要求8所述的移动终端,其特征在于,所述指令被所述移动终端执行时,使得所述移动终端执行获取第一设备的网卡信息的步骤之前,还执行以下步骤:
    向第一设备发送查询请求,所述查询请求用于请求获取所述第一设备的网卡信息。
  11. 根据权利要求10所述的移动终端,其特征在于,所述查询请求还用于请求获取所述第一设备的身份信息,所述指令被所述移动终端执行时,使得所述移动终端还执行以下步骤:
    接收所述第一设备发送的身份信息;
    基于所述身份信息向第二设备发送注册请求,所述注册请求用于获取注册码。
  12. 根据权利要求11所述的移动终端,其特征在于,所述指令被所述移动终端执行时,使得所述移动终端还执行以下步骤:
    接收所述第二设备发送的注册码;
    将所述注册码发送给所述第一设备。
  13. 根据权利要求8-12任一项所述的移动终端,其特征在于,所述网络信息包括信道信息、密钥信息及IP地址信息,所述指令被所述移动终端执行时,使得所述移动终端执行使用所述虚拟网卡获取与无线路由器对应的网络信息的步骤包括:
    使用所述虚拟网卡进行信道扫描,得到信道信息;
    使用所述虚拟网卡与无线路由器进行接入认证,得到密钥信息;
    使用所述虚拟网卡进行DHCP申请,得到IP地址信息。
  14. 根据权利要求13所述的移动终端,其特征在于,所述网络信息还包括MAC地址信息,所述指令被所述移动终端执行时,使得所述移动终端执行使用所述虚拟网卡获取与无线路由器对应的网络信息的步骤包括:
    使用所述虚拟网卡进行ARP解析,得到MAC地址信息。
  15. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述移动终端上运行时,使得所述移动终端执行如权利要求1-7中任一项所述的设备配网方法。
  16. 所述计算机执行如权利要求1-7中任一项所述的设备配网方法。
PCT/CN2021/136272 2020-12-23 2021-12-08 设备配网方法、移动终端及存储介质 WO2022135143A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP21909140.2A EP4247030A4 (en) 2020-12-23 2021-12-08 METHOD FOR DISTRIBUTING NETWORK DEVICE, MOBILE TERMINAL AND STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011538977.0A CN114666787A (zh) 2020-12-23 2020-12-23 设备配网方法、移动终端及存储介质
CN202011538977.0 2020-12-23

Publications (1)

Publication Number Publication Date
WO2022135143A1 true WO2022135143A1 (zh) 2022-06-30

Family

ID=82024144

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136272 WO2022135143A1 (zh) 2020-12-23 2021-12-08 设备配网方法、移动终端及存储介质

Country Status (3)

Country Link
EP (1) EP4247030A4 (zh)
CN (1) CN114666787A (zh)
WO (1) WO2022135143A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243274A (zh) * 2022-07-12 2022-10-25 杭州涂鸦信息技术有限公司 一种配网方法、装置、设备以及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221283B (zh) * 2023-11-08 2024-04-16 荣耀终端有限公司 一种无线网络连接方法、电子设备和计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459618A (zh) * 2009-01-06 2009-06-17 北京航空航天大学 虚拟机网络的数据包转发方法和装置
US20110153793A1 (en) * 2007-05-29 2011-06-23 Computer Associates Think, Inc. System and method for creating a secure tunnel for communications over a network
CN108270826A (zh) * 2016-12-30 2018-07-10 中国移动通信集团广东有限公司 移动终端点对点通信方法及协商节点
CN111880901A (zh) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 一种网络配置方法、装置、设备及可读存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5574869B2 (ja) * 2010-07-29 2014-08-20 キヤノン株式会社 通信装置、中継装置、無線通信システム、通信装置の制御方法、中継装置の制御方法およびプログラム
EP3714549B1 (en) * 2018-01-05 2023-06-07 Xirgo Technologies, LLC Secured pairing of video capture device and mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153793A1 (en) * 2007-05-29 2011-06-23 Computer Associates Think, Inc. System and method for creating a secure tunnel for communications over a network
CN101459618A (zh) * 2009-01-06 2009-06-17 北京航空航天大学 虚拟机网络的数据包转发方法和装置
CN108270826A (zh) * 2016-12-30 2018-07-10 中国移动通信集团广东有限公司 移动终端点对点通信方法及协商节点
CN111880901A (zh) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 一种网络配置方法、装置、设备及可读存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4247030A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243274A (zh) * 2022-07-12 2022-10-25 杭州涂鸦信息技术有限公司 一种配网方法、装置、设备以及存储介质
CN115243274B (zh) * 2022-07-12 2024-04-26 杭州涂鸦信息技术有限公司 一种配网方法、装置、设备以及存储介质

Also Published As

Publication number Publication date
CN114666787A (zh) 2022-06-24
EP4247030A1 (en) 2023-09-20
EP4247030A4 (en) 2024-04-17

Similar Documents

Publication Publication Date Title
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
WO2021052178A1 (zh) 一种Wi-Fi连接方法及设备
WO2020133183A1 (zh) 音频数据的同步方法及设备
CN111373713B (zh) 一种消息传输方法及设备
CN112469013B (zh) 一种蓝牙连接方法及相关装置
WO2021175268A1 (zh) 移动网络热点的共享方法、装置和热点共享设备
WO2021043045A1 (zh) 一种网络配置信息的配置方法及设备
WO2021043198A1 (zh) 一种蓝牙配对方法及相关装置
WO2022068513A1 (zh) 无线通信方法和终端设备
WO2022135143A1 (zh) 设备配网方法、移动终端及存储介质
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
WO2022116930A1 (zh) 内容共享方法、电子设备及存储介质
WO2020124371A1 (zh) 一种数据信道的建立方法及设备
WO2022143156A1 (zh) 一种加密通话方法、装置、终端及存储介质
US20230370920A1 (en) Communication method, terminal device, and storage medium
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
WO2021043250A1 (zh) 一种蓝牙通信方法及相关装置
WO2022179243A1 (zh) Wi-Fi接入的方法及相关设备
WO2022042460A1 (zh) 一种设备的连接方法及电子设备
WO2022152323A1 (zh) 数据传输方法、芯片、终端及存储介质
EP4362507A1 (en) Communication system and communication method
WO2022206771A1 (zh) 一种投屏方法、电子设备和系统
WO2024037040A9 (zh) 数据处理方法及电子设备
WO2023093395A1 (zh) 数据传输方法和通信系统
CN115883118A (zh) 设备登录方法、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21909140

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021909140

Country of ref document: EP

Effective date: 20230616

NENP Non-entry into the national phase

Ref country code: DE