CN106028326B - WiFi configuration method and device of smart watch - Google Patents

WiFi configuration method and device of smart watch Download PDF

Info

Publication number
CN106028326B
CN106028326B CN201610306048.4A CN201610306048A CN106028326B CN 106028326 B CN106028326 B CN 106028326B CN 201610306048 A CN201610306048 A CN 201610306048A CN 106028326 B CN106028326 B CN 106028326B
Authority
CN
China
Prior art keywords
wifi
server
wifi data
data
verification result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610306048.4A
Other languages
Chinese (zh)
Other versions
CN106028326A (en
Inventor
何松
张明辉
张国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610306048.4A priority Critical patent/CN106028326B/en
Publication of CN106028326A publication Critical patent/CN106028326A/en
Application granted granted Critical
Publication of CN106028326B publication Critical patent/CN106028326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

the invention discloses a WiFi configuration method and a WiFi configuration device of a smart watch, wherein the method comprises the following steps: the method comprises the steps of obtaining and storing a WiFi list from a server, wherein the WiFi list comprises one or more pieces of WiFi data which are configured by a smart phone and uploaded to the server, and each piece of WiFi data comprises: a service set identification and password for the WiFi network; and for each piece of WiFi data in the WiFi list, judging whether the WiFi data is a modification item, if so, verifying the current availability of the WiFi data, recording a verification result and reporting the verification result to a server. The technical scheme solves the problem that the WiFi configuration cannot be completed by the intelligent watch due to the fact that no keyboard is used for inputting; according to the scheme, the service set identification, the password and the WiFi list with the availability of the WiFi data are locally stored in the smart watch, so that the smart watch can reasonably and efficiently select the currently available WiFi data to connect the WiFi network according to the locally stored WiFi list when the smart watch has the requirement of connecting the network.

Description

WiFi configuration method and device of smart watch
Technical Field
The invention relates to the technical field of smart watches, in particular to a WiFi configuration method and a WiFi configuration device of a smart watch.
Background
In the prior art, the smart watch is limited by hardware configuration conditions, the input function is usually realized by customization, and the smart watch does not have the input function with small granularity like keyboard input, so that the smart watch cannot complete WiFi complete configuration. For example, when the position changes, a WiFi module in the smart watch may scan a WiFi network at the current position, and scan to obtain a service set identifier of each WiFi, but because the input function of the smart watch is incomplete, the smart watch cannot input a password to the WiFi network like other terminals such as a smartphone, and cannot be connected to the WiFi network, so that the smart watch generally can only perform positioning by scanning WiFi at present, but cannot be connected to the WiFi network for networking.
disclosure of Invention
in view of the above, the present invention has been made to provide a WiFi configuration method and apparatus for a smart watch that overcomes or at least partially solves the above problems.
According to an aspect of the present invention, there is provided a WiFi configuration method for a smart watch, including:
the method comprises the steps of obtaining and storing a WiFi list from a server, wherein the WiFi list comprises one or more pieces of WiFi data, the WiFi data are configured by a smart phone and uploaded to the server, and each piece of WiFi data comprises: a service set identification and password for the WiFi network;
and for each piece of WiFi data in the WiFi list, judging whether the WiFi data is a modification item, if so, verifying the current availability of the WiFi data, recording a verification result and reporting the verification result to a server.
optionally, the verification result is used for being pushed to the smartphone by the server.
Optionally, the method further comprises:
And receiving modified WiFi data from the server, wherein the modified WiFi data is generated according to feedback of the smart phone after the server pushes the verification result to the smart phone.
optionally, the step of verifying the current availability of the WiFi data, recording a verification result, and reporting the verification result to the server further includes:
performing WiFi scanning at the current position, and checking whether a broadcast about the service set identification in the WiFi data is received;
If not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is not in the connection range, and uploading the verification result to the server.
Optionally, if a broadcast is received regarding the service set identification in the WiFi data, the method further comprises:
acquiring the address of a WiFi network access point corresponding to the WiFi data;
Generating a verification sequence according to the password in the WiFi data and sending the verification sequence to the WiFi network access point so as to check whether the password in the WiFi data is correct or not;
If not, recording a verification result indicating that the password in the WiFi data is wrong and uploading the verification result to a server.
Optionally, if the password in the WiFi data is correct; the method further comprises the following steps:
Sending a connection request to the WiFi network access point, and checking whether an association response returned by the WiFi network access point is received;
If not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is associated with errors, and uploading the verification result to a server.
Optionally, if an association response returned by the WiFi network access point is received, the method further includes:
And checking whether the IP address distributed by the dynamic host configuration protocol is acquired, if not, recording a verification result indicating that the dynamic host configuration protocol corresponding to the WiFi data is wrong, and reporting the verification result to the server.
optionally, if the IP address allocated by the dhcp is acquired, the method further includes:
checking whether networking can be performed through a WiFi network corresponding to the WiFi data;
If not, recording a verification result indicating that the WiFi network corresponding to the WiFi data cannot be networked, and reporting the verification result to a server;
If so, recording a verification result indicating that the WiFi network corresponding to the WiFi data is successfully connected and reporting the verification result to the server.
optionally, each piece of WiFi data further includes: a status field;
the step of determining whether the WiFi data is a modified item further comprises: and judging whether the value of the status field in the WiFi data indicates that the WiFi data is newly added or modified WiFi data, if so, determining that the WiFi data is a modified item.
optionally, the recording and reporting the verification result to the server includes:
And assigning the value indicating the verification result to a status field in the WiFi data, and reporting the assigned WiFi data to a server.
Optionally, the obtaining and storing the WiFi list from the server includes:
when a WiFi updating instruction sent by a server is received, and/or when the smart watch is started, a WiFi list is obtained from the server;
And covering the last saved WiFi list with the obtained WiFi list.
optionally, the obtaining and storing the WiFi list from the server includes:
WiFi scanning is carried out at the current position, a service set identifier of a scanned WiFi network is uploaded to a server, and the server transmits the service set identifier of the scanned WiFi network to the smart phone;
Acquiring a WiFi list generated according to WiFi data configured and uploaded according to the scanned WiFi network service set identification transmitted by the smart phone response server;
And the service set identification of the WiFi network included in the WiFi data configured and uploaded by the smart phone is the same as one or more of the service set identifications of the scanned WiFi networks.
according to another aspect of the present invention, there is provided a WiFi configuration apparatus for a smart watch, comprising:
the WiFi data acquisition unit is suitable for acquiring and storing a WiFi list from a server, the WiFi list comprises one or more pieces of WiFi data, the WiFi data are configured by the smart phone and uploaded to the server, and each piece of WiFi data comprises: a service set identification and password for the WiFi network;
And the verification unit is suitable for judging whether each WiFi data in the WiFi list is a modification item or not, verifying the current availability of the WiFi data if the WiFi data is the modification item, recording the verification result and reporting the verification result to the server.
Optionally, the verification result is used for being pushed to the smartphone by the server.
Optionally, the WiFi data obtaining unit is further adapted to receive modified WiFi data from a server, where the modified WiFi data is generated by the server according to feedback of the smartphone after pushing the verification result to the smartphone.
Optionally, the verification unit is further adapted to perform WiFi scanning at the current location, and check whether a broadcast regarding the service set identifier in the WiFi data is received; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is not in the connection range, and uploading the verification result to the server.
optionally, the verification unit is further adapted to, when receiving a broadcast about the service set identifier in the WiFi data, further obtain an address of a WiFi network access point corresponding to the WiFi data; generating a verification sequence according to the password in the WiFi data and sending the verification sequence to the WiFi network access point so as to check whether the password in the WiFi data is correct or not; if not, recording a verification result indicating that the password in the WiFi data is wrong and uploading the verification result to a server.
optionally, the verification unit is further adapted to, when the password in the WiFi data is correct, further send a connection request to the WiFi network access point, and check whether an association response returned by the WiFi network access point is received; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is associated with errors, and uploading the verification result to a server.
optionally, the verification unit is further adapted to, when receiving an association response returned by the WiFi network access point, further check whether an IP address allocated by the dynamic host configuration protocol is acquired, and if not, record a verification result indicating that the dynamic host configuration protocol corresponding to the WiFi data is incorrect and report the verification result to the server.
optionally, the verification unit is further adapted to check whether networking can be performed through a WiFi network corresponding to the WiFi data when the IP address allocated by the dynamic host configuration protocol is obtained; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data cannot be networked, and reporting the verification result to a server; if so, recording a verification result indicating that the WiFi network corresponding to the WiFi data is successfully connected and reporting the verification result to the server.
Optionally, each piece of WiFi data further includes: a status field;
The verification unit is further adapted to determine whether the value of the status field in the WiFi data indicates that the WiFi data is the new or modified WiFi data, and if so, determine that the WiFi data is the modified item.
Optionally, the verification unit is adapted to assign a value indicating a verification result to a status field in the WiFi data, and report the WiFi data after assignment to the server.
optionally, the WiFi data obtaining unit is adapted to obtain a WiFi list from the server when a WiFi update instruction sent by the server is received, and/or when the smart watch is turned on; and covering the last saved WiFi list with the obtained WiFi list.
Optionally, the WiFi data obtaining unit is adapted to perform WiFi scanning at a current location, upload a service set identifier of a scanned WiFi network to a server, and transmit the service set identifier of the scanned WiFi network to the smartphone by the server; acquiring a WiFi list generated according to WiFi data configured and uploaded according to the scanned WiFi network service set identification transmitted by the smart phone response server;
and the service set identification of the WiFi network included in the WiFi data configured and uploaded by the smart phone is the same as one or more of the service set identifications of the scanned WiFi networks.
Therefore, according to the technical scheme provided by the invention, the WiFi list is obtained from the server and stored, the WiFi data in the WiFi list is configured by the smart phone and uploaded to the server, namely, the complete WiFi data configured by the smart phone is pushed to the smart watch through the server, so that the problem that the smart watch cannot complete WiFi configuration due to no keyboard input is solved; after the WiFi list is obtained, the current availability of each piece of WiFi data in the WiFi list is verified, the verification result is recorded and reported to the server, and the WiFi list recorded with the service set identification, the password and the availability of each piece of WiFi data is locally stored in the smart watch through the scheme, so that the smart watch can reasonably and efficiently select the current available WiFi data to carry out WiFi network connection according to the locally stored WiFi list when the smart watch has the requirement of network connection.
the foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
Fig. 1 is a flowchart illustrating a WiFi configuration method for a smart watch according to an embodiment of the present invention;
Fig. 2 is a flowchart illustrating a WiFi configuration method for a smart watch according to another embodiment of the invention;
fig. 3 shows a schematic diagram of a WiFi configuration device of a smart watch, according to one embodiment of the invention.
Detailed Description
exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
fig. 1 is a flowchart illustrating a WiFi configuration method for a smart watch according to an embodiment of the present invention. As shown in fig. 1, the method includes:
Step S110, a WiFi list is obtained from a server and stored, the WiFi list comprises one or more pieces of WiFi data, the WiFi data are configured by the smart phone and uploaded to the server, and each piece of WiFi data comprises: a service set identification and a password for the WiFi network.
And step S120, judging whether each WiFi data in the WiFi list is a modification item or not, if so, verifying the current availability of the WiFi data, recording a verification result and reporting the verification result to a server.
As can be seen, the method shown in fig. 1 acquires and stores a WiFi list from a server, and WiFi data in the WiFi list is configured by a smart phone and uploaded to the server, that is, complete WiFi data configured by the smart phone is pushed to a smart watch through the server, so that the problem that the smart watch cannot complete WiFi configuration due to no keyboard input is solved; after the WiFi list is obtained, the current availability of each piece of WiFi data in the WiFi list is verified, the verification result is recorded and reported to the server, and the WiFi list recorded with the service set identification, the password and the availability of each piece of WiFi data is locally stored in the smart watch through the scheme, so that the smart watch can reasonably and efficiently select the current available WiFi data to carry out WiFi network connection according to the locally stored WiFi list when the smart watch has the requirement of network connection.
For example, the smart watch acquires and stores a WiFi list from the server, where the WiFi list includes WiFi data a, WiFi data b, and WiFi data c, where the WiFi data a includes: the service set identifier and password of the WiFi network a, and the WiFi data b includes: the service set identifier and password of the WiFi network b, the WiFi data c includes: a service set identification and a password for WiFi network c. Respectively verifying the current availability of the WiFi data a, the WiFi data b and the WiFi data c, wherein the verification result is as follows: WiFi data a is available, WiFi data b is unavailable, WiFi data c is available, and the record is local in the smart watch and uploaded to the server. When the smart watch has the requirement of connecting a network, WiFi network scanning is firstly carried out, a WiFi network a and a WiFi network b are scanned, available WiFi data a corresponding to the WiFi network a can be known according to a locally stored WiFi list, and then network connection is directly carried out by utilizing the WiFi data a. Therefore, according to the scheme, the WiFi network connection can be conveniently and effectively carried out according to the requirement of the intelligent watch without active WiFi configuration of the intelligent watch.
In an embodiment of the present invention, in the method shown in fig. 1, a verification result of each WiFi data is reported to a server, and the verification result is used to be pushed to the smart phone by the server, so that a smart phone end learns information about whether each configured WiFi data is available for a smart watch, and a closed loop feedback mechanism is formed in which the smart phone pushes the WiFi data to the smart watch through the server, and the smart watch feeds back the verification result of the WiFi data to the smart phone through the server.
further, the above process further comprises: and receiving modified WiFi data from the server, wherein the modified WiFi data is generated according to feedback of the smart phone after the server pushes the verification result to the smart phone. Therefore, after the smart phone receives the verification result of the WiFi data fed back by the smart watch through the server, the WiFi data can be corrected according to the verification result of the WiFi data, and the corrected WiFi data is fed back to the smart watch through the server, so that WiFi configuration of the smart watch is continuously improved and promoted. For example, in the above example, the WiFi data a, the WiFi data b, and the WiFi data c are reported to the server, and are pushed to the smart watch by the server, the smart phone learns that the configured WiFi data b is unavailable, and may be a password error of the WiFi data b input in the configuration process, the smart phone may upload the modified WiFi data b to the server, add the modified WiFi data b to the WiFi list by the server and send the modified WiFi data b to the smart watch, and the smart watch performs a process of verifying the modified WiFi data b.
Fig. 2 is a flowchart illustrating a WiFi configuration method for a smart watch according to another embodiment of the present invention. As shown in fig. 2, the method includes:
Step S202, the WiFi list is obtained from the server and stored.
In an embodiment of the present invention, the step of obtaining and storing the WiFi list from the server includes: when a WiFi updating instruction sent by a server is received, and/or when the smart watch is started, a WiFi list is triggered to acquire an inquiry, and the WiFi list is acquired from the server; and covering the last saved WiFi list with the obtained WiFi list. Wherein the WiFi list obtained from the server is a full WiFi list.
step S204, for each piece of WiFi data in the WiFi list, determining whether the WiFi data is a modification item, if yes, executing step S206.
In an embodiment of the present invention, each piece of WiFi data in the WiFi list further includes: the status field needs to explicitly define whether the corresponding WiFi data is the new or modified WiFi data, for example, the status field in the WiFi data is a state, and when the state in one WiFi data is 0, it indicates that the WiFi data is the new or modified WiFi data.
Then in this step, the process of determining whether the WiFi data is a modification item may be: and judging whether the value of the status field in the WiFi data indicates that the WiFi data is newly added or modified WiFi data, if so, determining that the WiFi data is a modified item.
Step S206, for the WiFi data, a verification request is sent to a WiFi module of the smart watch.
Step S208, checking whether the WiFi network corresponding to the WiFi data is in the connection range, if so, executing step S210; otherwise, step S212 is executed.
In this step, the process of checking whether the WiFi network corresponding to the WiFi data is within the connection range may be: for WiFi data, carrying out WiFi scanning at the current position through a WiFi module of the smart watch, and checking whether a broadcast about a service set identifier in the WiFi data is received; if yes, the WiFi network corresponding to the WiFi data is in the connection range; if not, the WiFi network corresponding to the WiFi data is not in the connection range.
step S210, checking whether the password of the WiFi data is correct, if so, executing step S214; otherwise, step S216 is executed.
in this step, the process of checking whether the password of the WiFi data is correct may be: acquiring the address of a WiFi network access point corresponding to the WiFi data; generating a verification sequence according to the password in the WiFi data and a certain algorithm, and sending the verification sequence to the WiFi network access point, so that the WiFi network access point analyzes the verification sequence and matches the password with the password prestored at the WiFi network access point, and if the matching is successful, a WiFi module of the smart watch receives the information that the password returned by the WiFi network access point is correct; and if the matching fails, the WiFi module of the smart watch receives the information of wrong passwords returned by the WiFi network access point.
Step S212, reporting a verification result indicating that the WiFi network corresponding to the WiFi data is not in the connection range to the server.
step S214, checking whether the WiFi data can be associated, if so, executing step S218; otherwise, step S220 is executed.
in this step, the process of checking whether the WiFi data can be associated may be: sending a connection request to the WiFi network access point, checking whether an association response returned by the WiFi network access point is received or not, and if so, successfully associating the WiFi data; if not, the WiFi data association fails.
step S216, reporting the verification result indicating the password error in the WiFi data to the server.
Step S218, checking whether the IP address can be allocated by DHCP (dynamic host configuration protocol), if yes, executing step S222; otherwise, step S224 is performed.
in this step, the process of checking whether the IP address can be allocated by DHCP may be: and checking whether a legal IP address allocated by the DHCP is acquired, if so, the DHCP corresponding to the WiFi data is correct, and if not, the DHCP corresponding to the WiFi data is wrong.
Step S220, reporting the verification result indicating the WiFi network association error corresponding to the WiFi data to a server.
Step S222, checking whether the WiFi network corresponding to the WiFi data can be networked, otherwise, executing step S226; if yes, go to step S228.
In this step, the process of checking whether the WiFi data can be networked is as follows: checking whether networking can be performed through a WiFi network corresponding to the WiFi data; specifically, whether the WiFi network corresponding to the WiFi data can be networked or not may be checked by sending a Ping packet or an Http request.
step S224, reporting the verification result indicating the DHCP error corresponding to the WiFi data to the server.
Step S226, reporting the verification result indicating that the WiFi network corresponding to the WiFi data cannot be networked to the server.
Step S228, reporting the verification result indicating that the WiFi network corresponding to the WiFi data is successfully connected to the server.
According to the above process shown in fig. 2, in a specific embodiment, when a WiFi update instruction sent by a server is received and/or when a smart watch is powered on, a WiFi list acquisition query is triggered, and a smart phone acquires a full-amount WiFi list through a query interface (/ watchsync/sync interface, sync _ type is WiFi _ list) of a server, where each piece of WiFi data in the WiFi list includes: a Service Set Identifier (SSID), a password and a state field (state), judging whether the WiFi data is a modification item according to the value of the state in each piece of WiFi data, and verifying the availability of the WiFi data which is the modification item; notifying a WiFi module to verify the availability of the WiFi data aiming at the WiFi data needing to verify the availability in the WiFi list; the WiFi module performs the check of one or more of the above steps S208, S210, S214, S218, and S222 on the WiFi, and reports the verification result about the availability of the WiFi to the server. In a specific embodiment, after the full WiFi list is obtained, the Lib may call the watchextwifi probeforsssid function to notify the WiFi module to verify the availability of the WiFi data, and after the verification, the Lib may be notified of the availability of the WiFi data through the callback function watchextwifi probecallback. After the checking is completed, no matter what the verification result is, the Lib must be notified of the verification result through the WatchExtWiFiProbeCallback callback, and the corresponding verification result obtained by each step of checking is reported to the server as performed in the above steps S212, S216, S220, S224, S226, and S228.
further, the server pushes the verification result to the smart phone which is initially configured with the WiFi data, the smart phone end can know whether the WiFi data are available according to the verification result of each WiFi data, if the WiFi data are not available, the WiFi data have problems in which checking step, and the like, so that a user at the smart phone end can correct the configured WiFi data according to corresponding problems and then upload the modified WiFi data again.
In one embodiment of the present invention, the status field in the WiFi data is used not only to indicate whether the WiFi data is a modified item, but also to indicate the current status of the WiFi data. For example, the status field state in the WiFi data is 0, indicating that the WiFi data is a modified item; indicating that the WiFi data is currently and synchronously stored in the smart phone when the state is 1; state 2, indicating a password error in the WiFi data; state 3, indicating that the WiFi network corresponding to the WiFi data cannot be networked; state 4, indicating that the WiFi data Authentication (Authentication) error; state 5, indicating a WiFi network Association (Association) error corresponding to the WiFi data; state 6, indicating a DHCP error; state 7, indicating other connection errors; state 8, indicating that the WiFi network corresponding to the WiFi data is not in the connection range; state 100, indicating that the WiFi network corresponding to the WiFi data is successfully connected; as can be seen, the value of the status field of the WiFi data may establish a corresponding relationship with the verification result of the availability of the WiFi field.
in the process of reporting the verification result to the server in the above steps S212, S216, S220, S224, S226 and S228, according to the correspondence between the value of the status field and the verification result, assigning the value indicating the corresponding verification result to the status field in the WiFi data, and reporting the WiFi data after being assigned to the server. For example, whether the current position is within the connection range of the WIFI network corresponding to the WIFI data is checked, and if yes, the next step is performed; if not, reporting the WiFi data with the assigned state being 8 to a server; checking whether the password in the WiFi data is correct, and if so, entering the next step; if not, reporting the WiFi data with the assigned state of 2 to a server; checking whether the WiFi network corresponding to the WIFI data can be correctly associated, and if so, entering the next step; if not, reporting the WiFi data with the assigned state of 5 to a server; checking whether a legal IP can be allocated through DHCP, if so, entering the next step; if not, reporting the WiFi data with the assigned state of 6 to a server; checking whether the correct time information can be inquired by using access http:// m.baby.360.cn/query _ date, if so, successfully verifying, and reporting WiFi data with the assigned state of 100 to a server; and if not, reporting the WiFi data with the assigned state of 3 to the server. And the Lib acquires the verification result of the WIFI through the callback interface and reports the verification result to the server through the/watch/WiFistate interface.
in an embodiment of the present invention, the method shown in fig. 1, acquiring and saving the WiFi list from the server includes: WiFi scanning is carried out at the current position, a service set identifier of a scanned WiFi network is uploaded to a server, and the server transmits the service set identifier of the scanned WiFi network to the smart phone; acquiring a WiFi list generated according to WiFi data configured and uploaded according to the scanned WiFi network service set identification transmitted by the smart phone response server; and the service set identification of the WiFi network included in the WiFi data configured and uploaded by the smart phone is the same as one or more of the service set identifications of the scanned WiFi networks. According to the embodiment, the service set identification of the WiFi data acquired by the smart watch from the server is obtained by the smart watch through active scanning, the smart watch sends the service set identification of the scanned WiFi network to the smart phone end through the server, and the smart phone end can select one or more of the service set identification and the service set identification to perform supplementary configuration, so that complete WiFi data containing the service set identification and the password are formed, and then the WiFi data are pushed to the smart watch end through the server.
In an embodiment of the present invention, each piece of WiFi data further includes a security verification type, so that the smart watch terminal puts the security verification type of the WiFi data in the locally stored WiFi list into consideration for balancing, so as to obtain a more effective and secure WiFi connection effect.
Fig. 3 shows a schematic diagram of a WiFi configuration device of a smart watch, according to one embodiment of the invention. As shown in fig. 3, the WiFi configuration apparatus 300 of the smart watch includes:
The WiFi data obtaining unit 310 is adapted to obtain and store a WiFi list from a server, where the WiFi list includes one or more pieces of WiFi data, the WiFi data is configured by a smartphone and uploaded to the server, and each piece of WiFi data includes: a service set identification and a password for the WiFi network.
The verification unit 320 is adapted to determine, for each piece of WiFi data in the WiFi list, whether the WiFi data is a modification item, if so, verify the current availability of the WiFi data, record a verification result, and report the verification result to the server.
It can be seen that, the device shown in fig. 3 acquires and stores a WiFi list from a server through mutual cooperation of units, WiFi data in the WiFi list is configured by a smart phone and uploaded to the server, that is, complete WiFi data configured by the smart phone is pushed to a smart watch through the server, so that the problem that the smart watch cannot complete WiFi configuration due to no keyboard input is solved; after the WiFi list is obtained, the current availability of each piece of WiFi data in the WiFi list is verified, the verification result is recorded and reported to the server, and the WiFi list recorded with the service set identification, the password and the availability of each piece of WiFi data is locally stored in the smart watch through the scheme, so that the smart watch can reasonably and efficiently select the current available WiFi data to carry out WiFi network connection according to the locally stored WiFi list when the smart watch has the requirement of network connection.
In one embodiment of the invention, the verification result is used for being pushed to the smart phone by the server.
in an embodiment of the present invention, the WiFi data obtaining unit 310 is further adapted to receive modified WiFi data from a server, where the modified WiFi data is generated by the server according to feedback of the smartphone after pushing the verification result to the smartphone.
In an embodiment of the present invention, the verification unit 320 is further adapted to perform a WiFi scan at the current location, checking whether a broadcast regarding the service set identification in the WiFi data is received; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is not in the connection range, and uploading the verification result to the server.
Further, the verifying unit 320 is further adapted to, when receiving the broadcast about the service set identifier in the WiFi data, further obtain an address of a WiFi network access point corresponding to the WiFi data; generating a verification sequence by using the password in the WiFi data and sending the verification sequence to the WiFi network access point so as to check whether the password in the WiFi data is correct or not; if not, recording a verification result indicating that the password in the WiFi data is wrong and uploading the verification result to a server.
Further, the verifying unit 320 is further adapted to, when the password in the WiFi data is correct, further send a connection request to the WiFi network access point, and check whether an association response returned by the WiFi network access point is received; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is associated with errors, and uploading the verification result to a server.
Further, the verification unit 320 is further adapted to, when receiving an association response returned by the WiFi network access point, further check whether an IP address allocated by using the dynamic host configuration protocol is acquired, and if not, record a verification result indicating that the dynamic host configuration protocol corresponding to the WiFi data is incorrect and report the verification result to the server.
Further, the verification unit 320 is further adapted to check whether networking can be performed through a WiFi network corresponding to the WiFi data when the IP address allocated by the dynamic host configuration protocol is obtained; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data cannot be networked, and reporting the verification result to a server; if so, recording a verification result indicating that the WiFi network corresponding to the WiFi data is successfully connected and reporting the verification result to the server.
in an embodiment of the present invention, each piece of WiFi data further includes: a status field; the verifying unit 320 is further adapted to determine whether the value of the status field in the WiFi data indicates that the WiFi data is the new or modified WiFi data, and if so, determine that the WiFi data is the modified item.
The verification unit is further adapted to assign a value indicating a verification result to a status field in the WiFi data, and report the assigned WiFi data to a server.
In an embodiment of the present invention, the WiFi data obtaining unit 310 is adapted to obtain a WiFi list from a server when a WiFi update instruction sent by the server is received, and/or when the smart watch is powered on; and covering the last saved WiFi list with the obtained WiFi list.
In an embodiment of the present invention, the WiFi data obtaining unit 310 is adapted to perform WiFi scanning at a current location, upload a service set identifier of a scanned WiFi network to a server, and transmit the service set identifier of the scanned WiFi network to the smartphone by the server; acquiring a WiFi list generated according to WiFi data configured and uploaded according to the scanned WiFi network service set identification transmitted by the smart phone response server; and the service set identification of the WiFi network included in the WiFi data configured and uploaded by the smart phone is the same as one or more of the service set identifications of the scanned WiFi networks.
it should be noted that, the embodiments of the apparatus shown in fig. 3 correspond to the embodiments of the method shown in fig. 1-2, which have been described in detail above and are not repeated herein.
In summary, the technical scheme provided by the invention obtains and stores the WiFi list from the server, and WiFi data in the WiFi list is configured and uploaded to the server by the smart phone, that is, complete WiFi data configured by the smart phone is pushed to the smart watch through the server, so that the problem that the smart watch cannot complete WiFi configuration due to no keyboard input is solved; after the WiFi list is obtained, the current availability of each piece of WiFi data in the WiFi list is verified, the verification result is recorded and reported to the server, and the WiFi list recorded with the service set identification, the password and the availability of each piece of WiFi data is locally stored in the smart watch through the scheme, so that the smart watch can reasonably and efficiently select the current available WiFi data to carry out WiFi network connection according to the locally stored WiFi list when the smart watch has the requirement of network connection.
it should be noted that:
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a WiFi configuration device of a smart watch according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (24)

1. A WiFi configuration method of a smart watch, comprising:
The method comprises the steps of obtaining and storing a WiFi list from a server, wherein the WiFi list comprises one or more pieces of WiFi data, the WiFi data are configured by a smart phone and uploaded to the server, and each piece of WiFi data comprises: a service set identification and password for the WiFi network;
For each piece of WiFi data in the WiFi list, judging whether the WiFi data is a modification item, if so, verifying the current availability of the WiFi data, recording a verification result and reporting the verification result to a server;
Each piece of WiFi data also includes: a status field to indicate whether the WiFi data is a modified entry and to indicate a current status of the WiFi data.
2. The method of claim 1, wherein the verification result is for pushing by the server to the smartphone.
3. The method of claim 1 or 2, wherein the method further comprises:
and receiving modified WiFi data from the server, wherein the modified WiFi data is generated according to feedback of the smart phone after the server pushes the verification result to the smart phone.
4. The method of claim 1, wherein the step of verifying the current availability of the WiFi data, recording the verification result and reporting to the server further comprises:
Performing WiFi scanning at the current position, and checking whether a broadcast about the service set identification in the WiFi data is received;
if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is not in the connection range, and uploading the verification result to the server.
5. The method of claim 4, wherein if a broadcast is received regarding a service set identification in the WiFi data, the method further comprises:
Acquiring the address of a WiFi network access point corresponding to the WiFi data;
Generating a verification sequence according to the password in the WiFi data and sending the verification sequence to the WiFi network access point so as to check whether the password in the WiFi data is correct or not;
If not, recording a verification result indicating that the password in the WiFi data is wrong and uploading the verification result to a server.
6. The method of claim 5, wherein if the password in the WiFi data is correct; the method further comprises the following steps:
sending a connection request to the WiFi network access point, and checking whether an association response returned by the WiFi network access point is received;
If not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is associated with errors, and uploading the verification result to a server.
7. The method of claim 6, wherein if an association reply returned by the WiFi network access point is received, the method further comprises:
and checking whether the IP address distributed by the dynamic host configuration protocol is acquired, if not, recording a verification result indicating that the dynamic host configuration protocol corresponding to the WiFi data is wrong, and reporting the verification result to the server.
8. the method of claim 7, wherein if the IP address allocated by the dynamic host configuration protocol is acquired, the method further comprises:
checking whether networking can be performed through a WiFi network corresponding to the WiFi data;
If not, recording a verification result indicating that the WiFi network corresponding to the WiFi data cannot be networked, and reporting the verification result to a server;
if so, recording a verification result indicating that the WiFi network corresponding to the WiFi data is successfully connected and reporting the verification result to the server.
9. the method of claim 1, wherein the step of determining whether the WiFi data is a modification further comprises: and judging whether the value of the status field in the WiFi data indicates that the WiFi data is newly added or modified WiFi data, if so, determining that the WiFi data is a modified item.
10. The method of claim 9, wherein the recording and reporting the verification result to the server comprises:
And assigning the value indicating the verification result to a status field in the WiFi data, and reporting the assigned WiFi data to a server.
11. The method of claim 1, wherein the obtaining and saving the WiFi list from the server comprises:
When a WiFi updating instruction sent by a server is received, and/or when the smart watch is started, a WiFi list is obtained from the server;
And covering the last saved WiFi list with the obtained WiFi list.
12. The method of claim 1, wherein the obtaining and saving the WiFi list from the server comprises:
WiFi scanning is carried out at the current position, a service set identifier of a scanned WiFi network is uploaded to a server, and the server transmits the service set identifier of the scanned WiFi network to the smart phone;
Acquiring a WiFi list generated according to WiFi data configured and uploaded according to the scanned WiFi network service set identification transmitted by the smart phone response server;
And the service set identification of the WiFi network included in the WiFi data configured and uploaded by the smart phone is the same as one or more of the service set identifications of the scanned WiFi networks.
13. A WiFi configuration apparatus for a smart watch, comprising:
The WiFi data acquisition unit is suitable for acquiring and storing a WiFi list from a server, the WiFi list comprises one or more pieces of WiFi data, the WiFi data are configured by the smart phone and uploaded to the server, and each piece of WiFi data comprises: a service set identification and password for the WiFi network;
The verification unit is suitable for judging whether each WiFi data in the WiFi list is a modification item or not, if so, verifying the current availability of the WiFi data, recording a verification result and reporting the verification result to the server;
each piece of WiFi data also includes: a status field to indicate whether the WiFi data is a modified entry and to indicate a current status of the WiFi data.
14. The apparatus of claim 13, wherein the verification result is for pushing by the server to the smartphone.
15. the apparatus of claim 13 or 14,
The WiFi data acquisition unit is further suitable for receiving corrected WiFi data from a server, and the corrected WiFi data are generated according to feedback of the smart phone after the server pushes the verification result to the smart phone.
16. The apparatus of claim 13, wherein,
The verification unit is further adapted to perform a WiFi scan at the current location, checking whether a broadcast regarding the service set identification in the WiFi data is received; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is not in the connection range, and uploading the verification result to the server.
17. the apparatus of claim 16, wherein,
The verification unit is further adapted to, when receiving a broadcast about the service set identifier in the WiFi data, further obtain an address of a WiFi network access point corresponding to the WiFi data; generating a verification sequence according to the password in the WiFi data and sending the verification sequence to the WiFi network access point so as to check whether the password in the WiFi data is correct or not; if not, recording a verification result indicating that the password in the WiFi data is wrong and uploading the verification result to a server.
18. The apparatus of claim 17, wherein,
the verification unit is further suitable for sending a connection request to the WiFi network access point when the password in the WiFi data is correct, and checking whether an association response returned by the WiFi network access point is received; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data is associated with errors, and uploading the verification result to a server.
19. The apparatus of claim 18, wherein,
the verification unit is further adapted to check whether an IP address allocated by a dynamic host configuration protocol is acquired or not when receiving an association response returned by the WiFi network access point, and if not, record a verification result indicating that the dynamic host configuration protocol corresponding to the WiFi data is incorrect and report the verification result to the server.
20. The apparatus of claim 19, wherein,
The verification unit is further suitable for checking whether networking can be performed through a WiFi network corresponding to the WiFi data when the IP address allocated through the dynamic host configuration protocol is acquired; if not, recording a verification result indicating that the WiFi network corresponding to the WiFi data cannot be networked, and reporting the verification result to a server; if so, recording a verification result indicating that the WiFi network corresponding to the WiFi data is successfully connected and reporting the verification result to the server.
21. The apparatus of claim 13, wherein,
the verification unit is further adapted to determine whether the value of the status field in the WiFi data indicates that the WiFi data is the new or modified WiFi data, and if so, determine that the WiFi data is the modified item.
22. the apparatus of claim 21, wherein,
The verification unit is suitable for assigning a value indicating a verification result to a status field in the WiFi data and reporting the assigned WiFi data to the server.
23. the apparatus of claim 13, wherein,
the WiFi data acquisition unit is suitable for acquiring a WiFi list from the server when a WiFi updating instruction sent by the server is received and/or when the smart watch is started; and covering the last saved WiFi list with the obtained WiFi list.
24. The apparatus of claim 13, wherein,
the WiFi data acquisition unit is suitable for carrying out WiFi scanning at the current position, uploading the service set identification of the scanned WiFi network to a server, and transmitting the service set identification of the scanned WiFi network to the smart phone by the server; acquiring a WiFi list generated according to WiFi data configured and uploaded according to the scanned WiFi network service set identification transmitted by the smart phone response server;
And the service set identification of the WiFi network included in the WiFi data configured and uploaded by the smart phone is the same as one or more of the service set identifications of the scanned WiFi networks.
CN201610306048.4A 2016-05-10 2016-05-10 WiFi configuration method and device of smart watch Active CN106028326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610306048.4A CN106028326B (en) 2016-05-10 2016-05-10 WiFi configuration method and device of smart watch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610306048.4A CN106028326B (en) 2016-05-10 2016-05-10 WiFi configuration method and device of smart watch

Publications (2)

Publication Number Publication Date
CN106028326A CN106028326A (en) 2016-10-12
CN106028326B true CN106028326B (en) 2019-12-06

Family

ID=57099393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610306048.4A Active CN106028326B (en) 2016-05-10 2016-05-10 WiFi configuration method and device of smart watch

Country Status (1)

Country Link
CN (1) CN106028326B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661640A (en) * 2018-06-29 2020-01-07 北京小米移动软件有限公司 Network setting method, device and system
CN111741510A (en) * 2020-05-25 2020-10-02 杭州涂鸦信息技术有限公司 Method for automatically updating networking information, intelligent equipment and router
CN112437479B (en) * 2020-11-10 2023-04-18 上海连尚网络科技有限公司 Hotspot connection method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693516B2 (en) * 2004-12-28 2010-04-06 Vtech Telecommunications Limited Method and system for enhanced communications between a wireless terminal and access point

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716379B2 (en) * 2007-04-26 2010-05-11 Microsoft Corporation Hardware control interface for IEEE standard 802.11 including transmission control interface component and a transmission status interface component
CN101621800B (en) * 2009-08-13 2013-01-30 深圳市星谷科技有限公司 Method for exchanging authentication information between wireless terminal and wireless router
CN101765114B (en) * 2010-01-18 2012-11-28 杭州华三通信技术有限公司 Method, system and equipment for controlling wireless user access
CN102917354B (en) * 2011-08-03 2018-04-13 中兴通讯股份有限公司 A kind of cut-in method, system and intelligent movable access point
CN102291799A (en) * 2011-08-12 2011-12-21 盛乐信息技术(上海)有限公司 Method and system for acquiring wireless access points
CN102711282B (en) * 2012-05-21 2015-12-16 浙江优诺肯科技有限公司 Realize without the method for input wireless device access network and without input wireless device
US9258298B2 (en) * 2013-03-04 2016-02-09 Arris Enterprises, Inc. Simplified configuration of a network device
CN103826323A (en) * 2014-02-26 2014-05-28 深圳市金立通信设备有限公司 Wireless network connection method, terminal and mobile terminal
CN104080194A (en) * 2014-06-25 2014-10-01 扬州芯云智能系统有限公司 Method for wirelessly configuring WIFI access parameters of zero-input terminal equipment through mobile phone
CN104486762A (en) * 2014-12-22 2015-04-01 广东美的厨房电器制造有限公司 Access control method of intelligent home appliance and intelligent home appliance system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7693516B2 (en) * 2004-12-28 2010-04-06 Vtech Telecommunications Limited Method and system for enhanced communications between a wireless terminal and access point

Also Published As

Publication number Publication date
CN106028326A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
US8650311B2 (en) Client device configured to connect with a home network
US10506432B2 (en) Method and apparatus for authenticating access authority for specific resource in wireless communication system
WO2015081882A1 (en) Method and apparatus for downloading operator document
CN111917758B (en) Method, device, computer equipment and storage medium for accessing Internet of things platform
CN113133086B (en) Intelligent device network distribution method and device, electronic device and storage medium
CN111752641A (en) Method, device, equipment and storage medium for starting service between micro-service containers
CN108235763B (en) Detection system, method and related device
CN106681774B (en) Software upgrading method of Bluetooth loudspeaker and intelligent terminal
CN106028326B (en) WiFi configuration method and device of smart watch
US10341830B2 (en) Method and apparatus for sending or forwarding information
CN113487337B (en) Product information storage method, tracing method and blockchain platform
CN112448873A (en) Equipment binding method and device and computer readable storage medium
CN107645789B (en) Network access method, device and system
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN111915250A (en) Store arrival detection method and device, storage medium and electronic equipment
US11012830B2 (en) Automated activation and onboarding of connected devices
US20220086252A1 (en) Methods to enable automated m2m/iot product management services
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN101800985B (en) Authentication method and system, terminal, server and data downloading method and device
CN111258625B (en) Software flashing detection method and device, storage medium and electronic equipment
CN110572857B (en) Network connection processing method and device, electronic equipment and storage medium
CN103577964A (en) Method and system for acquiring product circulation regional information and verifying authenticity of product
CN104854930A (en) Method, control node, gateway and computer program for enabling communication with a newly detected device
CN111726411B (en) Equipment binding method, device, system, storage medium and electronic device
CN113132332B (en) Networking login method, household electrical appliance system and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220725

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.