Device information calibration method and household appliance
By automatically detecting and adjusting the MAC address of the air conditioner equipment, the connection problem caused by MAC address abnormality is solved, stable communication and uniqueness between the equipment is ensured, and maintenance costs are reduced.
Patent Information
- Application Number
- CN202410911633.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-07-09
AI Technical Summary
The abnormal MAC address of the air conditioner device leads to abnormal Bluetooth connection. The prior art does not involve re-detection and calibration of MAC address information, resulting in the inability to distinguish and establish an active connection when multiple devices are connected.
Provide a method for calibration of equipment information, including automatically querying MAC address information when the device is powered on, detecting abnormalities and adjusting, ensuring the correct MAC address of wireless communication module, regenerating the correct MAC address through interrelated MAC address rules, avoiding connections abnormal.
Ensure the correctness of the MAC address information of the air-conditioning equipment, avoid connection interruptions, ensure the uniqueness of Bluetooth hotspots, improve the connection stability and efficiency between devices, and reduce maintenance costs.
Smart Images

Figure CN118474081B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a device information calibration method and a household appliance. Background Art
[0002] MAC address, or media access control address, is a unique identifier for the physical address of a network device and is assigned by the manufacturer when the device leaves the factory. For air-conditioning equipment, built-in modules such as WIFI, Bluetooth module (Bluetooth) and Bluetooth low energy module (Bluetooth low energy) all have their own MAC addresses. However, due to human operational errors, incomplete backup of data replacement writing programs, etc., the MAC address of the air-conditioning equipment may be abnormal. During the Bluetooth connection between a mobile terminal such as a mobile phone and an air-conditioning device, if the order of the device's MAC address is incorrect, it may cause confusion when the paired device such as the mobile terminal generates a unique linkkey, thereby causing abnormal connection problems. This is because when the mobile phone connects to the device's Bluetooth, it uses the last three unfixed bytes of the MAC address to generate a unique linkkey for connection. If the MAC address order is reversed, the Bluetooth module linkkey generated by the same device may be consistent, making it impossible for the mobile phone to correctly distinguish and establish a connection.
[0003] In the production process of existing air-conditioning equipment, although the MAC address of the air-conditioning equipment is dynamically allocated or generated, it does not involve re-detection and calibration of the allocated MAC address information. Summary of the invention
[0004] In order to overcome the problems existing in the related art, one of the purposes of the present invention is to provide a device information calibration method, which can actively detect and verify whether the MAC address information of the device is abnormal, and perform calibration when an abnormality is found to ensure the uniqueness of the Bluetooth hotspot of the air-conditioning equipment, thereby avoiding connection abnormalities when multiple devices are connected.
[0005] A device information calibration method, comprising:
[0006] Automatically query the device's MAC address information when the device is powered on;
[0007] Check whether the MAC address information of the device is abnormal;
[0008] When an abnormality in the MAC address information of a device is detected, the MAC address information of the abnormal device is adjusted to complete the calibration;
[0009] The MAC address information includes a MAC address of at least one wireless communication module, and the MAC address of each wireless communication module is generated based on a predetermined MAC address generation rule.
[0010] This calibration method can be applied to the calibration process of the MAC address of the air-conditioning equipment. By querying the MAC address information of the air-conditioning equipment and dynamically adjusting the MAC information of the abnormal device, the calibration of the abnormal air-conditioning equipment MAC can be completed. This method can ensure the correctness of the device MAC information and ensure that the MAC address information of the air-conditioning equipment is correct when it is powered on. In the case of multiple devices, it is prevented that due to abnormal MAC addresses, multiple devices cannot be distinguished by the mobile terminal and cannot establish an effective connection with the mobile terminal, thereby ensuring the uniqueness of the Bluetooth hotspot of the air-conditioning equipment and ensuring normal communication and connection with other devices.
[0011] In a preferred technical solution of the present invention, the wireless communication module includes a Bluetooth module, a WIFI module and a Bluetooth low energy module;
[0012] The MAC addresses of the modules are associated with each other, and when the MAC address of any module is wrong, the MAC address of the wrong module is reset according to the MAC addresses of other modules.
[0013] In a specific implementation, the MAC addresses of each module are associated with each other, and when the MAC address of any module is wrong, the MAC address of the wrong module is reset according to the MAC addresses of other modules: the MAC address of the Bluetooth module is the MAC address of the WIFI module plus 1, and the MAC address of the Bluetooth low energy module is the MAC address of the Bluetooth module plus 1.
[0014] In a preferred technical solution of the present invention, the detecting whether the MAC information of the device is abnormal includes:
[0015] Check whether the order of the MAC address of the Bluetooth module is reversed or abnormal, and check whether the MAC address of the Bluetooth module is wrong;
[0016] Check whether the order of the WIFI module's MAC address is reversed or abnormal, and check whether the MAC address of the Bluetooth module is wrong;
[0017] Check whether the order of the MAC address of the Bluetooth low energy module is reversed and whether the MAC address of the Bluetooth module is wrong.
[0018] By performing detailed sequence and correctness checks on the MAC address of each wireless communication module, the accuracy of device MAC address information can be significantly improved, and the connection stability and efficiency between devices can be improved.
[0019] In a preferred technical solution of the present invention, the step of detecting whether the order of the MAC address of the Bluetooth module is reversed and abnormal and detecting whether the MAC address of the Bluetooth module is wrong includes:
[0020] Verify that the first three bytes of the Bluetooth module's MAC address match the device's fixed identifier;
[0021] If so, it is determined that the MAC address sequence of the Bluetooth module is normal;
[0022] If not, verify that the last three bytes of the MAC address match the device's fixed identifier;
[0023] If so, it is determined that the MAC address of the Bluetooth module is abnormally in reverse order; if not, it is determined that the MAC address of the Bluetooth module is wrong.
[0024] Once the MAC address sequence is detected to be reversed or incorrect, the system will trigger the calibration mechanism. In the case of reverse sequence, the system will automatically adjust the MAC address sequence to the correct one. In the case of an incorrect MAC address, the device's system will generate a new, correct MAC address according to preset rules, or obtain relevant information from other modules of the device (such as the WIFI module or Bluetooth low energy module) to regenerate the MAC address.
[0025] In a preferred technical solution of the present invention, the step of detecting whether the order of the MAC address of the WIFI module is reversed and abnormal and detecting whether the MAC address of the Bluetooth module is wrong includes:
[0026] Verify that the first three bytes of the WIFI module's MAC address match the device's fixed identifier;
[0027] If so, it is determined that the MAC address sequence of the WIFI module is normal;
[0028] If not, verify whether the last three bytes of the WIFI module's MAC address match the device's fixed identifier;
[0029] If yes, it is determined that the MAC address of the WIFI module is abnormal in reverse order; if no, it is determined that the MAC address of the WIFI module is wrong;
[0030] The detecting whether the order of the MAC address of the Bluetooth low energy module is reversed and abnormal and detecting whether the MAC address of the Bluetooth low energy module is wrong includes:
[0031] Verify that the first three bytes of the Bluetooth low energy module's MAC address match the device's fixed identifier;
[0032] If so, it is determined that the MAC address sequence of the Bluetooth low energy module is normal;
[0033] If not, verify that the last three bytes of the Bluetooth low energy module's MAC address match the device's fixed identifier;
[0034] If so, it is determined that the MAC address sequence of the Bluetooth low energy module is reversed and abnormal; if not, it is determined that the MAC address of the Bluetooth low energy module is wrong.
[0035] Similarly, this application can greatly improve the accuracy and stability of communication between devices by performing detailed detection of the MAC addresses of WIFI and Bluetooth low energy modules.
[0036] In a preferred technical solution of the present invention, the step of adjusting the MAC address information of the abnormal device to complete the calibration includes:
[0037] After determining that the MAC address sequence of the Bluetooth module, the WIFI module or the Bluetooth low energy module is abnormally reversed, the sequence of the first three bytes and the last three bytes of the MAC address of each module is reversed.
[0038] In a preferred technical solution of the present invention, the step of adjusting the MAC address information of the abnormal device to complete the calibration includes:
[0039] After determining that the MAC address of the WIFI module or the Bluetooth low energy module has an abnormal reverse order, the order of the first three bytes and the last three bytes of the MAC address of the WIFI module or the Bluetooth low energy module is reversed;
[0040] If the MAC address of the Bluetooth module is normal, restart the device;
[0041] If the order of the MAC address of the Bluetooth module is abnormal, reverse the order of the first three bytes and the last three bytes of the MAC address of the Bluetooth module;
[0042] If the MAC address of the Bluetooth module is incorrect, reset the MAC address of the Bluetooth module according to the MAC address of the WIFI module or the Bluetooth low energy module.
[0043] In a preferred technical solution of the present invention, the step of adjusting the MAC address information of the abnormal device to complete the calibration includes:
[0044] After determining that the MAC address of the WIFI module is wrong or the MAC address of the Bluetooth low energy module is wrong;
[0045] If the MAC address of the Bluetooth module is normal, modify the MAC address of the WIFI module or the MAC address of the Bluetooth low energy module according to the MAC address of the Bluetooth module;
[0046] If the order of the MAC address of the Bluetooth module is abnormal, the order of the first three bytes and the last three bytes of the MAC address of the Bluetooth module is reversed, and the MAC address of the WIFI module or the MAC address of the Bluetooth low energy module is modified according to the MAC address of the Bluetooth module;
[0047] If the MAC address of the Bluetooth module is wrong, the MAC addresses of the Bluetooth module, the WIFI module, and the Bluetooth low energy module are set to a predetermined mode.
[0048] In a preferred technical solution of the present invention, after completing the calibration of the MAC address information of the device, when the device turns on the Bluetooth hotspot, the name of the hotspot is set with fixed characters plus the last six or four digits of the MAC address.
[0049] By using the last six or four digits of the MAC address as part of the hotspot name, each Bluetooth hotspot name is ensured to be unique, which avoids name conflicts that may occur when multiple devices turn on the hotspot at the same time. The combination of fixed characters and the MAC address makes the hotspot name both recognizable and easy to remember. Users can quickly identify and connect to the correct hotspot, improving connection efficiency and user experience.
[0050] A second object of the present invention is to provide a household appliance, which includes a main body, in which a processor and a memory are provided, and the memory stores a computer program, and when the computer program is executed by the processor, the method for calibrating the device information as described above is implemented.
[0051] The beneficial effects of the present invention are:
[0052] The present invention provides a device information calibration method, which includes: automatically querying the MAC address information of the device when the device is powered on; detecting whether the MAC address information of the device is abnormal; when the MAC address information of the device is detected to be abnormal, adjusting the MAC address information of the abnormal device to complete the calibration; wherein the MAC address information includes the MAC address of at least one wireless communication module, and the MAC address of each wireless communication module is generated based on a predetermined MAC address generation rule. By calibrating the MAC address, the method avoids communication interruption or error caused by address conflict, and ensures stable communication between the air-conditioning device and other devices; the automatic calibration function reduces the need for manual intervention, and reduces the maintenance cost and time cost of the equipment. In addition, actively detecting and verifying whether the MAC address information of the device is abnormal, and calibrating when an abnormality is found, can ensure the uniqueness of the Bluetooth hotspot of the air-conditioning device, thereby avoiding connection abnormality problems when multiple devices are connected.
[0053] The present application also provides a household appliance that can implement the above-mentioned device information calibration method. After power-on, the household appliance automatically calibrates the MAC address information of the device to ensure that the MAC information of the device is correct when it is powered on, thereby preventing the phenomenon of being unable to connect to a mobile terminal due to MAC address errors in the case of multiple devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flow chart of the device information calibration method provided in Embodiment 1 of the present invention;
[0055] Figure 2 It is a flowchart of the device information calibration method provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0056] The preferred embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.
[0057] MAC address, or media access control address, is a unique identifier for the physical address of a network device and is assigned by the manufacturer when the device leaves the factory. For air-conditioning equipment, built-in modules such as WIFI, Bluetooth module (Bluetooth) and Bluetooth low energy module (Bluetooth low energy) all have their own MAC addresses. However, due to human operational errors, incomplete backup of data replacement writing programs, etc., the MAC address of the air-conditioning equipment may be abnormal. During the Bluetooth connection between a mobile terminal such as a mobile phone and an air-conditioning device, if the order of the device's MAC address is incorrect, it may cause confusion when the paired device such as the mobile terminal generates a unique linkkey, thereby causing abnormal connection problems. This is because when the mobile phone connects to the device's Bluetooth, it uses the last three unfixed bytes of the MAC address to generate a unique linkkey for connection. If the MAC address order is reversed, the Bluetooth module linkkey generated by the same device may be consistent, making it impossible for the mobile phone to correctly distinguish and establish a connection.
[0058] In the production process of existing air-conditioning equipment, although the MAC address of the air-conditioning equipment is dynamically allocated or generated, it does not involve re-detection and calibration of the allocated MAC address information.
[0059] Based on this, the present application provides a device information calibration method.
[0060] Example 1
[0061] See also Figure 1 This embodiment provides a device information calibration method, the method comprising:
[0062] S100, automatically query the MAC address information of the device when the device is powered on; for example, when the air-conditioning device is powered on, the control system of the air-conditioning device will automatically query and record the MAC address information of each wireless communication module. This information is the identity of the device for communication in the network, which is crucial to ensure the stability and security of communication between devices.
[0063] S200, detecting whether the MAC address information of the device is abnormal;
[0064] Anomaly detection can be achieved in many ways, for example, by comparing the preset MAC address range stored in the device firmware, or verifying the validity of the MAC address through network query. In addition, the system will check whether the MAC addresses of each module are related to each other, because in a device, the MAC addresses of different communication modules usually follow a certain generation rule. For example: The allocation of MAC addresses is assigned by the manufacturer and consists of 6 bytes. The first 3 bytes are the identifiers assigned by IEEE to each applicant manufacturer, and the last three bytes are the interface identifiers assigned by the manufacturer. That is, the first 3 bytes of the device MAC address of the same type of device corresponding to each manufacturer are consistent.
[0065] S300, when detecting that the MAC address information of the device is abnormal, adjusting the MAC address information of the abnormal device to complete calibration;
[0066] The MAC address information includes a MAC address of at least one wireless communication module, and the MAC address of each wireless communication module is generated based on a predetermined MAC address generation rule.
[0067] The MAC address of the device is configured by the manufacturer before it leaves the factory, but there is a MAC order disorder problem during configuration, that is, the normal MAC order of a device should be 28:B7:7C:23:74:67, the first three bytes 28:B7:7C are the manufacturer's identifier, and the last three bytes 23:74:67 are the interface identifier of this device, and this identifier is inconsistent for each device. If the MAC order is reversed when the manufacturer leaves the factory, the MAC address order of the searched device is 67:74:23:7C:B7:28, the first three bytes become the interface identifier, and the last three bytes become the manufacturer identifier. Since the linkkey generated when the mobile phone connects to the Bluetooth device is generated by the last three bytes, if they are consistent, the generated Linkkey will be consistent. The linkkeys of multiple devices received by the mobile phone are consistent, resulting in pairing abnormalities. Therefore, the MAC address needs to be calibrated and changed.
[0068] This calibration method can be applied to the calibration process of the MAC address of the air-conditioning equipment. By querying the MAC address information of the air-conditioning equipment and dynamically adjusting the MAC information of the abnormal device, the calibration of the abnormal air-conditioning equipment MAC can be completed. This method can ensure the correctness of the device MAC information and ensure that the MAC address information of the air-conditioning equipment is correct when it is powered on. In the case of multiple devices, it is prevented that due to abnormal MAC addresses, multiple devices cannot be distinguished by the mobile terminal and cannot establish an effective connection with the mobile terminal, thereby ensuring the uniqueness of the Bluetooth hotspot of the air-conditioning equipment and ensuring normal communication and connection with other devices.
[0069] In the present embodiment of the invention, the wireless communication module includes a Bluetooth module, a WIFI module and a Bluetooth low energy module;
[0070] The MAC addresses of the modules are associated with each other, and when the MAC address of any module is wrong, the MAC address of the wrong module is reset according to the MAC addresses of other modules.
[0071] In a specific implementation, the MAC addresses of each module are related to each other, and when the MAC address of any module is wrong, the MAC address of the wrong module is reset according to the MAC addresses of other modules. In one implementation of the present application, the MAC address of the Bluetooth module is the MAC address of the WIFI module plus 1, and the MAC address of the Bluetooth low-power module is the MAC address of the Bluetooth module plus 1. For example, in the same device, the WIFI module, the Bluetooth module and the Bluetooth low-power module all have their unique MACs. The "MAC address of the Bluetooth module is the MAC address of the WIFI module plus 1, and the MAC of the Bluetooth low-power module is the MAC of the Bluetooth module+1" proposed in the present application document is a relationship set between them. For example, the MAC address of the WIFI module in the normal state is 28:B7:7C:11:22:32, then the MAC address of the Bluetooth module in the normal state is 28:B7:7C:11:22:33, and the MAC address of the Bluetooth low-power module is 28:B7:7C:11:22:34.
[0072] In this embodiment, the step of detecting whether the MAC information of the device is abnormal includes:
[0073] Check whether the order of the MAC address of the Bluetooth module is reversed or abnormal, and check whether the MAC address of the Bluetooth module is wrong;
[0074] Check whether the order of the WIFI module's MAC address is reversed or abnormal, and check whether the MAC address of the Bluetooth module is wrong;
[0075] Check whether the order of the MAC address of the Bluetooth low energy module is reversed and whether the MAC address of the Bluetooth module is wrong.
[0076] By performing detailed sequence and correctness checks on the MAC address of each wireless communication module, the accuracy of device MAC address information can be significantly improved, and the connection stability and efficiency between devices can be improved.
[0077] Further, the detecting whether the order of the MAC address of the Bluetooth module is reversed and abnormal and detecting whether the MAC address of the Bluetooth module is wrong includes:
[0078] Verify that the first three bytes of the Bluetooth module's MAC address match the device's fixed identifier; the first three bytes of this application can be the first three bytes of six groups of two-digit hexadecimal numbers.
[0079] If so, it is determined that the MAC address sequence of the Bluetooth module is normal;
[0080] If not, verify that the last three bytes of the MAC address match the device's fixed identifier;
[0081] If so, it is determined that the MAC address of the Bluetooth module is abnormally in reverse order; if not, it is determined that the MAC address of the Bluetooth module is wrong.
[0082] The device's system detects whether the order of the Bluetooth module's MAC address is correct. Since the MAC address is usually represented by six groups of two-digit hexadecimal numbers, the system checks whether the arrangement of these groups of numbers conforms to the standard format. If the order is detected to be reversed, it is considered abnormal.
[0083] Once the MAC address sequence is detected to be reversed or incorrect, the system will trigger the calibration mechanism. In the case of reverse sequence, the system will automatically adjust the MAC address sequence to the correct one. Usually, the first three and last three groups of six groups of two-digit hexadecimal numbers are swapped.
[0084] In the case of an incorrect MAC address, the device's system will generate a new, correct MAC address based on preset rules, or obtain relevant information from other modules of the device (such as a WIFI module or a Bluetooth low energy module) to regenerate the MAC address.
[0085] Furthermore, the detecting whether the order of the MAC address of the WIFI module is reversed and abnormal and the detecting whether the MAC address of the Bluetooth module is wrong include:
[0086] Verify that the first three bytes of the WIFI module's MAC address match the device's fixed identifier;
[0087] If so, it is determined that the MAC address sequence of the WIFI module is normal;
[0088] If not, verify whether the last three bytes of the WIFI module's MAC address match the device's fixed identifier;
[0089] If yes, it is determined that the MAC address of the WIFI module is abnormal in reverse order; if no, it is determined that the MAC address of the WIFI module is wrong;
[0090] Similar to the Bluetooth module, the MAC address sequence of the WIFI module is also checked. The system verifies whether the order of each group of numbers in the address is correct to prevent abnormalities caused by reversed order.
[0091] When the device starts, the system first obtains the MAC address of the Bluetooth module. Next, the system extracts the first three bytes of the Bluetooth module's MAC address and compares it with the device's fixed identifier (also known as OUI, Organizationally Unique Identifier). If the first three bytes completely match the device's fixed identifier, then the Bluetooth module's MAC address sequence can be considered normal and no further testing is required. If the first three bytes do not match, the system proceeds to the next step of verification, which is to extract the last three bytes of the MAC address. The system compares the last three bytes with the device's fixed identifier. If the last three bytes match the fixed identifier, then it can be determined that the Bluetooth module's MAC address sequence is reversed, that is, there is a reverse order anomaly. If both the first three bytes and the last three bytes of the MAC address do not match the device's fixed identifier, then the system determines that the Bluetooth module's MAC address is incorrect.
[0092] The detecting whether the order of the MAC address of the Bluetooth low energy module is reversed and abnormal and detecting whether the MAC address of the Bluetooth low energy module is wrong includes:
[0093] Verify that the first three bytes of the Bluetooth low energy module's MAC address match the device's fixed identifier;
[0094] If so, it is determined that the MAC address sequence of the Bluetooth low energy module is normal;
[0095] If not, verify that the last three bytes of the Bluetooth low energy module's MAC address match the device's fixed identifier;
[0096] If so, it is determined that the MAC address sequence of the Bluetooth low energy module is reversed and abnormal; if not, it is determined that the MAC address of the Bluetooth low energy module is wrong.
[0097] Similarly, after the device is started, the system obtains the MAC address of the Bluetooth low energy module. The system first checks whether the first three bytes of the MAC address match the fixed identifier of the device. If they match, it indicates that the MAC address sequence of the Bluetooth low energy module is normal. Verify the last three bytes of the MAC address of the Bluetooth low energy module (when the first three bytes do not match) If the first three bytes do not match, the system checks the last three bytes of the MAC address. If the last three bytes match the fixed identifier, it means that the MAC address sequence of the Bluetooth low energy module is reversed, and there is a reverse order anomaly. Determine that the MAC address of the Bluetooth low energy module is wrong (when both the first and last three bytes do not match). If neither the first three bytes nor the last three bytes of the MAC address of the Bluetooth low energy module match the fixed identifier, it indicates that the MAC address of the Bluetooth low energy module is wrong.
[0098] This application can greatly improve the accuracy and stability of communication between devices or between a device and a mobile terminal by performing detailed detection of the MAC addresses of the WIFI module and the Bluetooth low energy module.
[0099] Example 2
[0100] This embodiment is further described on the basis of Embodiment 1, and describes in detail how to adjust the MAC address information.
[0101] In this embodiment, adjusting the MAC address information of the abnormal device to complete the calibration includes:
[0102] After determining that the MAC address sequence of the Bluetooth module, the WIFI module or the Bluetooth low energy module is abnormally reversed, the sequence of the first three bytes and the last three bytes of the MAC address of each module is reversed.
[0103] Specifically, adjusting the MAC address information of the abnormal device to complete the calibration includes:
[0104] After determining that the MAC address of the WIFI module or the Bluetooth low energy module has an abnormal reverse order, the order of the first three bytes and the last three bytes of the MAC address of the WIFI module or the Bluetooth low energy module is reversed;
[0105] If the MAC address of the Bluetooth module is normal, restart the device;
[0106] If the order of the MAC address of the Bluetooth module is abnormal, reverse the order of the first three bytes and the last three bytes of the MAC address of the Bluetooth module;
[0107] If the MAC address of the Bluetooth module is incorrect, reset the MAC address of the Bluetooth module according to the MAC address of the WIFI module or the Bluetooth low energy module.
[0108] Furthermore, adjusting the MAC address information of the abnormal device to complete the calibration includes:
[0109] After determining that the MAC address of the WIFI module is wrong or the MAC address of the Bluetooth low energy module is wrong;
[0110] If the MAC address of the Bluetooth module is normal, modify the MAC address of the WIFI module or the MAC address of the Bluetooth low energy module according to the MAC address of the Bluetooth module;
[0111] If the order of the MAC address of the Bluetooth module is abnormal, the order of the first three bytes and the last three bytes of the MAC address of the Bluetooth module is reversed, and the MAC address of the WIFI module or the MAC address of the Bluetooth low energy module is modified according to the MAC address of the Bluetooth module;
[0112] If the MAC address of the Bluetooth module is wrong, the MAC addresses of the Bluetooth module, the WIFI module, and the Bluetooth low energy module are set to a predetermined mode. The predetermined mode of the present application may be an initial mode of the device.
[0113] Furthermore, after the calibration of the MAC address information of the device is completed, when the device turns on the Bluetooth hotspot, the name of the hotspot is set with fixed characters plus the last six or four digits of the MAC address.
[0114] By using the last six or four digits of the MAC address as part of the hotspot name, each Bluetooth hotspot name is ensured to be unique, which avoids name conflicts that may occur when multiple devices turn on the hotspot at the same time. The combination of fixed characters and the MAC address makes the hotspot name both recognizable and easy to remember. Users can quickly identify and connect to the correct hotspot, improving connection efficiency and user experience.
[0115] The following describes the detailed working process of a device information calibration method of the present application.
[0116] See also Figure 2 , get the correspondence between the device query MAC sequence and the mobile phone query MAC sequence, similar to Figure 2 .exist Figure 2 And in the following description, BT represents a Bluetooth module; WIFI represents a WIFI module, and BLE represents a Bluetooth low energy module.
[0117] Under normal circumstances, the relationship between the MAC addresses of WIFI, BT and BLE is that the MAC address of BT is the MAC address of WIFI + 1, and the MAC address of BLE is the MAC address of BT + 1.
[0118] In the above example, the order of the MAC address read by the device system is consistent with that displayed by the mobile phone, that is, the first three digits should be fixed when reading the device's MAC address. When the device is powered on, query the MAC address information of the device BT and verify whether the first three bytes of the address are 28:B7:7C. If they are consistent, the MAC address sequence of BT is normal. Otherwise, verify whether the last three bytes of the address are 28:B7:7C. If they are consistent, the MAC address sequence of BT is abnormal; if they are still inconsistent, the MAC address information of BT is wrong.
[0119] Then determine the MAC address information of WIFI and BLE. After querying, determine whether the first three bytes of the address are 28:B7:7C. If they are consistent, the MAC address information of WIFI and BLE is normal. At this time, process it according to the status of BT.
[0120] If the BT MAC address information is normal, no processing is performed.
[0121] If the BT MAC address sequence is abnormal: Reverse the sequence of the BT MAC address and restart the device to make the new MAC address take effect.
[0122] If the BT MAC address information is incorrect: Set the BT MAC address to the WIFI MAC address + 1, and restart the device to make the new MAC address take effect.
[0123] If they are inconsistent, verify whether the last three bytes of the MAC addresses of WIFI and BLE are 28:B7:7C. If they are consistent, it is determined that the order of the MAC address information of WIFI and BLE is abnormal. After flipping the order of the MAC addresses of WIFI and BLE, process it according to the status of BT.
[0124] If the BT's MAC address information is normal, then restart the device to make the new MAC address take effect.
[0125] If the BT MAC address sequence is abnormal: Reverse the sequence of the BT MAC address and restart the device to make the new MAC address take effect.
[0126] If the BT MAC address information is incorrect: Set the BT MAC address to the WIFI MAC address + 1, and restart the device to make the new MAC address take effect.
[0127] At the same time, if the last three bytes of WIFI and BLE are still not 28:B7:7C, it is determined that the MAC address information of WIFI and BLE is wrong. At this time, it is processed according to the status of BT:
[0128] If BT's MAC address information is normal: set WIFI's MAC address to BT's MAC address - 1, BLE's MAC address to BT's MAC address + 1, and restart the device to take effect
[0129] If the BT MAC address sequence is abnormal: after reversing the sequence of the first three bytes and the last three bytes of the BT MAC address, set the WIFI MAC address to the BT MAC address -1, and the BLE MAC address to the BT MAC address +1, and restart the device to make the new MAC address take effect.
[0130] BT's MAC address information is incorrect: Set the MAC addresses of BT, WIFI, and BLE to default, and restart the device to make the new MAC address take effect.
[0131] When the device information calibration method is applied to the MAC address calibration of the air conditioner, the air conditioner can calibrate the MAC address information during the Bluetooth connection. If there is an abnormality during the calibration process, the user is prompted with a voice such as "the air conditioner is calibrating the device information, please wait". After the device information calibration is completed, the user is prompted with a voice such as "the device information repair is completed, and it will restart after 1 second" before the repair is completed and the restart is completed.
[0132] After the air conditioner is repaired, it will automatically connect to the Bluetooth device that the user last requested to connect to ensure the stability of the Bluetooth device connection.
[0133] After completing the MAC information calibration, when the air conditioner turns on the Bluetooth hotspot, the hotspot name is set with fixed characters + the last six digits / last four digits of MAC, such as GR-BT_AC-{last four digits of MAC}. Because the MAC of each air conditioner is different, ensure that the Bluetooth hotspot name of the air conditioner is unique.
[0134] Example 3
[0135] A second object of the present invention is to provide a household appliance, which includes a main body, in which a processor and a memory are provided, and the memory stores a computer program, and when the computer program is executed by the processor, the method for calibrating the device information as described above is implemented.
[0136] The household appliance of the present application may be an air conditioner, a refrigerator or other products. The household appliance automatically calibrates the MAC address information of the device after powering on, ensuring that the MAC information of the device is correct when it is powered on, and preventing the phenomenon of being unable to connect to the mobile terminal due to MAC address errors in the case of multiple devices.
[0137] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0138] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. Unless otherwise stated, the above terms have no special meaning and therefore cannot be understood as limiting the scope of protection of this application.
[0139] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A device information calibration method, characterized in that: include: Automatically query the device's MAC address information when the device is powered on; Detecting whether the MAC address information of the device is abnormal; wherein detecting whether the MAC address information of the device is abnormal includes: verifying the validity of the MAC address by comparing with a preset MAC address range stored in the device firmware, or by querying the network; and also checking whether the MAC addresses of various modules are related to each other; When an abnormality in the MAC address information of a device is detected, the MAC address information of the abnormal device is adjusted to complete the calibration; The MAC address information includes a MAC address of at least one wireless communication module, and the MAC address of each wireless communication module is generated based on a predetermined MAC address generation rule.
2. The device information calibration method according to claim 1, characterized in that: The wireless communication module includes a Bluetooth module, a WIFI module and a Bluetooth low energy module; Among them, the MAC addresses of each module are related to each other, and when the MAC address of any module is wrong, the MAC address of the wrong module is reset according to the MAC addresses of other modules; The MAC address of the Bluetooth module is the MAC address of the WIFI module plus 1, and the MAC address of the Bluetooth low energy module is the MAC address of the Bluetooth module plus 1.
3. The device information calibration method according to claim 2, characterized in that: The detecting whether the MAC information of the device is abnormal includes: Check whether the order of the MAC address of the Bluetooth module is reversed or abnormal, and check whether the MAC address of the Bluetooth module is wrong; Check whether the order of the WIFI module's MAC address is reversed or abnormal, and check whether the MAC address of the Bluetooth module is wrong; Check whether the order of the MAC address of the Bluetooth low energy module is reversed and whether the MAC address of the Bluetooth module is wrong.
4. The device information calibration method according to claim 3, characterized in that: The detecting whether the sequence of the MAC address of the Bluetooth module is reversed and abnormal and detecting whether the MAC address of the Bluetooth module is wrong includes: Verify that the first three bytes of the Bluetooth module's MAC address match the device's fixed identifier; If so, it is determined that the MAC address sequence of the Bluetooth module is normal; If not, verify that the last three bytes of the MAC address match the device's fixed identifier; If so, it is determined that the MAC address of the Bluetooth module is abnormally in reverse order; if not, it is determined that the MAC address of the Bluetooth module is wrong.
5. The device information calibration method according to claim 3, characterized in that: The detecting whether the sequence of the MAC address of the WIFI module is reversed and abnormal and detecting whether the MAC address of the Bluetooth module is wrong includes: Verify that the first three bytes of the WIFI module's MAC address match the device's fixed identifier; If so, it is determined that the MAC address sequence of the WIFI module is normal; If not, verify whether the last three bytes of the WIFI module's MAC address match the device's fixed identifier; If yes, it is determined that the MAC address of the WIFI module is abnormal in reverse order; if no, it is determined that the MAC address of the WIFI module is wrong; The detecting whether the order of the MAC address of the Bluetooth low energy module is reversed and abnormal and detecting whether the MAC address of the Bluetooth low energy module is wrong includes: Verify that the first three bytes of the Bluetooth low energy module's MAC address match the device's fixed identifier; If so, it is determined that the MAC address sequence of the Bluetooth low energy module is normal; If not, verify that the last three bytes of the Bluetooth low energy module's MAC address match the device's fixed identifier; If so, it is determined that the MAC address sequence of the Bluetooth low energy module is reversed and abnormal; if not, it is determined that the MAC address of the Bluetooth low energy module is wrong.
6. The device information calibration method according to claim 5, characterized in that: The adjusting the MAC address information of the abnormal device to complete the calibration includes: After determining that the MAC address sequence of the Bluetooth module, the WIFI module or the Bluetooth low energy module is abnormally reversed, the sequence of the first three bytes and the last three bytes of the MAC address of each module is reversed.
7. The device information calibration method according to claim 5, characterized in that: The adjusting the MAC address information of the abnormal device to complete the calibration includes: After determining that the MAC address of the WIFI module or the Bluetooth low energy module has an abnormal reverse order, the order of the first three bytes and the last three bytes of the MAC address of the WIFI module or the Bluetooth low energy module is reversed; If the MAC address of the Bluetooth module is normal, restart the device; If the order of the MAC address of the Bluetooth module is abnormal, reverse the order of the first three bytes and the last three bytes of the MAC address of the Bluetooth module; If the MAC address of the Bluetooth module is incorrect, reset the MAC address of the Bluetooth module according to the MAC address of the WIFI module or the Bluetooth low energy module.
8. The device information calibration method according to claim 1, characterized in that: The adjusting the MAC address information of the abnormal device to complete the calibration includes: After determining that the MAC address of the WIFI module is wrong or the MAC address of the Bluetooth low energy module is wrong; If the MAC address of the Bluetooth module is normal, modify the MAC address of the WIFI module or the MAC address of the Bluetooth low energy module according to the MAC address of the Bluetooth module; If the order of the MAC address of the Bluetooth module is abnormal, the order of the first three bytes and the last three bytes of the MAC address of the Bluetooth module is reversed, and the MAC address of the WIFI module or the MAC address of the Bluetooth low energy module is modified according to the MAC address of the Bluetooth module; If the MAC address of the Bluetooth module is wrong, the MAC addresses of the Bluetooth module, the WIFI module, and the Bluetooth low energy module are set to a predetermined mode.
9. The device information calibration method according to claim 1, characterized in that: After the device's MAC address information is calibrated, when the device turns on the Bluetooth hotspot, the hotspot name is set with fixed characters plus the last six or four digits of the MAC address.
10. A household appliance, characterized in that: The device comprises a main body, wherein a processor and a memory are provided in the main body, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method for calibrating device information as described in any one of claims 1 to 9 is implemented.
