Wireless connection method, wireless connection system, stove and range hood
By using Bluetooth devices in stoves and hoods to determine the best signal stability for wireless connection, the problem of misoperation between stoves and hoods in smart homes is solved, reducing operating costs and increasing operating costs User experience.
Patent Information
- Application Number
- CN202411202071.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-15
AI Technical Summary
In smart home environments, wireless connection between stoves and hoods is prone to misoperation, resulting in the device being connected to non-own devices, increasing operating costs and reducing user experience.
By setting up Bluetooth devices in the stove and hood, scanning, filtering and connecting methods are used to obtain signal values and device addresses, filter out candidate devices with the best signal stability, and establish wireless connections to reduce the risk of misoperation.
It effectively reduces the risk of misoperation when connecting equipment, reduces operating costs, and improves user experience.
Smart Images

Figure CN118972985A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a wireless connection method, a wireless connection system, a cooker and a range hood. Background Art
[0002] In the era of smart home, many kitchen appliances such as stoves and range hoods mainly communicate data through wireless interconnection to achieve the purpose of mutual linkage control. However, when binding the stove and range hood, if the neighbor and your own home use the same brand and model of equipment, it is easy to bind the stove or range hood that is not your own equipment, which may cause the risk of misoperation, which invisibly increases the operating cost and reduces the user experience. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a wireless connection method, a wireless connection system, a stove and a range hood, so as to reduce the risk of misoperation when connecting the equipment, thereby reducing operating costs and improving the user experience.
[0004] In the first aspect, an embodiment of the present invention provides a wireless connection method, which is applied to a first Bluetooth device, and the first Bluetooth device is set in a stove; the method includes: scanning connectable Bluetooth devices; screening out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; obtaining a signal value and a device address of the second Bluetooth device; screening out a device whose signal value is within a preset signal threshold range from the second Bluetooth device, and determining it as a candidate Bluetooth device; judging whether the number of candidate Bluetooth devices is equal to 1, and if not, obtaining the signal value of each candidate Bluetooth device multiple times, and determining the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determining the candidate Bluetooth device with the best signal stability as the target Bluetooth device; and establishing a wireless connection with the target Bluetooth device.
[0005] Furthermore, before the step of obtaining the signal value and device address of the second Bluetooth device, the method further includes: continuously scanning the device information of all second Bluetooth devices until the device information of all second Bluetooth devices obtained within a first preset number of consecutive times is the same.
[0006] Furthermore, before the step of screening out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determining them as candidate Bluetooth devices, the method also includes: S1: determining whether the signal values of all second Bluetooth devices are within an initial preset threshold range; S2: if so, determining the initial preset threshold range as the preset threshold range; S3: if not, determining whether the number of threshold range adjustments is less than or equal to the preset adjustment number; if so, updating the initial preset threshold range according to a preset calculation method; S4: repeating steps S1-S3 until the number of threshold range adjustments is greater than the preset adjustment number, and stopping establishing the wireless connection.
[0007] Further, the preset adjustment number includes a first preset adjustment number and a second preset adjustment number, the first preset adjustment number is less than the second preset adjustment number; the step of judging whether the threshold range adjustment number is less than or equal to the preset adjustment number; if so, updating the initial preset threshold range according to the preset calculation method includes: judging whether the threshold range adjustment number is less than or equal to the first preset adjustment number; if so, updating the initial preset threshold range according to the first preset calculation method; if not, judging whether the threshold range adjustment number is less than or equal to the second preset adjustment number; if so, updating the initial preset threshold range according to the second preset calculation method.
[0008] Furthermore, if the number of times the threshold range is adjusted is greater than a preset number of times, the step of stopping establishing the wireless connection includes: if the number of times the threshold range is adjusted is greater than a second preset number of times, stopping establishing the wireless connection.
[0009] Furthermore, the first preset calculation method is to subtract the first preset step from the initial preset threshold range to obtain an updated initial preset threshold range; the second preset calculation method is to subtract the second preset step from the initial preset threshold range to obtain an updated initial preset threshold range.
[0010] Furthermore, after the step of screening out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determining them as candidate Bluetooth devices, the method also includes: determining whether the number of candidate Bluetooth devices is equal to 1, and if so, determining the candidate Bluetooth device as the target Bluetooth device.
[0011] Furthermore, after the step of scanning the connectable Bluetooth devices, the method further includes: if any second Bluetooth device cannot be scanned, determining that the first Bluetooth device is faulty, and sending abnormal information to the host computer.
[0012] In the second aspect, an embodiment of the present invention provides a wireless connection method, which is applied to a second Bluetooth device, and the second Bluetooth device is set in the range hood. The method includes: when the second Bluetooth device is in an unbound state, starting Bluetooth broadcast; obtaining a Bluetooth signal sent by a first Bluetooth device; sending a device address to the first Bluetooth device according to the Bluetooth signal; and when receiving a connection signal sent by the first Bluetooth device, establishing a wireless connection with the first Bluetooth device.
[0013] In a third aspect, an embodiment of the present invention provides a wireless connection system, which is applied to a first Bluetooth device; the first Bluetooth device is arranged in a stove; the system comprises: a scanning module, which is used to scan connectable Bluetooth devices; a screening module, which is used to screen out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; an information acquisition module, which is used to obtain a signal value and a device address of the second Bluetooth device; a candidate Bluetooth device screening module, which is used to screen out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices, and determine them as candidate Bluetooth devices; a signal stability determination module, which is used to determine whether the number of candidate Bluetooth devices is equal to 1, and if not, to obtain the signal value of each candidate Bluetooth device multiple times, and determine the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determine the candidate Bluetooth device with the best signal stability as the target Bluetooth device; a target Bluetooth device connection module, which is used to establish a wireless connection with the target Bluetooth device.
[0014] In the fourth aspect, an embodiment of the present invention provides a wireless connection system, which is applied to a second Bluetooth device; the second Bluetooth device is arranged in the range hood; the system includes: a Bluetooth broadcast activation module, which is used to activate the Bluetooth broadcast when the second Bluetooth device is in an unbound state; a signal acquisition module, which is used to acquire the Bluetooth signal sent by the first Bluetooth device; an information sending module, which is used to send the device address to the first Bluetooth device according to the Bluetooth signal; and a pairing module, which is used to establish a wireless connection with the first Bluetooth device when receiving the connection signal sent by the first Bluetooth device.
[0015] In a fifth aspect, a stove includes a stove body and the above-mentioned wireless connection system applied to a first Bluetooth device; the first Bluetooth device is arranged in the stove body.
[0016] In a sixth aspect, a range hood includes a range hood body and the above-mentioned wireless connection system applied to a second Bluetooth device; the second Bluetooth device is arranged in the range hood body.
[0017] The embodiment of the present invention provides a wireless connection method, a wireless connection system, a cooker and a range hood, which are applied to a first Bluetooth device, and the first Bluetooth device is set in the cooker; the method includes: scanning connectable Bluetooth devices; screening out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; obtaining a signal value and a device address of the second Bluetooth device; screening out a device whose signal value is within a preset signal threshold range from the second Bluetooth device, and determining it as a candidate Bluetooth device; judging whether the number of candidate Bluetooth devices is equal to 1, if not, obtaining the signal value of each candidate Bluetooth device multiple times, and determining the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determining the candidate Bluetooth device with the best signal stability as the target Bluetooth device; and establishing a wireless connection with the target Bluetooth device. In this method, the first Bluetooth device in the cooker is connected to the second Bluetooth device in the range hood whose signal value is within the preset signal threshold range, and the second Bluetooth device starts Bluetooth broadcasting for the first Bluetooth device to obtain and screen, thereby reducing the risk of misconnection when wirelessly interconnecting between devices, thereby reducing operating costs, and improving user experience.
[0018] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0019] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A flowchart of a wireless connection method applied to a first Bluetooth device provided in Embodiment 1 of the present invention;
[0022] Figure 2 A flowchart for determining a preset threshold range provided in Embodiment 1 of the present invention;
[0023] Figure 3 A flowchart of a method for updating an initial preset threshold range according to a preset calculation method provided in Embodiment 1 of the present invention;
[0024] Figure 4A flowchart of a wireless connection method applied to a second Bluetooth device provided in Embodiment 2 of the present invention;
[0025] Figure 5 A schematic diagram of a wireless connection system applied to a first Bluetooth device provided in Embodiment 3 of the present invention;
[0026] Figure 6 A schematic diagram of a wireless connection system applied to a second Bluetooth device provided in Embodiment 4 of the present invention;
[0027] Figure 7 A schematic diagram of a cooker provided in Embodiment 5 of the present invention;
[0028] Figure 8 This is a schematic diagram of a range hood provided in Example 6 of the present invention.
[0029] Icons: 1-scanning module; 2-screening module; 3-information acquisition module; 4-candidate Bluetooth device screening module; 5-signal stability determination module; 6-target Bluetooth device connection module; 8-Bluetooth broadcast start module; 9-signal acquisition module; 10-information sending module; 11-pairing module; 12-stove body; 13-wireless connection system; 14-first Bluetooth device; 15-range hood body; 16-second Bluetooth device. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] The range hood and stove communicate with each other mainly through wireless interconnection to achieve the purpose of mutual linkage control. However, when the stove and range hood are connected, it is easy to connect to the range hood or stove of other neighbors. At this time, after-sales service is often required, which invisibly increases the company's operating costs and reduces users' trust in the brand. This situation is particularly common when the same brand and model of equipment are used in the entire building.
[0032] At present, the biggest problem with these wireless interconnection technologies for smoke stoves is that they are easily connected to the smoke stove equipment in other neighbors' homes during wireless interconnection, which poses a certain risk of misoperation.
[0033] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.
[0034] Embodiment 1:
[0035] Figure 1 This is a flow chart of a wireless connection method applied to a first Bluetooth device provided in Embodiment 1 of the present invention.
[0036] Reference Figure 1 The first Bluetooth device is set in the cooker, and the wireless connection method applied to the first Bluetooth device includes:
[0037] Step S101, scanning for connectable Bluetooth devices.
[0038] Here, after the first Bluetooth device is powered on for the first time, the Bluetooth scanning function is automatically turned on or by triggering a start button on the first Bluetooth device. After turning on the Bluetooth scanning, the first Bluetooth device can scan more than one Bluetooth broadcast channel to find a connectable Bluetooth device. After the first Bluetooth device starts the Bluetooth scanning function, it will last for a period of time. The device name of the connectable Bluetooth device is displayed on the first Bluetooth device.
[0039] Step S102: Filter out a second Bluetooth device in an unbound state from connectable Bluetooth devices.
[0040] Here, the first Bluetooth device and the second Bluetooth device are in the same space, such as a kitchen.
[0041] After the second Bluetooth device is powered on, the Bluetooth broadcast function is turned on automatically or by triggering a start button on the second Bluetooth device. The device name of the second Bluetooth device includes keywords such as "range hood" that can display device information. The first Bluetooth device can filter the second Bluetooth device from the connectable Bluetooth devices according to the device name.
[0042] The second Bluetooth device is set in the range hood. The second Bluetooth device in an unbound state means that the second Bluetooth device has not established a wireless connection with the first Bluetooth device, that is, the range hood has not established a wireless connection with any stove. The second Bluetooth device in a bound state cannot establish a connection with other first Bluetooth devices. There is at least one second Bluetooth device in an unbound state.
[0043] In one embodiment, before step S103, the method further includes:
[0044] The device information of all second Bluetooth devices is continuously scanned until the device information of all second Bluetooth devices acquired within a first preset number of consecutive times is the same.
[0045] Here, the first preset number is the number of continuous scans, which is preset according to actual conditions and can be set to 3.
[0046] Specifically, after the first Bluetooth device starts Bluetooth scanning, a list of connectable Bluetooth devices is obtained. The list of connectable Bluetooth devices includes the device information of all connectable Bluetooth devices. Second Bluetooth devices in an unbound state are screened out from the list of connectable Bluetooth devices to obtain a list of unbound second Bluetooth devices. The list of unbound second Bluetooth devices includes the device information of all second Bluetooth devices in an unbound state. Repeat the above steps until the number and device information of unbound second Bluetooth devices in the list of unbound second Bluetooth devices obtained for three consecutive times are the same, indicating that there are no unbound second Bluetooth devices whose information has not been obtained in the current range, and Bluetooth scanning can be stopped.
[0047] Step S103: Acquire the signal value and device address of the second Bluetooth device.
[0048] Here, the signal value is the RSSI (Received Signal Strength Index) value used to indicate the signal strength of the Bluetooth device, in dBm (decibels per milliwatt). It is usually a negative value, and generally the signal value of a Bluetooth device is between -80dBm and -50dBm. The larger the signal value, the closer the distance between the two devices.
[0049] When the first Bluetooth device scans the Bluetooth signal of the second Bluetooth device, the signal value and device information of the second Bluetooth device are determined.
[0050] Step S104: Screen out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determine them as candidate Bluetooth devices.
[0051] Here, the preset signal threshold range is preset according to actual conditions.
[0052] In one embodiment, referring to Figure 2 , before step S104, it also includes:
[0053] Step S1: Determine whether the signal values of all second Bluetooth devices are within an initial preset threshold range.
[0054] Specifically, the initial preset threshold range is preset at the factory and may be set to -60 dBm.
[0055] Step S2: If yes, determine the initial preset threshold range as the preset threshold range.
[0056] Here, if all signal values are within -60dBm, it means that a second Bluetooth device can be connected within the current initial preset threshold range, and then the initial preset threshold range is determined to be the preset threshold range, that is, the preset threshold range is -60dBm.
[0057] Step S3: If not, determine whether the threshold range adjustment times are less than or equal to the preset adjustment times; if yes, update the initial preset threshold range according to the preset calculation method.
[0058] Here, the initial value of the threshold range adjustment times is 0.
[0059] The preset adjustment times include a first preset adjustment times and a second preset adjustment times, and the first preset adjustment times is smaller than the second preset adjustment times.
[0060] In one embodiment, referring to Figure 3 In step S3, it is determined whether the number of threshold range adjustments is less than or equal to the preset number of adjustments; if so, the step of updating the initial preset threshold range according to the preset calculation method includes:
[0061] Step S301, determining whether the threshold range adjustment times is less than or equal to a first preset adjustment times.
[0062] Here, the first preset adjustment number may be set to 2.
[0063] Step S302: if yes, update the initial preset threshold range according to the first preset calculation method.
[0064] Here, the first preset calculation method is to subtract the first preset step length from the initial preset threshold range to obtain the updated initial preset threshold range, wherein the first preset step length is 1.
[0065] Assume that the initial preset threshold range is n. If the number of threshold range adjustment times is less than or equal to the first preset adjustment times, determine that the updated initial preset threshold range is n-1.
[0066] Step S303: if not, determine whether the threshold range adjustment times are less than or equal to a second preset adjustment times.
[0067] Here, the second preset adjustment number may be set to 3.
[0068] Step S304: if yes, update the initial preset threshold range according to the second preset calculation method.
[0069] Here, the second preset calculation method is to subtract the second preset step length from the initial preset threshold range to obtain the updated initial preset threshold range, wherein the second preset step length is 3.
[0070] Assume that the initial preset threshold range is n. If the threshold range adjustment times are greater than the first preset adjustment times and less than or equal to the second preset adjustment times, it is determined that the updated initial preset threshold range is n-3.
[0071] Step S4: Repeat steps S1-S3 until the threshold range adjustment times are greater than the preset adjustment times, and then stop establishing the wireless connection.
[0072] In one embodiment, step S4 includes:
[0073] If the threshold range adjustment times are greater than the second preset adjustment times, the wireless connection establishment is stopped.
[0074] Specifically, it is assumed that the initial preset threshold range is -60 dBm, and the number of threshold range adjustments is zero.
[0075] Determine whether the signal value of the second Bluetooth device is within -60dBm.
[0076] If yes, determine -60dBm as the preset threshold range.
[0077] If not, and the threshold range adjustment times 0 is less than the first preset adjustment times 2, it is determined that the updated initial preset threshold range is -61 dBm.
[0078] Determine whether the signal value of the second Bluetooth device is within -61dBm.
[0079] If all signal values are within -61dBm, -61dBm is determined as the preset threshold range.
[0080] If all signal values are not within -61 dBm, and the updated threshold range adjustment times 1 are less than the first preset adjustment times 2, then the updated initial preset threshold range is determined to be -62 dBm.
[0081] Determine whether the signal value of the second Bluetooth device is within -62dBm.
[0082] If all signal values are within -62dBm, -62dBm is determined as the preset threshold range.
[0083] If all signal values are not within -62 dBm, and the updated threshold range adjustment number 2 is equal to the first preset adjustment number 2, then the updated initial preset threshold range is determined to be -63 dBm.
[0084] Determine whether the signal value of the second Bluetooth device is within -63dBm.
[0085] If all signal values are within -63dBm, -63dBm is determined as the preset threshold range.
[0086] If all signal values are not within -63dBm, and the threshold range adjustment number 3 is greater than the first preset adjustment number 2, and the updated threshold range adjustment number 3 is equal to the second preset adjustment number 3, then the updated initial preset threshold range is determined to be -66dBm.
[0087] Determine whether the signal value of the second Bluetooth device is within -66dBm.
[0088] If all signal values are within -66dBm, -66dBm is determined as the preset threshold range.
[0089] If all signal values are not within -66dBm, and the updated threshold range adjustment times 4 are greater than the second preset adjustment times 3, it is determined that there is no candidate Bluetooth device that meets the requirements among all second Bluetooth devices, and the first Bluetooth device will no longer connect to the second Bluetooth device until the first Bluetooth device is powered off and restarted.
[0090] Step S105, determine whether the number of candidate Bluetooth devices is equal to 1. If not, obtain the signal value of each candidate Bluetooth device multiple times, and determine the signal stability of each candidate Bluetooth device based on the multiple acquired signal values, and determine the candidate Bluetooth device with the best signal stability as the target Bluetooth device.
[0091] Specifically, if there are multiple candidate Bluetooth devices that meet the requirements, the signal value of each candidate Bluetooth device is obtained five times in succession, and the signal stability of each candidate Bluetooth device is analyzed using the standard deviation method. The target Bluetooth device is the range hood corresponding to the stove.
[0092] In one embodiment, after step S104, the method further includes:
[0093] It is determined whether the number of candidate Bluetooth devices is equal to 1, and if so, the candidate Bluetooth device is determined to be a target Bluetooth device.
[0094] Here, if there is only one candidate Bluetooth device, the candidate Bluetooth device is determined to be the target Bluetooth device.
[0095] Step S106: establishing a wireless connection with the target Bluetooth device.
[0096] In one embodiment, after step S101, the method further includes:
[0097] If any second Bluetooth device cannot be scanned, it is determined that the first Bluetooth device is faulty and an abnormality message is sent to the host computer.
[0098] Here, if any second Bluetooth device cannot be scanned, the first Bluetooth device is abnormal, and after sending abnormal information to the host computer, the scanning is stopped until the first Bluetooth device is powered on again.
[0099] The embodiment of the present invention provides a wireless connection method, which is applied to a first Bluetooth device, and the first Bluetooth device is set in a cooker; the method includes: scanning connectable Bluetooth devices; screening out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; obtaining a signal value and a device address of the second Bluetooth device; screening out a device whose signal value is within a preset signal threshold range from the second Bluetooth device, and determining it as a candidate Bluetooth device; judging whether the number of candidate Bluetooth devices is equal to 1, if not, obtaining the signal value of each candidate Bluetooth device multiple times, and determining the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determining the candidate Bluetooth device with the best signal stability as the target Bluetooth device; and establishing a wireless connection with the target Bluetooth device. In this method, the second Bluetooth device whose signal value is within the preset signal threshold range is connected through the first Bluetooth device in the cooker, thereby reducing the risk of misoperation when the device is connected, thereby reducing the operating cost, and improving the user experience.
[0100] Embodiment 2:
[0101] Figure 4 This is a flow chart of a wireless connection method applied to a second Bluetooth device provided in Embodiment 2 of the present invention.
[0102] Reference Figure 4 The second Bluetooth device is set in the range hood, and the wireless connection method applied to the second Bluetooth device includes:
[0103] Step S401: when the second Bluetooth device is in an unbound state, start Bluetooth broadcasting.
[0104] Here, the second Bluetooth device and the first Bluetooth device are in the same space, such as a kitchen.
[0105] When the second Bluetooth device is powered on and in an unbound state, the Bluetooth broadcast function is automatically turned on, and Bluetooth signals can be continuously sent through at least one Bluetooth broadcast channel.
[0106] Step S402: acquiring a Bluetooth signal sent by a first Bluetooth device.
[0107] Here, the Bluetooth signal sent by the first Bluetooth device is used to obtain the signal value and device address of the second Bluetooth device.
[0108] Step S403: sending the device address to the first Bluetooth device according to the Bluetooth signal.
[0109] Here, the second Bluetooth device sends a device address to the first Bluetooth device, and the first Bluetooth device determines a signal value of the second Bluetooth device according to a Bluetooth signal sent by the second Bluetooth device.
[0110] Step S404: when a connection signal sent by the first Bluetooth device is received, a wireless connection is established with the first Bluetooth device.
[0111] Here, when the first Bluetooth device determines that the current second Bluetooth device is the target Bluetooth device, the first Bluetooth device sends connection information to establish a wireless connection with the second Bluetooth device.
[0112] The embodiment of the present invention provides a wireless connection method, which is applied to a second Bluetooth device, and the first Bluetooth device is set in a range hood. In this method, the second Bluetooth device in the range hood starts Bluetooth broadcasting for the first Bluetooth device to obtain and filter, thereby reducing the risk of misoperation when the device is connected, thereby reducing operating costs and improving user experience.
[0113] Embodiment three:
[0114] Figure 5 This is a schematic diagram of a wireless connection system applied to a first Bluetooth device provided in Embodiment 3 of the present invention.
[0115] Reference Figure 5 The first Bluetooth device is set in the cooker. The wireless connection system applied to the first Bluetooth device includes:
[0116] The scanning module 1 is used to scan connectable Bluetooth devices.
[0117] The screening module 2 is used to screen out the second Bluetooth device in an unbound state from the connectable Bluetooth devices.
[0118] The information acquisition module 3 is used to obtain the signal value and device address of the second Bluetooth device.
[0119] The candidate Bluetooth device screening module 4 is used to screen out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determine them as candidate Bluetooth devices.
[0120] The signal stability determination module 5 is used to determine whether the number of candidate Bluetooth devices is equal to 1. If not, the signal value of each candidate Bluetooth device is obtained multiple times, and the signal stability of each candidate Bluetooth device is determined based on the multiple obtained signal values, and the candidate Bluetooth device with the best signal stability is determined as the target Bluetooth device.
[0121] The target Bluetooth device connection module 6 is used to establish a wireless connection with the target Bluetooth device.
[0122] In one embodiment, the screening module 2 is further used for:
[0123] The device information of all second Bluetooth devices is continuously scanned until the device information of all second Bluetooth devices acquired within a first preset number of consecutive times is the same.
[0124] In one embodiment, the candidate Bluetooth device screening module 4 is further configured to:
[0125] S1: Determine whether the signal values of all second Bluetooth devices are within an initial preset threshold range.
[0126] S2: If all signal values are within the initial preset threshold range, determine the initial preset threshold range as the preset threshold range.
[0127] S3: If all signal values are not within the initial preset threshold range, determine whether the threshold range adjustment times are less than or equal to the preset adjustment times.
[0128] S4: If the number of threshold range adjustment times is less than the preset number of adjustment times, the initial preset threshold range is updated according to the first preset calculation method.
[0129] S5: Repeat steps S1-S4 until the threshold range adjustment times equals the preset adjustment times.
[0130] S6: If the number of threshold range adjustments is equal to the preset number of adjustments, after updating the initial preset threshold range according to the second preset calculation method, repeat steps S1-S3 until the number of threshold range adjustments is greater than the preset number of adjustments.
[0131] Among them, the first preset calculation method is to subtract the first preset step from the initial preset threshold range to obtain an updated initial preset threshold range; the second preset calculation method is to subtract the second preset step from the initial preset threshold range to obtain an updated initial preset threshold range.
[0132] In one embodiment, the candidate Bluetooth device screening module 4 is further configured to:
[0133] It is determined whether the number of candidate Bluetooth devices is equal to 1, and if so, the candidate Bluetooth device is determined to be a target Bluetooth device.
[0134] In one embodiment, the scanning module 1 is further used for:
[0135] If any second Bluetooth device cannot be scanned, it is determined that the first Bluetooth device is faulty and an abnormality message is sent to the host computer.
[0136] The embodiment of the present invention provides a wireless connection system, which is applied to a first Bluetooth device, and the first Bluetooth device is set in a cooker; the method includes: scanning connectable Bluetooth devices; screening out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; obtaining a signal value and a device address of the second Bluetooth device; screening out a device whose signal value is within a preset signal threshold range from the second Bluetooth device, and determining it as a candidate Bluetooth device; judging whether the number of candidate Bluetooth devices is equal to 1, if not, obtaining the signal value of each candidate Bluetooth device multiple times, and determining the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determining the candidate Bluetooth device with the best signal stability as the target Bluetooth device; establishing a wireless connection with the target Bluetooth device. In this way, the second Bluetooth device whose signal value is within the preset signal threshold range is connected through the first Bluetooth device in the cooker, thereby reducing the risk of misoperation when the device is connected, thereby reducing the operating cost, and improving the user experience.
[0137] Embodiment 4:
[0138] Figure 6 This is a schematic diagram of a wireless connection system applied to a second Bluetooth device provided in Embodiment 4 of the present invention.
[0139] Reference Figure 6 The second Bluetooth device is set in the range hood, and the wireless connection system applied to the second Bluetooth device includes:
[0140] The Bluetooth broadcast enabling module 8 is used to enable Bluetooth broadcast when the second Bluetooth device is in an unbound state.
[0141] The signal acquisition module 9 is used to acquire the Bluetooth signal sent by the first Bluetooth device.
[0142] The information sending module 10 is used to send the device address to the first Bluetooth device according to the Bluetooth signal.
[0143] The pairing module 11 is configured to establish a wireless connection with the first Bluetooth device when receiving a connection signal sent by the first Bluetooth device.
[0144] The embodiment of the present invention provides a wireless connection system, which is applied to a second Bluetooth device, and the first Bluetooth device is set in a range hood. In this method, the second Bluetooth device in the range hood starts a Bluetooth broadcast for the first Bluetooth device to obtain and filter, thereby reducing the risk of misoperation when the device is connected, thereby reducing operating costs and improving user experience.
[0145] Embodiment five:
[0146] Figure 7 This is a schematic diagram of a stove provided in Embodiment 5 of the present invention.
[0147] Reference Figure 7 The stove includes a stove body 12 and also includes the above-mentioned wireless connection system 13 applied to the first Bluetooth device 14; the first Bluetooth device 14 is set in the stove body 12.
[0148] An embodiment of the present invention provides a cooker that connects a second Bluetooth device whose signal value is within a preset signal threshold range through a first Bluetooth device, thereby reducing the risk of misoperation when the devices are connected, thereby reducing operating costs and improving user experience.
[0149] Embodiment six:
[0150] Figure 8 This is a schematic diagram of a range hood provided in Example 6 of the present invention.
[0151] Reference Figure 8 The range hood includes a range hood body 15 , and also includes the above-mentioned wireless connection system 13 applied to a second Bluetooth device 16 ; the second Bluetooth device 16 is arranged in the range hood body 15 .
[0152] An embodiment of the present invention provides a method for a range hood to enable Bluetooth broadcasting through a second Bluetooth device for acquisition and screening by a first Bluetooth device, thereby reducing the risk of misoperation when the devices are connected, thereby reducing operating costs and improving user experience.
[0153] The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.
[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0155] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it 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, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0156] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0157] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0158] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A wireless connection method, characterized in that: Applied to a first Bluetooth device, the first Bluetooth device is set in a cooker; the method includes: Scan for connectable Bluetooth devices; Filter out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; Obtaining a signal value and a device address of the second Bluetooth device; Screening out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determining them as candidate Bluetooth devices; Determine whether the number of the candidate Bluetooth devices is equal to 1, and if not, obtain the signal value of each candidate Bluetooth device multiple times, and determine the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determine the candidate Bluetooth device with the best signal stability as the target Bluetooth device; A wireless connection is established with the target Bluetooth device.
2. The wireless connection method according to claim 1, characterized in that: Before the step of obtaining the signal value and device address of the second Bluetooth device, the method further includes: Continuously scan the device information of all the second Bluetooth devices until the device information of all the second Bluetooth devices acquired within a first preset number of consecutive times is the same.
3. The wireless connection method according to claim 1, characterized in that: Before the step of screening out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determining them as candidate Bluetooth devices, the method further includes: S1: Determine whether the signal values of all the second Bluetooth devices are within an initial preset threshold range; S2: If yes, determining the initial preset threshold range as the preset threshold range; S3: If not, determine whether the threshold range adjustment times are less than or equal to the preset adjustment times; if yes, update the initial preset threshold range according to the preset calculation method; S4: Repeat steps S1-S3 until the threshold range is adjusted more than the preset adjustment number, and then stop establishing the wireless connection.
4. The wireless connection method according to claim 3, characterized in that: The preset adjustment times include a first preset adjustment times and a second preset adjustment times, and the first preset adjustment times is less than the second preset adjustment times; The determining whether the threshold range adjustment times is less than or equal to a preset adjustment times; If yes, the step of updating the initial preset threshold range according to the preset calculation method comprises: Determining whether the threshold range adjustment times is less than or equal to the first preset adjustment times; If yes, updating the initial preset threshold range according to the first preset calculation method; If not, determining whether the threshold range adjustment times is less than or equal to the second preset adjustment times; If yes, the initial preset threshold range is updated according to a second preset calculation method.
5. The wireless connection method according to claim 4, characterized in that: The step of stopping establishing the wireless connection when the number of times the threshold range is adjusted is greater than the preset number of times includes: If the threshold range is adjusted times greater than the second preset adjustment times, the wireless connection establishment is stopped.
6. The wireless connection method according to claim 4, characterized in that: The first preset calculation method is to subtract a first preset step from the initial preset threshold range to obtain the updated initial preset threshold range; the second preset calculation method is to subtract a second preset step from the initial preset threshold range to obtain the updated initial preset threshold range.
7. The wireless connection method according to claim 1, characterized in that: After the step of screening out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determining them as candidate Bluetooth devices, the method further includes: It is determined whether the number of the candidate Bluetooth devices is equal to 1, and if so, the candidate Bluetooth device is determined to be the target Bluetooth device.
8. The wireless connection method according to claim 1, characterized in that: After the step of scanning for connectable Bluetooth devices, the method further includes: If any of the second Bluetooth devices cannot be scanned, it is determined that the first Bluetooth device is faulty, and an abnormality message is sent to the host computer.
9. A wireless connection method, characterized in that: Applied to a second Bluetooth device, the second Bluetooth device is set in a range hood, the method includes: When the second Bluetooth device is in an unbound state, starting Bluetooth broadcasting; Acquire a Bluetooth signal sent by a first Bluetooth device; Sending a device address to the first Bluetooth device according to the Bluetooth signal; When the connection signal sent by the first Bluetooth device is received, a wireless connection is established with the first Bluetooth device.
10. A wireless connection system, characterized in that: Applied to a first Bluetooth device; The first Bluetooth device is arranged in the cooker; and the system comprises: Scanning module, used to scan connectable Bluetooth devices; A screening module, used for screening out a second Bluetooth device in an unbound state from the connectable Bluetooth devices; An information acquisition module, used to acquire a signal value and a device address of the second Bluetooth device; A candidate Bluetooth device screening module, used to screen out devices whose signal values are within a preset signal threshold range from the second Bluetooth devices and determine them as candidate Bluetooth devices; a signal stability determination module, used to determine whether the number of the candidate Bluetooth devices is equal to 1, and if not, to obtain the signal value of each candidate Bluetooth device multiple times, and determine the signal stability of each candidate Bluetooth device based on the multiple obtained signal values, and determine the candidate Bluetooth device with the best signal stability as the target Bluetooth device; The target Bluetooth device connection module is used to establish a wireless connection with the target Bluetooth device.
11. A wireless connection system, characterized in that: Applied to a second Bluetooth device; the second Bluetooth device is set in a range hood; the system includes: A Bluetooth broadcast activation module, configured to activate Bluetooth broadcast when the second Bluetooth device is in an unbound state; A signal acquisition module, used to acquire a Bluetooth signal sent by a first Bluetooth device; An information sending module, used for sending a device address to the first Bluetooth device according to the Bluetooth signal; The pairing module is used to establish a wireless connection with the first Bluetooth device when receiving a connection signal sent by the first Bluetooth device.
12. A cooking appliance, characterized in that: It comprises a stove body, and also comprises the wireless connection system applied to a first Bluetooth device as claimed in claim 10; the first Bluetooth device is arranged in the stove body.
13. A range hood, characterized in that: It includes a range hood body, and also includes the wireless connection system applied to a second Bluetooth device as described in claim 11; the second Bluetooth device is arranged in the range hood body.
