CN116074359A - Distribution network method and electronic equipment - Google Patents

Distribution network method and electronic equipment Download PDF

Info

Publication number
CN116074359A
CN116074359A CN202111282193.0A CN202111282193A CN116074359A CN 116074359 A CN116074359 A CN 116074359A CN 202111282193 A CN202111282193 A CN 202111282193A CN 116074359 A CN116074359 A CN 116074359A
Authority
CN
China
Prior art keywords
distribution network
network information
distribution
network
information list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111282193.0A
Other languages
Chinese (zh)
Inventor
程庆
潘锦玲
武利
王磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202111282193.0A priority Critical patent/CN116074359A/en
Publication of CN116074359A publication Critical patent/CN116074359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • 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/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Cardiology (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

In the technical scheme of the network distribution method and the electronic equipment provided by the embodiment of the invention, a network distribution information list is polled, and a router corresponding to the network distribution information stored in the network distribution information list is automatically connected; if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after the preset time; after receiving the second distribution network information from the terminal equipment, checking the second distribution network information; and if the second distribution network information is successfully checked, storing the second distribution network information into a distribution network information list, continuously executing polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list. The embodiment of the invention supports the storage of the information of the multiple groups of distribution networks, the original distribution network information is not covered during secondary distribution network, and the information of the multiple groups of distribution networks is polled and networked after the equipment is electrified, so that the mobile use scene of a user between different places is adapted, and the user experience is improved.

Description

Distribution network method and electronic equipment
[ field of technology ]
The present invention relates to the field of communications technologies, and in particular, to a network allocation method and an electronic device.
[ background Art ]
The intelligent home distribution network is that after a mobile phone or other terminal equipment scans and discovers equipment to be distributed, distribution network information is sent to the equipment to be distributed, and the equipment to be distributed uses the distribution network information to connect with a router, so that one-key networking and remote APP control of the equipment to be distributed are realized.
For example, after the user joins in a network to be joined in a network, the user carries the network to be joined in a network to other sites, and the network to be joined in a network is re-joined in a network to cover the network to be joined in a network by using the new router information, and the user returns to the home and needs to re-join in a network. Because the current network distribution scheme only supports one set of network distribution information, the user has poor experience in a scene that the network distribution equipment to be distributed moves in a plurality of places.
[ invention ]
In view of this, the embodiment of the invention provides a network distribution method and electronic equipment, which support the storage of multiple sets of network distribution information, do not cover the original network distribution information during secondary network distribution, and poll and network the multiple sets of network distribution information after the equipment is powered on so as to adapt to the mobile use scenes of users between different places and improve the user experience.
In a first aspect, an embodiment of the present invention provides a network allocation method, where the method includes:
polling a distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list;
if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after a preset time;
after receiving second distribution network information from the terminal equipment, checking the second distribution network information;
And if the second distribution network information is successfully checked, storing the second distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
With reference to the first aspect, in some implementations of the first aspect, if the second configuration network information verification fails, continuing to perform polling of a configuration network information list, and automatically connecting a router corresponding to the configuration network information stored in the configuration network information list.
With reference to the first aspect, in some implementation manners of the first aspect, before the polling the distribution network information list, automatically connecting a router corresponding to the distribution network information stored in the distribution network information list, the method further includes:
judging whether the network equipment to be distributed is already distributed;
if the network equipment to be distributed is not distributed, first network distribution information is obtained through first network distribution with the terminal equipment;
and storing the first distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting routers corresponding to the distribution network information stored in the distribution network information list.
With reference to the first aspect, in some implementations of the first aspect, if the to-be-configured network device has been configured, continuing to execute the polling configuration network information list, and automatically connecting a router corresponding to the configuration network information stored in the configuration network information list.
With reference to the first aspect, in certain implementations of the first aspect, the distribution network information includes an authentication code and router SSID information.
With reference to the first aspect, in certain implementation manners of the first aspect, before storing the second distribution network information in the distribution network information list, the method further includes:
and checking the second distribution network information.
With reference to the first aspect, in certain implementation manners of the first aspect, the verifying the second distribution network information includes:
and judging whether the authentication code in the second distribution network information is consistent with the authentication code in the first distribution network information.
In a second aspect, an embodiment of the present invention provides a first electronic device, including a processor and a memory, where the memory is configured to store a computer program, the computer program includes program instructions, and the electronic device includes a device to be configured with a network; when the processor executes the program instructions, the electronic device is caused to perform the steps of:
Polling a distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list;
if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after a preset time;
after receiving second distribution network information from the terminal equipment, checking the second distribution network information;
and if the second distribution network information is successfully checked, storing the second distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
With reference to the second aspect, in certain implementations of the second aspect, the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
and if the second distribution network information verification fails, continuing to execute polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
With reference to the second aspect, in certain implementations of the second aspect, the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
The polling distribution network information list, before automatically connecting with the router corresponding to the distribution network information stored in the distribution network information list, further comprises:
judging whether the network equipment to be distributed is already distributed;
if the network equipment to be distributed is not distributed, first network distribution information is obtained through first network distribution with the terminal equipment;
and storing the first distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting routers corresponding to the distribution network information stored in the distribution network information list.
With reference to the second aspect, in certain implementations of the second aspect, the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
and if the equipment to be distributed is distributed, continuing to execute the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
With reference to the second aspect, in certain implementations of the second aspect, the distribution network information includes an authentication code and router SSID information.
With reference to the second aspect, in certain implementations of the second aspect, the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
Before the second distribution network information is stored in the distribution network information list, the method further includes:
and checking the second distribution network information.
With reference to the second aspect, in certain implementations of the second aspect, the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
the verifying the second distribution network information includes:
and judging whether the authentication code in the second distribution network information is consistent with the authentication code in the first distribution network information.
In a third aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform a method as described above.
In the technical scheme of the distribution network method and the electronic equipment provided by the embodiment of the invention, a distribution network information list is polled, and a router corresponding to the distribution network information stored in the distribution network information list is automatically connected; if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after the preset time; after receiving the second distribution network information from the terminal equipment, checking the second distribution network information; and if the second distribution network information is successfully checked, storing the second distribution network information into a distribution network information list, continuously executing polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list. The embodiment of the invention supports the storage of the information of the multiple groups of distribution networks, the original distribution network information is not covered during secondary distribution network, and the information of the multiple groups of distribution networks is polled and networked after the equipment is electrified, so that the mobile use scene of a user between different places is adapted, and the user experience is improved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a scene diagram of a distribution network system according to an embodiment of the present invention;
fig. 2 is a flowchart of a network allocation method according to an embodiment of the present invention;
fig. 3 is a flowchart of another network allocation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[ detailed description ] of the invention
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one way of describing an association of associated objects, meaning that there may be three relationships, e.g., a and/or b, which may represent: the first and second cases exist separately, and the first and second cases exist separately. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
Based on the technical problem that the user carries the equipment to be distributed with a network and experiences relatively poor in the moving scene of a plurality of places only one set of distribution network information is supported by the current distribution network scheme, the embodiment of the invention provides a distribution network method and electronic equipment, which support the storage of a plurality of sets of distribution network information, the original distribution network information is not covered during secondary distribution network, and the equipment polls and networks the plurality of sets of distribution network information after power-on so as to adapt to the moving scene of the user between different places and improve the user experience.
Referring to fig. 1, fig. 1 is a schematic diagram of a distribution network system according to an embodiment of the present invention. The network distribution system of the embodiment of the invention comprises two electronic devices, wherein the two electronic devices can comprise terminal equipment and network distribution equipment to be distributed; for example, the terminal device comprises a mobile phone, and the network device to be configured comprises a dictionary pen or a smart watch. Further, the distribution network system comprises a first router and a second router, wherein the first router is located in a first scene, and the second router is located in a second scene. The second scene is different from the first scene. For example, the first scene includes a home and the second scene includes a library. As shown in fig. 1, the distribution network system includes a terminal device 100, a device 200 to be distributed, a first router 500, and a second router 400. Alternatively, the distribution network system may comprise a plurality of routers, only 2 routers being shown in fig. 1, namely a first router 500 and a second router 400. The terminal device 100 and the network device 200 to be configured can perform wireless transmission. When the terminal device 100 and the network device 200 to be configured are located in the first scene, the terminal device 100 and the first router 500 are connected; when the terminal apparatus 100 and the network to be distributed apparatus 200 are located in the second scenario, the terminal apparatus 100 and the second router 400 are connected.
As shown in fig. 1, a user is located in a first scenario, a terminal device 100 is connected to a first router 500, and a to-be-configured network device 200 obtains first configuration network information through first configuration network with the terminal device 100, where the first configuration network information includes an authentication code and SSID information of the first router 500. The to-be-distributed network device 200 stores the first distribution network information in a distribution network information list, and establishes network connection with the first router 500 according to the first distribution network information.
Specifically, when the network to be configured 200 and the terminal device 100 configure the network for the first time, the network to be configured 200 initiates broadcasting of a network configuration request, where the network configuration request includes information of the network to be configured 200. After receiving the broadcast of the network allocation request, the terminal device 100 displays a network allocation request prompt interface, displays a network allocation information input interface after receiving the operation of agreeing to the network allocation input by the user, receives the first network allocation information input by the user, and sends the first network allocation information to the network equipment to be allocated 200. Meanwhile, the terminal device 100 applies for the to-be-configured network device 200 to be connected with the cloud through a secure channel between the terminal device 100 and the cloud. After the network connection is established between the network device 200 to be configured and the first router 500, the network device 200 to be configured establishes a connection with the cloud, and the cloud sends an SSIDCODE message to the network device 200 to be configured.
It should be noted that, before the first network allocation, it is determined whether the to-be-allocated network device 200 has allocated a network, and if the to-be-allocated network device 200 has not allocated a network, the first network allocation information is obtained by performing the first network allocation with the terminal device 100; if the network to be distributed 200 is already distributed, the network distribution information list is polled, and the router corresponding to the network distribution information stored in the network distribution information list is automatically connected. If the to-be-configured network device 200 and the router are both failed in connection, a secondary network configuration request is sent to the terminal device 100 after a predetermined time.
As shown in fig. 1, when a user leaves a first scenario and arrives at a second scenario, the terminal device 100 and the second router 400 are connected, and after the network device 200 to be configured fails to connect with the first router 500 and waits for a predetermined time, a secondary network configuration request is actively initiated to the terminal device 100 to obtain second network configuration information, where the second network configuration information includes an authentication code and SSID information of the second router 400. The to-be-distributed network device 200 stores the second distribution network information in the value distribution network information list but does not cover the first distribution network information, and establishes network connection with the second router 400 according to the second distribution network information. The distribution network information list is used for storing distribution network information when the distribution network is distributed each time, and the new distribution network information does not cover the old distribution network information.
Specifically, when the network device 200 to be configured and the terminal device 100 secondarily configure the network, after the network device 200 to be configured fails to connect with the first router 500 and waits for a predetermined time, a broadcast of a secondary network request is actively initiated to the terminal device 100. After receiving the broadcast of the secondary network allocation request, the terminal device 100 displays a network allocation request prompt interface, displays a network allocation information input interface after receiving the operation of agreeing to the network allocation input by the user, receives the second network allocation information input by the user, and sends the second network allocation information to the network to-be-allocated device 200. Since the network device 200 to be configured is already connected to the cloud end when the network is configured for the first time, the terminal device 100 does not need to apply for the connection between the network device 200 to be configured and the cloud end through the secure channel when the network is configured for the second time. After the network distribution equipment 200 receives the second network distribution information, judging whether the authentication code in the second network distribution information is consistent with the authentication code in the first network distribution information, if so, successfully checking the second network distribution information, and storing the second network distribution information into a network distribution information list. After the network connection is established between the to-be-configured network device 200 and the second router 400, the to-be-configured network device 200 establishes a connection with the cloud, and the cloud sends further SSIDCODE information to the to-be-configured network device 200, so as to distinguish the primary network configuration from the secondary network configuration. If the authentication code in the second distribution network information is inconsistent with the authentication code in the first distribution network information, the verification of the second distribution network information fails, and the to-be-distributed network equipment 200 polls the distribution network information list and automatically connects the router corresponding to the distribution network information stored in the distribution network information list. In the embodiment of the invention, under a movable scene, the device to be distributed network 200 automatically switches the router when the device polls the network, and automatically switches to a secondary distribution network mode after the polling fails to receive new distribution network information.
As shown in fig. 1, on the way that the user leaves the second scenario and returns to the first scenario, the to-be-configured network device 200 and the second router 400 are disconnected, the to-be-configured network device 200 polls the configuration network information list, and automatically connects the router corresponding to the configuration network information stored in the configuration network information list until the user arrives at the first scenario, and the to-be-configured network device 200 and the first router 500 are connected.
Based on the scene graph of the distribution network system shown in fig. 1, the distribution network method provided by the embodiment of the invention, as shown in fig. 2, includes:
and 102, polling the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
And 104, if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after the preset time.
Step 106, after receiving the second distribution network information from the terminal device, checking the second distribution network information.
Step 108, if the second distribution network information is successfully checked, the second distribution network information is stored in the distribution network information list, and step 102 is continuously executed.
In the technical scheme of the distribution network method provided by the embodiment of the invention, a distribution network information list is polled, and a router corresponding to the distribution network information stored in the distribution network information list is automatically connected; if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after the preset time; after receiving the second distribution network information from the terminal equipment, checking the second distribution network information; and if the second distribution network information is successfully checked, storing the second distribution network information into a distribution network information list, continuously executing polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list. The embodiment of the invention supports the storage of the information of the multiple groups of distribution networks, the original distribution network information is not covered during secondary distribution network, and the information of the multiple groups of distribution networks is polled and networked after the equipment is electrified, so that the mobile use scene of a user between different places is adapted, and the user experience is improved.
Based on the scene graph of the distribution network system shown in fig. 1, the embodiment of the invention provides another distribution network method. As shown in fig. 3, the method includes:
step 202, judging whether the equipment to be distributed has distributed network, if yes, executing step 204; if not, go to step 208.
For example, the network device to be configured includes a dictionary pen or a smart watch.
Step 204, obtaining first distribution network information by first distribution network with the terminal equipment.
For example, the terminal device comprises a mobile phone.
Before the first network allocation, it is determined whether the network equipment to be allocated has already been allocated, if the network equipment to be allocated has not been allocated, the first network allocation information is obtained by performing the first network allocation with the terminal equipment.
Specifically, when the network to be distributed equipment and the terminal equipment distribute the network for the first time, the network to be distributed equipment initiates broadcasting of a network distribution request, and the network distribution request comprises information of the network to be distributed equipment. After receiving the broadcast of the network distribution request, the terminal equipment displays a network distribution request prompt interface, after receiving the operation of agreeing to the network distribution input by the user, displays a network distribution information input interface, receives first network distribution information input by the user, and sends the first network distribution information to the network distribution equipment to be distributed. Meanwhile, the terminal equipment applies for the network equipment to be distributed to the cloud end to be connected with the cloud end through a safety channel between the terminal equipment and the cloud end.
The first network distribution information is network distribution information obtained when the terminal equipment distributes the network for the first time. The distribution network information includes an authentication code and router SSID information. The first distribution network information includes an authentication code and router SSID information of the first router. The first router is located in a first scene.
Step 206, storing the first distribution network information into a distribution network information list.
And step 208, polling the distribution network information list, and automatically connecting routers corresponding to the distribution network information stored in the distribution network information list.
In the embodiment of the invention, after the first network distribution, only one piece of network distribution information, namely the first network distribution information, is stored in the network distribution information list, so that when the network distribution information list is polled, the network distribution equipment to be distributed is only automatically connected with the first router. After the network connection is established between the network equipment to be distributed and the first router, the network equipment to be distributed is connected with a cloud, and the cloud sends SSIDCODE information to the network equipment to be distributed.
In the embodiment of the present invention, if it is determined in step 202 that the to-be-configured network device has been configured, at least one configuration information is stored in the configuration information list, the configuration information list is polled, and the router corresponding to the configuration information stored in the configuration information list is automatically connected.
Step 210, judging whether connection with the router fails, if so, executing step 212; if not, go to step 218.
In the embodiment of the invention, after the network distribution of the network equipment to be distributed is completed, a network monitoring module is started to detect whether the network equipment to be distributed is connected to the Internet. If the equipment to be distributed and the router are connected with each other, the situation that the user possibly carries the terminal equipment and the equipment to be distributed to leave the router is indicated.
Step 212, a secondary network allocation request is sent to the terminal device after a predetermined time.
In the embodiment of the invention, if the equipment to be distributed polls the distribution network information list and whether the equipment to be distributed is connected with the router fails or not, after waiting for the preset time, the broadcasting of the secondary distribution network request is actively initiated.
Specifically, when the network equipment to be distributed and the terminal equipment secondarily distribute the network, the network equipment to be distributed and the router fail to be connected and after waiting for a preset time, the broadcasting of the secondary network distribution request is actively initiated to the terminal equipment. And after receiving the broadcast of the secondary network allocation request, the terminal equipment displays a network allocation request prompt interface.
Step 214, after receiving the second distribution network information from the terminal device, checking the second distribution network information; if the second distribution network information verification is successful, step 216 is executed; if the second distribution network information verification fails, step 208 is continued.
Specifically, the terminal device receives second distribution network information input by a user, and sends the second distribution network information to the to-be-distributed network device. Because the equipment to be distributed is connected with the cloud end when the network is distributed for the first time, the terminal equipment does not need to apply for the connection of the equipment to be distributed with the cloud end through a safety channel when the network is distributed for the second time.
The second distribution network information is distribution network information obtained when the terminal equipment is subjected to secondary distribution network, namely network reconfiguration. The distribution network information includes an authentication code and router SSID information. The second distribution network information includes an authentication code and router SSID information of the second router. The second router is located in a second scenario. The second scene is different from the first scene.
In this step, step 214 specifically includes: judging whether the authentication code in the second distribution network information is consistent with the authentication code in the first distribution network information; if yes, go to step 216; if not, go to step 208.
After the network distribution equipment receives the second network distribution information, judging whether the authentication code in the second network distribution information is consistent with the authentication code in the first network distribution information, if so, successfully checking the second network distribution information, and storing the second network distribution information into a network distribution information list. If the authentication code in the second distribution network information is inconsistent with the authentication code in the first distribution network information, the second distribution network information fails to check, and the distribution network equipment to be distributed polls the distribution network information list and automatically connects the router corresponding to the distribution network information stored in the distribution network information list.
Step 216, storing the second distribution network information in the distribution network information list, and continuing to execute step 208.
In this step, the to-be-configured network device stores the second configuration information in the configuration information list, but does not cover the first configuration information.
After the network connection is established between the to-be-allocated network device and the second router, the to-be-allocated network device establishes connection with the cloud, and the cloud sends further SSIDCODE information to the to-be-allocated network device for distinguishing the primary allocation network from the secondary allocation network.
Step 218, executing a device management flow; and ending the distribution network flow.
The network distribution method provided by the embodiment of the invention has the advantages that the network distribution equipment to be distributed stores the network distribution information received by the network distribution in the past, and polling access is carried out on each network distribution information when the power-on is started. The network distribution information of the historical network distribution is automatically stored by the network distribution equipment to be connected, all the network distribution information stored in the history is used for matching and connecting with the current scanning hot spot when the network distribution equipment to be connected is connected, and the network distribution can be automatically connected without the need of network distribution again after the network distribution equipment to be connected repeatedly enters the scene once.
The embodiment of the invention can be applied to network equipment to be connected such as dictionary pens, intelligent watches and the like, and when a user carries the network equipment to be connected to a new place, a new network can be automatically started, namely a secondary network can be automatically started. When the user carries the equipment to be distributed to the network to move back and forth between the common places, the network can be automatically connected without repeated network distribution. For example, when the user completes the network distribution at home, the user carries the network to-be-distributed device and the terminal device to places such as schools or libraries, and the router changes, and the network to-be-distributed device cannot be connected with the router when the network to be distributed is first distributed. At this time, the equipment to be distributed automatically detects the scene, and then initiatively reinitiates the network distribution request, and the terminal equipment initiatively reminds the user after detecting the scene, and the secondary network distribution can be performed after the user agrees. The user is not required to restore the factory of the equipment to be configured or trigger the secondary network configuration operation by keys, and the problem that the user is required to restart or restore the factory by manual operation is solved.
In the technical scheme of the distribution network method provided by the embodiment of the invention, a distribution network information list is polled, and a router corresponding to the distribution network information stored in the distribution network information list is automatically connected; if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after the preset time; after receiving the second distribution network information from the terminal equipment, checking the second distribution network information; and if the second distribution network information is successfully checked, storing the second distribution network information into a distribution network information list, continuously executing polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list. The embodiment of the invention supports the storage of the information of the multiple groups of distribution networks, the original distribution network information is not covered during secondary distribution network, and the information of the multiple groups of distribution networks is polled and networked after the equipment is electrified, so that the mobile use scene of a user between different places is adapted, and the user experience is improved.
The network distribution method provided by the embodiment of the present invention is described in detail above with reference to fig. 2 to 3, and the device embodiment of the present invention will be described in detail below with reference to fig. 4. It should be understood that, the electronic device in the embodiment of the present invention may perform the methods of the foregoing embodiments of the present invention, that is, specific working processes of the following various products may refer to corresponding processes in the foregoing method embodiments.
The embodiment of the application provides electronic equipment, which can be terminal equipment or circuit equipment built in the terminal equipment. The electronic device may be adapted to perform the functions/steps of the method embodiments described above. The electronic equipment comprises equipment to be distributed with a network.
Fig. 4 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present application. The electronic device 300 may include a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (universal serial bus, USB) interface 330, a charge management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an ear-piece interface 370D, a sensor module 380, keys 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a user identification module (subscriber identification module, SIM) card interface 395, among others. The sensor module 380 may include a pressure sensor 380A, a gyroscope sensor 380B, an air pressure sensor 380C, a magnetic sensor 380D, an acceleration sensor 380E, a distance sensor 380F, a proximity sensor 380G, a fingerprint sensor 380H, a temperature sensor 380J, a touch sensor 380K, an ambient light sensor 380L, a bone conduction sensor 380M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, electronic device 300 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 310 may include one or more processing units, such as: the processor 310 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), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 310 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 310 may include one or more interfaces. The interfaces 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bi-directional synchronous serial bus comprising a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, the processor 310 may contain multiple sets of I2C buses. The processor 310 may be coupled to the touch sensor 380K, charger, flash, camera 393, etc., respectively, via different I2C bus interfaces. For example: the processor 310 may couple the touch sensor 380K through an I2C interface, such that the processor 310 communicates with the touch sensor 380K through an I2C bus interface, implementing the touch functionality of the electronic device 300.
The I2S interface may be used for audio communication. In some embodiments, the processor 310 may contain multiple sets of I2S buses. The processor 310 may be coupled to the audio module 370 via an I2S bus to enable communication between the processor 310 and the audio module 370. In some embodiments, the audio module 370 may communicate audio signals to the wireless communication module 360 via the I2S interface to enable answering calls via the bluetooth headset.
PCM interfaces may also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 370 and the wireless communication module 360 may be coupled by a PCM bus interface. In some embodiments, the audio module 370 may also transmit audio signals to the wireless communication module 360 via the PCM interface to enable phone answering via the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus for asynchronous communications. The bus may be a bi-directional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 310 with the wireless communication module 360. For example: the processor 310 communicates with a bluetooth module in the wireless communication module 360 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 370 may transmit audio signals to the wireless communication module 360 through a UART interface to implement a function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 310 to peripheral devices such as the display screen 394, the camera 393, and the like. The MIPI interfaces include camera serial interfaces (camera serial interface, CSI), display serial interfaces (display serial interface, DSI), and the like. In some embodiments, processor 310 and camera 393 communicate through a CSI interface, implementing the photographing function of electronic device 300. The processor 310 and the display screen 394 communicate via a DSI interface to implement the display functions of the electronic device 300.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal or as a data signal. In some embodiments, a GPIO interface may be used to connect processor 310 with camera 393, display 394, wireless communication module 360, audio module 370, sensor module 380, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, an MIPI interface, etc.
The USB interface 330 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 330 may be used to connect a charger to charge the electronic device 300, or may be used to transfer data between the electronic device 300 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 300. In other embodiments of the present application, the electronic device 300 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 340 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 340 may receive a charging input of a wired charger through the USB interface 330. In some wireless charging embodiments, the charge management module 340 may receive wireless charging input through a wireless charging coil of the electronic device 300. The battery 342 is charged by the charge management module 340, and the electronic device may be powered by the power management module 341.
The power management module 341 is configured to connect the battery 342, the charge management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and/or the charge management module 340 to power the processor 310, the internal memory 321, the display screen 394, the camera 393, the wireless communication module 360, and the like. The power management module 341 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance), and other parameters. In other embodiments, the power management module 341 may also be disposed in the processor 310. In other embodiments, the power management module 341 and the charging management module 340 may also be disposed in the same device.
The wireless communication function of the electronic device 300 may be implemented by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 300 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 350 may provide a solution for wireless communication, including 2G/3G/4G/5G, etc., applied on the electronic device 300. The mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 350 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 350 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be disposed in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 may be provided in the same device as at least some of the modules of the processor 310.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then 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 then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 370A, receiver 370B, etc.), or displays images or video through display screen 394. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 350 or other functional module, independent of the processor 310.
The wireless communication module 360 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 300. The wireless communication module 360 may be one or more devices that integrate at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 310. The wireless communication module 360 may also receive a signal to be transmitted from the processor 310, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 350 of electronic device 300 are coupled, and antenna 2 and wireless communication module 360 are coupled, such that electronic device 300 may communicate with a network and other devices via wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 300 implements display functions through a GPU, a display screen 394, an application processor, and the like. The GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 310 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 394 is used for displaying images, videos, and the like. The display screen 394 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 300 may include 1 or N display screens 394, N being a positive integer greater than 1.
Electronic device 300 may implement capture functionality through an ISP, camera 393, video codec, GPU, display 394, and application processor, among others.
The ISP is used to process the data fed back by camera 393. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 393.
Camera 393 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 300 may include 1 or N cameras 393, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 300 is selecting a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 300 may support one or more video codecs. Thus, the electronic device 300 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the electronic device 300 may be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 320 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 300. The external memory card communicates with the processor 310 through an external memory interface 320 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 321 may be used to store computer executable program code comprising instructions. The internal memory 321 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 300 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 310 performs various functional applications of the electronic device 300 and data processing by executing instructions stored in the internal memory 321, and/or instructions stored in a memory provided in the processor.
The electronic device 300 may implement audio functionality through an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an ear-headphone interface 370D, and an application processor, among others. Such as music playing, recording, etc.
The audio module 370 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 370 may also be used to encode and decode audio signals. In some embodiments, the audio module 370 may be disposed in the processor 310, or some of the functional modules of the audio module 370 may be disposed in the processor 310.
Speaker 370A, also known as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 300 may listen to music, or to hands-free conversations, through the speaker 370A.
A receiver 370B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 300 is answering a telephone call or voice message, voice may be received by placing receiver 370B close to the human ear.
Microphone 370C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 370C through the mouth, inputting a sound signal to the microphone 370C. The electronic device 300 may be provided with at least one microphone 370C. In other embodiments, the electronic device 300 may be provided with two microphones 370C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 300 may also be provided with three, four, or more microphones 370C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 370D is for connecting a wired earphone. The headset interface 370D may be a USB interface 330 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 380A is configured to sense a pressure signal and convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 380A may be disposed on the display screen 394. Pressure sensor 380A.
Such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 380A, the capacitance between the electrodes changes. The electronic device 300 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 394, the electronic apparatus 300 detects the touch operation intensity according to the pressure sensor 380A. The electronic device 300 may also calculate the location of the touch based on the detection signal of the pressure sensor 380A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The gyro sensor 380B may be used to determine a motion gesture of the electronic device 300. In some embodiments, the angular velocity of electronic device 300 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 380B. The gyro sensor 380B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 380B detects the shake angle of the electronic device 300, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 300 through the reverse motion, so as to realize anti-shake. The gyro sensor 380B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 380C is used to measure air pressure. In some embodiments, the electronic device 300 calculates altitude from barometric pressure values measured by the barometric pressure sensor 380C, aiding in positioning and navigation.
The magnetic sensor 380D includes a hall sensor. The electronic device 300 may detect the opening and closing of the flip holster using the magnetic sensor 380D. In some embodiments, when the electronic device 300 is a flip machine, the electronic device 300 may detect the opening and closing of the flip according to the magnetic sensor 380D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 380E may detect the magnitude of acceleration of the electronic device 300 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 300 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 380F for measuring distance. The electronic device 300 may measure the distance by infrared or laser. In some embodiments, the electronic device 300 may range using the distance sensor 380F to achieve fast focus.
The proximity light sensor 380G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 300 emits infrared light outward through the light emitting diode. The electronic device 300 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it may be determined that an object is in the vicinity of the electronic device 300. When insufficient reflected light is detected, the electronic device 300 may determine that there is no object in the vicinity of the electronic device 300. The electronic device 300 can detect that the user holds the electronic device 300 close to the ear by using the proximity light sensor 380G, so as to automatically extinguish the screen to achieve the purpose of saving power. The proximity light sensor 380G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 380L is used to sense ambient light level. The electronic device 300 may adaptively adjust the brightness of the display screen 394 based on the perceived ambient light level. The ambient light sensor 380L may also be used to automatically adjust white balance during photographing. The ambient light sensor 380L may also cooperate with the proximity light sensor 380G to detect if the electronic device 300 is in a pocket to prevent false touches.
The fingerprint sensor 380H is used to collect a fingerprint. The electronic device 300 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 380J is used to detect temperature. In some embodiments, the electronic device 300 performs a temperature processing strategy using the temperature detected by the temperature sensor 380J. For example, when the temperature reported by temperature sensor 380J exceeds a threshold, electronic device 300 performs a reduction in performance of a processor located in the vicinity of temperature sensor 380J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 300 heats the battery 342 to avoid the low temperature causing the electronic device 300 to shut down abnormally. In other embodiments, when the temperature is below a further threshold, the electronic device 300 performs boosting of the output voltage of the battery 342 to avoid abnormal shutdown caused by low temperatures.
Touch sensor 380K, also known as a "touch device". The touch sensor 380K may be disposed on the display screen 394, and the touch sensor 380K and the display screen 394 form a touch screen, which is also referred to as a "touch screen". The touch sensor 380K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 394. In other embodiments, touch sensor 380K may also be located on a surface of electronic device 300 other than at display 394.
The bone conduction sensor 380M may acquire a vibration signal. In some embodiments, bone conduction sensor 380M may acquire a vibration signal of a human vocal tract vibrating bone pieces. The bone conduction sensor 380M may also contact the pulse of the human body to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 380M may also be provided in the headset, in combination with an osteoinductive headset. The audio module 370 may analyze the voice signal based on the vibration signal of the sound portion vibration bone block obtained by the bone conduction sensor 380M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beat signals acquired by the bone conduction sensor 380M, so as to realize a heart rate detection function.
The keys 390 include a power on key, a volume key, etc. Key 390 may be a mechanical key. Or may be a touch key. The electronic device 300 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 300.
The motor 391 may generate a vibration alert. The motor 391 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 391 may also correspond to different vibration feedback effects by touch operations applied to different areas of the display screen 394. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 392 may be an indicator light, which may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 395 is for interfacing with a SIM card. The SIM card may be inserted into the SIM card interface 395 or removed from the SIM card interface 395 to enable contact and separation with the electronic device 300. The electronic device 300 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 395 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 395 can be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 395 may also be compatible with different types of SIM cards. The SIM card interface 395 may also be compatible with external memory cards. The electronic device 300 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 300 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 300 and cannot be separated from the electronic device 300.
Embodiments of the present application provide a computer readable storage medium having instructions stored therein which, when executed on a terminal device, cause the terminal device to perform the functions/steps as in the method embodiments described above.
Embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer or any of the at least one processor, cause the computer to perform the functions/steps as in the method embodiments described above.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relation of association objects, and indicates that there may be three kinds of relations, for example, a and/or B, and may indicate that a alone exists, a and B together, and B alone exists. Wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of the following" and the like means any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in the embodiments disclosed herein can be implemented as a combination of electronic hardware, computer software, and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In several embodiments provided herein, any of the functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, and any person skilled in the art may easily conceive of changes or substitutions within the technical scope of the present application, which should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method for distributing a network, applied to a device to be distributed, the method comprising:
polling a distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list;
if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after a preset time;
after receiving second distribution network information from the terminal equipment, checking the second distribution network information;
and if the second distribution network information is successfully checked, storing the second distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
2. The method as recited in claim 1, further comprising:
and if the second distribution network information verification fails, continuing to execute polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
3. The method of claim 1, wherein the polling the distribution network information list automatically includes, before connecting to the router corresponding to the distribution network information stored in the distribution network information list:
judging whether the network equipment to be distributed is already distributed;
if the network equipment to be distributed is not distributed, first network distribution information is obtained through first network distribution with the terminal equipment;
and storing the first distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting routers corresponding to the distribution network information stored in the distribution network information list.
4. A method according to claim 3, further comprising:
and if the equipment to be distributed is distributed, continuing to execute the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
5. The method of any of claims 1-4, wherein the distribution network information includes an authentication code and router SSID information.
6. The method of claim 5, wherein prior to storing the second distribution network information in the distribution network information list, further comprising:
And checking the second distribution network information.
7. The method of claim 6, wherein the verifying the second distribution network information comprises:
and judging whether the authentication code in the second distribution network information is consistent with the authentication code in the first distribution network information.
8. An electronic device comprising a processor and a memory, wherein the memory is configured to store a computer program, the computer program comprising program instructions, the electronic device comprising a device to be networked; when the processor executes the program instructions, the electronic device is caused to perform the steps of:
polling a distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list;
if the connection with the router fails, sending a secondary network allocation request to the terminal equipment after a preset time;
after receiving second distribution network information from the terminal equipment, checking the second distribution network information;
and if the second distribution network information is successfully checked, storing the second distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
9. The electronic device of claim 8, wherein the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
and if the second distribution network information verification fails, continuing to execute polling of the distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
10. The electronic device of claim 8, wherein the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
the polling distribution network information list, before automatically connecting with the router corresponding to the distribution network information stored in the distribution network information list, further comprises:
judging whether the network equipment to be distributed is already distributed;
if the network equipment to be distributed is not distributed, first network distribution information is obtained through first network distribution with the terminal equipment;
and storing the first distribution network information into the distribution network information list, continuously executing the polling distribution network information list, and automatically connecting routers corresponding to the distribution network information stored in the distribution network information list.
11. The method of claim 10, wherein the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
And if the equipment to be distributed is distributed, continuing to execute the polling distribution network information list, and automatically connecting a router corresponding to the distribution network information stored in the distribution network information list.
12. The electronic device of any of claims 8-11, wherein the distribution network information includes an authentication code and router SSID information.
13. The electronic device of claim 12, wherein the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
before the second distribution network information is stored in the distribution network information list, the method further includes:
and checking the second distribution network information.
14. The electronic device of claim 13, wherein the program instructions, when executed by the processor, cause the electronic device to perform the steps of:
the verifying the second distribution network information includes:
and judging whether the authentication code in the second distribution network information is consistent with the authentication code in the first distribution network information.
15. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method according to any of claims 1-7.
CN202111282193.0A 2021-11-01 2021-11-01 Distribution network method and electronic equipment Pending CN116074359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111282193.0A CN116074359A (en) 2021-11-01 2021-11-01 Distribution network method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111282193.0A CN116074359A (en) 2021-11-01 2021-11-01 Distribution network method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116074359A true CN116074359A (en) 2023-05-05

