CN113747415B - Connection method and device of wireless access point, storage medium and electronic device - Google Patents

Connection method and device of wireless access point, storage medium and electronic device Download PDF

Info

Publication number
CN113747415B
CN113747415B CN202111076844.0A CN202111076844A CN113747415B CN 113747415 B CN113747415 B CN 113747415B CN 202111076844 A CN202111076844 A CN 202111076844A CN 113747415 B CN113747415 B CN 113747415B
Authority
CN
China
Prior art keywords
discoverable
access point
wireless access
equipment
information
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
CN202111076844.0A
Other languages
Chinese (zh)
Other versions
CN113747415A (en
Inventor
任超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111076844.0A priority Critical patent/CN113747415B/en
Publication of CN113747415A publication Critical patent/CN113747415A/en
Application granted granted Critical
Publication of CN113747415B publication Critical patent/CN113747415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and a device for connecting a wireless access point, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that the device is connected to a first wireless access point, a first query request is sent to an Internet of things platform, wherein the query request is used for indicating to query device list information associated with the device interaction terminal; receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; by adopting the technical scheme, the problems that the wireless access points can only be connected one by one again after being reset, and the scene that a large number of devices need to reset the network is complicated and the time is long are solved.

Description

Connection method and device of wireless access point, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for connecting a wireless access point, a storage medium, and an electronic apparatus.
Background
Along with the coming of the time of the internet of things, intelligent equipment gradually steps into families and lives of people, intelligent equipment brings people with intelligent, convenient and simple life, meanwhile, simplification and reduction of use difficulty are one of main pursuit targets of intelligent household appliances, at present, the first step of intelligent equipment use is equipment binding, after binding, equipment needs to change a network which is already bound, and binding needs to be carried out again, so that for a user who slightly and initially starts to try intelligent life, because the quantity of equipment is small, the equipment is still acceptable, but for the situation that a large number of intelligent families are already used, if the network replacement is undoubtedly a large project, a network hot switching scheme of the bound equipment of a safe, effective, quick, convenient and fast system is provided.
For the times that the number of intelligent devices climbs the internet of things year by year, the setting of the existing intelligent device binding network can be set only when the binding is performed, if the binding network of the intelligent device needs to be replaced, the binding network can be reset only through rebinding, although the pure dynamic network resetting is not a technical problem in terms of technology, better experience can be provided for users only by combining the systematic integral scheme of the internet of things platform, the traditional general wireless access point resetting scheme can be performed only through rebinding one to one, and the situation that a large number of devices need to reset the network is complicated and time-consuming.
Aiming at the problems that in the related art, the wireless access point reset can only be connected one to one again, and the scene that a large number of devices need to reset a network is too complicated and takes a long time, no effective solution has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a connection method and device of a wireless access point, a storage medium and an electronic device, which at least solve the problems that in the related technology, the wireless access point can only be connected again one to one, and the scene that a large number of devices need to reset a network is too complicated and takes long time.
According to an embodiment of the present invention, there is provided a connection method of a wireless access point, including: under the condition that the device is connected to a first wireless access point, a first query request is sent to an Internet of things platform, wherein the query request is used for indicating to query device list information associated with the device interaction terminal; receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; and sending network access information of the first wireless access point to the discoverable device to instruct the discoverable device to connect the first wireless access point according to the network access information.
In an exemplary embodiment, determining discoverable devices in the device list information by bluetooth scanning includes:
determining a first discoverable device in a Bluetooth scanning mode, and acquiring first device information of the first discoverable device;
determining whether the first discoverable device exists in the device list information according to the first device information;
and determining that the first discoverable device is the discoverable device in the device list information under the condition that the first discoverable device exists in the device list information according to the first device information.
In one exemplary embodiment, after sending the network access information of the first wireless access point to the discoverable device, the method further comprises:
sending a second query request to the internet of things platform, wherein the second query request is used for requesting to query whether the discoverable equipment is successfully connected with the first wireless access point according to the network access information;
and receiving a second query response sent by the Internet of things platform, and updating the connection relation between the discoverable equipment and the first wireless access point according to the second query response.
In an exemplary embodiment, updating the connection relationship of the discoverable device and the first wireless access point according to the second query response includes:
updating the connection relationship between the discoverable device and the first wireless access point to enable the discoverable device to successfully connect to the first wireless access point under the condition that the second query response indicates that the discoverable device successfully connects to the first wireless access point according to the network access information;
and updating the connection relation between the discoverable equipment and the first wireless access point to the condition that the discoverable equipment is not successfully connected with the first wireless access point according to the network access information under the condition that the second query response indicates that the discoverable equipment is not successfully connected with the first wireless access point.
In one exemplary embodiment, after sending the network access information of the first wireless access point to the discoverable device, the method further comprises:
acquiring log information of the discoverable equipment;
the log information is parsed to determine whether the discoverable device successfully connects to the first wireless access point.
In one exemplary embodiment, after determining whether the discoverable device successfully connects to the first wireless access point, the method further comprises:
in the event that the device interaction terminal determines that the discoverable device did not successfully connect to the first wireless access point, at least one of:
the method comprises the steps of sending exception information to the internet of things platform, wherein the exception information is used for indicating that the discoverable equipment is not successfully connected with the first wireless access point;
transmitting network access information of the first wireless access point to the discoverable device again;
and indicating the discoverable device to be connected to a second wireless access point, wherein the second wireless access point is the wireless access point to which the discoverable device is connected last time.
In one exemplary embodiment, the method further comprises sending network access information of the first wireless access point to the discoverable device, the method further comprising: establishing Bluetooth connection with the discoverable equipment so that the equipment interaction terminal obtains equipment states sent by the discoverable equipment through the Bluetooth connection, wherein the equipment states are used for indicating whether the discoverable equipment is connected to a second wireless access point or not; and sending network access information of the first wireless access point to the discoverable device according to the device state.
According to another embodiment of the present invention, there is provided a connection apparatus for a wireless access point, including: the device comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for sending a first query request to the internet of things platform under the condition that the device is connected to a first wireless access point, and the query request is used for indicating to query device list information associated with the device interaction terminal; the determining module is used for receiving the equipment list information fed back by the Internet of things platform in response to the first query request and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; and the sending module is used for sending the network access information of the first wireless access point to the discoverable equipment so as to instruct the discoverable equipment to connect the first wireless access point according to the network access information.
According to yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described connection method of a wireless access point when executed.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the connection method of the wireless access point through the computer program.
In the embodiment of the invention, under the condition of being connected to a first wireless access point, a first query request is sent to an internet of things platform, wherein the query request is used for indicating to query equipment list information associated with the equipment interaction terminal; receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; the network access information of the first wireless access point is sent to the discoverable equipment to indicate the discoverable equipment to be connected with the first wireless access point according to the network access information, namely, the discoverable equipment in the equipment list information is determined in a Bluetooth scanning mode under the condition of being connected with the first wireless access point, and the network access information of the first wireless access point is sent to the discoverable equipment to access the first wireless access point.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a connection method of a wireless access point according to an embodiment of the present invention;
fig. 2 is a flowchart of a method of connecting a wireless access point according to an embodiment of the present invention;
fig. 3 is a flowchart (one) of a method of connecting a wireless access point according to an alternative embodiment of the present invention;
fig. 4 is a flowchart (two) of a method of connecting a wireless access point according to an alternative embodiment of the present invention;
fig. 5 is a timing diagram of a method of connection of a wireless access point according to an alternative embodiment of the present invention;
fig. 6 is a block diagram of a connection apparatus of a wireless access point according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method embodiments provided by the embodiments of the present application may be performed in a mobile terminal, a computer terminal, or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of a connection method of a wireless access point according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, a mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a connection method of a wireless access point in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104, thereby performing various functional applications and data processing, that is, implementing the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a connection method of a wireless access point is provided, which is applied to the mobile terminal, and in particular, to an equipment interaction terminal, and fig. 2 is a flowchart of a connection method of a wireless access point according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, under the condition that the device is connected to a first wireless access point, a first query request is sent to an Internet of things platform, wherein the query request is used for indicating to query device list information associated with the device interaction terminal;
step S204, receiving device list information fed back by the Internet of things platform in response to the first query request, and determining discoverable devices in the device list information in a Bluetooth scanning mode;
step S206, sending network access information of the first wireless access point to the discoverable device, so as to instruct the discoverable device to connect to the first wireless access point according to the network access information.
Through the steps, under the condition that the device is connected to the first wireless access point, a first query request is sent to the internet of things platform, wherein the query request is used for indicating to query the device list information associated with the device interaction terminal; receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; the network access information of the first wireless access point is sent to the discoverable equipment to indicate the discoverable equipment to be connected with the first wireless access point according to the network access information, namely, the discoverable equipment in the equipment list information is determined in a Bluetooth scanning mode under the condition of being connected with the first wireless access point, and the network access information of the first wireless access point is sent to the discoverable equipment to access the first wireless access point.
In an exemplary embodiment, determining discoverable devices in the device list information by bluetooth scanning includes: determining a first discoverable device in a Bluetooth scanning mode, and acquiring first device information of the first discoverable device; determining whether the first discoverable device exists in the device list information according to the first device information; and determining that the first discoverable device is the discoverable device in the device list information under the condition that the first discoverable device exists in the device list information according to the first device information.
In step S204, in many implementation manners of determining discoverable devices in the device list information by using a bluetooth scanning manner, an implementation manner is provided in the embodiment of the present invention, which is specifically: the method comprises the steps that a device interaction terminal determines a first discoverable device which can be scanned in a Bluetooth scanning mode, acquires device information of the first discoverable device, and determines whether the first discoverable device is a device in device list information according to the fact that the acquired device information is matched with the device information in the device list information, determines that the first discoverable device exists in the device list information when the acquired device information is determined to be successfully matched with the device information in the device list information, and determines that the first discoverable device does not exist in the device list information when the acquired device information is determined to be not matched with the device information in the device list information.
For example, the device list information includes: device a, device B, device C, device D, device E, and device a, device B, device C, device D, device E's device information, e.g., device identification; and determining scanned equipment A, equipment B and equipment F in a Bluetooth scanning mode at the equipment interaction terminal, acquiring equipment information of the equipment A, the equipment B and the equipment F, matching the equipment information of the equipment A, the equipment B and the equipment F with equipment information in equipment list information, and determining that only the equipment A and the equipment information of the equipment B are in the equipment list information, so that the equipment A and the equipment B exist in the equipment list information.
In an exemplary embodiment, after sending the network access information of the first wireless access point to the discoverable device, sending a second query request to the internet of things platform, where the second query request is used to request to query whether the discoverable device successfully connects to the first wireless access point according to the network access information; and receiving a second query response sent by the Internet of things platform, and updating the connection relation between the discoverable equipment and the first wireless access point according to the second query response.
Specifically, after the discoverable device sends the network access information of the first wireless access point, the discoverable device can be connected with the first wireless access point according to the network access information, and under the condition that the discoverable device is successfully connected with the first wireless access point according to the network access information, the discoverable device is connected with an internet of things platform and sends online information to the internet of things platform; and under the condition that the discoverable equipment is not successfully connected with the first wireless access point according to the network access information, the discoverable equipment is not connected with the Internet of things platform, so that the Internet of things platform does not have the online information of the discoverable equipment.
Further, after the device interaction terminal sends a query request for querying whether the discoverable device is successfully connected with the first wireless access point according to the network access information to the internet of things platform, the internet of things platform sends a second query response to the device interaction terminal according to the online information of the discoverable device, and sends that the discoverable device is connected with the first wireless access point to the device interaction terminal under the condition that the internet of things platform has the online information of the discoverable device; and under the condition that the internet of things platform does not have the online information of the discoverable equipment, sending the discoverable equipment which is not connected with the first wireless access point to the equipment interaction terminal.
In an exemplary embodiment, updating the connection relationship of the discoverable device and the first wireless access point according to the second query response includes: updating the connection relationship between the discoverable device and the first wireless access point to enable the discoverable device to successfully connect to the first wireless access point under the condition that the second query response indicates that the discoverable device successfully connects to the first wireless access point according to the network access information; and updating the connection relation between the discoverable equipment and the first wireless access point to the condition that the discoverable equipment is not successfully connected with the first wireless access point according to the network access information under the condition that the second query response indicates that the discoverable equipment is not successfully connected with the first wireless access point.
That is, under the condition that the internet of things platform sends a query response that discoverable equipment is connected with a first wireless access point to the equipment interaction terminal, the discoverable equipment is determined to be successfully connected with the first wireless access point; and under the condition that the internet of things platform sends a query response that the discoverable equipment is not connected with the first wireless access point to the equipment interaction terminal, determining that the discoverable equipment is not successfully connected with the first wireless access point.
In one exemplary embodiment, after sending network access information of a first wireless access point to the discoverable device, log information of the discoverable device is obtained; the log information is parsed to determine whether the discoverable device successfully connects to the first wireless access point.
That is, the device interaction terminal may obtain log information of the discoverable device, and the device interaction terminal determines whether the discoverable device is successfully connected to the first wireless access point according to the log information, for example, when the log information indicates that the discoverable device is connected to the first wireless access point, the discoverable device is not successfully connected to the first wireless access point due to an account number or a password error.
Further, log information for a device may be found by at least one of the following methods: the discoverable equipment sends log request information to the discoverable equipment, and the discoverable equipment sends log response information according to the log request information, wherein the log response information carries log information; the discoverable device periodically transmits log information to the device interaction terminal.
In an exemplary embodiment, in case the device interaction terminal determines that the discoverable device is not successfully connected to the first wireless access point, at least one of the following is performed: the method comprises the steps of sending exception information to the internet of things platform, wherein the exception information is used for indicating that the discoverable equipment is not successfully connected with the first wireless access point; transmitting network access information of the first wireless access point to the discoverable device again; and indicating the discoverable device to be connected to a second wireless access point, wherein the second wireless access point is the wireless access point to which the discoverable device is connected last time.
Specifically, when the device interaction terminal determines that the discoverable device is not successfully connected to the first wireless access point, the device interaction terminal may attempt to acquire abnormal information from the discoverable device under the condition that the device interaction terminal itself may be connected to the platform of the internet of things, and report the abnormal information to the platform through the device interaction terminal, so that a user can process, such as cancel handover, to restore to an original binding network or attempt handover to connect to other available networks according to the abnormal information.
In one exemplary embodiment, the method further comprises sending network access information of the first wireless access point to the discoverable device, the method further comprising: establishing Bluetooth connection with the discoverable equipment so that the equipment interaction terminal obtains equipment states sent by the discoverable equipment through the Bluetooth connection, wherein the equipment states are used for indicating whether the discoverable equipment is connected to a second wireless access point or not; and sending network access information of the first wireless access point to the discoverable device according to the device state.
Further, if the device state indicates that the device is not connected to a wireless access point, sending network access information of the first wireless access point to the discoverable device, so as to indicate that the discoverable device is connected to the first wireless access point according to the network access information; and sending network access information of the first wireless access point to the discoverable device under the condition that the device state indicates that the device is connected to a second wireless access point, so as to indicate that the discoverable device disconnects from the second wireless access point, and connecting the first wireless access point according to the network access information.
In order to better understand the process of the connection method of the wireless access point, the following describes the implementation method flow of the connection of the wireless access point with reference to the alternative embodiment, but is not limited to the technical solution of the embodiment of the present invention.
In this embodiment, a method for connecting a wireless access point is provided, and the whole process includes: the device interaction terminal (USDK for short), discoverable devices, the wireless access point and the Internet of things platform are formed, the wireless access point is connected based on a BLE protocol, the discoverable devices can be searched in the USDK range only by ensuring the devices, and the Internet of things platform can integrate and track the states of the devices according to intelligent household appliances and USDK reports to realize switching records, failure records and recovery records. It should be noted that the discoverable device is a home appliance. Fig. 3 is a flowchart (a) of a connection method of a wireless access point according to an alternative embodiment of the present invention, as shown in fig. 3, specifically including the following steps:
step S301: starting;
step S302: the USDK is connected with a first wireless access point;
step S303: logging in an Internet of things platform through USDK;
step S304: the USDK inquires equipment list information associated with the equipment interaction terminal and state information of intelligent household appliances in the equipment list information in an Internet of things platform;
Step S305: the discoverable equipment in the equipment list information is determined in a Bluetooth scanning mode;
step S306: the USDK updates the device status of the discoverable device, e.g., whether the discoverable device is connected to the first wireless access point;
step S307: and (5) ending.
After the step S305, fig. 4 is a flowchart (second) of a connection method of a wireless access point according to an alternative embodiment of the present invention, as shown in fig. 4, specifically includes the following steps:
step S401: sending an instruction, a network account number and a password to the network equipment to be replaced;
step S402: judging whether the device is connected to a new target network, if not, executing step S403, and if yes, executing step S404;
step S403: returning abnormal information of the equipment connection network;
step S404: callback connection success information is sent to the USDK and reported to the IOT platform through the module;
step S405: the device attempts to connect to the IOT service platform;
step S406: judging whether the connection of the IOT service platform is successful, executing step S407 if the judgment result is yes, and executing step S408 if the judgment result is no;
Step S407: the updating equipment is connected with a network;
step S408: judging whether to cancel the attempt and recovering, if yes, executing step S409, and if no, returning to step S405;
step S409: and restoring the connected first wireless access point to the last connected platform first wireless access point.
If the device switched with the first wireless access point is abnormal in service of the connection cloud platform, the device enters a retry mode to periodically try to connect the service of the platform, if the USDK is connected to a new first wireless access point to find out abnormal equipment of the connection service, the USDK can try to pull abnormal information from the hot switching device and report the abnormal information to the platform through the USDK under the condition that the device can be connected with the service platform, and a user can conveniently process the abnormal information, such as canceling the switching and recovering to the original bound first wireless access point or trying to switch and connect other available first wireless access points.
Fig. 5 is a timing diagram of a connection method of a wireless access point according to an alternative embodiment of the present invention, as shown in fig. 5, including:
step S501: the USDK is connected with a first wireless access point;
Step S502: logging in an Internet of things platform through an account password by using the USDK;
step S503: the internet of things platform returns login results and account authorization information;
step S504: the USDK uses the authorization information to inquire the list information of the equipment through an API (application program interface);
step S505: the platform of the Internet of things returns the list information of the equipment to the USDK;
step S506: the USDK discovers devices by BLE scanning;
step S507: the USDK connects the discoverable device and updates the device state of the discoverable device;
step S508: the USDK sends network access information of the first wireless access point to the discoverable device;
step S509: the discoverable device returns a device configuration result of successfully receiving the network access information to the USDK;
step S510: the discoverable device attempts to connect to the first wireless access point using the network access information;
step S511: the first wireless access point returns a connection state with the discoverable device;
step S512: the discoverable equipment successfully connects with the first wireless access and tries to connect with the Internet of things platform through the network to report switching information and online information;
step S513: the USDK training platform updates the switching result of the installation machine of the equipment.
By the embodiment of the invention, the operation and time cost when the equipment changes the binding network can be reduced; relatively separating self-debugging and network debugging of the equipment, and decoupling to reduce the influence of the network; the debugging speed and the stability of the whole project can be improved in specific practical use scenes.
Through the above embodiment, under the condition of being connected to the first wireless access point, a first query request is sent to the internet of things platform, wherein the query request is used for indicating to query the equipment list information associated with the equipment interaction terminal; receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; the network access information of the first wireless access point is sent to the discoverable equipment to indicate the discoverable equipment to be connected with the first wireless access point according to the network access information, namely, the discoverable equipment in the equipment list information is determined in a Bluetooth scanning mode under the condition of being connected with the first wireless access point, and the network access information of the first wireless access point is sent to the discoverable equipment to access the first wireless access point.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
In this embodiment, a connection device of a wireless access point is provided, and fig. 6 is a block diagram of a connection device of a wireless access point according to an embodiment of the present invention, as shown in fig. 6, including:
a sending module 62, configured to send a first query request to an internet of things platform if the first query request is connected to a first wireless access point, where the query request is used to instruct to query device list information associated with the device interaction terminal;
The determining module 64 is configured to receive device list information fed back by the internet of things platform in response to the first query request, and determine discoverable devices in the device list information by using a bluetooth scanning manner;
a sending module 66, configured to send network access information of the first wireless access point to the discoverable device, so as to instruct the discoverable device to connect to the first wireless access point according to the network access information.
Through the device, under the condition that the device is connected to the first wireless access point, a first query request is sent to the Internet of things platform, wherein the query request is used for indicating to query the equipment list information associated with the equipment interaction terminal; receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode; the network access information of the first wireless access point is sent to the discoverable equipment to indicate the discoverable equipment to be connected with the first wireless access point according to the network access information, namely, the discoverable equipment in the equipment list information is determined in a Bluetooth scanning mode under the condition of being connected with the first wireless access point, and the network access information of the first wireless access point is sent to the discoverable equipment to access the first wireless access point.
Optionally, the determining module is further configured to determine a first discoverable device by using a bluetooth scanning manner, and obtain first device information of the first discoverable device; determining whether the first discoverable device exists in the device list information according to the first device information; and determining that the first discoverable device is the discoverable device in the device list information under the condition that the first discoverable device exists in the device list information according to the first device information.
Specific: the method comprises the steps that a device interaction terminal determines a first discoverable device which can be scanned in a Bluetooth scanning mode, acquires device information of the first discoverable device, and determines whether the first discoverable device is a device in device list information according to the fact that the acquired device information is matched with the device information in the device list information, determines that the first discoverable device exists in the device list information when the acquired device information is determined to be successfully matched with the device information in the device list information, and determines that the first discoverable device does not exist in the device list information when the acquired device information is determined to be not matched with the device information in the device list information.
For example, the device list information includes: device a, device B, device C, device D, device E, and device a, device B, device C, device D, device E's device information, e.g., device identification; and determining scanned equipment A, equipment B and equipment F in a Bluetooth scanning mode at the equipment interaction terminal, acquiring equipment information of the equipment A, the equipment B and the equipment F, matching the equipment information of the equipment A, the equipment B and the equipment F with equipment information in equipment list information, and determining that only the equipment A and the equipment information of the equipment B are in the equipment list information, so that the equipment A and the equipment B exist in the equipment list information.
Optionally, the sending module is further configured to send a second query request to the platform of the internet of things, where the second query request is used to request to query whether the discoverable device is successfully connected to the first wireless access point according to the network access information; and receiving a second query response sent by the Internet of things platform, and updating the connection relation between the discoverable equipment and the first wireless access point according to the second query response.
Specifically, after the discoverable device sends the network access information of the first wireless access point, the discoverable device can be connected with the first wireless access point according to the network access information, and under the condition that the discoverable device is successfully connected with the first wireless access point according to the network access information, the discoverable device is connected with an internet of things platform and sends online information to the internet of things platform; and under the condition that the discoverable equipment is not successfully connected with the first wireless access point according to the network access information, the discoverable equipment is not connected with the Internet of things platform, so that the Internet of things platform does not have the online information of the discoverable equipment.
Further, after the device interaction terminal sends a query request for querying whether the discoverable device is successfully connected with the first wireless access point according to the network access information to the internet of things platform, the internet of things platform sends a second query response to the device interaction terminal according to the online information of the discoverable device, and sends that the discoverable device is connected with the first wireless access point to the device interaction terminal under the condition that the internet of things platform has the online information of the discoverable device; and under the condition that the internet of things platform does not have the online information of the discoverable equipment, sending the discoverable equipment which is not connected with the first wireless access point to the equipment interaction terminal.
Optionally, the apparatus further includes: an updating module, configured to update, when the second query response indicates that the discoverable device is successfully connected to the first wireless access point according to the network access information, a connection relationship between the discoverable device and the first wireless access point to be that the discoverable device is successfully connected to the first wireless access point; and updating the connection relation between the discoverable equipment and the first wireless access point to the condition that the discoverable equipment is not successfully connected with the first wireless access point according to the network access information under the condition that the second query response indicates that the discoverable equipment is not successfully connected with the first wireless access point.
That is, under the condition that the internet of things platform sends a query response that discoverable equipment is connected with a first wireless access point to the equipment interaction terminal, the discoverable equipment is determined to be successfully connected with the first wireless access point; and under the condition that the internet of things platform sends a query response that the discoverable equipment is not connected with the first wireless access point to the equipment interaction terminal, determining that the discoverable equipment is not successfully connected with the first wireless access point.
Optionally, the determining module is further configured to obtain log information of the discoverable device; the log information is parsed to determine whether the discoverable device successfully connects to the first wireless access point.
That is, the device interaction terminal may obtain log information of the discoverable device, and the device interaction terminal determines whether the discoverable device is successfully connected to the first wireless access point according to the log information, for example, when the log information indicates that the discoverable device is connected to the first wireless access point, the discoverable device is not successfully connected to the first wireless access point due to an account number or a password error.
In an exemplary embodiment, the sending module is further configured to, in a case where the device interaction terminal determines that the discoverable device is not successfully connected to the first radio access point, perform at least one of: the method comprises the steps of sending exception information to the internet of things platform, wherein the exception information is used for indicating that the discoverable equipment is not successfully connected with the first wireless access point; transmitting network access information of the first wireless access point to the discoverable device again; and indicating the discoverable device to be connected to a second wireless access point, wherein the second wireless access point is the wireless access point to which the discoverable device is connected last time.
Specifically, when the device interaction terminal determines that the discoverable device is not successfully connected to the first wireless access point, the device interaction terminal may attempt to acquire abnormal information from the discoverable device under the condition that the device interaction terminal itself may be connected to the platform of the internet of things, and report the abnormal information to the platform through the device interaction terminal, so that a user can process, such as cancel handover, to restore to an original binding network or attempt handover to connect to other available networks according to the abnormal information.
In an exemplary embodiment, the determining module is further configured to establish a bluetooth connection with the discoverable device, so that the device interaction terminal obtains a device state sent by the discoverable device through the bluetooth connection, where the device state is used to indicate whether the discoverable device is connected to a second wireless access point; and sending network access information of the first wireless access point to the discoverable device according to the device state.
Further, if the device state indicates that the device is not connected to a wireless access point, sending network access information of the first wireless access point to the discoverable device, so as to indicate that the discoverable device is connected to the first wireless access point according to the network access information; and sending network access information of the first wireless access point to the discoverable device under the condition that the device state indicates that the device is connected to a second wireless access point, so as to indicate that the discoverable device disconnects from the second wireless access point, and connecting the first wireless access point according to the network access information.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, under the condition that the device is connected to a first wireless access point, a first query request is sent to an Internet of things platform, wherein the query request is used for indicating to query device list information associated with the device interaction terminal;
s2, receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode;
and S3, sending the network access information of the first wireless access point to the discoverable equipment so as to indicate the discoverable equipment to connect the first wireless access point according to the network access information.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, under the condition that the device is connected to a first wireless access point, a first query request is sent to an Internet of things platform, wherein the query request is used for indicating to query device list information associated with the device interaction terminal;
s2, receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode;
and S3, sending the network access information of the first wireless access point to the discoverable equipment so as to indicate the discoverable equipment to connect the first wireless access point according to the network access information.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method for connecting a wireless access point, applied to a device interaction terminal, comprising:
under the condition that the device is connected to a first wireless access point, a first query request is sent to an Internet of things platform, wherein the query request is used for indicating to query device list information associated with the device interaction terminal;
receiving equipment list information fed back by the Internet of things platform in response to the first query request, and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode;
transmitting network access information of the first wireless access point to the discoverable device to instruct the discoverable device to connect to the first wireless access point according to the network access information;
the method for determining the discoverable equipment in the equipment list information through the Bluetooth scanning mode comprises the following steps: determining a first discoverable device in a Bluetooth scanning mode, and acquiring first device information of the first discoverable device; determining whether the first discoverable device exists in the device list information according to the first device information; and determining that the first discoverable device is the discoverable device in the device list information under the condition that the first discoverable device exists in the device list information according to the first device information.
2. The method of connecting a wireless access point according to claim 1, wherein after transmitting network access information of a first wireless access point to the discoverable device, the method further comprises:
sending a second query request to the internet of things platform, wherein the second query request is used for requesting to query whether the discoverable equipment is successfully connected with the first wireless access point according to the network access information;
and receiving a second query response sent by the Internet of things platform, and updating the connection relation between the discoverable equipment and the first wireless access point according to the second query response.
3. The method for connecting a wireless access point according to claim 2, wherein updating the connection relationship between the discoverable device and the first wireless access point according to the second query response comprises:
updating the connection relationship between the discoverable device and the first wireless access point to enable the discoverable device to successfully connect to the first wireless access point under the condition that the second query response indicates that the discoverable device successfully connects to the first wireless access point according to the network access information;
And updating the connection relation between the discoverable equipment and the first wireless access point to the condition that the discoverable equipment is not successfully connected with the first wireless access point according to the network access information under the condition that the second query response indicates that the discoverable equipment is not successfully connected with the first wireless access point.
4. The method of connecting a wireless access point according to claim 1, wherein after transmitting network access information of a first wireless access point to the discoverable device, the method further comprises:
acquiring log information of the discoverable equipment;
the log information is parsed to determine whether the discoverable device successfully connects to the first wireless access point.
5. The method of connecting a wireless access point of claim 4, wherein after determining whether the discoverable device successfully connects to the first wireless access point, the method further comprises:
in the event that the device interaction terminal determines that the discoverable device did not successfully connect to the first wireless access point, at least one of:
the method comprises the steps of sending exception information to the internet of things platform, wherein the exception information is used for indicating that the discoverable equipment is not successfully connected with the first wireless access point;
Transmitting network access information of the first wireless access point to the discoverable device again;
and indicating the discoverable device to be connected to a second wireless access point, wherein the second wireless access point is the wireless access point to which the discoverable device is connected last time.
6. The method of connecting a wireless access point of claim 1, wherein network access information for the first wireless access point is sent to the discoverable device, the method further comprising:
establishing Bluetooth connection with the discoverable equipment so that the equipment interaction terminal obtains equipment states sent by the discoverable equipment through the Bluetooth connection, wherein the equipment states are used for indicating whether the discoverable equipment is connected to a second wireless access point or not;
and sending network access information of the first wireless access point to the discoverable device according to the device state.
7. A connection apparatus for a wireless access point, comprising:
the device comprises a sending module, a receiving module and a receiving module, wherein the sending module is used for sending a first query request to the internet of things platform under the condition that the device is connected to a first wireless access point, and the query request is used for indicating to query device list information associated with the device interaction terminal;
The determining module is used for receiving the equipment list information fed back by the Internet of things platform in response to the first query request and determining discoverable equipment in the equipment list information in a Bluetooth scanning mode;
a sending module, configured to send network access information of the first wireless access point to the discoverable device, so as to instruct the discoverable device to connect to the first wireless access point according to the network access information;
the determining module is further configured to determine a first discoverable device through a bluetooth scanning manner, and obtain first device information of the first discoverable device; determining whether the first discoverable device exists in the device list information according to the first device information; and determining that the first discoverable device is the discoverable device in the device list information under the condition that the first discoverable device exists in the device list information according to the first device information.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 6 by means of the computer program.
CN202111076844.0A 2021-09-14 2021-09-14 Connection method and device of wireless access point, storage medium and electronic device Active CN113747415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111076844.0A CN113747415B (en) 2021-09-14 2021-09-14 Connection method and device of wireless access point, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111076844.0A CN113747415B (en) 2021-09-14 2021-09-14 Connection method and device of wireless access point, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113747415A CN113747415A (en) 2021-12-03
CN113747415B true CN113747415B (en) 2024-03-22

Family

ID=78738819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111076844.0A Active CN113747415B (en) 2021-09-14 2021-09-14 Connection method and device of wireless access point, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113747415B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592517A (en) * 2016-02-17 2016-05-18 宇龙计算机通信科技(深圳)有限公司 Network connection processing method, network connection processing device, and network connection processing terminal
CN107182073A (en) * 2017-07-31 2017-09-19 绵阳美菱软件技术有限公司 One kind configuration equipment networking system and method
CN107231645A (en) * 2017-06-16 2017-10-03 深圳市盛路物联通讯技术有限公司 Multiple terminal devices access the method and access points equipment of Internet of Things
CN109041061A (en) * 2018-08-30 2018-12-18 深圳奇迹智慧网络有限公司 Network control method, device, computer equipment and storage medium
CN112165726A (en) * 2020-09-08 2021-01-01 杭州涂鸦信息技术有限公司 Method and system for distributing network to intelligent equipment by WeChat small program
CN112469055A (en) * 2020-11-23 2021-03-09 深圳数联天下智能科技有限公司 Equipment network distribution method, related equipment and storage medium
CN113285810A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Target equipment login method and device, storage medium and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429243B (en) * 2017-08-22 2022-12-27 阿里巴巴集团控股有限公司 Method, device and system for monitoring network access state of distribution network equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592517A (en) * 2016-02-17 2016-05-18 宇龙计算机通信科技(深圳)有限公司 Network connection processing method, network connection processing device, and network connection processing terminal
CN107231645A (en) * 2017-06-16 2017-10-03 深圳市盛路物联通讯技术有限公司 Multiple terminal devices access the method and access points equipment of Internet of Things
CN107182073A (en) * 2017-07-31 2017-09-19 绵阳美菱软件技术有限公司 One kind configuration equipment networking system and method
CN109041061A (en) * 2018-08-30 2018-12-18 深圳奇迹智慧网络有限公司 Network control method, device, computer equipment and storage medium
CN112165726A (en) * 2020-09-08 2021-01-01 杭州涂鸦信息技术有限公司 Method and system for distributing network to intelligent equipment by WeChat small program
CN112469055A (en) * 2020-11-23 2021-03-09 深圳数联天下智能科技有限公司 Equipment network distribution method, related equipment and storage medium
CN113285810A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Target equipment login method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113747415A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN111885115B (en) Device binding changing method and device
KR101665492B1 (en) Management method for embedded universal integrated circuit card, related device and system
CN111885594B (en) Equipment binding method and device
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN111510922B (en) Wireless network access control method, device and system
EP3197105A1 (en) Sensor code-pairing processing method, apparatus, network platform device, and internet of things gateway
CN107371234B (en) Registration method, device and terminal
CN112417255B (en) Online state receiving method and device, storage medium and electronic device
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN112637931A (en) Method and device for establishing network connection
CN113596792B (en) Binding method and device of electronic equipment, storage medium and electronic device
CN103345828A (en) Method and system for controlling computer through intelligent terminal
CN112566104B (en) Roaming coordination method based on Mesh network, wireless access point and storage medium
CN105379323B (en) Method, equipment and system for controlling total amount of online attached users
CN113747415B (en) Connection method and device of wireless access point, storage medium and electronic device
CN111884938A (en) Router information acquisition method and device
CN110933775A (en) Method and device for establishing signal connection and electronic equipment
CN110769399B (en) Internet of things equipment connection networking method, internet of things equipment system and information access and transmission method
KR20170043568A (en) Method for establishing ota sessions between terminals and an ota server, corresponding ota server and reverse proxy server
CN111642031B (en) Method for connecting multiple devices, electronic device and computer readable storage medium
CN113453300B (en) Equipment hot spot processing method and device, storage medium and electronic device
CN105163335B (en) A kind of network access management method, server, mobile terminal and system
EP3487147A1 (en) Information synchronization method and device
CN114205888B (en) Equipment network distribution method and device, storage medium and electronic device
WO2023092979A1 (en) Binding relationship establishing method and device, storage medium, and electronic device

Legal Events

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