Method and system for adding equipment to client based on Bluetooth

文档序号:173078 发布日期:2021-10-29 浏览:28次 中文

阅读说明:本技术 基于蓝牙的客户端添加设备的方法和系统 (Method and system for adding equipment to client based on Bluetooth ) 是由 李志为 王树友 于 2021-06-30 设计创作,主要内容包括:本申请涉及一种基于蓝牙的客户端添加设备的方法和系统,其中,该基于蓝牙的客户端添加设备的方法包括:客户端所在终端获取蓝牙配网指令,并根据所述蓝牙配网指令,广播配网通知报文;设备在待蓝牙配网状态下,接收所述配网通知报文,并发送响应信息至所述终端,其中,所述设备上电后,开放蓝牙配网窗口,进入所述待蓝牙配网状态,通过本申请,解决了相关技术中客户端所在终端和设备之间的配对速度慢的问题,提高了客户端添加设备的速度。(The application relates to a method and a system for adding equipment to a client based on Bluetooth, wherein the method for adding equipment to the client based on Bluetooth comprises the following steps: a terminal where a client is located acquires a Bluetooth distribution network instruction, and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction; the method comprises the steps that the equipment receives a distribution network notification message and sends response information to the terminal when the equipment is in a Bluetooth distribution network state, wherein after the equipment is powered on, a Bluetooth distribution network window is opened, and the equipment enters the Bluetooth distribution network state.)

1. A method for adding equipment to a client based on Bluetooth, which is characterized in that the method comprises the following steps:

a terminal where a client is located acquires a Bluetooth distribution network instruction, and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction;

and the equipment receives the distribution network notification message and sends response information to the terminal when the equipment is in a Bluetooth distribution network waiting state, wherein after the equipment is powered on, a Bluetooth distribution network window is opened, and the equipment enters the Bluetooth distribution network waiting state.

2. The method according to claim 1, wherein the device maintains the distribution network state of the to-be-bluetooth network for a preset time period after being powered on.

3. The method according to claim 1, characterized in that it comprises:

before the terminal acquires a Bluetooth distribution network instruction, the client acquires click operation of a user on a first control to generate the Bluetooth distribution network instruction;

after the terminal starts broadcasting the distribution network notification message, the client generates a distribution network stopping instruction under the condition that the client acquires the click operation of the user on the second control, and the terminal acquires the distribution network stopping instruction and stops broadcasting the distribution network notification message.

4. The method of claim 3, wherein the method comprises:

after the client generates the Bluetooth network distribution instruction, the client displays a first page, wherein the first page carries information of equipment scanning performed by the client;

and after the equipment sends response information to the terminal, the client displays a second page, wherein the second page carries the information added to the equipment by the client.

5. The method of claim 1, wherein the process of broadcasting the distribution network notification message by the terminal according to the bluetooth distribution network command comprises:

the terminal determines a distribution network notification message according to the Bluetooth distribution network instruction;

and the terminal encrypts the distribution network notification message by adopting a whitening key and broadcasts the distribution network notification message.

6. The method according to claim 1, wherein the response information includes device information and a random key for production burn-in, and after the device transmits the response information to the terminal, the method includes:

the terminal configures an equipment address according to the equipment information, and encrypts a broadcast key by adopting the random key;

the terminal sends the equipment address and the encrypted broadcast key to the equipment, and the equipment decrypts the encrypted broadcast key;

and the equipment encrypts the heartbeat by adopting the broadcast key and sends the heartbeat to the terminal.

7. The Internet of things equipment is characterized in that after the equipment is powered on, a Bluetooth distribution network window is opened, a to-be-Bluetooth distribution network state is entered, and the to-be-Bluetooth distribution network state is kept in a preset time period after the equipment is powered on.

8. The client side of the Internet of things is characterized in that the client side obtains clicking operation of a first control by a user and generates a Bluetooth distribution network instruction, wherein the Bluetooth distribution network instruction indicates a terminal where the client side is located to broadcast a distribution network notification message;

and the client generates a distribution network stopping instruction under the condition of acquiring the clicking operation of the user on the second control, wherein the distribution network stopping instruction instructs the terminal to stop broadcasting the distribution network notification message.

9. The client according to claim 8, wherein after the client generates the bluetooth network distribution instruction, a first page is displayed, wherein the first page carries information of device scanning performed by the client;

and after the terminal receives the response information of the distribution network notification message, the client displays a second page, wherein the second page carries the information added to the equipment by the client.

10. A system for adding equipment to a client based on Bluetooth is characterized by comprising equipment and a terminal where the client is located;

the terminal acquires a Bluetooth distribution network instruction and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction;

and the equipment receives the distribution network notification message and sends response information to the terminal in a Bluetooth distribution network waiting state, wherein after the equipment is powered on, a Bluetooth distribution network window is opened, and the Bluetooth distribution network waiting state is entered.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a method and a system for adding devices to a client based on bluetooth.

Background

In the smart home industry, a user can control equipment on a client in a mode of adding the equipment on a related client, in the related technology, when the user adds the equipment on the related client, the Bluetooth pairing operation between a terminal where the client is located and the equipment is long, the pairing speed between the terminal where the client is located and the equipment is low, and the user experience is poor.

Aiming at the problem that the pairing speed between the terminal where the client is located and the equipment is low in the related technology, an effective solution is not provided.

Disclosure of Invention

The embodiment of the application provides a method and a system for adding equipment to a client based on Bluetooth, which are used for at least solving the problem of low pairing speed between a terminal where the client is located and the equipment in the related art.

In a first aspect, an embodiment of the present application provides a method for adding a device to a bluetooth-based client, where the method includes:

a terminal where a client is located acquires a Bluetooth distribution network instruction, and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction;

and the equipment receives the distribution network notification message and sends response information to the terminal when the equipment is in a Bluetooth distribution network waiting state, wherein after the equipment is powered on, a Bluetooth distribution network window is opened, and the equipment enters the Bluetooth distribution network waiting state.

In some embodiments, the device maintains the state of the distribution network to be bluetooth for a preset time period after being powered on.

In some of these embodiments, the method comprises:

before the terminal acquires a Bluetooth distribution network instruction, the client acquires click operation of a user on a first control to generate the Bluetooth distribution network instruction;

after the terminal starts broadcasting the distribution network notification message, the client generates a distribution network stopping instruction under the condition that the client acquires the click operation of the user on the second control, and the terminal acquires the distribution network stopping instruction and stops broadcasting the distribution network notification message.

In some of these embodiments, the method comprises:

after the client generates the Bluetooth network distribution instruction, the client displays a first page, wherein the first page carries information of equipment scanning performed by the client;

and after the equipment sends response information to the terminal, the client displays a second page, wherein the second page carries the information added to the equipment by the client.

In some embodiments, the process of broadcasting, by the terminal according to the bluetooth distribution network instruction, a distribution network notification message includes:

the terminal determines a distribution network notification message according to the Bluetooth distribution network instruction;

and the terminal encrypts the distribution network notification message by adopting a whitening key and broadcasts the distribution network notification message.

In some embodiments, the response information includes device information and a random key for burning, and after the device sends the response information to the terminal, the method includes:

the terminal configures an equipment address according to the equipment information, and encrypts a broadcast key by adopting the random key;

the terminal sends the equipment address and the encrypted broadcast key to the equipment, and the equipment decrypts the encrypted broadcast key;

and the equipment encrypts the heartbeat by adopting the broadcast key and sends the heartbeat to the terminal.

In a second aspect, an embodiment of the present application provides an internet of things device, after the device is powered on, a bluetooth network distribution window is opened, a network distribution state waiting for bluetooth is entered, and the device keeps the network distribution state waiting for bluetooth in a preset time period after being powered on.

In a third aspect, an embodiment of the present application provides an internet of things client, where the client obtains a click operation of a user on a first control, and generates a bluetooth distribution network instruction, where the bluetooth distribution network instruction indicates a terminal where the client is located to broadcast a distribution network notification message;

and the client generates a distribution network stopping instruction under the condition of acquiring the clicking operation of the user on the second control, wherein the distribution network stopping instruction instructs the terminal to stop broadcasting the distribution network notification message.

In some embodiments, after the client generates the bluetooth network distribution instruction, a first page is displayed, where the first page carries information of device scanning performed by the client;

and after the terminal receives the response information of the distribution network notification message, the client displays a second page, wherein the second page carries the information added to the equipment by the client.

In a fourth aspect, an embodiment of the present application provides a system for adding a device to a client based on bluetooth, where the system includes a device and a terminal where the client is located;

the terminal acquires a Bluetooth distribution network instruction and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction;

and the equipment receives the distribution network notification message and sends response information to the terminal in a Bluetooth distribution network waiting state, wherein after the equipment is powered on, a Bluetooth distribution network window is opened, and the Bluetooth distribution network waiting state is entered.

Compared with the related art, the method for adding the equipment to the client based on the Bluetooth, provided by the embodiment of the application, comprises the steps of obtaining a Bluetooth distribution network instruction through a terminal where the client is located, and broadcasting a distribution network notification message according to the Bluetooth distribution network instruction; the device receives the distribution network notification message and sends response information to the terminal in the distribution network waiting state for Bluetooth, wherein after the device is powered on, a Bluetooth distribution network window is opened, and the device enters the distribution network waiting state for Bluetooth, so that the problem of low matching speed between the terminal where the client is located and the device in the related technology is solved, and the device adding speed of the client is improved.

