WO2023184983A1 - Method, apparatus and system for direct connection control of air conditioner, and storage medium - Google Patents

Method, apparatus and system for direct connection control of air conditioner, and storage medium Download PDF

Info

Publication number
WO2023184983A1
WO2023184983A1 PCT/CN2022/130556 CN2022130556W WO2023184983A1 WO 2023184983 A1 WO2023184983 A1 WO 2023184983A1 CN 2022130556 W CN2022130556 W CN 2022130556W WO 2023184983 A1 WO2023184983 A1 WO 2023184983A1
Authority
WO
WIPO (PCT)
Prior art keywords
air conditioner
ble
connection
ble connection
current
Prior art date
Application number
PCT/CN2022/130556
Other languages
French (fr)
Chinese (zh)
Inventor
陈栋
丁威
吴炳良
张桂芳
Original Assignee
青岛海尔空调器有限总公司
青岛海尔空调电子有限公司
海尔智家股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海尔空调器有限总公司, 青岛海尔空调电子有限公司, 海尔智家股份有限公司 filed Critical 青岛海尔空调器有限总公司
Publication of WO2023184983A1 publication Critical patent/WO2023184983A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/89Arrangement or mounting of control or safety devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of air conditioning, for example, to methods, devices, systems and storage media for direct control of air conditioning.
  • Embodiments of the present disclosure provide a method, device, system and storage medium for direct control of air conditioners to solve technical problems that need to be expanded in air conditioner application scenarios.
  • the air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE.
  • the method includes:
  • the network attribute information of the local area network WIFI network is obtained, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can be configured according to the network attributes.
  • Information about connecting to the set LAN WIFI network is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can be configured according to the network attributes.
  • the device for air-conditioning direct connection control includes a processor and a memory storing program instructions.
  • the processor is configured to execute the above-mentioned method for air-conditioning direct connection when executing the program instructions. Control Method.
  • the storage medium stores program instructions, and when the program instructions are run, the above method for direct air-conditioning control is executed.
  • the system includes: an air conditioner, a terminal and a platform server configured with a communication IoT module of LAN WIFI and Bluetooth BLE, wherein,
  • the terminal is configured to send a BLE connection request to the air conditioner; when it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run a control application for direct connection of the air conditioner; in When the network attribute information of the local area network WIFI network is obtained, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can adjust the network attribute information according to the network attribute information. Connect to the set LAN WIFI network.
  • the terminal can establish a BLE connection with the air conditioner. Through the BLE connection, the terminal can directly control the air conditioner, and can send the network attribute information of the WIFI network to the air conditioner through the BLE connection.
  • the communication IoT module of the air conditioner can Automatically connect to the set WIFI network based on the network attribute information, so that when there is no reliable WIFI network in the area where the air conditioner is located, it can also connect to the corresponding set WIFI network through the network attribute information sent by the terminal for networking applications. While occupying terminal network resources, it expands the application scenarios of air conditioners and improves user experience.
  • Figure 1 is a schematic structural diagram of a direct-connected control system for air conditioning provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart of a direct connection control method for air conditioners provided by an embodiment of the present disclosure
  • Figure 3 is a schematic flowchart of a method for air conditioning information management provided by an embodiment of the present disclosure
  • Figure 4 is a schematic diagram of information interaction for direct connection control of air conditioners provided by an embodiment of the present disclosure
  • Figure 5 is a schematic structural diagram of a direct-connected control device for air conditioning provided by an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a direct-connected control device for an air conditioner provided by an embodiment of the present disclosure.
  • A/B means: A or B.
  • a and/or B means: A or B, or A and B.
  • the air conditioner is equipped with a LAN (Wireless Fidelity, WIFI) and Bluetooth (Bluetooth Low Energe, BLE) communication IoT module.
  • WIFI Wireless Fidelity
  • BLE Bluetooth Low Energe
  • the communication IoT module of the air conditioner can automatically connect to the set WIFI network based on the network attribute information, so that the area where the air conditioner is located
  • the terminal when the terminal establishes a BLE connection with the air conditioner, it can perform type coding, communication IoT module address information, and verification of the signal strength of the Bluetooth signal, further improving the security of the BLE connection and thus improving the direct connection control of the air conditioner. security.
  • FIG. 1 is a schematic structural diagram of a direct-connected control system for air conditioning provided by an embodiment of the present disclosure.
  • the direct connection control system for air conditioners includes: an air conditioner 100 equipped with a communication IoT module 110 of LAN WIFI and Bluetooth BLE, a terminal 200 and a platform server 300.
  • the terminal 200 can establish a Bluetooth connection with the air conditioner 100, and the terminal 200 can perform remote data communication with the platform server 300, and the platform server 300 can perform equipment management on the air conditioner 100.
  • the terminal 200 is configured to send a BLE connection request to the air conditioner 100; after determining that a BLE connection has been established with the air conditioner 100 according to the BLE connection request, run the control application for direct connection of the air conditioner; after obtaining the set local area network
  • the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner 100 is connected to the set LAN WIFI network according to the network attribute information.
  • the terminal 200 can obtain the current type code of the air conditioner 100 and the current communication IoT module address information based on the Bluetooth BLE broadcast sent out by the air conditioner 100 when it is powered on.
  • Each model series of air conditioners has a type code TypeID. Since the communication IoT module 110 in the air conditioner has a network communication function, the communication IoT module also has an address information that confirms the location of the network device, that is, the communication IoT module address information, which can be a media access control bit. Media Access Control Address (MAC) address information. In this way, the terminal 200 can obtain the current TypeID and MAC of the air conditioner 100 through the Bluetooth BLE broadcast sent out by the air conditioner 100 when it is powered on.
  • MAC Media Access Control Address
  • the platform server 300 can manage the information of air conditioners. When the air conditioners are produced, the platform server can record and store the equipment information of each air conditioner, including: machine number, model, IoT module MAC, etc., and can correspond one to one.
  • the terminal 200 can obtain the device information of the air conditioner 100 based on the obtained current TypeID and MAC, so that the platform server 300 can distinguish and display the air conditioners.
  • the terminal 200 After the terminal 200 searches or discovers the air conditioner 100, it can establish a BLE connection request with the air conditioner 100, that is, the terminal 200 can send a BLE connection request to the air conditioner 100. After the terminal 200 searches for the air conditioner 100, it can send a BLE connection request, or , after the terminal 200 searches for the air conditioner 100, it sends a BLE connection request to the air conditioner 100 according to the user instruction. In this way, the air conditioner 100 is the air conditioner to be connected, that is, the target air conditioner.
  • the terminal 200 if the terminal 200 has established a BLE connection with the target air conditioner 100, it is directly determined that the BLE connection has been established with the air conditioner. That is, if the recorded BLE connection includes the BLE connection with the air conditioner 100, it is determined that the BLE connection with the air conditioner 100 has been established.
  • the air conditioner 100 has established a BLE connection. In this way, the terminal 200 can directly run the control application for the direct connection of the air conditioner 100. That is, the control page of the air conditioner 100 can be presented on the terminal 200. After receiving the control instructions generated by the user based on the control page, the air conditioner 100 Take direct control.
  • the terminal 200 if the terminal 200 establishes a BLE connection with the air conditioner 100 for the first time, or the terminal 200 deletes the relevant information of the air conditioner 100, or the device information of the air conditioner 100 changes, that is, the recorded BLE connection does not include the BLE connection with the air conditioner 100.
  • connection when establishing a BLE connection with the air conditioner 100, one or more of the type coding information, the communication IoT module address information, and the signal strength of the Bluetooth signal need to be verified. After the verification is passed, the BLE connection can be established.
  • the terminal 200 can send the obtained current type code of the air conditioner and the current communication IoT module address information to the platform server 300.
  • the platform server 300 can combine the saved communication IoT module address information and the first In the type coding information, the first current type code corresponding to the current communication IoT module address information is found. If the current type code matches the first current type code, then it can be confirmed that the verification has passed, and the terminal 200 can The connection notification message is sent, thereby establishing a BLE connection between the terminal 200 and the air conditioner 100 .
  • the platform server 300 also saves the signal strength value of the Bluetooth signal between each model of air conditioner and the terminal at a set distance, that is, the air conditioner of the same model can perform the signal strength test of the Bluetooth signal, wherein the terminal can Set the location before setting the signal air conditioner, obtain the first signal strength value of the Bluetooth signal between the set model air conditioner, and send the first signal strength value and the first type code corresponding to the set model to the platform server Save, so that the platform server can match the type code of the air conditioner, the address information of the communication IoT module and the first signal strength value one-to-one and save it.
  • the terminal 200 when the terminal 200 establishes a BLE connection with the air conditioner 100, after the terminal 200 sends a BLE connection request to the air conditioner 100, it obtains the current signal strength value of the Bluetooth BLE signal between the terminal 200 and the air conditioner 100, and can obtain the current signal strength value and the current type code.
  • the address information of the current communication IoT module is synchronized to the platform server 300. In this way, the platform server 300 obtains the first current type code and the first current code that match the current communication IoT module address information, the first type coding information and the first signal strength value from the saved communication IoT module address information.
  • a connection notification message can be generated and sent to the terminal 200, thereby, After receiving the connection notification message returned by the platform server, the terminal 200 establishes a BLE connection with the air conditioner 100 .
  • the platform server 300 In the case that the current type code does not match the first current type code, or in the case that the first current signal strength value is not obtained, the platform server 300 generates a connection failure notification message and sends it to the terminal 200, so that the terminal 200 After receiving the unavailable connection notification message returned by the platform server, process the reminder that the air conditioner does not support local direct connection control.
  • the platform server 300 In the case where the current type code matches the first current type code, if the current signal strength value does not match the first current signal strength value, the platform server 300 generates a pending connection notification message and sends it to the terminal 200, so that the terminal 200 After receiving the connection pending notification message returned by the platform server, prompt processing is performed to move closer to the air conditioner position. Wherein, if the difference between the first current signal strength value and the current signal strength value is greater than the set value, it can be determined that the current signal strength value does not match the first current signal strength value. At this time, the terminal 200 may prompt to approach the air conditioner. 100 and then connect.
  • the terminal when the terminal establishes a BLE connection with the air conditioner, it can perform type coding, communication IoT module address information, and verification of the signal strength of the Bluetooth signal, further improving the security of the BLE connection and thus improving the direct connection control of the air conditioner. security.
  • the mobile terminal 200 can directly run the control application for direct connection of the air conditioner 100, that is, the control page of the air conditioner 100 can be presented on the terminal 200, and the control instructions generated by the user according to the control page are received.
  • the air conditioner 100 is directly controlled.
  • the air conditioner has network functions, and the communication IoT module is also configured with LAN WIFI. Therefore, after the terminal 200 establishes a BLE connection with the air conditioner 100, the terminal 200 obtains the network attribute information that sets the LAN WIFI network, for example. : After obtaining the WIFI network name and password, you can connect through BLE and send network attribute information to the air conditioner. In this way, the communication IoT module of the air conditioner can connect to the set LAN WIFI network based on the network attribute information. As a result, the air conditioner is directly connected to WIFI. The network does not occupy terminal network resources, thus not affecting the terminal control experience.
  • the network attribute information of the set WIFI network is sent to the air conditioner through the BLE connection. Therefore, the communication IoT module of the air conditioner can automatically connect to the set WIFI network based on the network attribute information, so that there is no WIFI to rely on in the area where the air conditioner is located.
  • the terminal 200 can send a disconnection BLE connection request to the air conditioner, so that the air conditioner runs in the BLE broadcast mode, that is, the terminal 200 exits the control page of the air conditioner 100 and disconnects the BLE connection with the air conditioner. , the air conditioner 100 returns to the BLE broadcast mode to prepare for the next connection control.
  • the terminal can directly control the air conditioner.
  • FIG. 2 is a schematic flowchart of a direct air-conditioning control method provided by an embodiment of the present disclosure.
  • the air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE, as shown in Figure 2.
  • the process for direct connection control of the air conditioner includes:
  • Step 201 Send a BLE connection request to the air conditioner.
  • BLE broadcast can be performed through the communication IoT module 110 .
  • the terminal obtains the current type code of the air conditioner and the current communication IoT module address information through the Bluetooth BLE broadcast sent out by the air conditioner when it is powered on, it can directly send a BLE connection request to the air conditioner, or the terminal obtains the current type code of the air conditioner and the current After communicating the IoT module address information and presenting the air conditioner information, it sends a BLE connection request to the air conditioner according to the received user instructions.
  • the platform server can record and store the equipment information of each air conditioner, including: machine number, model, IoT module MAC, etc., and can correspond one to one. That is, the platform server records the equipment information of each air conditioner and the address information of the communication IoT module when the air conditioner is generated. Therefore, in some embodiments, after the terminal obtains the current type code of the air conditioner and the current communication IoT module address information through the Bluetooth BLE broadcast emitted by the air conditioner when it is powered on, it can obtain the current type code and the current communication IoT module address information from the platform server.
  • the communication IoT module address information matches the air-conditioning equipment information, so that different air-conditioning equipment can be distinguished and displayed. In this way, the user instruction generated by the user based on the displayed air conditioning equipment information is received, and a BLE connection request is initiated to the air conditioner.
  • the air conditioner is the air conditioner to be connected and is the target air conditioner.
  • Step 202 After it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run the control application for direct connection of the air conditioner.
  • a BLE connection if a BLE connection has been established with the air conditioner, it is directly determined that the BLE connection has been established with the air conditioner. That is, if the recorded BLE connection includes a BLE connection with the air conditioner, it is determined that the BLE connection with the air conditioner has been established. BLE connection, in this way, the control application for direct connection of the air conditioner can be directly run, the control page of the air conditioner can be presented on the display interface, and the air conditioner can be directly controlled according to the control instructions generated by the user based on the control page.
  • the BLE connection with the air conditioner is established.
  • verification is required. Only after the verification passes can a BLE connection be established. Among them, the verification can be performed based on one or more of the type encoding information, the communication IoT module address information, and the signal strength of the Bluetooth signal.
  • the platform server records the equipment information of each air conditioner and the communication IoT module address information. Therefore, the obtained current type code and the current communication IoT module address information can be synchronized to the platform server. Therefore, the platform server can save Among the communication IoT module address information and the first type coding information, the first current type code corresponding to the current communication IoT module address information is found. If the current type code matches the first current type code, then, It is confirmed that the verification has passed, and the connection notification message can be sent. Therefore, after receiving the connection notification message returned by the platform server, a BLE connection is established with the air conditioner, which confirms that the BLE connection has been established with the air conditioner.
  • the Bluetooth signal strength test can be performed, that is, the first signal strength value of the Bluetooth signal between the air conditioner of the set model and the air conditioner is located at the set position; the first signal strength value can be obtained.
  • the signal strength value and the first type code corresponding to the set model are sent to the platform server for storage.
  • the test terminal is located x meters (such as 1 meter) in front of the air conditioner of the set model, detects the first signal strength value S0 of the Bluetooth BLE signal between the air conditioner and the air conditioner, and uploads it to the platform server, that is, the platform server can Correlate the type code of the air conditioner, the address information of the communication IoT module and the first signal strength value one-to-one and save them. In this way, verification can be performed based on the type encoding information, communication IoT module address information, and the signal strength of the Bluetooth signal.
  • the platform server obtains the address information matching the current communication IoT module from the saved communication IoT module address information, first type encoding information and first signal strength value The first current type code and the first current signal strength value, and if the current type code and the first current type code match, if the current signal strength value matches the first current signal strength value, a connection notification message is generated.
  • a reminder process is performed that the air conditioner does not support local direct connection control, wherein the platform server performs a warning process when the current type code does not match the first current type code. In this case, or if the first current signal strength value is not obtained, a connection failure notification message is generated.
  • prompt processing for moving close to the air conditioner location is performed, where the platform server, if the current type code matches the first current type code, if When the current signal strength value does not match the first current signal strength value, a pending connection notification message is generated.
  • the platform server determines that the TypeID corresponding to the current MAC information is incorrect, or if the first current signal strength value S0 corresponding to the current MAC information is not obtained, it can be determined that the terminal cannot establish a BLE connection with the air conditioner, and can send a connection failure notification message, thereby , it can be determined that the BLE connection cannot be established with the air conditioner, and the reminder processing that the air conditioner does not support local direct connection control can be processed.
  • the platform server determines that the TypeID corresponding to the current MAC information matches, and also obtains the first current signal strength value S0 corresponding to the current MAC information. However, the current signal strength value S1 does not match the first current signal strength value S0, and S0 and S1 The difference is not within the set range, it can be determined that S0 and S1 do not match, and a pending connection notification message is sent. In this way, it can be determined that the air conditioner is pending connection, and a prompt process for moving close to the air conditioner position is performed.
  • reminder processing can be carried out through voice, text, etc. reminders.
  • control page of the air conditioner will be displayed on the display interface, and the air conditioner will be directly controlled based on the control instructions generated by the user based on the control page. control.
  • Step 203 After obtaining the network attribute information of the set LAN WIFI network, send the network attribute information to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner connects to the set LAN WIFI network according to the network attribute information.
  • the air conditioner During the direct connection control of the air conditioner, if the network attribute information of the LAN WIFI network is obtained based on the user input information or the network received information, such as: WIFI network name and password, in this way, the established BLE Connect and send network attribute information to the air conditioner.
  • the air conditioner is equipped with a communication IoT module with LAN WIFI and Bluetooth BLE. Therefore, the LAN WIFI function of the communication IoT module can automatically connect to the set LAN WIFI network based on the network attribute information. In this way, the application scenarios of air conditioners are expanded and the user experience is improved without occupying terminal network resources and without affecting the direct connection control of the terminal.
  • a BLE connection can be established with the air conditioner, and the air conditioner can be directly controlled through the BLE connection, and the network attribute information for setting the WIFI network can be sent to the air conditioner through the BLE connection, so that the air conditioner
  • the communication IoT module can automatically connect to the set WIFI network according to the network attribute information, so that when there is no reliable WIFI network in the area where the air conditioner is located, it can also connect to the corresponding set WIFI network through the network attribute information sent by the terminal.
  • networked applications expand the application scenarios of air conditioners and improve user experience.
  • the type coding, communication IoT module address information, and signal strength verification of the Bluetooth signal can be performed, further improving the security of the BLE connection and thus improving the efficiency of direct air conditioner control. safety.
  • the air conditioner control application can be launched, and a disconnection BLE connection request can be sent to the air conditioner, causing the air conditioner to run in BLE broadcast mode in preparation for the next connection control.
  • the platform server can manage air conditioner information, data, etc. during the air conditioner generation process.
  • FIG. 3 is a schematic flowchart of a method for air conditioning information management provided by an embodiment of the present disclosure. As shown in Figure 3, the air conditioning information management process includes:
  • Step 301 During the air conditioner production process, the platform server records the equipment information of each air conditioner.
  • the air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE, and the device information includes: one or more of the machine code, signal, type code and communication IoT module MAC of the air conditioner.
  • Step 302 The platform server receives the first signal strength value of the Bluetooth signal reported by the mobile terminal and the set model of the air conditioner, where the distance between the air conditioner and the mobile terminal is set.
  • the mobile terminal is located 1 meter in front of the air conditioner.
  • the mobile terminal detects the first signal strength value of the Bluetooth signal between the mobile terminal and the set model of air conditioner, and reports it to the platform server.
  • Step 301 and step 302 can be run in parallel.
  • Step 303 The platform server stores the air conditioning equipment information and the corresponding first signal strength value in one-to-one correspondence.
  • the platform server realizes the management of air conditioning data information. Therefore, in the system as shown in Figure 1, the terminal can be a mobile terminal and can realize direct control of the air conditioner.
  • FIG. 4 is a schematic diagram of signaling interaction for direct connection control of air conditioners provided by an embodiment of the present disclosure. As shown in Figure 4, the process of direct connection control of air conditioners includes:
  • Step 401 After the air conditioner is powered on, it sends out a BLE broadcast
  • Step 402 The mobile terminal obtains the current type code TypeID of the air conditioner and the current MAC information of the communication IoT module according to the Bluetooth BLE broadcast sent out by the air conditioner when it is powered on.
  • Step 403 The mobile terminal obtains the device information corresponding to the air conditioner from the platform server based on the current TypeID and current MAC information, and distinguishes different air conditioners for display.
  • Step 404 According to receiving the user instruction, the mobile terminal sends a BLE connection request to the air conditioner.
  • the current air conditioner that receives the BLE connection request is the air conditioner to be connected and is the target air conditioner.
  • Step 405 Determine whether the recorded BLE connection includes the BLE connection with the current air conditioner? If yes, execute step 415; otherwise, execute step 406.
  • Step 406 The mobile terminal obtains the current signal strength value S1 of the Bluetooth BLE signal between the mobile terminal and the air conditioner, and sends the current S1, current TypeID and current MAC information to the platform server.
  • Step 407 The platform server obtains the first current TypeID and the first current signal strength value S0 corresponding to the current MAC information from the saved air-conditioning data information.
  • Step 408 Determine whether the first current signal strength value S0 exists? If yes, execute step 409; otherwise, execute step 413.
  • Step 409 Determine whether the current TypeID matches the first current TypeID? If yes, perform step 410; otherwise, perform step 413.
  • Step 410 Determine whether the current S0 and the current S1 match? If yes, go to step 411; otherwise, go to step 412.
  • Step 411 The platform server sends a connection notification message to the mobile terminal.
  • Step 412 The platform server sends a pending connection notification message to the mobile terminal.
  • Step 413 The platform server sends a connection failure notification message to the mobile terminal.
  • Step 414 After receiving the connection notification message returned by the platform server, the mobile terminal establishes a BLE connection with the air conditioner.
  • Step 415 The mobile terminal runs the control application for direct connection of the air conditioner.
  • Step 416 According to the user input information, the mobile terminal obtains the network attribute information for setting the local area network WIFI network.
  • Step 417 Through the BLE connection, the mobile terminal sends network attribute information to the air conditioner.
  • Step 418 The communication IoT module of the air conditioner connects to the set LAN WIFI network according to the network attribute information and performs network applications.
  • Step 419 When the mobile terminal receives the instruction to exit direct connection control, it stops running the control application for direct connection of the air conditioner, and sends a disconnection BLE connection request to the air conditioner.
  • Step 420 The air conditioner runs in BLE broadcast mode.
  • Step 421 When the mobile terminal receives the unavailable connection notification message returned by the platform server, it processes a reminder that the air conditioner does not support local direct connection control.
  • Step 422 After receiving the connection pending notification message returned by the platform server, the mobile terminal performs prompt processing to move closer to the air conditioner position.
  • the mobile terminal can establish a BLE connection with the air conditioner, and can directly control the air conditioner through the BLE connection, and can send the network attribute information of the WIFI network to the air conditioner through the BLE connection, thereby,
  • the communication IoT module of the air conditioner can automatically connect to the set WIFI network based on the network attribute information for networking applications. This expands the application scenarios of the air conditioner and improves the user experience without occupying terminal network resources.
  • the mobile terminal when the mobile terminal establishes a BLE connection with the air conditioner, it can perform type coding, communication IoT module address information, and verification of the signal strength of the Bluetooth signal, further improving the security of the BLE connection and thus improving the direct connection of the air conditioner. Controlled security.
  • a device for air conditioner direct connection control can be constructed.
  • FIG. 5 is a schematic structural diagram of a direct-connected control device for an air conditioner provided by an embodiment of the present disclosure.
  • the direct-connected control device for air conditioning can be applied in a terminal, as shown in Figure 5 , including: a request module 510, a control module 520 and a sending module 530.
  • the request module 510 is configured to send a BLE connection request to the air conditioner.
  • the control module 520 is configured to run a control application for direct connection of the air conditioner when it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request.
  • the sending module 530 is configured to, after obtaining the network attribute information of the set local area network WIFI network, send the network attribute information to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner is connected to the set according to the network attribute information.
  • LAN WIFI network
  • the method further includes: an acquisition module configured to acquire the current type code of the air conditioner and the current communication IoT module address information based on the Bluetooth BLE broadcast issued by the air conditioner when it is powered on.
  • control module 520 includes:
  • the acquisition unit is configured to acquire the current signal strength value of the Bluetooth BLE signal between the air conditioner and the air conditioner.
  • the synchronization unit is configured to synchronize the current signal strength value, as well as the current type code and the current communication IoT module address information to the platform server.
  • the establishment unit is configured to establish a BLE connection with the air conditioner upon receiving a connection notification message returned by the platform server; wherein the platform server obtains the saved communication IoT module address information, the first type encoding information and the first signal In the strength value, obtain the first current type code and the first current signal strength value that match the current communication IoT module address information, and if the current type code and the first current type code match, if the current signal strength value When matching the first current signal strength value, a connection notification message is generated.
  • a first reminder module configured to perform reminder processing that the air conditioner does not support local direct connection control when receiving an unavailable connection notification message returned by the platform server, wherein the platform server is currently If the type code does not match the first current type code, or if the first current signal strength value is not obtained, a connection failure notification message is generated.
  • a second reminder module configured to perform prompt processing for moving close to the air conditioner location upon receiving a notification message to be connected returned by the platform server, wherein the platform server determines the current type encoding and When the first current type code matches, if the current signal strength value does not match the first current signal strength value, a pending connection notification message is generated.
  • a disconnect module is further included, configured to send a disconnection BLE connection request to the air conditioner, so that the air conditioner runs in the BLE broadcast mode.
  • the method further includes: a test module configured to obtain a first signal strength value of the Bluetooth signal between the air conditioner of the set model and the air conditioner, where the air conditioner is located at the set position; and set the first signal strength value to The first type code corresponding to the model is sent to the platform server for storage.
  • the platform server records the equipment information of each air conditioner and the address information of the communication IoT module when the air conditioner is generated.
  • the device for direct control of the air conditioner can directly control the air conditioner through a BLE connection, and can send the network attribute information of the WIFI network to the air conditioner through the BLE connection, so that the air conditioner
  • the communication IoT module can automatically connect to the set WIFI network based on the network attribute information, so that when there is no reliable WIFI network in the area where the air conditioner is located, it can also connect to the corresponding set WIFI network through the network attribute information sent by the terminal.
  • Networked applications expand the application scenarios of air conditioners and improve user experience.
  • the embodiment of the present disclosure provides a device for direct control of air conditioners, the structure of which is shown in Figure 6, including:
  • the processor 1000 and the memory 1001 may also include a communication interface 1002 and a bus 1003. Among them, the processor 1000, the communication interface 1002, and the memory 1001 can communicate with each other through the bus 1003. Communication interface 1002 may be used for information transmission.
  • the processor 1000 can call logical instructions in the memory 1001 to execute the method for direct air-conditioning control in the above embodiment.
  • the above-mentioned logical instructions in the memory 1001 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
  • the memory 1001 can be used to store software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 1000 executes the program instructions/modules stored in the memory 1001 to execute functional applications and data processing, that is, to implement the method for direct air-conditioning control in the above method embodiment.
  • the memory 1001 may include a stored program area and a stored data area, where the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created according to the use of the terminal device, etc.
  • the memory 1001 may include a high-speed random access memory and may also include a non-volatile memory.
  • Embodiments of the present disclosure provide a direct-connection control device for air-conditioning, including: a processor and a memory storing program instructions.
  • the processor is configured to execute a direct-connection control method for air-conditioning when executing the program instructions.
  • An embodiment of the present disclosure provides an air conditioner, including the above-mentioned direct-connected control device for an air conditioner.
  • Embodiments of the present disclosure provide a storage medium that stores program instructions. When the program instructions are run, the above-mentioned method for air-conditioning direct connection control is executed.
  • Embodiments of the present disclosure provide a computer program product.
  • the computer program product includes a computer program stored on a storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, the computer is caused to execute The above is used for the direct connection control method of air conditioner.
  • An embodiment of the present disclosure provides a computer program.
  • the computer program When the computer program is executed by a computer, the computer implements the above method for air conditioner direct connection control.
  • the above-mentioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure.
  • the aforementioned storage media can be non-transitory storage media, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
  • a first component can be called a second component, and similarly, a second component can be called a first component, as long as all occurrences of "first component” are renamed consistently and all occurrences of "first component” are Just rename the “second component” consistently.
  • the first element and the second element are both elements, but may not be the same element.
  • the term “and/or” as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed items.
  • the term “comprise” and its variations “comprises” and/or “comprising” etc. refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these.
  • an element defined by the statement “comprises a" does not exclude the presence of additional identical elements in a process, method or apparatus including the stated element.
  • each embodiment may focus on its differences from other embodiments, and the same and similar parts among various embodiments may be referred to each other.
  • the relevant parts can be referred to the description of the method part.
  • the disclosed methods and products can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units may only be a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined. Either it can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • each functional unit in the embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more components for implementing the specified logical function(s).
  • Executable instructions may be included in the block.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two consecutive blocks may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.