Family

ID=86170314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111282193.0A Pending CN116074359A (en) 2021-11-01 2021-11-01 Distribution network method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116074359A (en)

Similar Documents

Publication Publication Date Title
CN115209195B (en) Terminal equipment, method and system for realizing one touch screen through remote controller
CN112449328B (en) Bluetooth searching method, system and related device
CN111742361B (en) Method for updating wake-up voice of voice assistant by terminal and terminal
CN112289313A (en) Voice control method, electronic equipment and system
CN113225690A (en) Bluetooth connection method, system and electronic equipment
CN112040461A (en) Approach discovery method and device
CN110730114B (en) Method and equipment for configuring network configuration information
CN112312366B (en) Method, electronic equipment and system for realizing functions through NFC (near field communication) tag
CN112334860B (en) Touch control method of wearable device, wearable device and system
CN113343193B (en) Identity verification method and device and electronic equipment
CN114422340B (en) Log reporting method, electronic equipment and storage medium
CN111865646A (en) Terminal upgrading method and related device
CN114339698A (en) Method for establishing wireless connection through equipment touch, electronic equipment and chip
CN112272191B (en) Data transfer method and related device
CN114554012B (en) Incoming call answering method, electronic equipment and storage medium
CN113838478B (en) Abnormal event detection method and device and electronic equipment
CN116133165A (en) Headset connection system, method, headset, electronic device, and readable storage medium
CN117093068A (en) Vibration feedback method and system based on wearable device, wearable device and electronic device
CN114500725B (en) Target content transmission method, master device, slave device, and storage medium
CN116074359A (en) Distribution network method and electronic equipment
CN115734323B (en) Power consumption optimization method and device
CN114329595B (en) Application program detection method, device, storage medium and program product
CN113328537B (en) Wireless charging deviation detection method and device and electronic equipment
CN116708317B (en) Data packet MTU adjustment method and device and terminal equipment
CN115580541B (en) Information synchronization method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination