A Bluetooth pairing processing method, electrical equipment, terminal and server
By sending notification information to the server after establishing a Bluetooth connection with the first terminal, the problem of undiscoverable status after pairing of low-power Bluetooth is solved, and the discoverability and user experience of the electrical equipment are improved.
Patent Information
- Application Number
- CN202110636078.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-08
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2041-06-08
Smart Images

Figure CN115529574B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of electrical equipment, and specifically to a Bluetooth pairing processing method, electrical equipment, a terminal and a server. Background Art
[0002] The current digital remote control uses the BLE low-power Bluetooth solution, which can only be paired one-to-one. After the pairing is successful, it will no longer broadcast, making it impossible for other devices to discover and connect.
[0003] Since the devices are not discoverable after pairing, if one mobile phone in the home is connected, other mobile phones will not be able to discover it. If the user does not understand this mechanism or cannot find the other mobile phone to disconnect in time, it may lead to user complaints and reduce the user experience. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide a Bluetooth pairing processing method, electrical equipment, terminal and server, aiming to solve the technical problem that in the existing Bluetooth pairing scheme, based on the characteristic that low-power Bluetooth can only be paired one-to-one, the electrical equipment is in an undiscoverable state after pairing, which seriously reduces the user experience.
[0005] To achieve the above purpose, the embodiment of the present application proposes a Bluetooth pairing processing method, which can be applied to the electrical device side; the method may include:
[0006] Turning on the Bluetooth hotspot of the electrical device itself and receiving a Bluetooth connection request sent by any first terminal;
[0007] Establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request;
[0008] A notification message indicating that Bluetooth is connected is sent to a pre-set server, and the notification message may include: first information corresponding to the first terminal, so that when any second terminal cannot establish a Bluetooth connection with the electrical device, the server can send the notification message to the second terminal; the notification message may include: the current Bluetooth connection status information of the electrical device.
[0009] In an exemplary embodiment of the present application, the first information may include: an account identity ID corresponding to a first account registered by the first terminal on the server, and / or a first Bluetooth MAC (Media Access Control) address corresponding to the first terminal.
[0010] In an exemplary embodiment of the present application, the method may further include:
[0011] Before establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request, authentication may be performed with the first terminal first and then the Bluetooth connection may be established with the first terminal after successful authentication.
[0012] In an exemplary embodiment of the present application, the method may further include:
[0013] After the initial authentication with the first terminal is successful and a Bluetooth connection is established, the device information of the electrical device can be sent to the first terminal so that the first terminal can send the device information to the server, and the server establishes a binding relationship between the first account registered by the first terminal on the server and the electrical device based on the device information.
[0014] In an exemplary embodiment of the present application, the device information may include: a unique identification identifier corresponding to the electrical device, and / or a second Bluetooth MAC address.
[0015] In an exemplary embodiment of the present application, the method may further include:
[0016] During the Bluetooth connection with the first terminal, a disconnection command sent by the server may be received, and the Bluetooth connection with the first terminal may be disconnected according to the disconnection command.
[0017] In an exemplary embodiment of the present application, the method may further include:
[0018] Before disconnecting the Bluetooth connection with the first terminal according to the disconnection command, a disconnection-related prompt message may be sent to the first terminal;
[0019] After disconnecting the Bluetooth connection with the first terminal according to the disconnect command, the Bluetooth connection state of the electrical device itself can be reported to the server as being in an idle state.
[0020] An embodiment of the present application also provides an electrical device, which may include a first processor and a first computer-readable storage medium. The first computer-readable storage medium may store a first instruction, and the first instruction is executed by the first processor to implement any one of the above-mentioned Bluetooth pairing processing methods on the electrical device side.
[0021] The embodiment of the present application also provides a Bluetooth pairing processing method, which can be applied to the terminal side; the method may include:
[0022] Detecting a first control operation on the terminal, and starting to scan Bluetooth hotspots emitted by the electrical device according to the first control operation;
[0023] When the Bluetooth hotspot is scanned, a first mark is displayed on the terminal interface; a Bluetooth connection request is sent to the electrical device, and a Bluetooth connection can be established with the electrical device;
[0024] When the Bluetooth hotspot of the electrical device is not scanned, a second logo is displayed on the terminal interface; and a preset server can be requested to query the current Bluetooth connection status of the electrical device, and the notification information returned by the server is displayed on the terminal interface; the notification information may include: information about the current Bluetooth connection status of the electrical device.
[0025] In an exemplary embodiment of the present application, the requesting a preset server to query the current Bluetooth connection status of the electrical device may include:
[0026] A query request for the current Bluetooth connection status of the electrical device is initiated to the server, and device information about the electrical device itself is sent to the server, so that the server can query the current Bluetooth connection status information of the electrical device according to the device information.
[0027] In an exemplary embodiment of the present application, before starting to scan the Bluetooth hotspots of the electrical device according to the first control operation, the method may further include: registering an account on the server through a preset platform on the terminal interface.
[0028] In an exemplary embodiment of the present application, the notification information may also include: information of related terminals that have established a Bluetooth connection with the electrical device;
[0029] The information of the terminal may include: the account ID of the registered account registered on the server, and / or the Bluetooth MAC address of the terminal.
[0030] In an exemplary embodiment of the present application, the method may further include:
[0031] Before establishing a Bluetooth connection with the electrical device, authentication is performed with the electrical device so that a Bluetooth connection can be established with the electrical device after the authentication is successful.
[0032] In an exemplary embodiment of the present application, the method may further include:
[0033] After the first authentication with the electrical device is successful and a Bluetooth connection is established, the device information about the electrical device sent by the electrical device can be obtained and displayed on the terminal interface;
[0034] A second control operation on the terminal is detected and the device information is sent to the server according to the second control operation, so that the server can establish a binding relationship between the account registered by the terminal on the server and the electrical device.
[0035] In an exemplary embodiment of the present application, the device information may include: a unique identification mark of the electrical device, and / or a second Bluetooth MAC address.
[0036] In an exemplary embodiment of the present application, the notification information may be a message indicating that the electrical device has established a Bluetooth connection; the method may further include:
[0037] Acquiring device information of the electrical device itself input through the terminal interface;
[0038] Detect a third control operation performed on the terminal, and send a disconnect request and device information of the electrical device to the server according to the third control operation. The disconnect request can be used to request the electrical device to disconnect the Bluetooth connection that is currently connected.
[0039] In an exemplary embodiment of the present application, after sending a disconnection request and device information of the electrical device to the server according to the third control operation, the method may further include:
[0040] Receive information about the Bluetooth connection status of the electrical device returned by the server and display it on the terminal interface;
[0041] When the Bluetooth connection state of the electrical device is in an idle state, a first control operation performed on the terminal can be detected, and scanning of the Bluetooth hotspot emitted by the electrical device can be started according to the first control operation; or, the idle state information is sent to another terminal (a terminal waiting to be connected to the electrical device) so that the other terminal attempts to establish a Bluetooth connection with the electrical device.
[0042] An embodiment of the present application also provides a terminal, which may include a second processor and a second computer-readable storage medium. The second computer-readable storage medium may store a second instruction. When the second instruction is executed by the second processor, any one of the above-mentioned terminal-side Bluetooth pairing processing methods may be implemented.
[0043] The embodiment of the present application also provides a Bluetooth pairing processing method, which can be applied to the server side; the method may include:
[0044] Receiving notification information sent by the electrical device, wherein the notification information may include information that the electrical device has established a Bluetooth connection with any first terminal and first information about the first terminal;
[0045] Receive a query request sent by any second terminal that has not scanned the Bluetooth hotspot emitted by the electrical device and the device information of the electrical device itself, and query the current Bluetooth connection status of the electrical device based on the query request and the device information, and send notification information to the second terminal, the notification information may include: information about the Bluetooth connection status of the electrical device.
[0046] In an exemplary embodiment of the present application, the method may further include:
[0047] Before receiving the first information about the first terminal itself, a first registration request sent by the first terminal may be received, and an account registration interface may be displayed to the first terminal according to the first registration request, so that the first terminal can register the first account through the account registration interface;
[0048] and / or,
[0049] Before receiving a query request sent by any second terminal that has not scanned the Bluetooth hotspot emitted by the electrical device and the device information of the electrical device itself, a second registration request sent by the second terminal is received, and an account registration interface is displayed to the second terminal according to the second registration request, so that the second terminal can register a second account through the account registration interface.
[0050] In an exemplary embodiment of the present application, the method may further include:
[0051] Before receiving the first information corresponding to the first terminal, receiving device information of the electrical device sent by the first terminal, and establishing a binding relationship between the electrical device and the first account according to the device information;
[0052] and / or,
[0053] Before receiving the query request and the device information sent by any second terminal that has not scanned the Bluetooth hotspot emitted by the electrical device, the device information about the electrical device itself sent by the second terminal can be received, and a binding relationship between the electrical device and the second account can be established based on the device information.
[0054] In an exemplary embodiment of the present application, the method may further include:
[0055] Receiving a disconnection request sent by the second terminal and device information of the electrical device itself; the disconnection request can be used to request the electrical device to disconnect the connected Bluetooth connection;
[0056] The corresponding electrical device is queried according to the device information, and a disconnection command is issued to the queried electrical device according to the disconnection request.
[0057] In an exemplary embodiment of the present application, after issuing a disconnection command to the queried electrical device according to the disconnection request, the method may further include:
[0058] Receive the current Bluetooth connection status of the electrical device reported by the electrical device;
[0059] When the current Bluetooth connection state of the electrical device is an idle state, information that the electrical device is in the idle state may be sent to the second terminal.
[0060] An embodiment of the present application also provides a server, which may include a third processor and a third computer-readable storage medium, wherein the third computer-readable storage medium stores a third instruction, and the third instruction is executed by the third processor to implement any one of the above-mentioned server-side Bluetooth pairing processing methods.
[0061] The Bluetooth pairing processing method of the embodiment of the present application can be applied to the electrical device side; the method may include: turning on the Bluetooth hotspot of the electrical device itself, and receiving a Bluetooth connection request sent by any first terminal; establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request; sending a notification message that Bluetooth has been connected to a pre-set server, and the notification message may include the first information corresponding to the first terminal, so that when any second terminal cannot establish a Bluetooth connection with the electrical device, the server can send a notification message to the second terminal; the notification message may include: the current Bluetooth connection status information of the electrical device. Through this embodiment scheme, after the electrical device establishes a Bluetooth connection with the first terminal, a notification message that Bluetooth has been connected is sent to the pre-set server, so that when any second terminal cannot establish a Bluetooth connection with the electrical device, the server can send a notification message containing the current Bluetooth connection status information of the electrical device to the second terminal, so that the electrical device can promptly inform other terminals after establishing a connection with a terminal, so that the user can promptly understand the situation when the terminal cannot connect to the electrical device through Bluetooth, improve the user's user experience, and thus reduce the probability of being complained. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
[0063] Figure 1 A flowchart of a Bluetooth pairing processing method on the electrical device side of an embodiment of the present application;
[0064] Figure 2 A schematic diagram of a Bluetooth pairing processing method according to an embodiment of the present application;
[0065] Figure 3 This is a block diagram of the electrical equipment composition of an embodiment of the present application;
[0066] Figure 4 This is a flow chart of a Bluetooth pairing processing method on the terminal side of an embodiment of the present application;
[0067] Figure 5 This is a block diagram of the terminal composition of an embodiment of the present application;
[0068] Figure 6 This is a flow chart of the Bluetooth pairing processing method on the server side of an embodiment of the present application;
[0069] Figure 7 A block diagram of the server composition of an embodiment of the present application;
[0070] Figure 8 A schematic diagram of another Bluetooth pairing processing method according to an embodiment of the present application.
[0071] Description of Figure Numbers:
[0072]
[0073]
[0074] The realization of the purpose, functional features and advantages of the embodiments of the present application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0075] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of them. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0076] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0077] In addition, in the embodiments of the present application, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the embodiments of the present application, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise clearly and specifically defined.
[0078] In the embodiments of the present application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly limited. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0079] In addition, the technical solutions of the various embodiments of the embodiments of the present application may be combined with each other, but this must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the embodiments of the present application.
[0080] The present application embodiment proposes a Bluetooth pairing processing method, which can be applied to the electrical device side; Figure 1 , Figure 2 As shown, the method may include steps S101-S103:
[0081] S101, turning on the Bluetooth hotspot of the electrical device itself, and receiving a Bluetooth connection request sent by any first terminal;
[0082] S102, establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request;
[0083] S103. Send a notification message indicating that the Bluetooth connection has been established to a pre-set server. The notification message may include first information corresponding to the first terminal, so that when any second terminal cannot establish a Bluetooth connection with the electrical device, the server may send the notification message to the second terminal; the notification message may include but is not limited to: the current Bluetooth connection status information of the electrical device.
[0084] BLE: Bluetooth Low Energy (Bluetooth Low Energy, or Bluetooth LE, BLE, the old trademark Bluetooth Smart), also known as low-power Bluetooth, is a personal area network technology designed and sold by the Bluetooth Technology Alliance, intended for emerging applications in the fields of healthcare, sports and fitness, beacons, security, home entertainment, etc. Compared with classic Bluetooth, low-power Bluetooth aims to significantly reduce power consumption and cost while maintaining the same communication range.
[0085] BLE pairing: The terminal (such as a mobile device) discovers the air conditioner's Bluetooth information by scanning Bluetooth broadcasts (such as Bluetooth hotspots), establishes a connection with the Bluetooth of the electrical device, and maintains communication status.
[0086] Based on the above advantages of BLE low-power Bluetooth solution, it is currently widely used in electrical devices. However, since BLE low-power Bluetooth solution can only be paired one-to-one, it will not broadcast after pairing is successful, and no Bluetooth hotspot will be generated, resulting in other terminals and electrical devices being unable to discover and connect to the current electrical device. Moreover, this situation cannot be understood by the user, so when the user tries to use other terminals or electrical devices to establish a connection with the current electrical device, it cannot be connected normally, which makes the user suspect that the current electrical device is faulty, reducing the user experience.
[0087] In an exemplary embodiment of the present application, a processing solution for Bluetooth pairing is proposed based on the above problem. After the electrical device establishes a Bluetooth connection with any first terminal, a notification message of Bluetooth connection can be sent to a pre-set server. When any second terminal cannot establish a Bluetooth connection with the electrical device, the server can send a notification message containing the Bluetooth connection status information of the electrical device to the second terminal. This enables the electrical device to promptly inform other terminals after establishing a connection with a terminal, so that the user can understand the situation in time when the terminal cannot establish a Bluetooth connection with the electrical device, thereby improving the user experience and reducing the chance of complaints.
[0088] In an exemplary embodiment of the present application, the electrical device may be any form of electrical device capable of using Bluetooth, including but not limited to household appliances, industrial appliances, such as air conditioners, refrigerators, washing machines, etc.
[0089] In an exemplary embodiment of the present application, the terminal (which may include a first terminal and a second terminal) may include but is not limited to: a mobile phone, a computer, a tablet computer, a microprocessor, a smart wearable device (for example, a smart watch, a bracelet, a necklace, glasses, a ring, a helmet, etc.), etc.
[0090] In an exemplary embodiment of the present application, the first terminal may refer to any terminal that has established a Bluetooth connection with an electrical device, and the second terminal may refer to any terminal that wants to establish a Bluetooth connection with the electrical device but fails to search for the Bluetooth hotspot of the electrical device.
[0091] In an exemplary embodiment of the present application, after the electrical device establishes a Bluetooth connection with any first terminal, the first information of the currently connected first terminal may be sent to the server to inform the server with which first terminal the Bluetooth connection is currently established.
[0092] In an exemplary embodiment of the present application, the first information may include but is not limited to: the account identity ID corresponding to the first account registered by the first terminal on the server, and / or the first Bluetooth MAC (Media Access Control) address corresponding to the first terminal.
[0093] In an exemplary embodiment of the present application, the method may further include:
[0094] Before establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request, authentication may be performed with the first terminal first, and the Bluetooth connection may be established with the first terminal after successful authentication.
[0095] In the exemplary embodiments of the present application, the specific authentication scheme may be implemented by using any one or more currently available authentication methods, and the specific authentication scheme is not limited herein.
[0096] In an exemplary embodiment of the present application, the method may further include:
[0097] After the initial authentication with the first terminal is successful and a Bluetooth connection is established, the device information of the electrical device can be sent to the first terminal so that the first terminal can send the device information to the server, and the server establishes a binding relationship between the first account registered by the first terminal on the server and the electrical device based on the device information.
[0098] In an exemplary embodiment of the present application, any terminal (including a first terminal and a second terminal) that wants to establish a Bluetooth connection with an electrical device can pre-register in a preset server and establish a corresponding account. For example, the first terminal can register in the server and establish a first account, and the second terminal can register in the server and establish a second account.
[0099] In an exemplary embodiment of the present application, the server may be a hardware server or a cloud server. The specific implementation method of the server is not limited, and the specific number of servers is not limited.
[0100] In an exemplary embodiment of the present application, after establishing a first account in the server, the first terminal can scan the surrounding Bluetooth hotspots to search for the Bluetooth of the electrical device to be connected, and after scanning the Bluetooth of the electrical device to be linked, it can authenticate with the electrical device and establish a Bluetooth connection with the electrical device after the authentication is successful; and the first terminal sends the device information of the electrical device to the server, so that the server binds the first account with the current electrical device according to the device information.
[0101] In an exemplary embodiment of the present application, after the second terminal establishes a second account in the server, it can also scan the surrounding Bluetooth hotspots to search for the Bluetooth of the electrical device to be connected, and after scanning the Bluetooth of the electrical device to be linked, it can authenticate with the electrical device and establish a Bluetooth connection with the electrical device after the authentication is successful; and the second terminal sends the device information of the electrical device to the server, so that the server binds the second account with the current electrical device according to the device information.
[0102] In an exemplary embodiment of the present application, the device information may include, but is not limited to: a unique identification mark corresponding to the electrical device, and / or a second Bluetooth MAC address.
[0103] In an exemplary embodiment of the present application, the unique identification mark of the electrical device can be implemented in a combination of any one or more of the following forms: text, code, pattern, geometric figure, and irregular lines, etc.
[0104] In an exemplary embodiment of the present application, for example, the unique identification mark may be an SN code, which is the abbreviation of Serial Number and may also be referred to as SerialNo, ie, a product serial number.
[0105] In an exemplary embodiment of the present application, the unique identity identification mark may be any form of identification code such as a barcode, a QR code, or a 3D code.
[0106] In an exemplary embodiment of the present application, the method may further include:
[0107] During the Bluetooth connection with the first terminal, a disconnection command sent by the server may be received, and the Bluetooth connection with the first terminal may be disconnected according to the disconnection command.
[0108] In an exemplary embodiment of the present application, if the Bluetooth of the current electrical device (such as the user's home air conditioner) is occupied by other electrical devices or terminals, the newly registered account will be unable to bind the account via Bluetooth. For example, the user's own mobile phone cannot be bound to the air conditioner after registering the account on the server, thereby affecting the user's use and reducing the user's experience. Based on this problem, the terminal that has registered the account and bound to the current electrical device (such as a third terminal) can communicate with the server to enable the server to query which terminal is currently connected to the electrical device via Bluetooth. The server can send the first information of the first terminal currently connected to the third terminal, so that the user can judge whether the first terminal is a reliable terminal through the first information about the first terminal displayed on the terminal interface of the third terminal.
[0109] In an exemplary embodiment of the present application, the server may send a disconnect command to the current electrical device according to the disconnect request sent by the third terminal, and the current electrical device may disconnect the Bluetooth connection with the first terminal according to the disconnect command.
[0110] In an exemplary embodiment of the present application, the third terminal may send an indication to the server when the third terminal determines that the first terminal is unreliable or needs to be disconnected, and the server sends a disconnection command to disconnect the Bluetooth connection to the current electrical device according to the indication.
[0111] In an exemplary embodiment of the present application, the method may further include:
[0112] Before disconnecting the Bluetooth connection with the first terminal according to the disconnection command, a disconnection-related prompt message may be sent to the first terminal;
[0113] After disconnecting the Bluetooth connection with the first terminal according to the disconnect command, the Bluetooth connection state of the electrical device itself can be reported to the server as being in an idle state.
[0114] In an exemplary embodiment of the present application, when the electrical device disconnects the Bluetooth connection with the first terminal, it can determine whether to send the prompt information to the first terminal based on the judgment result of the third terminal on the first terminal. For example, if the third terminal determines that the first terminal is an unreliable terminal (such as an illegal connector or an unidentifiable connector), the third terminal can directly reflect to the server that the first terminal is an unreliable terminal, and the server can feedback the information that the first terminal is an unreliable terminal to the current electrical device. The current electrical device can directly disconnect the Bluetooth connection with the first terminal without any prompt information, and can add the first terminal to the blacklist and refuse to connect to the first terminal again through Bluetooth. On the contrary, if the third terminal determines that the first terminal is a reliable terminal (such as the mobile phone of the user's family member), the third terminal can directly report to the server that the first terminal is a reliable terminal, and the server can feedback the information that the first terminal is a reliable terminal to the current electrical device. The current electrical device can send a prompt message to the first terminal before disconnecting the Bluetooth connection with the first terminal, and can add the first terminal to the whitelist. When the current electrical device is in idle state, when the first terminal sends a connection request to the current electrical device again, it can establish a Bluetooth connection with the first terminal again.
[0115] In an exemplary embodiment of the present application, the third terminal can be a terminal of a user's relatives or friends, or a terminal of an after-sales service provider. In short, the terminal must be a reliable terminal that the user can trust, has an account registered in the server, and has been bound to the electrical device.
[0116] In an exemplary embodiment of the present application, for example, if the Bluetooth of the air conditioner in the user's home is occupied by other electrical devices or terminals, resulting in the user's newly registered account being unable to bind the account through Bluetooth, the device currently occupying the Bluetooth can be queried through the user's bound mobile phone and the Bluetooth connection can be disconnected.
[0117] In an exemplary embodiment of the present application, for example, if the Bluetooth of the air conditioner in the user's home is occupied by other electrical devices or terminals, resulting in the user's newly registered account being unable to bind the account through Bluetooth, the user has no bound account to query and can call after-sales service. The electrical device or terminal bound to the air conditioner can communicate with the server through the after-sales service, so that the server can check the electrical devices or terminals occupying the user's air conditioner Bluetooth hotspot. The server sends a disconnect command to the user's air conditioner, thereby remotely solving after-sales problems, improving problem solving efficiency, and improving user experience.
[0118] The present application also provides an electrical device 1, such as Figure 3As shown, it may include a first processor 11, a first computer-readable storage medium 12 and a first Bluetooth module 13. The first computer-readable storage medium 12 may store a first instruction. When the first instruction is executed by the first processor 11, any one of the above-mentioned Bluetooth pairing processing methods on the electrical device side may be implemented.
[0119] In the exemplary embodiments of the present application, any embodiment of the aforementioned Bluetooth pairing processing method applied to the electrical device side can be applied to the embodiment of the electrical device, and will not be described one by one here.
[0120] The present application also provides a Bluetooth pairing processing method, such as Figure 4 As shown, it can be applied to the terminal side; the method may include steps S201-S203:
[0121] S201, detecting a first control operation performed on a terminal, and starting to scan Bluetooth hotspots emitted by an electrical device according to the first control operation;
[0122] S202, when the Bluetooth hotspot is scanned, a first mark is displayed on the terminal interface; a Bluetooth connection request is sent to the electrical device, and a Bluetooth connection can be established with the electrical device;
[0123] S203. When the Bluetooth hotspot emitted by the electrical device is not scanned, a second logo can be displayed on the terminal interface; and a preset server can be requested to query the current Bluetooth connection status of the electrical device, and the notification information returned by the server can be displayed on the terminal interface; the notification information may include but is not limited to: information about the current Bluetooth connection status of the electrical device.
[0124] In an exemplary embodiment of the present application, the terminal may include but is not limited to: a mobile phone, a computer, a tablet computer, a microprocessor, a smart wearable device (for example, a smart watch, a bracelet, a necklace, glasses, a ring, a helmet, etc.), etc.
[0125] In the exemplary embodiments of the present application, the first logo and the second logo can be defined according to needs or preferences. For example, they can be any sound, light, shadow, picture and their combination. The specific form, quantity and position of the first logo and the second logo are not limited in detail.
[0126] In an exemplary embodiment of the present application, the first control operation may be an operation on the terminal interface or an operation on a button set on the terminal, and the specific implementation method of the first control operation is not limited herein. When the first control operation is an operation on the terminal interface, a corresponding operation window may be provided on the terminal interface, for example, an operation window provided by a preset platform for Bluetooth connection with an electrical device.
[0127] In an exemplary embodiment of the present application, the preset platform may include but is not limited to: a brand webpage, a brand APP, a WeChat applet, etc.
[0128] In an exemplary embodiment of the present application, before starting to scan the Bluetooth hotspots emitted by the electrical device according to the first control operation, the method may further include: registering an account on the server.
[0129] In an exemplary embodiment of the present application, an account can be registered on the server through a preset platform on the terminal interface.
[0130] In an exemplary embodiment of the present application, any terminal (e.g., a first terminal and a second terminal) that wants to establish a Bluetooth connection with an electrical device can pre-register in a preset server and establish a corresponding account. For example, the first terminal can register in the server and establish a first account, and the second terminal can register in the server and establish a second account.
[0131] In an exemplary embodiment of the present application, the method may further include:
[0132] After the first authentication with the electrical device is successful and a Bluetooth connection is established, the device information about the electrical device itself sent by the electrical device can be obtained and displayed on the terminal interface;
[0133] The second control operation on the terminal can be detected, and the above-mentioned device information can be sent to the server according to the second control operation, so that the server can establish a binding relationship between the account registered by the terminal on the server and the electrical device.
[0134] In an exemplary embodiment of the present application, the second control operation may be an operation on the terminal interface or an operation on a button set on the terminal, and the specific implementation method of the second control operation is not limited herein. When the second control operation is an operation on the terminal interface, a corresponding operation window may be provided on the terminal interface, for example, an operation window provided by a preset platform for Bluetooth connection with an electrical device.
[0135] In an exemplary embodiment of the present application, any terminal (e.g., a first terminal and a second terminal) that wants to establish a Bluetooth connection with an electrical device can pre-register in a preset server and establish a corresponding account. For example, the first terminal can register in the server and establish a first account, and the second terminal can register in the server and establish a second account.
[0136] In an exemplary embodiment of the present application, the server may be a hardware server or a cloud server. The specific implementation method of the server is not limited, and the specific number of servers is not limited.
[0137] In an exemplary embodiment of the present application, after any terminal (for example, a first terminal and a second terminal) establishes corresponding accounts (for example, a first account and a second account) in the server, it can scan the surrounding Bluetooth hotspots to search for the Bluetooth of the electrical device it wants to connect to, and after scanning the Bluetooth hotspot emitted by the electrical device it wants to connect to, it can authenticate with the electrical device and establish a Bluetooth connection with the electrical device after the authentication is successful; and the terminal sends the device information of the electrical device to the server, so that the server binds the registered account with the current electrical device according to the device information.
[0138] In an exemplary embodiment of the present application, after the terminal has been registered on the server, a corresponding account has been established, and the account has been bound to one or more electrical devices, when the terminal wants to establish a Bluetooth connection with any of the bound electrical devices, it can scan the Bluetooth hotspot emitted by the electrical device and perform corresponding operations based on the scanning results.
[0139] In an exemplary embodiment of the present application, when the terminal scans a Bluetooth hotspot emitted by an electrical device, it indicates that the current electrical device has not yet established a Bluetooth connection with the terminal. Therefore, a Bluetooth connection machine request can be initiated to the electrical device to establish a Bluetooth connection with the electrical device.
[0140] In an exemplary embodiment of the present application, the method may further include:
[0141] Before establishing a Bluetooth connection with the above-mentioned electrical device, authentication may be performed with the electrical device first, and a Bluetooth connection may be established with the electrical device after successful authentication.
[0142] In the exemplary embodiments of the present application, the specific authentication scheme may be implemented by using any one or more currently available authentication methods, and the specific authentication scheme is not limited herein.
[0143] In an exemplary embodiment of the present application, after the electrical device establishes a Bluetooth connection with any terminal (for example, the first terminal), the first information of the currently connected first terminal (for example, the account identity ID corresponding to the first account registered on the server, and / or the first Bluetooth MAC address of the first terminal) can be sent to the server to inform the server with which first terminal a Bluetooth connection is currently established.
[0144] In an exemplary embodiment of the present application, when the terminal fails to scan the Bluetooth hotspot emitted by the electrical device, it means that the current electrical device has been connected to the terminal by Bluetooth, or the electrical device has failed. Therefore, a query request can be initiated to a preset server to query the current Bluetooth connection status of the electrical device through the server.
[0145] In an exemplary embodiment of the present application, the requesting a preset server to query the current Bluetooth connection status of the electrical device may include:
[0146] A query request for the current Bluetooth connection status of the electrical device is initiated to the server, and the device information of the electrical device itself is sent to the server, so that the server can query the current Bluetooth connection status information of the electrical device according to the device information.
[0147] In an exemplary embodiment of the present application, the device information may include, but is not limited to: a unique identification mark of the electrical device, and / or a second Bluetooth MAC address.
[0148] In an exemplary embodiment of the present application, the unique identification mark of the electrical device can be implemented in a combination of any one or more of the following forms: text, code, pattern, geometric figure, and irregular lines, etc.
[0149] In an exemplary embodiment of the present application, for example, the unique identification mark may be an SN code, which is the abbreviation of Serial Number and may also be referred to as SerialNo, ie, a product serial number.
[0150] In an exemplary embodiment of the present application, the unique identity identification mark may be any form of identification code such as a barcode, a QR code, or a 3D code.
[0151] In an exemplary embodiment of the present application, after determining that the current terminal is a registered terminal, the server can first query the corresponding electrical device based on the device information of a certain electrical device itself sent by the terminal, and further query the binding status of the current terminal and the electrical device (that is, the binding status of the account registered by the current terminal in the server and the electrical device). When the current terminal is not bound to the electrical device, the server can notify the current terminal that it is not bound to the electrical device and has no right to query the Bluetooth connection status of the electrical device. When the current terminal is bound to the electrical device, the server can query the Bluetooth connection status of the electrical device, and after obtaining the query result, send a notification message to the current terminal, and the notification message can include the query result (that is, the Bluetooth connection status of the electrical device, for example, electrical device XX has been connected to Bluetooth).
[0152] In an exemplary embodiment of the present application, the notification information may also include: information of a related terminal connected to the electrical device via Bluetooth;
[0153] The information of the terminal may include: the account ID of the registered account registered on the server, and / or the Bluetooth MAC address of the terminal.
[0154] In an exemplary embodiment of the present application, in order to further improve the user experience, the notification information may further include information about the terminal to which the electrical device is currently connected, for example, the electrical device XX has established a Bluetooth connection with the terminal XXX.
[0155] In an exemplary embodiment of the present application, if the Bluetooth of the current electrical device (such as the user's home air conditioner) is occupied by other electrical devices or terminals, it will cause the newly registered account to be unable to bind the account through Bluetooth. For example, after the user's own mobile phone registers an account on the server, it cannot be bound to the air conditioner at home, thereby affecting the user's use and reducing the user's experience. Based on this problem, the terminal (such as the second terminal or the third terminal) that has registered an account and bound to the current electrical device can communicate with the server to enable the server to query which terminal is currently connected to the electrical device through Bluetooth. The server can send the first information of the first terminal currently connected to the second terminal or the third terminal that initiates the query request, so that the user can judge whether the first terminal is a reliable terminal through the first information about the first terminal displayed on the terminal interface of the second terminal or the third terminal. In an exemplary embodiment of the present application, when the notification information is information that the electrical device has established a Bluetooth connection; the method may also include:
[0156] Obtaining device information about the electrical device itself input through the above-mentioned terminal interface;
[0157] Detect a third control operation performed on the terminal, and send a disconnect request and device information of the electrical device to the server according to the third control operation; the disconnect request can be used to request the electrical device to disconnect the current Bluetooth connection.
[0158] In an exemplary embodiment of the present application, the third control operation may be an operation on the terminal interface or an operation on a button set on the terminal, and the specific implementation method of the third control operation is not limited herein. When the third control operation is an operation on the terminal interface, a corresponding operation window may be provided on the terminal interface, for example, an operation window provided by a preset platform for Bluetooth connection with an electrical device.
[0159] In an exemplary embodiment of the present application, if the current terminal receives notification information indicating that the electrical device has established a Bluetooth connection, the current terminal (such as the second terminal) has pre-registered an account on the server, and the registered account has been bound to the electrical device, the second terminal can directly send a disconnect request to the server and send the device information of the current electrical device, so that the server can query the electrical device that needs to be disconnected through the device information, and send a disconnect command to the electrical device according to the disconnect request, so that the current electrical device disconnects the Bluetooth connection.
[0160] In an exemplary embodiment of the present application, if the current terminal (such as the fourth terminal) has not pre-registered an account on the server, and the registered account has not been bound to the electrical device, the fourth terminal can retain at least one information (such as a mobile phone number, MAC address, etc.) of a terminal (such as a third terminal) that has pre-registered an account on the server and the registered account has been bound to the electrical device, and send information to the third terminal to directly send a disconnect request to the server through the third terminal, and send the device information of the current electrical device, so that the server can query the electrical device that needs to be disconnected through the device information, and send a disconnect command to the electrical device according to the disconnect request, so that the current electrical device disconnects the Bluetooth connection.
[0161] In an exemplary embodiment of the present application, the second terminal or the third terminal can send an indication to the server in advance when the third terminal determines that the first terminal is unreliable or needs to be disconnected. The server can issue a disconnect command to the current electrical device to disconnect the Bluetooth connection based on the indication, so that the current electrical device disconnects the Bluetooth connection.
[0162] In an exemplary embodiment of the present application, after sending a disconnection request and the device information of the electrical device itself to the server according to the third control operation, the method may further include:
[0163] Receive information about the current Bluetooth connection status of the electrical device returned by the server and display it on the terminal interface;
[0164] When the Bluetooth connection state of the electrical device is in an idle state, a first control operation performed on the terminal can be detected, and scanning of the Bluetooth hotspot emitted by the electrical device can be started according to the first control operation; or, the idle state information can be sent to another terminal (a terminal waiting to be connected to the electrical device) so that the other terminal attempts to establish a Bluetooth connection with the electrical device.
[0165] In an exemplary embodiment of the present application, after the second terminal (a terminal that has registered an account and bound to an electrical device, and wants to establish a Bluetooth connection with the electrical device but cannot scan a Bluetooth hotspot) or the third terminal (a terminal that has registered an account and bound to an electrical device, and does not want to establish a Bluetooth connection with the electrical device, but is requested by the fourth terminal to help communicate with the server to disconnect the current Bluetooth connection) initiates a disconnect request to the server, the server queries the electrical device that needs to be disconnected through the device information, and sends a disconnect command to the electrical device according to the disconnect request, so that the current electrical device disconnects the Bluetooth connection. After the current electrical device has disconnected the Bluetooth connection with the first connected terminal, it can return its own Bluetooth connection status information, such as an idle state, to the server. The server can send the idle state to the second terminal or the third terminal, and it can be displayed on the terminal interface of the second terminal or the third terminal to provide feedback on the disconnect request sent by the second terminal or the third terminal.
[0166] In an exemplary embodiment of the present application, after the second terminal learns about the idle state information, it can directly detect the first control operation on itself again (the operation used to control the terminal to start scanning Bluetooth hotspots), and start scanning the Bluetooth hotspots of the electrical device according to the detected first control operation to retry to establish a Bluetooth connection with the electrical device.
[0167] In an exemplary embodiment of the present application, after the third terminal learns about the idle state information, it can send the idle state information to the terminal that requests help from itself (for example, the fourth terminal, which is a terminal that has not registered an account and is not bound to the electrical device, and this terminal cannot request the server to disconnect the Bluetooth connection of the electrical device), so that the fourth terminal directly detects the first control operation on itself again (the operation for controlling the terminal to start scanning for Bluetooth hotspots), and starts scanning the Bluetooth hotspots of the electrical device according to the detected first control operation, so as to retry to establish a Bluetooth connection with the electrical device.
[0168] The present application embodiment also provides a terminal 2, such as Figure 5As shown, it may include a second processor 21, a second computer-readable storage medium 22 and a second Bluetooth module 23. The second computer-readable storage medium 22 may store a second instruction. When the second instruction is executed by the second processor 21, any one of the above-mentioned terminal-side Bluetooth pairing processing methods may be implemented.
[0169] In the exemplary embodiments of the present application, any embodiment of the aforementioned Bluetooth pairing processing method applied to the terminal side can be applied to the terminal embodiment, and will not be described one by one here.
[0170] The present application also provides a Bluetooth pairing processing method, such as Figure 6 As shown, it can be applied to the server side; the method may include steps S301-S302:
[0171] S301, receiving notification information sent by an electrical device, where the notification information may include but is not limited to information that the electrical device has established a Bluetooth connection with any first terminal, and first information corresponding to the first terminal;
[0172] S302, receiving a query request sent by any second terminal that has not scanned the Bluetooth hotspot emitted by the electrical device and the device information of the electrical device itself, and querying the current Bluetooth connection status of the electrical device according to the query request and the device information, and sending notification information to the second terminal, the notification information may include but is not limited to: information about the current Bluetooth connection status of the electrical device.
[0173] In an exemplary embodiment of the present application, any terminal (e.g., a first terminal and a second terminal) that wants to establish a Bluetooth connection with an electrical device can pre-register in a preset server and establish a corresponding account. For example, the first terminal can register in the server and establish a first account, and the second terminal can register in the server and establish a second account.
[0174] In an exemplary embodiment of the present application, the method may further include:
[0175] Before receiving the first information corresponding to the first terminal, a first registration request sent by the first terminal may be received, and an account registration interface may be displayed to the first terminal according to the first registration request, so that the first terminal can register the first account through the account registration interface.
[0176] In an exemplary embodiment of the present application, the method may further include:
[0177] Before receiving a query request sent by any second terminal that has not scanned the Bluetooth hotspot emitted by the electrical device and the device information of the electrical device itself, a second registration request sent by the second terminal is received, and an account registration interface is displayed to the second terminal according to the second registration request, so that the second terminal can register a second account through the account registration interface.
[0178] In an exemplary embodiment of the present application, the server may be a hardware server or a cloud server. The specific implementation method of the server is not limited, and the specific number of servers is not limited.
[0179] In an exemplary embodiment of the present application, the device information may include, but is not limited to: a unique identification mark of the electrical device, and / or a second Bluetooth MAC address.
[0180] In an exemplary embodiment of the present application, the unique identification mark of the electrical device can be implemented in a combination of any one or more of the following forms: text, code, pattern, geometric figure, and irregular lines, etc.
[0181] In an exemplary embodiment of the present application, for example, the unique identification mark may be an SN code, which is the abbreviation of Serial Number and may also be referred to as SerialNo, ie, a product serial number.
[0182] In an exemplary embodiment of the present application, the unique identity identification mark may be any form of identification code such as a barcode, a QR code, or a 3D code.
[0183] In an exemplary embodiment of the present application, after determining that the current terminal is a registered terminal, the server can first query the corresponding electrical device based on the device information of a certain electrical device itself sent by the terminal, and further query the binding status of the current terminal and the electrical device (that is, the binding status of the account registered by the current terminal in the server and the electrical device). When the current terminal is not bound to the electrical device, the server can notify the current terminal that it is not bound to the electrical device and has no right to query the Bluetooth connection status of the electrical device. When the current terminal is bound to the electrical device, the server can query the Bluetooth connection status of the electrical device, and after obtaining the query result, send a notification message to the current terminal, and the notification message can include the query result (that is, the Bluetooth connection status of the electrical device, for example, electrical device XX has been connected to Bluetooth).
[0184] In an exemplary embodiment of the present application, the notification information may also include but is not limited to: information of a terminal related to the Bluetooth connection between the electrical device and the electrical device;
[0185] The first information corresponding to the terminal may include, but is not limited to: an account ID of a registered account registered on the server, and / or a Bluetooth MAC address of the terminal.
[0186] In an exemplary embodiment of the present application, the method may further include:
[0187] Before receiving the first information corresponding to the first terminal, the device information of the electrical device sent by the first terminal is received, and a binding relationship is established between the electrical device and the first account according to the device information.
[0188] In an exemplary embodiment of the present application, the method may further include:
[0189] Before receiving the query request and the device information sent by any second terminal that has not scanned the Bluetooth hotspot emitted by the electrical device, the device information about the electrical device itself sent by the second terminal can be received, and a binding relationship between the electrical device and the second account can be established based on the device information.
[0190] In an exemplary embodiment of the present application, after any terminal (for example, a first terminal and a second terminal) establishes corresponding accounts (for example, a first account and a second account) in the server, it can scan surrounding Bluetooth hotspots to search for the Bluetooth of the electrical device it wants to connect to, and after scanning the Bluetooth of the electrical device it wants to connect to, it can authenticate with the electrical device and establish a Bluetooth connection with the electrical device after the authentication is successful; and the terminal sends the device information of the electrical device to the server, so that the server binds the registered account with the current electrical device according to the device information.
[0191] In an exemplary embodiment of the present application, after the server queries the Bluetooth connection status of the electrical device, when sending a notification message to the second terminal, it can be sent to the second terminal through one or more methods such as mobile phone text messages, WeChat messages, reminder messages of a preset platform, mini-program messages, emails, etc. There is no limitation on the specific sending form, and any communication method that can achieve the sending of notification information is acceptable.
[0192] In an exemplary embodiment of the present application, the method may further include:
[0193] Receiving a disconnection request sent by the second terminal and device information of the electrical device itself; the disconnection request can be used to request the electrical device to disconnect the already connected Bluetooth connection;
[0194] The corresponding electrical device is queried according to the device information, and a disconnection command is issued to the queried electrical device according to the disconnection request.
[0195] In the exemplary embodiment of the present application, the solution realizes remote control and flexible control of the Bluetooth connection of the electrical equipment, thereby improving the user experience.
[0196] In an exemplary embodiment of the present application, after issuing a disconnection command to the queried electrical device according to the disconnection request, the method may further include:
[0197] Receive the current Bluetooth connection status of the electrical device reported by the electrical device;
[0198] When the current Bluetooth connection state of the electrical device is an idle state, information that the electrical device is in the idle state may be sent to the second terminal.
[0199] In an exemplary embodiment of the present application, the server promptly feeds back information that the electrical device is in an idle state to the terminal, so that a reliable terminal that needs to establish a Bluetooth connection with the electrical device can establish a Bluetooth connection with the electrical device in a timely manner.
[0200] The present application embodiment also provides a server 3, such as Figure 7 As shown, it may include a third processor 31 and a third computer-readable storage medium 32, wherein the third computer-readable storage medium 32 stores a third instruction. When the third instruction is executed by the third processor 31, any one of the above-mentioned server-side Bluetooth pairing processing methods may be implemented.
[0201] In the exemplary embodiments of the present application, any of the aforementioned embodiments of the Bluetooth pairing processing method applied to the server side can be applied to the server embodiment, and will not be described one by one here.
[0202] In an exemplary embodiment of the present application, Figure 2 As shown, the following takes the scheme of sending notification information to the server when the air conditioner and the mobile phone are connected by Bluetooth as an example to provide an embodiment of the present application. The relevant process may include steps 1-8:
[0203] 1. After mobile phone A registers server account A, it scans the surrounding Bluetooth hotspots and successfully connects to the air conditioner through authentication;
[0204] 2. Mobile phone A sends the air conditioner's SN barcode and Bluetooth MAC address to the server to establish a binding relationship with account A;
[0205] 3. After mobile phone B registers server account B, it scans the surrounding Bluetooth hotspots and successfully connects to the air conditioner through authentication;
[0206] 4. Mobile phone B sends the air conditioner's SN barcode and Bluetooth MAC address to the server to establish a binding relationship with account A;
[0207] 5. Mobile phone B is paired with the air conditioner via Bluetooth;
[0208] 6. The air conditioner reports the account ID of mobile phone B (the account ID can be left blank if it is connected by a third-party software) and the Bluetooth MAC address of the mobile phone, and informs the server that the Bluetooth has been connected;
[0209] 7. Mobile phone A finds that it cannot find the Bluetooth hotspot, so it reports the air conditioner's SN barcode and Bluetooth MAC address to query the air conditioner's Bluetooth connection status;
[0210] 8. The server returns the pairing information between the air conditioner and mobile phone B, which may include the account ID of mobile phone B and the Bluetooth MAC address of mobile phone B.
[0211] In an exemplary embodiment of the present application, a mini-program interface can be provided to prompt the user of the current pairing status of the air-conditioning device, such as whether the Bluetooth is idle and can be connected, or whether the Bluetooth has been paired with a mobile device, so as to improve the user's usage experience and avoid the user mistakenly believing that there is a product problem and leading to complaints when the user cannot find the Bluetooth hotspot.
[0212] In an exemplary embodiment of the present application, Figure 8 As shown, the following takes the scheme that the air conditioner and the mobile phone send a notification message to the server when the Bluetooth connection is established, and another terminal requests to disconnect the Bluetooth connection as an example to provide another embodiment of the present application. The relevant process may include steps 01-08:
[0213] 001. After registering a server account, mobile phone A scans the surrounding Bluetooth hotspots and successfully connects to the air conditioner through authentication;
[0214] 002. Mobile phone A sends the air conditioner's SN barcode and Bluetooth MAC address to the server to establish a binding relationship with account A;
[0215] 003. Mobile phone C connected to the air conditioner Bluetooth hotspot, causing the Bluetooth hotspot to disappear;
[0216] 004. The air conditioner reports the account ID of the connected mobile phone C (the account ID can be left blank if it is a third-party software connection) and the mobile phone Bluetooth MAC address, and informs the server that the Bluetooth has been connected;
[0217] 005. Mobile phone user B registers a server account and intends to connect to the air conditioner Bluetooth binding account, but cannot find the Bluetooth hotspot;
[0218] 006. Mobile phone A reports the air conditioner's SN barcode and Bluetooth MAC address to query the device's Bluetooth connection status;
[0219] 007. The server returns the pairing information between the air conditioner and mobile phone C, including the account ID of mobile phone C and the Bluetooth MAC address of the mobile phone;
[0220] 008. Mobile phone A sends the air conditioner SN barcode information to the server, requesting to disconnect the Bluetooth connection with other mobile phones;
[0221] 009. The server sends a command to notify the air conditioner to actively disconnect the Bluetooth, and at the same time sends the ID of the account A requesting the disconnection;
[0222] 010. The air conditioner Bluetooth sends A's account ID to mobile phone C, informing mobile phone C that it needs to disconnect Bluetooth due to A's request. After sending, Bluetooth is disconnected;
[0223] 011. Report to the server that Bluetooth is in idle state;
[0224] 012. The server informs mobile phone A that the air conditioner's Bluetooth has been disconnected and is in idle state. At this time, mobile phone B can bind the air conditioner to the account.
[0225] The above description is only a preferred embodiment of the embodiment of the present application, and does not limit the patent scope of the embodiment of the present application. All equivalent structural changes made under the concept of the embodiment of the present application using the description and drawings of the embodiment of the present application, or directly / indirectly used in other related technical fields are included in the patent protection scope of the embodiment of the present application.
Claims
1. A Bluetooth pairing processing method, characterized in that: Applied to the electrical equipment side; the method comprises: The Bluetooth hotspot is turned on and receives a Bluetooth connection request sent by any first terminal; Establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request; Sending a Bluetooth connected notification message to a preset server, the notification message including: first information of the first terminal, so that the server can send a notification message to a second terminal that cannot establish a Bluetooth connection with the electrical device; the notification message includes: Bluetooth connection status information of the electrical device; During the Bluetooth connection with the first terminal, receiving a disconnection command sent by the server, and disconnecting the Bluetooth connection with the first terminal according to the disconnection command, including: when the electrical device cannot establish a binding relationship with the account newly registered by the fourth terminal on the server due to the Bluetooth connection with the first terminal, receiving the disconnection command sent by the server and disconnecting the Bluetooth connection with the first terminal according to the disconnection command, and after the fourth terminal receives the notification from the server that the Bluetooth of the electrical device is in an idle state, binding with the account newly registered by the fourth terminal on the server; Wherein, the disconnect command is generated based on the following method: the fourth terminal communicates with the server through the third terminal so that the server queries the terminal that is currently connected to the electrical device through Bluetooth, the server sends the first information of the first terminal that is currently connected to the electrical device through Bluetooth to the third terminal, the third terminal sends a disconnect request to the server, and the server sends the disconnect command to the electrical device, wherein the third terminal is a reliable terminal that has registered an account on the server and is bound to the electrical device.
2. The Bluetooth pairing processing method according to claim 1, characterized in that: The method further comprises: Before establishing a Bluetooth connection with the first terminal according to the Bluetooth connection request, authentication is performed with the first terminal to establish a Bluetooth connection with the first terminal after successful authentication.
3. The Bluetooth pairing processing method according to claim 2, characterized in that: The method further comprises: After the initial authentication with the first terminal is successful and a Bluetooth connection is established, the device information of the device is sent to the first terminal, so that the first terminal sends the device information to the server, and the server establishes a binding relationship between the first account registered by the first terminal on the server and the electrical device based on the device information.
4. The Bluetooth pairing processing method according to claim 1, characterized in that: The method further comprises: Before disconnecting the Bluetooth connection with the first terminal according to the disconnect command, sending disconnection prompt information to the first terminal; After disconnecting the Bluetooth connection with the first terminal according to the disconnect command, the Bluetooth connection state of the device is reported to the server as an idle state.
5. An electrical device, characterized in that: It includes a first Bluetooth module, a first processor and a first computer-readable storage medium, wherein the first computer-readable storage medium stores a first instruction, and the first instruction is executed by the first processor to implement the Bluetooth pairing processing method as described in any one of claims 1-4.
6. A Bluetooth pairing processing method, characterized in that: Applied to the terminal side; the method comprises: Detecting a first control operation on the terminal, and starting to scan Bluetooth hotspots of electrical devices according to the first control operation; When the Bluetooth hotspot is scanned, a first mark is displayed on the terminal interface; a Bluetooth connection request is sent to the electrical device, and a Bluetooth connection is established with the electrical device; If the Bluetooth hotspot is not scanned, a second mark is displayed on the terminal interface; a preset server is requested to query the Bluetooth connection status of the electrical device, and the notification information returned by the server is displayed on the terminal interface; the notification information includes: the Bluetooth connection status information of the electrical device; the notification information is that the electrical device has established a Bluetooth connection; Acquiring device information of the electrical device input through a terminal interface; Detecting a third control operation on the terminal, and sending a disconnection request and device information of the electrical device to the server according to the third control operation; the disconnection request is used to request the electrical device to disconnect the current Bluetooth connection; wherein, when the fourth terminal cannot establish a binding relationship with the electrical device through an account newly registered on the server due to the Bluetooth connection between the electrical device and the first terminal, the disconnection request is generated based on the following method: the fourth terminal communicates with the server through the third terminal so that the server queries the terminal currently connected to the electrical device through Bluetooth, the server sends the first information of the first terminal currently connected to the electrical device through Bluetooth to the third terminal, and the third terminal sends the disconnection request to the server, wherein the third terminal is a reliable terminal that has registered an account on the server and is bound to the electrical device; After the fourth terminal receives notification from the server that the Bluetooth of the electrical device is in an idle state, the fourth terminal binds the electrical device to the account newly registered on the server.
7. The Bluetooth pairing processing method according to claim 6, characterized in that: The requesting a preset server to query the Bluetooth connection status of the electrical device includes: A query request is initiated to the server, and the device information of the electrical device is sent to the server, so that the server queries the Bluetooth connection status of the electrical device according to the device information.
8. The Bluetooth pairing processing method according to claim 6, characterized in that: Before starting to scan Bluetooth hotspots of electrical devices according to the first control operation, the method further includes: registering an account on the server through a preset platform on the terminal interface.
9. The Bluetooth pairing processing method according to claim 8, characterized in that: The method further comprises: After the first authentication with the electrical device is successful and a Bluetooth connection is established, obtaining device information about the electrical device sent by the electrical device and displaying it on the terminal interface; A second control operation on the terminal is detected, and the device information is sent to the server according to the second control operation, so that the server establishes a binding relationship between the account registered by the terminal on the server and the electrical device.
10. The Bluetooth pairing processing method according to claim 6, characterized in that: After sending the disconnection request and the device information of the electrical device to the server according to the third control operation, the method further includes: receiving information about the Bluetooth connection status of the electrical device returned by the server and displaying the information on the terminal interface; When the Bluetooth connection state of the electrical device is an idle state, a first control operation on the terminal is detected, and scanning of the Bluetooth hotspot of the electrical device is started according to the first control operation; or, information on the idle state is sent to another terminal so that the other terminal attempts a Bluetooth connection with the electrical device.
11. A terminal, characterized in that: It includes a second Bluetooth module, a second processor and a second computer-readable storage medium, wherein the second computer-readable storage medium stores a second instruction, and the second instruction is executed by the second processor to implement the Bluetooth pairing processing method as described in any one of claims 6-10.
12. A Bluetooth pairing processing method, characterized in that: Applied to the server side; the method comprises: Receiving notification information sent by the electrical device, the notification information including information that the electrical device has established a Bluetooth connection with any first terminal and first information about the first terminal; Receiving a query request and device information of the electrical device sent by any second terminal that has not scanned the Bluetooth hotspot of the electrical device, querying the Bluetooth connection status of the electrical device according to the query request and the device information, and sending notification information to the second terminal; the notification information includes: the Bluetooth connection status information of the electrical device; Receive a disconnect request and device information of the electrical device sent by the second terminal; the disconnect request is used to request the electrical device to disconnect the current Bluetooth connection; query the corresponding electrical device according to the device information, and send a disconnect command to the queried electrical device according to the disconnect request, including: when the fourth terminal cannot establish a binding relationship with the electrical device due to the Bluetooth connection between the electrical device and the first terminal, and the account newly registered on the server by the fourth terminal cannot establish a binding relationship with the electrical device, send the disconnect command to the electrical device to disconnect the Bluetooth connection with the first terminal, and inform the fourth terminal that the Bluetooth of the electrical device is in an idle state, and establish a binding relationship between the electrical device and the account newly registered on the server by the fourth terminal; Wherein, the disconnect command is generated based on the following method: the fourth terminal communicates with the server through the third terminal so that the server queries the terminal that is currently connected to the electrical device through Bluetooth, the server sends the first information of the first terminal that is currently connected to the electrical device through Bluetooth to the third terminal, the third terminal sends a disconnect request to the server, and the server sends the disconnect command to the electrical device, wherein the third terminal is a reliable terminal that has registered an account on the server and is bound to the electrical device.
13. The Bluetooth pairing processing method according to claim 12, characterized in that: The method further comprises: Before receiving the first information about the first terminal, receiving a first registration request from the first terminal, and providing an account registration interface to the first terminal according to the first registration request, so that the first terminal registers the first account through the account registration interface; and receiving device information of the electrical device sent by the first terminal, and establishing a binding relationship between the electrical device and the first account according to the device information; and / or, Before receiving a query request and device information of the electrical device sent by any second terminal that has not scanned the Bluetooth hotspot of the electrical device, receive a second registration request from the second terminal, and provide an account registration interface to the second terminal according to the second registration request, so that the second terminal registers a second account through the account registration interface; receive the device information of the electrical device sent by the second terminal, and establish a binding relationship between the electrical device and the second account according to the device information.
14. A server, characterized in that: It includes a third processor and a third computer-readable storage medium, wherein the third computer-readable storage medium stores a third instruction, and the third instruction is executed by the third processor to implement the Bluetooth pairing processing method as claimed in claim 12 or 13.
Citation Information
Patent Citations
Management method and device of Bluetooth connection resources
CN107548017A
Bluetooth communication method and Bluetooth communication apparatus of sharing channel based on cloud control
CN109309965A