Abstract

The present application relates to the technical field of air conditioners. Disclosed are a method, apparatus and system for direct connection control of an air conditioner, and a storage medium. The air conditioner is provided with a communication Internet of Things module of a local area network WiFi and Bluetooth (BLE). The method comprises: sending a BLE connection request to an air conditioner; under a condition that it is determined that a BLE connection with the air conditioner is established according to the BLE connection request, running a control application for direct connection of the air conditioner; and under a condition that network attribute information of a set local area network WiFi network is obtained, sending the network attribute information to the air conditioner by means of the BLE connection, so that the communication Internet of Things module of the air conditioner is connected to the set local area network WiFi network according to the network attribute information. Therefore, under the condition that terminal network resources are not occupied, application scenes of an air conditioner are expanded, and the user experience is also improved.

Description

用于空调直连控制的方法、装置、系统及存储介质Method, device, system and storage medium for air-conditioning direct connection control
本申请基于申请号为202210322297.8、申请日为2022年03月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with application number 202210322297.8 and a filing date of March 30, 2022, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application as a reference.
技术领域Technical field
本申请涉及空调技术领域,例如涉及用于空调直连控制的方法、装置、系统及存储介质。The present application relates to the technical field of air conditioning, for example, to methods, devices, systems and storage media for direct control of air conditioning.
背景技术Background technique
随着智能技术的普及,智能空调已是家居生活中不可缺少的设备,并且,也是智能家居网络中的一份子,可进行联网应用。目前,空调联网依靠所在区域的无线局域网WIFI网络,但是,本不是所有的应用场景中,空调所在区域都有可依靠的WIFI网络,因此,有些空调的联网控制,联网应用等都无法使用,也损害了用户体验。With the popularization of smart technology, smart air conditioners have become an indispensable device in home life, and they are also a part of the smart home network and can be used for networking applications. At present, air conditioner networking relies on the wireless LAN WIFI network in the area. However, not all application scenarios have reliable WIFI networks in the area where the air conditioner is located. Therefore, some air conditioner network controls, network applications, etc. cannot be used, and Damage to user experience.
发明内容Contents of the invention
为了对披露的实施例的一些方面有基本的理解,下面给出了简单的概括。所述概括不是泛泛评述,也不是要确定关键/重要组成元素或描绘这些实施例的保护范围,而是作为后面的详细说明的序言。In order to provide a basic understanding of some aspects of the disclosed embodiments, a simplified summary is provided below. This summary is not intended to be a general review, nor is it intended to identify key/important elements or delineate the scope of the embodiments, but is intended to serve as a prelude to the detailed description that follows.
本公开实施例提供了一种用于空调直连控制的方法、装置、系统和存储介质,以解决空调应用场景有待扩展的技术问题。所述空调配置有局域网WIFI和蓝牙BLE的通讯物联模组。Embodiments of the present disclosure provide a method, device, system and storage medium for direct control of air conditioners to solve technical problems that need to be expanded in air conditioner application scenarios. The air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE.
在一些实施例中,所述方法包括:In some embodiments, the method includes:
向所述空调发送BLE连接请求;Send a BLE connection request to the air conditioner;
在确定根据所述BLE连接请求,与所述空调已建立BLE连接的情况下,运行用于所述空调直连的控制应用;When it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run a control application for direct connection of the air conditioner;
在获取到设定局域网WIFI网络的网络属性信息的情况下,通过所述BLE连接,向所述空调发送所述网络属性信息,使得所述空调的所述通讯物联模组根据所述网络属性信息连接到所述设定局域网WIFI网络。When the network attribute information of the local area network WIFI network is obtained, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can be configured according to the network attributes. Information about connecting to the set LAN WIFI network.
在一些实施例中,所述用于空调直连控制的装置,包括处理器和存储有程序指令的存 储器,所述处理器被配置为在执行所述程序指令时,执行上述用于空调直连控制方法。In some embodiments, the device for air-conditioning direct connection control includes a processor and a memory storing program instructions. The processor is configured to execute the above-mentioned method for air-conditioning direct connection when executing the program instructions. Control Method.
在一些实施例中,所述存储介质,存储有程序指令,所述程序指令在运行时,执行上述用于空调直连控制的方法In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above method for direct air-conditioning control is executed.
在一些实施例中,所述系统,包括:配置有局域网WIFI和蓝牙BLE的通讯物联模组的空调、终端以及平台服务器,其中,In some embodiments, the system includes: an air conditioner, a terminal and a platform server configured with a communication IoT module of LAN WIFI and Bluetooth BLE, wherein,
所述终端,被配置为向所述空调发送BLE连接请求;在确定根据所述BLE连接请求,与所述空调已建立BLE连接的情况下,运行用于所述空调直连的控制应用;在获取到设定局域网WIFI网络的网络属性信息的情况下,通过所述BLE连接,向所述空调发送所述网络属性信息,使得所述空调的所述通讯物联模组根据所述网络属性信息连接到所述设定局域网WIFI网络。The terminal is configured to send a BLE connection request to the air conditioner; when it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run a control application for direct connection of the air conditioner; in When the network attribute information of the local area network WIFI network is obtained, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can adjust the network attribute information according to the network attribute information. Connect to the set LAN WIFI network.
本公开实施例提供的用于空调直连控制的方法、装置和系统,可以实现以下技术效果:The methods, devices and systems for direct air conditioning control provided by the embodiments of the present disclosure can achieve the following technical effects:
终端可与空调建立BLE连接,通过BLE连接,终端可对空调进行直连控制,并可将设定WIFI网络的网络属性信息,通过BLE连接发送给空调,这样,空调的通讯物联模组可根据网络属性信息自动连接到设定WIFI网络,使得空调所在区域没有可依靠的WIFI网络时,也可通过终端发送的网络属性信息,连接到对应的设定WIFI网络中,进行联网应用,在不占用终端网络资源的情况下,扩展了空调的应用场景,也提高了用户体验。The terminal can establish a BLE connection with the air conditioner. Through the BLE connection, the terminal can directly control the air conditioner, and can send the network attribute information of the WIFI network to the air conditioner through the BLE connection. In this way, the communication IoT module of the air conditioner can Automatically connect to the set WIFI network based on the network attribute information, so that when there is no reliable WIFI network in the area where the air conditioner is located, it can also connect to the corresponding set WIFI network through the network attribute information sent by the terminal for networking applications. While occupying terminal network resources, it expands the application scenarios of air conditioners and improves user experience.
以上的总体描述和下文中的描述仅是示例性和解释性的,不用于限制本申请。The above general description and the following description are exemplary and explanatory only and are not intended to limit the application.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图进行示例性说明,这些示例性说明和附图并不构成对实施例的限定,附图中具有相同参考数字标号的元件示为类似的元件,附图不构成比例限制,并且其中:One or more embodiments are exemplified by corresponding drawings. These exemplary descriptions and drawings do not constitute limitations to the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings are not limited to scale and in which:
图1是本公开实施例提供的一种用于空调直连控制系统的结构示意图;Figure 1 is a schematic structural diagram of a direct-connected control system for air conditioning provided by an embodiment of the present disclosure;
图2是本公开实施例提供的一种用于空调直连控制方法的流程示意图;Figure 2 is a schematic flowchart of a direct connection control method for air conditioners provided by an embodiment of the present disclosure;
图3是本公开实施例提供的一种用于空调信息管理方法的流程示意图;Figure 3 is a schematic flowchart of a method for air conditioning information management provided by an embodiment of the present disclosure;
图4是本公开实施例提供的一种用于空调直连控制的信息交互示意图;Figure 4 is a schematic diagram of information interaction for direct connection control of air conditioners provided by an embodiment of the present disclosure;
图5是本公开实施例提供的一种用于空调直连控制装置的结构示意图;Figure 5 is a schematic structural diagram of a direct-connected control device for air conditioning provided by an embodiment of the present disclosure;
图6是本公开实施例提供的一种用于空调直连控制装置的结构示意图。FIG. 6 is a schematic structural diagram of a direct-connected control device for an air conditioner provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为了能够更加详尽地了解本公开实施例的特点与技术内容,下面结合附图对本公开实 施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本公开实施例。在以下的技术描述中,为方便解释起见,通过多个细节以提供对所披露实施例的充分理解。然而,在没有这些细节的情况下,一个或多个实施例仍然可以实施。在其它情况下,为简化附图,熟知的结构和装置可以简化展示。In order to understand the characteristics and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for convenience of explanation, multiple details are provided to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown simplified to simplify the drawings.
本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开实施例的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。The terms "first", "second", etc. in the description and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that data so used are interchangeable under appropriate circumstances for the purposes of the embodiments of the disclosure described herein. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion.
除非另有说明,术语“多个”表示两个或两个以上。Unless otherwise stated, the term "plurality" means two or more.
本公开实施例中,字符“/”表示前后对象是一种“或”的关系。例如,A/B表示:A或B。In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an "or" relationship. For example, A/B means: A or B.
术语“和/或”是一种描述对象的关联关系,表示可以存在三种关系。例如,A和/或B,表示:A或B,或,A和B这三种关系。The term "and/or" is an association relationship describing objects, indicating that three relationships can exist. For example, A and/or B means: A or B, or A and B.
本公开实施例中,空调配置有局域网(Wireless Fidelity,WIFI)和蓝牙(Bluetooth Low Energe,BLE)的通讯物联模组,这样,终端可与空调建立BLE连接,并可通过BLE连接对空调进行直连控制,以及,可将设定WIFI网络的网络属性信息,通过BLE连接发送给空调,从而,空调的通讯物联模组可根据网络属性信息自动连接到设定WIFI网络,使得空调所在区域没有可依靠的WIFI网络时,也可通过终端发送的网络属性信息,连接到对应的设定WIFI网络中,进行联网应用,扩展了空调的应用场景,也提高了用户体验。并且,终端与空调建立BLE连接时,可将进行类型编码,通讯物联模组地址信息,以及蓝牙信号的信号强度的校验,进一步提高了BLE连接的安全性,进而提高了空调直连控制的安全性。In the embodiment of the present disclosure, the air conditioner is equipped with a LAN (Wireless Fidelity, WIFI) and Bluetooth (Bluetooth Low Energe, BLE) communication IoT module. In this way, the terminal can establish a BLE connection with the air conditioner, and can control the air conditioner through the BLE connection. Direct connection control, and the network attribute information of the set WIFI network can be sent to the air conditioner through the BLE connection. Therefore, the communication IoT module of the air conditioner can automatically connect to the set WIFI network based on the network attribute information, so that the area where the air conditioner is located When there is no WIFI network to rely on, you can also use the network attribute information sent by the terminal to connect to the corresponding set WIFI network for networking applications, which expands the application scenarios of air conditioners and improves the user experience. In addition, when the terminal establishes a BLE connection with the air conditioner, it can perform type coding, communication IoT module address information, and verification of the signal strength of the Bluetooth signal, further improving the security of the BLE connection and thus improving the direct connection control of the air conditioner. security.
图1是本公开实施例提供的一种用于空调直连控制系统的结构示意图。如图1所示,用于空调直连控制系统包括:配置有局域网WIFI和蓝牙BLE的通讯物联模组110的空调100、终端200和平台服务器300。Figure 1 is a schematic structural diagram of a direct-connected control system for air conditioning provided by an embodiment of the present disclosure. As shown in Figure 1, the direct connection control system for air conditioners includes: an air conditioner 100 equipped with a communication IoT module 110 of LAN WIFI and Bluetooth BLE, a terminal 200 and a platform server 300.
其中,终端200可与空调100建立蓝牙连接,而终端200可与平台服务器300进行远程数据通讯,并且,平台服务器300可对空调100进行设备管理。并且,终端200,被配置为向空调100发送BLE连接请求;在确定根据BLE连接请求,与空调100已建立BLE连接的情况下,运行用于空调直连的控制应用;在获取到设定局域网WIFI网络的网络属性信息的情况下,通过BLE连接,向空调发送网络属性信息,使得空调100的通讯物联模组根据网络属性信息连接到设定局域网WIFI网络。Among them, the terminal 200 can establish a Bluetooth connection with the air conditioner 100, and the terminal 200 can perform remote data communication with the platform server 300, and the platform server 300 can perform equipment management on the air conditioner 100. Moreover, the terminal 200 is configured to send a BLE connection request to the air conditioner 100; after determining that a BLE connection has been established with the air conditioner 100 according to the BLE connection request, run the control application for direct connection of the air conditioner; after obtaining the set local area network In the case of the network attribute information of the WIFI network, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner 100 is connected to the set LAN WIFI network according to the network attribute information.
空调100所在区域没有无线WIFI网络,或者,空调100上电后,不能自动连接到WIFI网络中,但是,空调100上电后,可通过通讯物联模组110进行BLE广播。There is no wireless WIFI network in the area where the air conditioner 100 is located, or the air conditioner 100 cannot automatically connect to the WIFI network after it is powered on. However, after the air conditioner 100 is powered on, it can perform BLE broadcast through the communication IoT module 110.
这样,终端200可根据空调100上电发出的蓝牙BLE广播,获取空调100的当前类型编码,以及当前通讯物联模组地址信息。空调每个型号系列均有一个类型编码TypeID。由于空调中的通讯物联模组110具有网络通讯功能,因此,通讯物联模组也具有一个确认网络设备位置的位址信息,即通讯物联模组地址信息,可为媒体存取控制位址(Media Access Control Address,MAC)地址信息。这样,终端200可通过空调100上电发出的蓝牙BLE广播,获取空调100的当前TypeID和MAC。In this way, the terminal 200 can obtain the current type code of the air conditioner 100 and the current communication IoT module address information based on the Bluetooth BLE broadcast sent out by the air conditioner 100 when it is powered on. Each model series of air conditioners has a type code TypeID. Since the communication IoT module 110 in the air conditioner has a network communication function, the communication IoT module also has an address information that confirms the location of the network device, that is, the communication IoT module address information, which can be a media access control bit. Media Access Control Address (MAC) address information. In this way, the terminal 200 can obtain the current TypeID and MAC of the air conditioner 100 through the Bluetooth BLE broadcast sent out by the air conditioner 100 when it is powered on.
平台服务器300可对空调的信息进行管理,空调生产时,平台服务器可记录存储每个空调的设备信息,包括:机编、型号、物联模组MAC等等,并且可一一对应。The platform server 300 can manage the information of air conditioners. When the air conditioners are produced, the platform server can record and store the equipment information of each air conditioner, including: machine number, model, IoT module MAC, etc., and can correspond one to one.
这样,终端200可根据获取的当前TypeID和MAC,从而平台服务器300获取到空调100的设备信息,并可进行空调区分及显示。In this way, the terminal 200 can obtain the device information of the air conditioner 100 based on the obtained current TypeID and MAC, so that the platform server 300 can distinguish and display the air conditioners.
终端200搜索到或发现了空调100后,可与空调100建立BLE连接请求,即终端200可向空调100发送BLE连接请求,其中,终端200搜索到空调100后,即可发送BLE连接请求,或者,终端200搜索到空调100后,根据用户指令,向空调100发送BLE连接请求。这样,空调100为待连接的空调,即目标空调。After the terminal 200 searches or discovers the air conditioner 100, it can establish a BLE connection request with the air conditioner 100, that is, the terminal 200 can send a BLE connection request to the air conditioner 100. After the terminal 200 searches for the air conditioner 100, it can send a BLE connection request, or , after the terminal 200 searches for the air conditioner 100, it sends a BLE connection request to the air conditioner 100 according to the user instruction. In this way, the air conditioner 100 is the air conditioner to be connected, that is, the target air conditioner.
在一些实施例中,若终端200与目标空调100曾经建立过BLE连接,则直接确定与空调已建立BLE连接,即在记录的BLE连接中包括了与空调100的BLE连接的情况下,确定与空调100已建立BLE连接,这样,终端200可直接运行用于空调100直连的控制应用,即终端200上可呈现空调100的控制页面,接收到用户根据控制页面生成的控制指令,对空调100进行直接控制。In some embodiments, if the terminal 200 has established a BLE connection with the target air conditioner 100, it is directly determined that the BLE connection has been established with the air conditioner. That is, if the recorded BLE connection includes the BLE connection with the air conditioner 100, it is determined that the BLE connection with the air conditioner 100 has been established. The air conditioner 100 has established a BLE connection. In this way, the terminal 200 can directly run the control application for the direct connection of the air conditioner 100. That is, the control page of the air conditioner 100 can be presented on the terminal 200. After receiving the control instructions generated by the user based on the control page, the air conditioner 100 Take direct control.
在一些实施例中,若终端200首次与空调100建立BLE连接,或者,终端200删除了空调100的相关信息,或空调100的设备信息变更,即记录的BLE连接中不包括与空调100的BLE连接,则在建立与空调100的BLE连接时,需进行类型编码信息、通讯物联模组地址信息、以及蓝牙信号的信号强度等中的一个或多个的校验,校验通过后,才可建立BLE连接。In some embodiments, if the terminal 200 establishes a BLE connection with the air conditioner 100 for the first time, or the terminal 200 deletes the relevant information of the air conditioner 100, or the device information of the air conditioner 100 changes, that is, the recorded BLE connection does not include the BLE connection with the air conditioner 100. connection, when establishing a BLE connection with the air conditioner 100, one or more of the type coding information, the communication IoT module address information, and the signal strength of the Bluetooth signal need to be verified. After the verification is passed, the BLE connection can be established.
在一些实施例中,终端200可将获取的空调的当前类型编码,以及当前通讯物联模组地址信息发送给平台服务器300,平台服务器300可在保存的通讯物联模组地址信息和第一类型编码信息中,查找到与及当前通讯物联模组地址信息对应的第一当前类型编码,若当前类型编码与第一当前类型编码匹配,那么,即可确认校验通过,可向终端200发送连接通知消息,从而,终端200与空调100建立BLE连接。In some embodiments, the terminal 200 can send the obtained current type code of the air conditioner and the current communication IoT module address information to the platform server 300. The platform server 300 can combine the saved communication IoT module address information and the first In the type coding information, the first current type code corresponding to the current communication IoT module address information is found. If the current type code matches the first current type code, then it can be confirmed that the verification has passed, and the terminal 200 can The connection notification message is sent, thereby establishing a BLE connection between the terminal 200 and the air conditioner 100 .
在一些实施例中,平台服务器300还保存了每个型号空调与设定距离的终端之间的蓝牙信号的信号强度值,即同型号的空调可进行蓝牙信号的信号强度测试,其中,终端可在设定信号空调之前设定位置,并获取与设定型号空调之间的蓝牙信号的第一信号强度值,并将第一信号强度值,设定型号对应的第一类型编码发送给平台服务器进行保存,这样,平台服务器可将空调的类型编码、通讯物联模组地址信息以及第一信号强度值一一对应,并保存。In some embodiments, the platform server 300 also saves the signal strength value of the Bluetooth signal between each model of air conditioner and the terminal at a set distance, that is, the air conditioner of the same model can perform the signal strength test of the Bluetooth signal, wherein the terminal can Set the location before setting the signal air conditioner, obtain the first signal strength value of the Bluetooth signal between the set model air conditioner, and send the first signal strength value and the first type code corresponding to the set model to the platform server Save, so that the platform server can match the type code of the air conditioner, the address information of the communication IoT module and the first signal strength value one-to-one and save it.
这样,终端200与空调100建立BLE连接时,终端200向空调100发送BLE连接请求后,获取与空调100之间的蓝牙BLE信号的当前信号强度值,并可当前信号强度值,以及当前类型编码和当前通讯物联模组地址信息同步给平台服务器300。这样,平台服务器300从保存的通讯物联模组地址信息、第一类型编码信息和第一信号强度值中,获取与当前通讯物联模组地址信息匹配的第一当前类型编码和第一当前信号强度值,其中,在当前类型编码和第一当前类型编码匹配的情况下,若当前信号强度值与第一当前信号强度值匹配时,可生成连接通知消息,并发送给终端200,从而,终端200在接收到平台服务器返回的连接通知消息的情况下,与空调100建立BLE连接。In this way, when the terminal 200 establishes a BLE connection with the air conditioner 100, after the terminal 200 sends a BLE connection request to the air conditioner 100, it obtains the current signal strength value of the Bluetooth BLE signal between the terminal 200 and the air conditioner 100, and can obtain the current signal strength value and the current type code. The address information of the current communication IoT module is synchronized to the platform server 300. In this way, the platform server 300 obtains the first current type code and the first current code that match the current communication IoT module address information, the first type coding information and the first signal strength value from the saved communication IoT module address information. Signal strength value, where, in the case where the current type code matches the first current type code, if the current signal strength value matches the first current signal strength value, a connection notification message can be generated and sent to the terminal 200, thereby, After receiving the connection notification message returned by the platform server, the terminal 200 establishes a BLE connection with the air conditioner 100 .
在当前类型编码和第一当前类型编码不匹配的情况下,或,在未获取到第一当前信号强度值的情况下,平台服务器300生成无法连接通知消息,并发送给终端200,从而,终端200在接收到平台服务器返回的无法连接通知消息的情况下,进行空调不支持本地直连控制的提醒处理。In the case that the current type code does not match the first current type code, or in the case that the first current signal strength value is not obtained, the platform server 300 generates a connection failure notification message and sends it to the terminal 200, so that the terminal 200 After receiving the unavailable connection notification message returned by the platform server, process the reminder that the air conditioner does not support local direct connection control.
而当前类型编码和第一当前类型编码匹配的情况下,若当前信号强度值与第一当前信号强度值不匹配时,平台服务器300生成待连接通知消息,并发送给终端200,从而,终端200在接收到平台服务器返回的待连接通知消息的情况下,进行靠近空调位置移动的提示处理。其中,第一当前信号强度值与当前信号强度值之间的差值大于设定值,即可确定当前信号强度值与第一当前信号强度值不匹配,此时,终端200可提示请靠近空调100再连接。In the case where the current type code matches the first current type code, if the current signal strength value does not match the first current signal strength value, the platform server 300 generates a pending connection notification message and sends it to the terminal 200, so that the terminal 200 After receiving the connection pending notification message returned by the platform server, prompt processing is performed to move closer to the air conditioner position. Wherein, if the difference between the first current signal strength value and the current signal strength value is greater than the set value, it can be determined that the current signal strength value does not match the first current signal strength value. At this time, the terminal 200 may prompt to approach the air conditioner. 100 and then connect.
可见,终端与空调建立BLE连接时,可将进行类型编码,通讯物联模组地址信息,以及蓝牙信号的信号强度的校验,进一步提高了BLE连接的安全性,进而提高了空调直连控制的安全性。It can be seen that when the terminal establishes a BLE connection with the air conditioner, it can perform type coding, communication IoT module address information, and verification of the signal strength of the Bluetooth signal, further improving the security of the BLE connection and thus improving the direct connection control of the air conditioner. security.
终端200与空调100建立BLE连接之后,移动终端200可直接运行用于空调100直连的控制应用,即终端200上可呈现空调100的控制页面,接收到用户根据控制页面生成的控制指令,对空调100进行直接控制。After the terminal 200 establishes a BLE connection with the air conditioner 100, the mobile terminal 200 can directly run the control application for direct connection of the air conditioner 100, that is, the control page of the air conditioner 100 can be presented on the terminal 200, and the control instructions generated by the user according to the control page are received. The air conditioner 100 is directly controlled.
本公开实施例中,空调具有网络功能,通讯物联模组也配置有局域网WIFI,因此, 终端200与空调100建立BLE连接之后,终端200获取到设定局域网WIFI网络的网络属性信息时,例如:获取到WIFI网络名称及密码,可通过BLE连接,向空调发送网络属性信息,这样,空调的通讯物联模组可根据网络属性信息连接到设定局域网WIFI网络,从而,空调直接连接了WIFI网络,也不占用终端网络资源,从而,不会影响终端的控制体验。In the embodiment of the present disclosure, the air conditioner has network functions, and the communication IoT module is also configured with LAN WIFI. Therefore, after the terminal 200 establishes a BLE connection with the air conditioner 100, the terminal 200 obtains the network attribute information that sets the LAN WIFI network, for example. : After obtaining the WIFI network name and password, you can connect through BLE and send network attribute information to the air conditioner. In this way, the communication IoT module of the air conditioner can connect to the set LAN WIFI network based on the network attribute information. As a result, the air conditioner is directly connected to WIFI. The network does not occupy terminal network resources, thus not affecting the terminal control experience.
因此,将设定WIFI网络的网络属性信息,通过BLE连接发送给空调,从而,空调的通讯物联模组可根据网络属性信息自动连接到设定WIFI网络,使得空调所在区域没有可依靠的WIFI网络时,也可通过终端发送的网络属性信息,连接到对应的设定WIFI网络中,进行联网应用,在不占用终端网络资源的情况下,扩展了空调的应用场景,也提高了用户体验。Therefore, the network attribute information of the set WIFI network is sent to the air conditioner through the BLE connection. Therefore, the communication IoT module of the air conditioner can automatically connect to the set WIFI network based on the network attribute information, so that there is no WIFI to rely on in the area where the air conditioner is located. When connecting to the Internet, you can also use the network attribute information sent by the terminal to connect to the corresponding set WIFI network for networking applications. This expands the application scenarios of air conditioners and improves the user experience without occupying terminal network resources.
当然,终端200完成了对空调100的直连控制后,可向空调发送断开BLE连接请求,使得空调运行BLE广播模式,即终端200退出空调100的控制页面,断开同空调设备的BLE连接,空调100回到BLE广播模式,以备下一次连接控制。Of course, after the terminal 200 completes the direct control of the air conditioner 100, it can send a disconnection BLE connection request to the air conditioner, so that the air conditioner runs in the BLE broadcast mode, that is, the terminal 200 exits the control page of the air conditioner 100 and disconnects the BLE connection with the air conditioner. , the air conditioner 100 returns to the BLE broadcast mode to prepare for the next connection control.
可见,在用于空调直连控制的系统中,终端可对空调进行直连控制。It can be seen that in the system for direct control of air conditioners, the terminal can directly control the air conditioner.
图2是本公开实施例提供的一种用于空调直连控制方法的流程示意图。空调配置有局域网WIFI和蓝牙BLE的通讯物联模组,如图2所示,用于空调直连控制的过程包括:FIG. 2 is a schematic flowchart of a direct air-conditioning control method provided by an embodiment of the present disclosure. The air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE, as shown in Figure 2. The process for direct connection control of the air conditioner includes:
步骤201:向空调发送BLE连接请求。Step 201: Send a BLE connection request to the air conditioner.
本公开实施例中,空调上电后,可通过通讯物联模组110进行BLE广播。终端通过空调上电发出的蓝牙BLE广播,获取空调的当前类型编码,以及当前通讯物联模组地址信息后,可直接向空调发送BLE连接请求,或者,终端获取空调的当前类型编码,以及当前通讯物联模组地址信息,并呈现空调信息后,根据接收到的用户指令,向空调发送BLE连接请求。In this disclosed embodiment, after the air conditioner is powered on, BLE broadcast can be performed through the communication IoT module 110 . After the terminal obtains the current type code of the air conditioner and the current communication IoT module address information through the Bluetooth BLE broadcast sent out by the air conditioner when it is powered on, it can directly send a BLE connection request to the air conditioner, or the terminal obtains the current type code of the air conditioner and the current After communicating the IoT module address information and presenting the air conditioner information, it sends a BLE connection request to the air conditioner according to the received user instructions.
每个空调在生产时,平台服务器都可记录存储每个空调的设备信息,包括:机编、型号、物联模组MAC等等,并且可一一对应。即平台服务器记录了空调生成时,每个空调的设备信息以及通讯物联模组地址信息。因此,在一些实施例中,终端通过空调上电发出的蓝牙BLE广播,获取空调的当前类型编码,以及当前通讯物联模组地址信息后,可从平台服务器获取到与当前类型编码,以及当前通讯物联模组地址信息匹配的空调设备信息,从而,可区分不同空调设备并显示。这样,接收用户根据显示的空调设备信息生成的用户指令,向空调发起BLE连接请求,该空调为待连接空调,为目标空调。When each air conditioner is produced, the platform server can record and store the equipment information of each air conditioner, including: machine number, model, IoT module MAC, etc., and can correspond one to one. That is, the platform server records the equipment information of each air conditioner and the address information of the communication IoT module when the air conditioner is generated. Therefore, in some embodiments, after the terminal obtains the current type code of the air conditioner and the current communication IoT module address information through the Bluetooth BLE broadcast emitted by the air conditioner when it is powered on, it can obtain the current type code and the current communication IoT module address information from the platform server. The communication IoT module address information matches the air-conditioning equipment information, so that different air-conditioning equipment can be distinguished and displayed. In this way, the user instruction generated by the user based on the displayed air conditioning equipment information is received, and a BLE connection request is initiated to the air conditioner. The air conditioner is the air conditioner to be connected and is the target air conditioner.
步骤202:在确定根据BLE连接请求,与空调已建立BLE连接的情况下,运行用于空调直连的控制应用。Step 202: After it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run the control application for direct connection of the air conditioner.
在一些实施例中,若曾经与该空调建立过BLE连接,则直接确定与空调已建立BLE连接,即在记录的BLE连接中包括了与空调的BLE连接的情况下,则确定与空调已建立BLE连接,这样,可直接运行用于空调直连的控制应用,即可在显示界面上,呈现空调的控制页面,并根据接收到用户根据控制页面生成的控制指令,对空调进行直接控制。In some embodiments, if a BLE connection has been established with the air conditioner, it is directly determined that the BLE connection has been established with the air conditioner. That is, if the recorded BLE connection includes a BLE connection with the air conditioner, it is determined that the BLE connection with the air conditioner has been established. BLE connection, in this way, the control application for direct connection of the air conditioner can be directly run, the control page of the air conditioner can be presented on the display interface, and the air conditioner can be directly controlled according to the control instructions generated by the user based on the control page.
在一些实施例中,若首次与空调建立BLE连接,或者,删除了空调的相关信息,或空调设备信息变更,即记录的BLE连接中不包括与空调的BLE连接,则在建立与空调的BLE连接时,需进行校验,校验通过后,才可建立BLE连接。其中,可根据类型编码信息、通讯物联模组地址信息、以及蓝牙信号的信号强度等中的一个或多个进行校验。In some embodiments, if a BLE connection is established with the air conditioner for the first time, or the relevant information of the air conditioner is deleted, or the air conditioning equipment information changes, that is, the recorded BLE connection does not include the BLE connection with the air conditioner, then the BLE connection with the air conditioner is established. When connecting, verification is required. Only after the verification passes can a BLE connection be established. Among them, the verification can be performed based on one or more of the type encoding information, the communication IoT module address information, and the signal strength of the Bluetooth signal.
例如:根据类型编码信息、通讯物联模组地址信息进行校验。平台服务器中记录了每个空调的设备信息以及通讯物联模组地址信息,因此,可将获取的当前类型编码和当前通讯物联模组地址信息同步给平台服务器,从而,平台服务器可在保存的通讯物联模组地址信息和第一类型编码信息中,查找到与及当前通讯物联模组地址信息对应的第一当前类型编码,若当前类型编码与第一当前类型编码匹配,那么,即可确认校验通过,可发送连接通知消息,从而,在接收到平台服务器返回的连接通知消息的情况下,与空调建立BLE连接,即确定了与空调已建立BLE连接。For example: verification based on type encoding information and communication IoT module address information. The platform server records the equipment information of each air conditioner and the communication IoT module address information. Therefore, the obtained current type code and the current communication IoT module address information can be synchronized to the platform server. Therefore, the platform server can save Among the communication IoT module address information and the first type coding information, the first current type code corresponding to the current communication IoT module address information is found. If the current type code matches the first current type code, then, It is confirmed that the verification has passed, and the connection notification message can be sent. Therefore, after receiving the connection notification message returned by the platform server, a BLE connection is established with the air conditioner, which confirms that the BLE connection has been established with the air conditioner.
在一些实施例中,对于同一型号的空调,可进行蓝牙信号的强度测试,即获取与设定型号空调之间的蓝牙信号的第一信号强度值,其中,空调位于设定位置;将第一信号强度值,设定型号对应的第一类型编码发送给平台服务器进行保存。In some embodiments, for air conditioners of the same model, the Bluetooth signal strength test can be performed, that is, the first signal strength value of the Bluetooth signal between the air conditioner of the set model and the air conditioner is located at the set position; the first signal strength value can be obtained. The signal strength value and the first type code corresponding to the set model are sent to the platform server for storage.
例如:测试终端位于设定型号空调本机前方x米处(如1米处),检测与空调之间的蓝牙BLE信号的第一信号强度值S0,并上传给平台服务器中,即平台服务器可将空调的类型编码、通讯物联模组地址信息以及第一信号强度值一一对应,并保存。这样,可根据类型编码信息、通讯物联模组地址信息、以及蓝牙信号的信号强度进行校验。For example: the test terminal is located x meters (such as 1 meter) in front of the air conditioner of the set model, detects the first signal strength value S0 of the Bluetooth BLE signal between the air conditioner and the air conditioner, and uploads it to the platform server, that is, the platform server can Correlate the type code of the air conditioner, the address information of the communication IoT module and the first signal strength value one-to-one and save them. In this way, verification can be performed based on the type encoding information, communication IoT module address information, and the signal strength of the Bluetooth signal.
因此,获取与空调之间的蓝牙BLE信号的当前信号强度值;将当前信号强度值,以及当前类型编码和当前通讯物联模组地址信息同步给平台服务器;在接收到平台服务器返回的连接通知消息的情况下,与空调建立BLE连接;其中,平台服务器从保存的通讯物联模组地址信息、第一类型编码信息和第一信号强度值中,获取与当前通讯物联模组地址信息匹配的第一当前类型编码和第一当前信号强度值,并在当前类型编码和第一当前类型编码匹配的情况下,若当前信号强度值与第一当前信号强度值匹配时,生成连接通知消息。Therefore, obtain the current signal strength value of the Bluetooth BLE signal between the air conditioner and the air conditioner; synchronize the current signal strength value, as well as the current type code and the current communication IoT module address information to the platform server; after receiving the connection notification returned by the platform server In the case of a message, a BLE connection is established with the air conditioner; among which, the platform server obtains the address information matching the current communication IoT module from the saved communication IoT module address information, first type encoding information and first signal strength value The first current type code and the first current signal strength value, and if the current type code and the first current type code match, if the current signal strength value matches the first current signal strength value, a connection notification message is generated.
在一些实施例中,在接收到平台服务器返回的无法连接通知消息的情况下,进行空调不支持本地直连控制的提醒处理,其中,平台服务器在当前类型编码和第一当前类型编码不匹配的情况下,或,在未获取到第一当前信号强度值的情况下,生成无法连接通知消息。In some embodiments, upon receiving the unconnection notification message returned by the platform server, a reminder process is performed that the air conditioner does not support local direct connection control, wherein the platform server performs a warning process when the current type code does not match the first current type code. In this case, or if the first current signal strength value is not obtained, a connection failure notification message is generated.
在一些实施例中,在接收到平台服务器返回的待连接通知消息的情况下,进行靠近空调位置移动的提示处理,其中,平台服务器在当前类型编码和第一当前类型编码匹配的情况下,若当前信号强度值与第一当前信号强度值不匹配时,生成待连接通知消息。In some embodiments, upon receiving the notification message to be connected returned by the platform server, prompt processing for moving close to the air conditioner location is performed, where the platform server, if the current type code matches the first current type code, if When the current signal strength value does not match the first current signal strength value, a pending connection notification message is generated.
平台服务器确定与当前MAC信息对应的TypeID不对,或者,未获取到与当前MAC信息对应的第一当前信号强度值S0,即可确定终端与空调不能建立BLE连接,可发送无法连接通知消息,从而,可确定与空调不能建立BLE连接,并可进行空调不支持本地直连控制的提醒处理。If the platform server determines that the TypeID corresponding to the current MAC information is incorrect, or if the first current signal strength value S0 corresponding to the current MAC information is not obtained, it can be determined that the terminal cannot establish a BLE connection with the air conditioner, and can send a connection failure notification message, thereby , it can be determined that the BLE connection cannot be established with the air conditioner, and the reminder processing that the air conditioner does not support local direct connection control can be processed.
平台服务器确定与当前MAC信息对应的TypeID匹配,也得到了与当前MAC信息对应的第一当前信号强度值S0,但是,当前信号强度值S1与第一当前信号强度值S0不匹配,S0与S1的差值不在设定范围内,可确定S0与S1不匹配,从而,发送待连接通知消息,这样,可确定与空调待连接,并进行靠近空调位置移动的提示处理。The platform server determines that the TypeID corresponding to the current MAC information matches, and also obtains the first current signal strength value S0 corresponding to the current MAC information. However, the current signal strength value S1 does not match the first current signal strength value S0, and S0 and S1 The difference is not within the set range, it can be determined that S0 and S1 do not match, and a pending connection notification message is sent. In this way, it can be determined that the air conditioner is pending connection, and a prompt process for moving close to the air conditioner position is performed.
当然,提醒处理,可进行语音、文字等方式的提醒。Of course, reminder processing can be carried out through voice, text, etc. reminders.
确定与空调建立BLE连接之后,可直接运行用于空调直连的控制应用,即可在显示界面上,呈现空调的控制页面,并根据接收到用户根据控制页面生成的控制指令,对空调进行直接控制。After establishing a BLE connection with the air conditioner, you can directly run the control application for direct connection of the air conditioner. The control page of the air conditioner will be displayed on the display interface, and the air conditioner will be directly controlled based on the control instructions generated by the user based on the control page. control.
步骤203:在获取到设定局域网WIFI网络的网络属性信息的情况下,通过BLE连接,向空调发送网络属性信息,使得空调的通讯物联模组根据网络属性信息连接到设定局域网WIFI网络。Step 203: After obtaining the network attribute information of the set LAN WIFI network, send the network attribute information to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner connects to the set LAN WIFI network according to the network attribute information.
在对空调进行直连控制的过程中,若根据用户输入信息,或者网络接收信息,获取到设定局域网WIFI网络的网络属性信息,例如:WIFI网络名称以及密码,这样,可通过已建立的BLE连接,向空调发送网络属性信息。空调的配置了有局域网WIFI和蓝牙BLE的通讯物联模组,从而,通讯物联模组的局域网WIFI功能可自动根据网络属性信息,连接到设定局域网WIFI网络。这样,在不占用终端网络资源的情况下,以及不影响终端直连控制的情况下,扩展了空调的应用场景,也提高了用户体验。During the direct connection control of the air conditioner, if the network attribute information of the LAN WIFI network is obtained based on the user input information or the network received information, such as: WIFI network name and password, in this way, the established BLE Connect and send network attribute information to the air conditioner. The air conditioner is equipped with a communication IoT module with LAN WIFI and Bluetooth BLE. Therefore, the LAN WIFI function of the communication IoT module can automatically connect to the set LAN WIFI network based on the network attribute information. In this way, the application scenarios of air conditioners are expanded and the user experience is improved without occupying terminal network resources and without affecting the direct connection control of the terminal.
可见,本公开实施例中,可与空调建立BLE连接,并可通过BLE连接对空调进行直连控制,以及,可将设定WIFI网络的网络属性信息,通过BLE连接发送给空调,从而,空调的通讯物联模组可根据网络属性信息自动连接到设定WIFI网络,使得空调所在区域没有可依靠的WIFI网络时,也可通过终端发送的网络属性信息,连接到对应的设定WIFI网络中,进行联网应用,扩展了空调的应用场景,也提高了用户体验。并且,与空调建立BLE连接时,可将进行类型编码,通讯物联模组地址信息,以及蓝牙信号的信号强度的校验,进一步提高了BLE连接的安全性,进而提高了空调直连控制的安全性。It can be seen that in the embodiment of the present disclosure, a BLE connection can be established with the air conditioner, and the air conditioner can be directly controlled through the BLE connection, and the network attribute information for setting the WIFI network can be sent to the air conditioner through the BLE connection, so that the air conditioner The communication IoT module can automatically connect to the set WIFI network according to the network attribute information, so that when there is no reliable WIFI network in the area where the air conditioner is located, it can also connect to the corresponding set WIFI network through the network attribute information sent by the terminal. , networked applications expand the application scenarios of air conditioners and improve user experience. In addition, when establishing a BLE connection with the air conditioner, the type coding, communication IoT module address information, and signal strength verification of the Bluetooth signal can be performed, further improving the security of the BLE connection and thus improving the efficiency of direct air conditioner control. safety.
当然,完成对空调的指令控制后,可推出空调的控制应用,可向空调发送断开BLE连接请求,使得空调运行BLE广播模式,以备下一次连接控制。Of course, after completing the command control of the air conditioner, the air conditioner control application can be launched, and a disconnection BLE connection request can be sent to the air conditioner, causing the air conditioner to run in BLE broadcast mode in preparation for the next connection control.
下面将操作流程集合到具体实施例中,举例说明本发明实施例提供的用于空调直连控制过程。The following operation procedures are collected into specific embodiments to illustrate the direct air-conditioning control process provided by the embodiments of the present invention.
本实施例中,平台服务器在空调生成过程中,可对空调的信息,数据等等进行管理。In this embodiment, the platform server can manage air conditioner information, data, etc. during the air conditioner generation process.
图3是本公开实施例提供的一种用于空调信息管理方法的流程示意图。如图3所示,空调信息管理过程包括:FIG. 3 is a schematic flowchart of a method for air conditioning information management provided by an embodiment of the present disclosure. As shown in Figure 3, the air conditioning information management process includes:
步骤301:在空调生产过程中,平台服务器记录每个空调的设备信息。Step 301: During the air conditioner production process, the platform server records the equipment information of each air conditioner.
空调配置有局域网WIFI和蓝牙BLE的通讯物联模组,而设备信息包括:空调的机编、信号、类型编码与通讯物联模组MAC等中一种或多种。The air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE, and the device information includes: one or more of the machine code, signal, type code and communication IoT module MAC of the air conditioner.
步骤302:平台服务器接收移动终端上报的与设定型号空调之间的蓝牙信号的第一信号强度值,其中,空调与移动终端之间距离是设定的。Step 302: The platform server receives the first signal strength value of the Bluetooth signal reported by the mobile terminal and the set model of the air conditioner, where the distance between the air conditioner and the mobile terminal is set.
例如:移动终端位于空调本机前1米的位置,移动终端检测与与设定型号空调之间的蓝牙信号的第一信号强度值,并上报给平台服务器。For example: the mobile terminal is located 1 meter in front of the air conditioner. The mobile terminal detects the first signal strength value of the Bluetooth signal between the mobile terminal and the set model of air conditioner, and reports it to the platform server.
步骤301,步骤302可并行运行。Step 301 and step 302 can be run in parallel.
步骤303:平台服务器一一对应保存空调设备信息与对应第一信号强度值。Step 303: The platform server stores the air conditioning equipment information and the corresponding first signal strength value in one-to-one correspondence.
这样,平台服务器实现了对空调数据信息的管理。从而,在如图1所示的系统中,终端可为移动终端,可对空调实现直连控制。In this way, the platform server realizes the management of air conditioning data information. Therefore, in the system as shown in Figure 1, the terminal can be a mobile terminal and can realize direct control of the air conditioner.
图4是本公开实施例提供的一种用于空调直连控制的信令交互示意图,如图4所示,空调直连控制的过程包括:Figure 4 is a schematic diagram of signaling interaction for direct connection control of air conditioners provided by an embodiment of the present disclosure. As shown in Figure 4, the process of direct connection control of air conditioners includes:
步骤401:空调上电后发出BLE广播Step 401: After the air conditioner is powered on, it sends out a BLE broadcast
步骤402:移动终端根据空调上电发出的蓝牙BLE广播,获取空调的当前类型编码TypeID,以及通讯物联模组的当前MAC信息。Step 402: The mobile terminal obtains the current type code TypeID of the air conditioner and the current MAC information of the communication IoT module according to the Bluetooth BLE broadcast sent out by the air conditioner when it is powered on.
步骤403:移动终端根据当前TypeID和当前MAC信息,从平台服务器获取到对应空调的设备信息,并区分不同的空调进行显示。Step 403: The mobile terminal obtains the device information corresponding to the air conditioner from the platform server based on the current TypeID and current MAC information, and distinguishes different air conditioners for display.
步骤404:根据接收到用户指令,移动终端向空调发送BLE连接请求。Step 404: According to receiving the user instruction, the mobile terminal sends a BLE connection request to the air conditioner.
接收到BLE连接请求的当前空调为待连接空调,为目标空调。The current air conditioner that receives the BLE connection request is the air conditioner to be connected and is the target air conditioner.
步骤405:判断记录的BLE连接中是否包括了与当前空调的BLE连接?若是,执行步骤415,否则,执行步骤406。Step 405: Determine whether the recorded BLE connection includes the BLE connection with the current air conditioner? If yes, execute step 415; otherwise, execute step 406.
步骤406:移动终端获取与空调之间的蓝牙BLE信号的当前信号强度值S1,并将当前S1、当前TypeID和当前MAC信息发送给平台服务器。Step 406: The mobile terminal obtains the current signal strength value S1 of the Bluetooth BLE signal between the mobile terminal and the air conditioner, and sends the current S1, current TypeID and current MAC information to the platform server.
步骤407:平台服务器从保存的空调数据信息中,获取与当前MAC信息对应的第一当前TypeID和第一当前信号强度值S0。Step 407: The platform server obtains the first current TypeID and the first current signal strength value S0 corresponding to the current MAC information from the saved air-conditioning data information.
步骤408:判断第一当前信号强度值S0是否存在?若是,执行步骤409,否则,执行步骤413。Step 408: Determine whether the first current signal strength value S0 exists? If yes, execute step 409; otherwise, execute step 413.
步骤409:判断当前TypeID与第一当前TypeID是否匹配?若是,执行步骤410,否则,执行步骤413。Step 409: Determine whether the current TypeID matches the first current TypeID? If yes, perform step 410; otherwise, perform step 413.
步骤410:判断当前S0与当前S1是否匹配?若是,执行步骤411,否则,步骤412。Step 410: Determine whether the current S0 and the current S1 match? If yes, go to step 411; otherwise, go to step 412.
步骤411:平台服务器向移动终端发送连接通知消息。Step 411: The platform server sends a connection notification message to the mobile terminal.
步骤412:平台服务器向移动终端发送待连接通知消息。Step 412: The platform server sends a pending connection notification message to the mobile terminal.
步骤413:平台服务器向移动终端发送无法连接通知消息。Step 413: The platform server sends a connection failure notification message to the mobile terminal.
步骤414:移动终端在接收到平台服务器返回的连接通知消息的情况下,与空调建立BLE连接。Step 414: After receiving the connection notification message returned by the platform server, the mobile terminal establishes a BLE connection with the air conditioner.
步骤415:移动终端运行用于空调直连的控制应用。Step 415: The mobile terminal runs the control application for direct connection of the air conditioner.
步骤416:根据用户输入信息,移动终端获取设定局域网WIFI网络的网络属性信息。Step 416: According to the user input information, the mobile terminal obtains the network attribute information for setting the local area network WIFI network.
步骤417:通过BLE连接,移动终端向空调发送网络属性信息。Step 417: Through the BLE connection, the mobile terminal sends network attribute information to the air conditioner.
步骤418:空调的通讯物联模组根据网络属性信息连接到设定局域网WIFI网络,进行网络应用。Step 418: The communication IoT module of the air conditioner connects to the set LAN WIFI network according to the network attribute information and performs network applications.
步骤419:移动终端接收到退出直连控制指令时,停止运行用于空调直连的控制应用,并向空调发送断开BLE连接请求。Step 419: When the mobile terminal receives the instruction to exit direct connection control, it stops running the control application for direct connection of the air conditioner, and sends a disconnection BLE connection request to the air conditioner.
步骤420:空调运行BLE广播模式。Step 420: The air conditioner runs in BLE broadcast mode.
步骤421:移动终端在接收到平台服务器返回的无法连接通知消息的情况下,进行空调不支持本地直连控制的提醒处理。Step 421: When the mobile terminal receives the unavailable connection notification message returned by the platform server, it processes a reminder that the air conditioner does not support local direct connection control.
步骤422:移动终端在接收到平台服务器返回的待连接通知消息的情况下,进行靠近空调位置移动的提示处理。Step 422: After receiving the connection pending notification message returned by the platform server, the mobile terminal performs prompt processing to move closer to the air conditioner position.
可见,本实施例中,移动终端可与空调建立BLE连接,并可通过BLE连接对空调进行直连控制,以及,可将设定WIFI网络的网络属性信息,通过BLE连接发送给空调,从而,空调的通讯物联模组可根据网络属性信息自动连接到设定WIFI网络,进行联网应用,在不占用终端网络资源的情况下,扩展了空调的应用场景,也提高了用户体验。并且,移动终端与空调建立BLE连接时,可将进行类型编码,通讯物联模组地址信息,以及蓝牙信号的信号强度的校验,进一步提高了BLE连接的安全性,进而提高了空调直连控制的安全性。It can be seen that in this embodiment, the mobile terminal can establish a BLE connection with the air conditioner, and can directly control the air conditioner through the BLE connection, and can send the network attribute information of the WIFI network to the air conditioner through the BLE connection, thereby, The communication IoT module of the air conditioner can automatically connect to the set WIFI network based on the network attribute information for networking applications. This expands the application scenarios of the air conditioner and improves the user experience without occupying terminal network resources. In addition, when the mobile terminal establishes a BLE connection with the air conditioner, it can perform type coding, communication IoT module address information, and verification of the signal strength of the Bluetooth signal, further improving the security of the BLE connection and thus improving the direct connection of the air conditioner. Controlled security.
根据上述用于空调直连控制的过程,可构建一种用于空调直连控制的装置。According to the above process for air conditioner direct connection control, a device for air conditioner direct connection control can be constructed.
图5是本公开实施例提供的一种用于空调直连控制装置的结构示意图。用于空调直连控制装置可应用于终端中,如图5所示,包括:请求模块510、控制模块520和发送模块530。FIG. 5 is a schematic structural diagram of a direct-connected control device for an air conditioner provided by an embodiment of the present disclosure. The direct-connected control device for air conditioning can be applied in a terminal, as shown in Figure 5 , including: a request module 510, a control module 520 and a sending module 530.
请求模块510,被配置为向空调发送BLE连接请求。The request module 510 is configured to send a BLE connection request to the air conditioner.
控制模块520,被配置为在确定根据BLE连接请求,与空调已建立BLE连接的情况下,运行用于空调直连的控制应用。The control module 520 is configured to run a control application for direct connection of the air conditioner when it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request.
发送模块530,被配置为在获取到设定局域网WIFI网络的网络属性信息的情况下,通过BLE连接,向空调发送网络属性信息,使得空调的通讯物联模组根据网络属性信息连接到设定局域网WIFI网络。The sending module 530 is configured to, after obtaining the network attribute information of the set local area network WIFI network, send the network attribute information to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner is connected to the set according to the network attribute information. LAN WIFI network.
在一些实施例中,还包括:获取模,被配置为根据空调上电发出的蓝牙BLE广播,获取空调的当前类型编码,以及当前通讯物联模组地址信息。In some embodiments, the method further includes: an acquisition module configured to acquire the current type code of the air conditioner and the current communication IoT module address information based on the Bluetooth BLE broadcast issued by the air conditioner when it is powered on.
在一些实施例中,控制模块520包括:In some embodiments, control module 520 includes:
获取单元,被配置为获取与空调之间的蓝牙BLE信号的当前信号强度值。The acquisition unit is configured to acquire the current signal strength value of the Bluetooth BLE signal between the air conditioner and the air conditioner.
同步单元,被配置为将当前信号强度值,以及当前类型编码和当前通讯物联模组地址信息同步给平台服务器。The synchronization unit is configured to synchronize the current signal strength value, as well as the current type code and the current communication IoT module address information to the platform server.
建立单元,被配置为在接收到平台服务器返回的连接通知消息的情况下,与空调建立BLE连接;其中,平台服务器从保存的通讯物联模组地址信息、第一类型编码信息和第一信号强度值中,获取与当前通讯物联模组地址信息匹配的第一当前类型编码和第一当前信号强度值,并在当前类型编码和第一当前类型编码匹配的情况下,若当前信号强度值与第一当前信号强度值匹配时,生成连接通知消息。The establishment unit is configured to establish a BLE connection with the air conditioner upon receiving a connection notification message returned by the platform server; wherein the platform server obtains the saved communication IoT module address information, the first type encoding information and the first signal In the strength value, obtain the first current type code and the first current signal strength value that match the current communication IoT module address information, and if the current type code and the first current type code match, if the current signal strength value When matching the first current signal strength value, a connection notification message is generated.
在一些实施例中,还包括:第一提醒模块,被配置为在接收到平台服务器返回的无法连接通知消息的情况下,进行空调不支持本地直连控制的提醒处理,其中,平台服务器在当前类型编码和第一当前类型编码不匹配的情况下,或,在未获取到第一当前信号强度值的情况下,生成无法连接通知消息。In some embodiments, it also includes: a first reminder module configured to perform reminder processing that the air conditioner does not support local direct connection control when receiving an unavailable connection notification message returned by the platform server, wherein the platform server is currently If the type code does not match the first current type code, or if the first current signal strength value is not obtained, a connection failure notification message is generated.
在一些实施例中,还包括:第二提醒模块,被配置为在接收到平台服务器返回的待连接通知消息的情况下,进行靠近空调位置移动的提示处理,其中,平台服务器在当前类型编码和第一当前类型编码匹配的情况下,若当前信号强度值与第一当前信号强度值不匹配时,生成待连接通知消息。In some embodiments, it also includes: a second reminder module configured to perform prompt processing for moving close to the air conditioner location upon receiving a notification message to be connected returned by the platform server, wherein the platform server determines the current type encoding and When the first current type code matches, if the current signal strength value does not match the first current signal strength value, a pending connection notification message is generated.
在一些实施例中,还包括:断开模块,被配置为向空调发送断开BLE连接请求,使得空调运行BLE广播模式。In some embodiments, a disconnect module is further included, configured to send a disconnection BLE connection request to the air conditioner, so that the air conditioner runs in the BLE broadcast mode.
在一些实施例中,还包括:测试模块,被配置为获取与设定型号空调之间的蓝牙信号的第一信号强度值,其中,空调位于设定位置;将第一信号强度值,设定型号对应的第一类型编码发送给平台服务器进行保存,其中,平台服务器记录了空调生成时,每个空调的设备信息以及通讯物联模组地址信息。In some embodiments, the method further includes: a test module configured to obtain a first signal strength value of the Bluetooth signal between the air conditioner of the set model and the air conditioner, where the air conditioner is located at the set position; and set the first signal strength value to The first type code corresponding to the model is sent to the platform server for storage. The platform server records the equipment information of each air conditioner and the address information of the communication IoT module when the air conditioner is generated.
可见,本实施例中,用于空调直连控制的装置可通过BLE连接对空调进行直连控制,以及,可将设定WIFI网络的网络属性信息,通过BLE连接发送给空调,从而,空调的通讯物联模组可根据网络属性信息自动连接到设定WIFI网络,使得空调所在区域没有可依靠的WIFI网络时,也可通过终端发送的网络属性信息,连接到对应的设定WIFI网络中,进行联网应用,扩展了空调的应用场景,也提高了用户体验。It can be seen that in this embodiment, the device for direct control of the air conditioner can directly control the air conditioner through a BLE connection, and can send the network attribute information of the WIFI network to the air conditioner through the BLE connection, so that the air conditioner The communication IoT module can automatically connect to the set WIFI network based on the network attribute information, so that when there is no reliable WIFI network in the area where the air conditioner is located, it can also connect to the corresponding set WIFI network through the network attribute information sent by the terminal. Networked applications expand the application scenarios of air conditioners and improve user experience.
本公开实施例提供了一种用于空调直连控制的装置,其结构如图6所示,包括:The embodiment of the present disclosure provides a device for direct control of air conditioners, the structure of which is shown in Figure 6, including:
处理器(processor)1000和存储器(memory)1001,还可以包括通信接口(Communication Interface)1002和总线1003。其中,处理器1000、通信接口1002、存储器1001可以通过总线1003完成相互间的通信。通信接口1002可以用于信息传输。处理器1000可以调用存储器1001中的逻辑指令,以执行上述实施例的用于空调直连控制的方法。The processor 1000 and the memory 1001 may also include a communication interface 1002 and a bus 1003. Among them, the processor 1000, the communication interface 1002, and the memory 1001 can communicate with each other through the bus 1003. Communication interface 1002 may be used for information transmission. The processor 1000 can call logical instructions in the memory 1001 to execute the method for direct air-conditioning control in the above embodiment.
此外,上述的存储器1001中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, the above-mentioned logical instructions in the memory 1001 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
存储器1001作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器1000通过运行存储在存储器1001中的程序指令/模块,从而执行功能应用以及数据处理,即实现上述方法实施例中的用于空调直连控制的方法。As a computer-readable storage medium, the memory 1001 can be used to store software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 1000 executes the program instructions/modules stored in the memory 1001 to execute functional applications and data processing, that is, to implement the method for direct air-conditioning control in the above method embodiment.
存储器1001可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器1001可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 1001 may include a stored program area and a stored data area, where the stored program area may store an operating system and an application program required for at least one function; the stored data area may store data created according to the use of the terminal device, etc. In addition, the memory 1001 may include a high-speed random access memory and may also include a non-volatile memory.
本公开实施例提供了一种用于空调直连控制装置,包括:处理器和存储有程序指令的存储器,处理器被配置为在执行程序指令时,执行用于空调直连控制方法。Embodiments of the present disclosure provide a direct-connection control device for air-conditioning, including: a processor and a memory storing program instructions. The processor is configured to execute a direct-connection control method for air-conditioning when executing the program instructions.
本公开实施例提供了一种空调,包括上述用于空调直连控制装置。An embodiment of the present disclosure provides an air conditioner, including the above-mentioned direct-connected control device for an air conditioner.
本公开实施例提供了一种存储介质,存储有程序指令,所述程序指令在运行时,执行如上述用于空调直连控制的方法。Embodiments of the present disclosure provide a storage medium that stores program instructions. When the program instructions are run, the above-mentioned method for air-conditioning direct connection control is executed.
本公开实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所 述计算机执行上述用于空调直连控制方法。Embodiments of the present disclosure provide a computer program product. The computer program product includes a computer program stored on a storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer is caused to execute The above is used for the direct connection control method of air conditioner.
本公开实施例提供了一种计算机程序,当所述计算机程序被计算机执行时,使所述计算机实现上述用于空调直连控制的方法。An embodiment of the present disclosure provides a computer program. When the computer program is executed by a computer, the computer implements the above method for air conditioner direct connection control.
上述的存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The above-mentioned storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network equipment, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. The aforementioned storage media can be non-transitory storage media, including: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc. A medium that can store program code or a temporary storage medium.
以上描述和附图充分地示出了本公开的实施例,以使本领域的技术人员能够实践它们。其他实施例可以包括结构的、逻辑的、电气的、过程的以及其他的改变。实施例仅代表可能的变化。除非明确要求,否则单独的部件和功能是可选的,并且操作的顺序可以变化。一些实施例的部分和特征可以被包括在或替换其他实施例的部分和特征。本公开实施例的范围包括权利要求书的整个范围,以及权利要求书的所有可获得的等同物。当用于本申请中时,虽然术语“第一”、“第二”等可能会在本申请中使用以描述各元件,但这些元件不应受到这些术语的限制。这些术语仅用于将一个元件与另一个元件区别开。比如,在不改变描述的含义的情况下,第一元件可以叫做第二元件,并且同样第,第二元件可以叫做第一元件,只要所有出现的“第一元件”一致重命名并且所有出现的“第二元件”一致重命名即可。第一元件和第二元件都是元件,但可以不是相同的元件。而且,本申请中使用的用词仅用于描述实施例并且不用于限制权利要求。如在实施例以及权利要求的描述中使用的,除非上下文清楚地表明,否则单数形式的“一个”(a)、“一个”(an)和“所述”(the)旨在同样包括复数形式。类似地,如在本申请中所使用的术语“和/或”是指包含一个或一个以上相关联的列出的任何以及所有可能的组合。另外,当用于本申请中时,术语“包括”(comprise)及其变型“包括”(comprises)和/或包括(comprising)等指陈述的特征、整体、步骤、操作、元素,和/或组件的存在,但不排除一个或一个以上其它特征、整体、步骤、操作、元素、组件和/或这些的分组的存在或添加。在没有更多限制的情况下,由语句“包括一个…”限定的要素,并不排除在包括所述要素的过程、方法或者设备中还存在另外的相同要素。本文中,每个实施例重点说明的可以是与其他实施例的不同之处,各个实施例之间相同相似部分可以互相参见。对于实施例公开的方法、产品等而言,如果其与实施例公开的方法 部分相对应,那么相关之处可以参见方法部分的描述。The foregoing description and drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples represent only possible variations. Unless explicitly required, individual components and features are optional and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. The scope of the disclosed embodiments includes the entire scope of the claims, and all available equivalents of the claims. When used in this application, although the terms "first," "second," etc. may be used in this application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, without changing the meaning of the description, a first component can be called a second component, and similarly, a second component can be called a first component, as long as all occurrences of "first component" are renamed consistently and all occurrences of "first component" are Just rename the "second component" consistently. The first element and the second element are both elements, but may not be the same element. Furthermore, the words used in this application are used only to describe the embodiments and not to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. . Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed items. In addition, when used in this application, the term "comprise" and its variations "comprises" and/or "comprising" etc. refer to stated features, integers, steps, operations, elements, and/or The presence of a component does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or groupings of these. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method or apparatus including the stated element. In this article, each embodiment may focus on its differences from other embodiments, and the same and similar parts among various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can be referred to the description of the method part.
本领域技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,可以取决于技术方案的特定应用和设计约束条件。所述技术人员可以对每个特定的应用来使用不同方法以实现所描述的功能,但是这种实现不应认为超出本公开实施例的范围。所述技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The skilled person may use different methods to implement the described functionality for each specific application, but such implementations should not be considered to be beyond the scope of the disclosed embodiments. The skilled person can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
本文所披露的实施例中,所揭露的方法、产品(包括但不限于装置、设备等),可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,可以仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例。另外,在本公开实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units may only be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
附图中的流程图和框图显示了根据本公开实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。在附图中的流程图和框图所对应的描述中,不同的方框所对应的操作或步骤也可以以不同于描述中所披露的顺序发生,有时不同的操作或步骤之间不存在特定的顺序。例如,两个连续的操作或步骤实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这可以依所涉及的功能而定。框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more components for implementing the specified logical function(s). Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two consecutive blocks may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, operations or steps corresponding to different blocks may also occur in a sequence different from that disclosed in the description, and sometimes there is no specific distinction between different operations or steps. order. For example, two consecutive operations or steps may actually be performed substantially in parallel, or they may sometimes be performed in reverse order, depending on the functionality involved. Each block in the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, may be implemented by special purpose hardware-based systems that perform the specified functions or actions, or may be implemented using special purpose hardware implemented in combination with computer instructions.