Drawings

The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:

FIG. 1 is a schematic diagram of an application environment of a Bluetooth-based client add-on device according to an embodiment of the present application;

FIG. 2 is a flow chart of a method of a Bluetooth-based client add-on device according to a first embodiment of the present application;

FIG. 3 is a flow chart of a method of a Bluetooth-based client add-on device according to a second embodiment of the present application;

fig. 4 is a schematic diagram of a distribution network flow between a terminal where a client is located and a device according to a third embodiment of the present application;

fig. 5 is a schematic diagram of a process of entering a network-to-be-bluetooth distribution state by a device according to a fourth embodiment of the present application;

fig. 6 is a schematic diagram of a flow of a user operating a client according to a fifth embodiment of the present application;

fig. 7 is a schematic diagram of a system for bluetooth-based client add-on devices according to a sixth embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.

It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.

Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.

Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.

The method for adding the device to the client based on the Bluetooth can be applied to the application environment as shown in FIG. 1, figure 1 is a schematic diagram of an application environment of a bluetooth-based client add-on device according to an embodiment of the present application, as shown in fig. 1, in the smart home scenario, a terminal 101 is paired with a device 102 via bluetooth, on the terminal 101, a client is deployed, on which the user adds a device 102 through the terminal 101, thereby controlling the equipment 102 on the client, enjoying the convenient life brought by the smart home, the terminal 101 may be but not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices having a bluetooth function, and the device 102 may be an intelligent home device having a bluetooth function, such as an intelligent door lock, an intelligent camera, an intelligent switch, an intelligent curtain, and an intelligent sweeper.

The present embodiment provides a method for adding a device by a bluetooth-based client, and fig. 2 is a flowchart of a method for adding a device by a bluetooth-based client according to a first embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:

step S201, a terminal 101 where a client is located acquires a Bluetooth distribution network instruction and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction;

step S202, the device 102 receives the distribution network notification message in the Bluetooth distribution network waiting state and sends response information to the terminal 101, wherein after the device 102 is powered on, a Bluetooth distribution network window is opened, and the Bluetooth distribution network waiting state is entered.

Through steps S201 to S202, compared to the problem that the pairing speed between the terminal 101 and the device 102 where the client is located in the related art is slow, in this embodiment, the terminal 101 broadcasts the distribution network notification message, and the device 102 opens the bluetooth distribution network window after powering on, so that the device 102 can receive the distribution network notification message and send response information to the terminal 101, thereby completing the networking pairing between the terminal 101 and the device 102, simplifying the distribution network steps, solving the problem that the pairing speed between the terminal 101 and the device 102 where the client is located in the related art is slow, and increasing the speed of adding the device 102 by the client.

In addition, according to the embodiment, user operations in the process of adding the device 102 to the client are reduced, and the experience of the user in using the intelligent household device is improved.

Because maintaining the distribution network waiting for bluetooth may increase power consumption of the device 102, in some embodiments, the device 102 maintains the distribution network waiting for bluetooth within a preset time period after power-on, for example, the device 102 maintains the distribution network waiting for bluetooth within 3 to 5 seconds after power-on, and after 3 to 5 seconds, the device 102 closes the distribution network waiting for bluetooth and enters a normal operating state.

In some embodiments, fig. 3 is a flowchart of a method for adding devices to a bluetooth-based client according to a second embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:

step S301, before the terminal 101 acquires the Bluetooth network distribution instruction, the client acquires the click operation of the user on the first control to generate the Bluetooth network distribution instruction, and optionally after the client generates the Bluetooth network distribution instruction, the client displays a first page, wherein the first page carries information for the client to perform equipment scanning;

step S302, after the terminal 101 starts broadcasting the distribution network notification message, the client generates a distribution network stopping instruction when acquiring the click operation of the user on the second control, the terminal 101 acquires the distribution network stopping instruction and stops broadcasting the distribution network notification message, optionally, after the device 102 sends response information to the terminal 101, the client displays a second page, where the second page carries information that the client adds to the device 102, and the user can acquire the adding condition of the device 102 according to the second page, thereby determining whether to click the second control, and not to continue adding the other devices 102.

Through steps S301 to S302, compared with the problem of tedious operation of adding the device 102 to the client in the related art, in this embodiment, the client acquires the click operation of the user on the first control, and generates the bluetooth network distribution instruction, and the client generates the network distribution stopping instruction when acquiring the click operation of the user on the second control, when the user adds the device 102, the client clicks the first control, the device 102 and the terminal 101 where the client is located start to distribute the network, and the user clicks the second control, and the client does not continue to add the remaining devices 102, so that the operation steps of adding the device 102 to the client by the user are simplified, the problem of tedious operation of adding the device 102 to the client in the related art is solved, and the user experience of adding the device 102 to the client is improved.

In addition, in the process of distributing the network between the terminal 101 where the client is located and the device 102, security of information transmission needs to be considered, fig. 4 is a schematic diagram of a network distribution process between the terminal where the client is located and the device according to a third embodiment of the present application, and as shown in fig. 4, the process includes the following steps:

step S401, a terminal 101 obtains a Bluetooth distribution network instruction, starts distribution, the terminal 101 determines a distribution network notification message according to the Bluetooth distribution network instruction, the terminal 101 encrypts the distribution network notification message by using a whitening key, and broadcasts the distribution network notification message;

step S402, the device 102 receives the distribution network notification message and sends response information to the terminal 101, wherein the response information comprises device information and a random key burnt in during production;

step S403, the terminal 101 configures a device address according to the device information, the terminal 101 encrypts the broadcast key by using the random key, the terminal 101 sends the device address and the encrypted broadcast key to the device 102, and optionally, the client page may display: a discovered device, being configured;

step S404, the device 102 decrypts the encrypted broadcast key, the device 102 encrypts the heartbeat by using the broadcast key, and sends the heartbeat to the terminal 101;

step S405, after the terminal 101 receives the heartbeat of the device 102, the network is successfully distributed, and the terminal 101 establishes control over the device 102 according to the device address and the broadcast key, so as to control the device 102.

Through steps S401 to S405, in the present embodiment, in the bluetooth wireless network distribution process, relevant information is encrypted, so that data security in the network distribution process is ensured, and thus, security guarantee is provided for the user to use the client add-on device 102.

Fig. 5 is a schematic diagram of a process of entering a network distribution state waiting for bluetooth by a device according to a fourth embodiment of the present application, as shown in fig. 5, after a device 102 is powered on, opening a bluetooth network distribution window, entering the network distribution state waiting for bluetooth, and recording a duration of the device 102 in the network distribution state waiting for bluetooth after being powered on; the device 102 determines whether the duration is overtime or not according to the duration, if not, the device 102 continues to maintain the state of the distribution network waiting for bluetooth, and if the duration is overtime, the device 102 closes the state of the distribution network waiting for bluetooth and enters a normal working state.

Fig. 6 is a schematic diagram of a process of operating a client by a user according to a fifth embodiment of the present application, and as shown in fig. 6, when the user adds a device 102 to the client, the user clicks an add button on the client, and the client enters a bluetooth device scanning page; a user switches on or off the power supply of the equipment 102 to electrify each equipment 102, and the equipment 102 enters a network distribution state waiting for Bluetooth after being electrified; a terminal 101 where a client is located scans equipment 102 in a Bluetooth distribution network state and establishes control over the equipment 102, and the equipment 102 is added to the client; it should be noted that, in the pairing process, a user may open multiple devices 102 at the same time to pair the devices 102 and the terminal 101, and the user determines whether to stop scanning according to the adding condition of the devices 102, if so, the user clicks a scan stop button, and the client does not continue to add the remaining devices 102; after the user adds the device 102 on the client, the user controls to use the device 102 on the client; through the embodiment, the user can successfully distribute the network between the equipment 102 and the terminal 101 within 1 to 3 seconds, and the equipment 102 is added at the client, so that the equipment 102 is controlled to be used, the problem that the speed of adding the equipment 102 by the client in the related technology is low is solved, and in the whole network distribution process, the user only needs to click the adding button, turn on the switch of the equipment 102 and click the scanning stopping button, so that the problem that the operation of adding the equipment 102 by the client in the related technology is long is solved, and the user experience in the process of adding the equipment 102 by the client is improved.

Fig. 7 is a schematic diagram of a system for adding devices to a bluetooth-based client according to a sixth embodiment of the present application, and as shown in fig. 7, the system 70 for adding devices to a bluetooth-based client includes a device 102 and a terminal 101 where the client is located;

the terminal 101 acquires a Bluetooth distribution network instruction and broadcasts a distribution network notification message according to the Bluetooth distribution network instruction;

the device 102 receives the distribution network notification message in the distribution network state waiting for bluetooth, and sends response information to the terminal 101, wherein after the device 102 is powered on, a bluetooth distribution network window is opened, and the distribution network state waiting for bluetooth is entered.

It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.

The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种景点信息交互方法和景区服务系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类