Claims (13)

  1. 一种用于空调直连控制的方法,其特征在于,所述空调配置有局域网WIFI和蓝牙BLE的通讯物联模组,该方法包括:A method for direct connection control of an air conditioner, characterized in that the air conditioner is equipped with a communication IoT module of LAN WIFI and Bluetooth BLE. The method includes:
    向所述空调发送BLE连接请求;Send a BLE connection request to the air conditioner;
    在确定根据所述BLE连接请求,与所述空调已建立BLE连接的情况下,运行用于所述空调直连的控制应用;When it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run a control application for direct connection of the air conditioner;
    在获取到设定局域网WIFI网络的网络属性信息的情况下,通过所述BLE连接,向所述空调发送所述网络属性信息,使得所述空调的所述通讯物联模组根据所述网络属性信息连接到所述设定局域网WIFI网络。When the network attribute information of the local area network WIFI network is obtained, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can be configured according to the network attributes. Information about connecting to the set LAN WIFI network.
  2. 根据权利要求1所述的方法,其特征在于,所述向所述空调发送BLE连接请求之前,还包括:The method according to claim 1, characterized in that before sending the BLE connection request to the air conditioner, it further includes:
    根据所述空调上电发出的蓝牙BLE广播,获取所述空调的当前类型编码,以及当前通讯物联模组地址信息。According to the Bluetooth BLE broadcast sent out by the air conditioner when it is powered on, the current type code of the air conditioner and the current communication IoT module address information are obtained.
  3. 根据权利要求1或2所述的方法,其特征在于,所述确定根据所述BLE连接请求,与所述空调已建立BLE连接包括:The method according to claim 1 or 2, wherein the determining that a BLE connection has been established with the air conditioner according to the BLE connection request includes:
    获取与所述空调之间的蓝牙BLE信号的当前信号强度值;Obtain the current signal strength value of the Bluetooth BLE signal between the air conditioner and the air conditioner;
    将所述当前信号强度值,以及所述当前类型编码和所述当前通讯物联模组地址信息同步给平台服务器;Synchronize the current signal strength value, as well as the current type code and the current communication IoT module address information to the platform server;
    在接收到所述平台服务器返回的连接通知消息的情况下,与所述空调建立BLE连接;其中,所述平台服务器从保存的通讯物联模组地址信息、第一类型编码信息和第一信号强度值中,获取与当前通讯物联模组地址信息匹配的第一当前类型编码和第一当前信号强度值,并在所述当前类型编码和所述第一当前类型编码匹配的情况下,若所述当前信号强度值与所述第一当前信号强度值匹配时,生成所述连接通知消息。Upon receiving the connection notification message returned by the platform server, establish a BLE connection with the air conditioner; wherein the platform server obtains the saved communication IoT module address information, first type encoding information and first signal Among the strength values, obtain the first current type code and the first current signal strength value that match the current communication IoT module address information, and if the current type code matches the first current type code, if When the current signal strength value matches the first current signal strength value, the connection notification message is generated.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method according to claim 3, further comprising:
    获取与设定型号空调之间的蓝牙信号的所述第一信号强度值,其中,所述空调位于设定位置;Obtain the first signal strength value of the Bluetooth signal between the air conditioner of the set model, where the air conditioner is located at the set position;
    将所述第一信号强度值,所述设定型号对应的第一类型编码发送给所述平台服务器进行保存,其中,所述平台服务器记录了空调生成时,每个空调的设备信息以及通讯物联模组地址信息。The first signal strength value and the first type code corresponding to the set model are sent to the platform server for storage, wherein the platform server records the equipment information and communication items of each air conditioner when the air conditioner is generated. Joint module group address information.
  5. 根据权利要求3所述的方法,其特征在于,还包括:The method according to claim 3, further comprising:
    在接收到所述平台服务器返回的无法连接通知消息的情况下,进行所述空调不支 持本地直连控制的提醒处理,其中,所述平台服务器在所述当前类型编码和所述第一当前类型编码不匹配的情况下,或,在未获取到所述第一当前信号强度值的情况下,生成所述无法连接通知消息。In the case of receiving the unconnection notification message returned by the platform server, a reminder process is performed that the air conditioner does not support local direct connection control, wherein the platform server selects the current type code and the first current type. In the case that the codes do not match, or in the case that the first current signal strength value is not obtained, the connection failure notification message is generated.
  6. 根据权利要求3所述的方法,其特征在于,还包括:The method according to claim 3, further comprising:
    在接收到所述平台服务器返回的待连接通知消息的情况下,进行靠近空调位置移动的提示处理,其中,所述平台服务器在所述当前类型编码和所述第一当前类型编码匹配的情况下,若所述当前信号强度值与所述第一当前信号强度值不匹配时,生成所述待连接通知消息。When receiving the notification message to be connected returned by the platform server, a prompt process for moving close to the air conditioner is performed, wherein the platform server performs prompt processing when the current type code matches the first current type code. , if the current signal strength value does not match the first current signal strength value, the pending connection notification message is generated.
  7. 根据权利要求1至6任一所述的方法,其特征在于,所述确定根据所述BLE连接请求,与所述空调已建立BLE连接包括:The method according to any one of claims 1 to 6, wherein the determining that a BLE connection has been established with the air conditioner according to the BLE connection request includes:
    在记录的BLE连接中包括了与所述空调的BLE连接的情况下,确定与所述空调已建立BLE连接。If the recorded BLE connection includes a BLE connection with the air conditioner, it is determined that a BLE connection has been established with the air conditioner.
  8. 根据权利要求1至7任一所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 7, further comprising:
    向所述空调发送断开BLE连接请求,使得所述空调运行BLE广播模式。Send a disconnection BLE connection request to the air conditioner so that the air conditioner runs in BLE broadcast mode.
  9. 一种用于空调直连控制的装置,该装置包括处理器和存储有程序指令的存储器,其特征在于,所述处理器被配置为在执行所述程序指令时,执行如权利要求1至8任一项所述用于空调直连控制的方法。A device for direct control of air conditioners, the device includes a processor and a memory storing program instructions, characterized in that the processor is configured to execute claims 1 to 8 when executing the program instructions. The method for direct air-conditioning control described in any one of the above.
  10. 一种存储介质,存储有程序指令,其特征在于,所述程序指令在运行时,执行如权利要求1至8任一项所述用于空调直连控制的方法。A storage medium stores program instructions, characterized in that, when the program instructions are run, the method for air-conditioning direct connection control described in any one of claims 1 to 8 is executed.
  11. 一种用于空调直连控制的系统,其特征在于,包括:配置有局域网WIFI和蓝牙BLE的通讯物联模组的空调、终端以及平台服务器,其中,A system for direct connection control of air conditioners, characterized by including: air conditioners, terminals and platform servers equipped with communication IoT modules of LAN WIFI and Bluetooth BLE, wherein,
    所述终端,被配置为向所述空调发送BLE连接请求;在确定根据所述BLE连接请求,与所述空调已建立BLE连接的情况下,运行用于所述空调直连的控制应用;在获取到设定局域网WIFI网络的网络属性信息的情况下,通过所述BLE连接,向所述空调发送所述网络属性信息,使得所述空调的所述通讯物联模组根据所述网络属性信息连接到所述设定局域网WIFI网络。The terminal is configured to send a BLE connection request to the air conditioner; when it is determined that a BLE connection has been established with the air conditioner according to the BLE connection request, run a control application for direct connection of the air conditioner; in When the network attribute information of the local area network WIFI network is obtained, the network attribute information is sent to the air conditioner through the BLE connection, so that the communication IoT module of the air conditioner can adjust the network attribute information according to the network attribute information. Connect to the set LAN WIFI network.
  12. 一种计算机程序,当所述计算机程序被计算机执行时,使所述计算机实现如权利要求1至8任一项所述用于空调直连控制的方法。A computer program that, when the computer program is executed by a computer, causes the computer to implement the method for direct air-conditioning control as described in any one of claims 1 to 8.
  13. 一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机指令,当所述程序指令被计算机执行时,使所述计算机实现如权利要求1至8任一项所述用于空调直连控制的方法。A computer program product. The computer program product includes computer instructions stored on a computer-readable storage medium. When the program instructions are executed by a computer, the computer implements the method described in any one of claims 1 to 8. Method for direct air conditioning control.
PCT/CN2022/130556 2022-03-30 2022-11-08 Method, apparatus and system for direct connection control of air conditioner, and storage medium WO2023184983A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210322297.8A CN114786279A (en) 2022-03-30 2022-03-30 Method, device and system for directly connecting control of air conditioner and storage medium
CN202210322297.8 2022-03-30

Publications (1)

Publication Number Publication Date
WO2023184983A1 true WO2023184983A1 (en) 2023-10-05

Family

ID=82427192

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/130556 WO2023184983A1 (en) 2022-03-30 2022-11-08 Method, apparatus and system for direct connection control of air conditioner, and storage medium

Country Status (2)

Country Link
CN (1) CN114786279A (en)
WO (1) WO2023184983A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114786279A (en) * 2022-03-30 2022-07-22 青岛海尔空调器有限总公司 Method, device and system for directly connecting control of air conditioner and storage medium
CN115515255A (en) * 2022-08-03 2022-12-23 阿波罗智联(北京)科技有限公司 Method, device, equipment and storage medium for establishing wireless connection

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163626A1 (en) * 2015-12-03 2017-06-08 Xiaomi Inc. Method and device for network access of a smart terminal device
CN112333060A (en) * 2020-10-21 2021-02-05 金羚电器有限公司 Hybrid network distribution method and system
CN112533206A (en) * 2020-12-04 2021-03-19 北京金史密斯科技有限公司 Network distribution method and device, storage medium and electronic equipment
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
WO2022000938A1 (en) * 2020-06-29 2022-01-06 广东美的制冷设备有限公司 Network distribution method, storage medium, household appliance, mobile terminal, and network distribution system
WO2022016669A1 (en) * 2020-07-24 2022-01-27 深圳创维数字技术有限公司 Bluetooth network configuration method, device, and storage medium
CN114786279A (en) * 2022-03-30 2022-07-22 青岛海尔空调器有限总公司 Method, device and system for directly connecting control of air conditioner and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170163626A1 (en) * 2015-12-03 2017-06-08 Xiaomi Inc. Method and device for network access of a smart terminal device
WO2022000938A1 (en) * 2020-06-29 2022-01-06 广东美的制冷设备有限公司 Network distribution method, storage medium, household appliance, mobile terminal, and network distribution system
WO2022016669A1 (en) * 2020-07-24 2022-01-27 深圳创维数字技术有限公司 Bluetooth network configuration method, device, and storage medium
CN112333060A (en) * 2020-10-21 2021-02-05 金羚电器有限公司 Hybrid network distribution method and system
CN112533206A (en) * 2020-12-04 2021-03-19 北京金史密斯科技有限公司 Network distribution method and device, storage medium and electronic equipment
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN114786279A (en) * 2022-03-30 2022-07-22 青岛海尔空调器有限总公司 Method, device and system for directly connecting control of air conditioner and storage medium

Also Published As

Publication number Publication date
CN114786279A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
WO2023184983A1 (en) Method, apparatus and system for direct connection control of air conditioner, and storage medium
CN107332876B (en) Method and device for synchronizing block chain state
CN110392445B (en) Method, device and system for equipment distribution network
EP2999250B1 (en) Method and apparatus for interconnection between terminal device and gateway device
CN105867837A (en) Method, equipment and system for updating configurations of clients in distributed high-speed cache systems
CN108173691B (en) Cross-device aggregation method and device
CN102685745A (en) Wireless access point (AP) equipment authentication method and system
CN103369529B (en) Identity identifying method, accessing points and access controller
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN110381160B (en) Communication information interaction method and device, storage medium and computer equipment
WO2018023338A1 (en) Network-function management method and network-function management device
EP1895718A1 (en) Method and apparatus for checking maintenance association integrity and method and apparatus for adding maintenance end point.
CN106658576B (en) Data processing method, device and network system
CN112202877B (en) Gateway linkage method, gateway, cloud server and user terminal
CN113141674A (en) Link configuration method, device, system and storage medium in multi-link system
CN105787344A (en) Slave device and method for establishing connection between same and master device
CN109195199B (en) AP management method and device
CN107306289B (en) Load balancing method and device based on cloud computing
WO2022160864A1 (en) Network access method and apparatus for intelligent device, and intelligent device
CN107426752B (en) Automatic pairing method for bridge link and WDS bridge link system
CN105227650A (en) File sharing method and system between a kind of mobile terminal
CN114240651A (en) Cross-chain transaction sending method, device, equipment and storage medium
CN111147269B (en) Access point configuration method, networking system, access point and storage medium
CN107666495B (en) Disaster recovery method and terminal for application
CN108900575B (en) Long connection hierarchical communication method and system based on mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22934801

Country of ref document: EP

Kind code of ref document: A1