Equipment connection mode control method and device, electronic equipment and storage medium

By automatically selecting the appropriate connection module and data caching mechanism, the problem of unstable connection of smart home devices when the network environment changes is solved, realizing stable and efficient device connection, improving user experience and battery life.

CN120956550APending Publication Date: 2025-11-14GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510989444.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-17
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

The current smart home devices rely on manual operation by the user to switch between WiFi and Bluetooth modules, resulting in unstable connections and an inability to adapt to changes in the network environment in a timely manner, which affects the user experience.

Method used

By acquiring network environment parameters, device status, and data transmission requirements of smart devices, and utilizing pre-trained decision models or strategies, the system automatically selects appropriate connection modules and performs data caching and collaborative connection during the switching process to ensure stable transmission.

Benefits of technology

It enables automatic and intelligent module switching of smart devices in complex environments, reducing the user's operational burden, improving connection stability and user experience, and reducing device power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120956550A_ABST
    Figure CN120956550A_ABST
Patent Text Reader

Abstract

The invention relates to an equipment connection mode control method and apparatus, an electronic device and a storage medium. The method comprises the steps of obtaining a current network environment parameter and / or a current equipment state and / or a current data transmission demand of an intelligent device; generating a connection module selection decision according to a connection module selection strategy based on the current network environment parameter and / or the current equipment state and / or the current data transmission requirement; the connection module selection decision is a connection module selected for the intelligent equipment and used for being connected with a local network or a user terminal; and controlling the connection mode of the intelligent equipment according to the connection module selection decision. According to the invention, automatic and intelligent module switching can be realized, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of equipment control technology, and in particular to a control method, device, electronic device and storage medium for equipment connection. Background Technology

[0002] Various smart home devices, such as smart door locks and smart thermostats, typically connect to home networks or user terminals via WiFi or Bluetooth to enable functions such as data interaction, remote control, and status monitoring.

[0003] Currently, switching between WiFi and Bluetooth modules on devices mostly relies on manual operation by the user. This method is not only cumbersome, but also cannot adapt to new connection requirements in a timely and automatic manner when the network environment changes dynamically or the device moves, resulting in unstable device connection, data transmission delay or interruption, which seriously affects the user experience. Summary of the Invention

[0004] This application provides a control method, apparatus, electronic device, and storage medium for device connection, in order to solve the problem of unstable device connection that affects user experience in related technologies.

[0005] On one hand, the present invention provides a method for controlling a device connection method, comprising:

[0006] Obtain the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device;

[0007] Based on the current network environment parameters and / or the current device status and / or the current data transmission requirements, a connection module selection decision is generated according to the connection module selection strategy; the connection module selection decision is the connection module selected for the smart device when connecting to the local network or user terminal;

[0008] The connection method of the smart device is controlled based on the connection module selection decision.

[0009] Optionally, before the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device, the method further includes:

[0010] Determine whether any of the following conditions are met; if so, execute the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device;

[0011] The position change of the intelligent device reaches the position threshold.

[0012] The layout of the space where the smart device is located has been adjusted;

[0013] The network signal strength fluctuation of the smart device is greater than the fluctuation threshold.

[0014] The smart device was started;

[0015] The scheduled detection period for the intelligent device has arrived;

[0016] Current data transmission requirements have changed.

[0017] Optionally, the connection module selection strategy is generated based on a pre-trained decision model;

[0018] The specific training method for the decision model is as follows:

[0019] The input training data includes: one or more of the following: historical network environment parameters of the smart device, historical device status, and historical data transmission requirements; and historical connection quality logs.

[0020] The model is trained using supervised learning or reinforcement learning to generate a decision model.

[0021] Current network environment parameters include: current network signal strength, current bandwidth, and current latency, or any combination of one or more of these parameters; or

[0022] Current device status includes: current battery level, current movement speed, current acceleration, and current location, or any combination of one or more of these parameters;

[0023] Current data transmission requirements include: the size of the data to be transmitted, the data type, and any combination of one or more of the required transmission rate.

[0024] The connection module is either a first type module or a second type module;

[0025] The power consumption of the first type of module is greater than that of the second type of module; or, the transmission bandwidth of the first type of module is greater than that of the second type of module.

[0026] The connection module selection strategy includes:

[0027] When the data type is real-time streaming media, the connection module selection decision is: to use dual-module collaboration; or

[0028] When the data type is emergency alarm data, the connection module selection decision is: use dual-module collaboration; or

[0029] When the data type is intermittent sensor data, the connection module selection decision is: use the second type of module; or

[0030] When the transmission bandwidth of the first type of module is greater than a predetermined bandwidth threshold, and the data to be transmitted is greater than a first data threshold, the connection module selection decision is: to use the first type of module; or

[0031] When the data to be transmitted is less than the second data threshold, the connection module selection decision is: use the second type of module; or

[0032] When the battery power of the intelligent setting is less than the predetermined power threshold, the connection module selection decision is: to use the second type of module.

[0033] The connection module includes a Bluetooth module, a WIFI module, a Zigbee communication module, an infrared communication module, and a radio frequency communication module.

[0034] The switching process includes:

[0035] Cache and preload the data to be transmitted;

[0036] Data transmission is performed using a dual-module collaborative connection method;

[0037] Switch the connection module;

[0038] If the switch fails or the connection after the switch is unstable, a rollback process will be performed.

[0039] On the other hand, a control device for a device connection method is provided, comprising:

[0040] The acquisition module is used to acquire the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device;

[0041] The generation module is used to generate a connection module selection decision based on the current network environment parameters and / or the current device status and / or the current data transmission requirements, according to the connection module selection strategy; the connection module selection decision is the connection module selected for the smart device to use when connecting to the local network or user terminal;

[0042] The control module is used to control the connection method of the smart device based on the selection decision of the connection module.

[0043] On the other hand, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0044] Memory, used to store computer programs;

[0045] A processor, when executing a program stored in memory, implements the method described in any one of claims 1-7.

[0046] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program implements the method when executed by a processor.

[0047] Compared with the prior art, the technical solutions provided in this application have the following advantages: the present invention can realize automatic and intelligent module switching, ensure that the device always maintains a stable and efficient connection, reduce the user's operational burden, and improve the user experience. Attached Figure Description

[0048] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0049] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0050] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.

[0051] Figure 1 A schematic diagram illustrating the control process of a device connection method provided in an embodiment of this application;

[0052] Figure 2 This is a schematic diagram of the adaptive switching system framework for a smart device WIFI / Bluetooth module provided in an embodiment of this application.

[0053] Figure 3 This is a flowchart illustrating the adaptive switching system for smart home WIFI / Bluetooth modules provided in an embodiment of this application.

[0054] Figure 4 A schematic diagram of the structure of a control device for a device connection method provided in an embodiment of this application;

[0055] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0056] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0057] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0058] like Figure 1 As shown, the present invention provides a control method for a device connection method, comprising:

[0059] Step 11: Obtain the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device;

[0060] The current network environment parameters may include: current network signal strength, current bandwidth, and current latency, or any combination of one or more of these parameters; or

[0061] The current device status may include any combination of one or more of the following: current battery level, current movement speed, current acceleration, and current location; or

[0062] Current data transmission requirements may include one or more of the following: the size of the data to be transmitted, the data type, and the required transmission rate.

[0063] This invention implements multi-dimensional environmental monitoring, comprehensively considering multiple dimensions such as network environment, device status, and data transmission requirements to fully and accurately assess current connectivity needs. This includes the following aspects:

[0064] 1) Network environment monitoring: Real-time monitoring of indicators such as WiFi signal strength, Bluetooth signal quality, network bandwidth, and network latency to understand the overall network status.

[0065] 2) Equipment status monitoring: Obtain information such as the device's battery level, movement speed, and location to determine whether the device is in motion or has insufficient power.

[0066] 3) Data transmission requirement monitoring: Analyze the size, type, and transmission rate requirements of the data to be transmitted to determine the urgency and importance of data transmission.

[0067] Step 12: Based on the current network environment parameters and / or the current device status and / or the current data transmission requirements, generate a connection module selection decision according to the connection module selection strategy; the connection module selection decision is the connection module selected for the smart device when connecting to the local network or user terminal; wherein, the connection module selection strategy is generated according to a pre-trained decision model; or, the connection module selection strategy is a pre-set strategy.

[0068] The connection module can be a Bluetooth module, a WIFI module, a Zigbee communication module, an infrared communication module, a radio frequency communication module, etc., and the present invention does not impose any particular limitation.

[0069] Step 13: Control the connection method of the smart device according to the connection module selection decision. In this step, the connection module can be switched.

[0070] This invention enables automatic and intelligent module switching, ensuring that the device always maintains a stable and efficient connection, reducing the user's operational burden and improving the user experience.

[0071] In some embodiments, step 13 may include:

[0072] Cache and preload the data to be transmitted;

[0073] Data transmission is performed using a dual-module collaborative connection method;

[0074] Switch the connection module;

[0075] If the switch fails or the connection after the switch is unstable, a rollback process will be performed.

[0076] Optionally, before the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device, the method further includes:

[0077] Step 10: Determine whether any of the following conditions are met; if so, execute the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device.

[0078] The position change of the intelligent device reaches the position threshold.

[0079] The layout of the space where the smart device is located has been adjusted;

[0080] The network signal strength fluctuation of the smart device is greater than the fluctuation threshold.

[0081] The smart device was started;

[0082] The scheduled detection period for the intelligent device has arrived;

[0083] Current data transmission requirements have changed.

[0084] Those skilled in the art will understand that the above thresholds (position threshold, fluctuation threshold) can be set based on experience or actual circumstances.

[0085] In the above embodiments, the intelligent settings can be switched to the appropriate connection method in a timely manner, thereby avoiding connection interruption or degradation of connection quality.

[0086] In one embodiment, the connection module selection strategy is generated based on a pre-trained decision model;

[0087] The specific training method for the decision model is as follows:

[0088] The input training data includes: one or more of the following: historical network environment parameters of the smart device, historical device status, and historical data transmission requirements; and historical connection quality logs.

[0089] The model is trained using supervised learning or reinforcement learning to generate a decision model.

[0090] Specifically, this invention uses intelligent decision-making algorithms to formulate module loading and switching strategies based on multi-dimensional monitoring data. Supervised learning (such as random forest or XGBoost) or reinforcement learning (Q-Learning) is used to train the model, learning the optimal connection strategy from historical data.

[0091] The specific implementation includes:

[0092] Feature engineering: Input features include signal strength, latency, power consumption, data size, device movement speed, etc.

[0093] Training data: Collect connection quality logs (such as successful / failed transmission records and latency changes) from actual user usage.

[0094] Online learning: After deployment, the model parameters are continuously updated to adapt to environmental changes (such as adjustments to home layout).

[0095] Alternatively, in some embodiments, the connection module selection strategy is a pre-set rule. For example, the connection module is a first type module or a second type module;

[0096] The power consumption of the first type of module is greater than that of the second type of module; or the transmission bandwidth of the first type of module is greater than that of the second type of module.

[0097] The connection module can be a Bluetooth module, a WIFI module, a Zigbee communication module, an infrared communication module, a radio frequency communication module, etc., and this invention does not impose any particular limitation. The division between the first type of module and the second type of module is based on the comparison relationship between the two modules, and can be based on the actual modules set in the smart device.

[0098] The connection module selection strategy includes:

[0099] When the data type is real-time streaming media, the connection module selection decision is: to use dual-module collaboration; or

[0100] When the data type is emergency alarm data, the connection module selection decision is: use dual-module collaboration; or

[0101] When the data type is intermittent sensor data, the connection module selection decision is: use the second type of module; or

[0102] When the transmission bandwidth of the first type of module is greater than a predetermined bandwidth threshold, and the data to be transmitted is greater than a first data threshold, the connection module selection decision is: to use the first type of module; or

[0103] When the amount of data to be transmitted is less than the second data threshold, the connection module selection decision is: to use the second type of module.

[0104] The above embodiments can determine the urgency and importance of data transmission based on the size, type, and transmission rate requirements of the data to be transmitted, and then perform corresponding processing.

[0105] When the battery level of the intelligent setting is lower than a predetermined power threshold, the connection module selection decision is to use the second type of module. This invention can reduce the power consumption of intelligent devices and extend their battery life.

[0106] Those skilled in the art will understand that the above thresholds (bandwidth threshold, power threshold, etc.) can be set based on experience or actual circumstances.

[0107] The following describes the application scenarios of this invention. Figure 2 This is a schematic diagram of the adaptive switching system framework for a smart device WIFI / Bluetooth module provided in an embodiment of this application. Figure 3 This is a flowchart illustrating the adaptive switching system for a smart home WIFI / Bluetooth module provided in an embodiment of this application. The following is in conjunction with... Figure 2 and Figure 3 Describe it.

[0108] like Figure 2 The diagram shows the system architecture of this invention.

[0109] 1. System Architecture Design: The smart home devices are equipped with dual WiFi and Bluetooth modules, as well as a central control unit. The central control unit is used for environmental monitoring, decision-making, and module switching control. Simultaneously, the smart devices communicate with the home gateway and user terminals via a network.

[0110] 2. Environmental monitoring module implementation:

[0111] ① Network environment monitoring: Utilizing the device's built-in WiFi and Bluetooth chips, it periodically scans the surrounding network signals to obtain information such as signal strength, bandwidth, and latency.

[0112] ② Equipment status monitoring: Real-time data such as battery level, acceleration, and position are collected through the equipment's sensors.

[0113] ③ Data transmission requirement monitoring: When a data transmission task is initiated, analyze the header information of the data packet to obtain parameters such as data size, type, and transmission rate requirements.

[0114] 3. Implementation of the intelligent decision-making module:

[0115] ① Decision model training: Collect a large amount of actual monitoring data and corresponding module selection results, and use machine learning algorithms to train and optimize the decision model.

[0116] ② Real-time decision-making: Input real-time monitoring data into the trained decision-making model to quickly output the optimal module selection decision.

[0117] (1) Data size driven strategy: Wi-Fi has high bandwidth (e.g., >50Mbps) and transmits large files such as videos and firmware upgrades; Bluetooth has low power consumption and transmits small data packets such as sensor data and control commands.

[0118] (2) Data type driven strategy: Real-time streaming media (video / audio) adopts forced Wi-Fi + dual-module collaboration; intermittent sensor data (temperature, humidity, door magnet) adopts Bluetooth low power mode; emergency alarm data adopts dual-module concurrent transmission.

[0119] 4. Module loading and switching implementation:

[0120] ① Module loading: Based on the decision result, load the corresponding WiFi or Bluetooth module through the device's hardware interface and initialize the relevant software driver.

[0121] ② Seamless handover: Before handover, the data currently being transmitted is cached; during handover, brief communication with the original connection is maintained to ensure that no data is lost; after handover, data transmission is restored.

[0122] Specifically, it includes:

[0123] 1) Cache triggering mechanism to cache and preload data to save data that has not been fully transmitted before switching, so as to avoid data loss due to network interruption.

[0124] 2) Dual-module collaboration and connection maintenance to briefly maintain both WIFI and Bluetooth connectivity during switching to ensure network continuity.

[0125] 3) Switching execution and fast recovery: Module switching is completed within milliseconds, and data transmission is restored.

[0126] 4) Anomaly handling and rollback mechanism to deal with extreme situations such as handover failure or unstable new connection.

[0127] 5. User Interaction and Feedback Module:

[0128] ① User interface design: It features a user-friendly interface that displays the current connection status, the reason for module selection, network environment information, etc.

[0129] ② User operation support: Allows users to manually trigger module switching and set switching priority and preferences.

[0130] ③ Feedback mechanism: Regularly provide users with feedback on the effects of module switching and the energy consumption of the equipment, and offer optimization suggestions.

[0131] The following describes an adaptive switching method for smart home connectivity modules based on automatic dynamic loading. This application scenario uses Wi-Fi and Bluetooth connectivity modules as an example, illustrating the process of switching from a Wi-Fi module to a Bluetooth module. Dynamic loading means that the Wi-Fi and Bluetooth modules are in a dormant state when not in use and are activated when needed.

[0132] Scenario: The smart door lock needs to switch to Bluetooth direct connection to the mobile phone when the user leaves home (WiFi signal weakens).

[0133] Triggering conditions: WiFi signal strength < -75dBm, and the phone's Bluetooth is in pairing mode.

[0134] Execution process:

[0135] Step 1: Cache the door opening record data that has not been uploaded to the local Flash;

[0136] Step 2: The Bluetooth module starts up and completes low-power pairing with the mobile phone;

[0137] Step 3: The WiFi module remains connected until it receives an ACK confirmation from the phone's Bluetooth.

[0138] Step 4: The door lock sends cached data via Bluetooth and turns off WiFi to save power.

[0139] Result: Users' mobile phones received door opening notifications in real time, achieving no data loss and extended battery life.

[0140] This invention achieves optimal connectivity by monitoring multiple factors in real time and employing intelligent decision-making algorithms to dynamically load and switch between WiFi and Bluetooth modules. It can perform the following functions:

[0141] 1) Dynamic weight adjustment: The weight of each monitoring factor is dynamically adjusted according to different application scenarios and user preferences, making decision-making more flexible and personalized.

[0142] 2) Dynamic loading and seamless switching: Based on the decision results, the corresponding WiFi or Bluetooth module is dynamically loaded, and the switching process is ensured to be seamless.

[0143] 3) Dynamic module loading: When the device starts up or when a switching requirement arises, the corresponding hardware modules and software drivers are quickly loaded according to the decision instructions.

[0144] 4) Seamless handover mechanism: During the handover process, technologies such as data caching and connection persistence are used to ensure the continuity and stability of data transmission and avoid connection interruption or data loss caused by handover.

[0145] It has the following beneficial effects:

[0146] 1. In the prior art, the manual switching method cannot meet the rapid connection needs of smart home devices in complex and ever-changing environments. The present invention improves the user experience by realizing automatic and intelligent module switching, ensuring that the device always maintains a stable and efficient connection, and reducing the user's operational burden.

[0147] 2. Existing technologies suffer from insufficient connection stability. When the network fluctuates or the device location changes, they cannot promptly switch to a suitable connection method, leading to connection interruptions or quality degradation. This invention enhances system adaptability, enabling it to adapt to different network environments, device states, and data transmission requirements, thereby improving the reliability and stability of the smart home system.

[0148] 3. Existing technologies suffer from resource waste, using high-power WiFi modules unnecessarily, increasing device energy consumption and operating costs. This invention optimizes resource utilization, dynamically selecting appropriate modules based on actual needs, reducing device power consumption and extending battery life.

[0149] like Figure 4 As shown, a control device for a device connection method according to the present invention includes:

[0150] The acquisition module 41 is used to acquire the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device;

[0151] The generation module 42 is used to generate a connection module selection decision based on the current network environment parameters and / or the current device status and / or the current data transmission requirements, according to the connection module selection strategy; the connection module selection decision is the connection module selected for the smart device to use when connecting to the local network or user terminal;

[0152] The control module 43 is used to control the connection method of the smart device according to the connection module selection decision.

[0153] The control module includes:

[0154] The caching and preloading submodule caches and preloads the data to be transmitted.

[0155] The transmission submodule uses a dual-module collaborative connection method for data transmission;

[0156] Switch submodules to switch connection modules;

[0157] The rollback submodule performs rollback processing when the switch fails or the connection after the switch is unstable.

[0158] The control device further includes:

[0159] The judgment module is used to determine whether any of the following conditions are met; if they are met, the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device is executed.

[0160] The position change of the intelligent device reaches the position threshold.

[0161] The layout of the space where the smart device is located has been adjusted;

[0162] The network signal strength fluctuation of the smart device is greater than the fluctuation threshold.

[0163] The smart device was started;

[0164] The scheduled detection period for the intelligent device has arrived;

[0165] Current data transmission requirements have changed.

[0166] Current network environment parameters include: current network signal strength, current bandwidth, and current latency, or any combination of one or more of these parameters; or

[0167] Current device status includes: current battery level, current movement speed, current acceleration, and current location, or any combination of one or more of these parameters;

[0168] Current data transmission requirements include: the size of the data to be transmitted, the data type, and any combination of one or more of the required transmission rate.

[0169] The connection module is either a first type module or a second type module;

[0170] The power consumption of the first type of module is greater than that of the second type of module; or, the transmission bandwidth of the first type of module is greater than that of the second type of module.

[0171] The connection module includes a Bluetooth module, a WIFI module, a Zigbee communication module, an infrared communication module, and a radio frequency communication module.

[0172] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0173] like Figure 5 As shown in the illustration, this application also provides an electronic device, including a processor 611, a communication interface 612, a memory 613, and a communication bus 614, wherein the processor 611, the communication interface 612, and the memory 613 communicate with each other via the communication bus 614.

[0174] Memory 613 is used to store computer programs;

[0175] In one embodiment of this application, when the processor 611 executes the program stored in the memory 613, it implements the method provided in any of the foregoing method embodiments.

[0176] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method provided in any of the foregoing method embodiments.

[0177] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0178] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0179] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.

[0180] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A control method for a device connection method, characterized in that, include: Obtain the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device; Based on the current network environment parameters and / or the current device status and / or the current data transmission requirements, a connection module selection decision is generated according to the connection module selection strategy; the connection module selection decision is the connection module selected for the smart device when connecting to the local network or user terminal; The connection method of the smart device is controlled based on the connection module selection decision.

2. The method according to claim 1, characterized in that, Before the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device, the method further includes: Determine whether any of the following conditions are met; if so, execute the step of obtaining the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device; The position change of the intelligent device reaches the position threshold. The layout of the space where the smart device is located has been adjusted; The network signal strength fluctuation of the smart device is greater than the fluctuation threshold. The smart device was started; The scheduled detection period for the intelligent device has arrived; Current data transmission requirements have changed.

3. The method according to claim 1, characterized in that, The connection module selection strategy is generated based on a pre-trained decision model; The specific training method for the decision model is as follows: The input training data includes: one or more of the following: historical network environment parameters of the smart device, historical device status, and historical data transmission requirements; and historical connection quality logs. The model is trained using supervised learning or reinforcement learning to generate a decision model.

4. The method according to claim 1, characterized in that, Current network environment parameters include: current network signal strength, current bandwidth, and current latency, or any combination of one or more of these parameters; or Current device status includes: current battery level, current movement speed, current acceleration, and current location, or any combination of one or more of these parameters; Current data transmission requirements include: the size of the data to be transmitted, the data type, and any combination of one or more of the required transmission rate.

5. The method according to claim 1, characterized in that, The connection module is either a first type module or a second type module; The power consumption of the first type of module is greater than that of the second type of module; or, the transmission bandwidth of the first type of module is greater than that of the second type of module. The connection module selection strategy includes: When the data type is real-time streaming media, the connection module selection decision is: to use dual-module collaboration; or When the data type is emergency alarm data, the connection module selection decision is: use dual-module collaboration; or When the data type is intermittent sensor data, the connection module selection decision is: use the second type of module; or When the transmission bandwidth of the first type of module is greater than a predetermined bandwidth threshold, and the data to be transmitted is greater than a first data threshold, the connection module selection decision is: to use the first type of module; or When the data to be transmitted is less than the second data threshold, the connection module selection decision is: use the second type of module; or When the battery power of the intelligent setting is less than the predetermined power threshold, the connection module selection decision is: to use the second type of module.

6. The method according to claim 1, characterized in that, The connection module is a Bluetooth module, a WIFI module, a Zigbee communication module, an infrared communication module, or a radio frequency communication module.

7. The method according to claim 1, characterized in that, The step of controlling the connection method of the smart device based on the connection module selection decision includes: Cache and preload the data to be transmitted; Data transmission is performed using a dual-module collaborative connection method; Switch the connection module; If the switch fails or the connection after the switch is unstable, a rollback process will be performed.

8. A control device for a device connection method, characterized in that, The device includes: The acquisition module is used to acquire the current network environment parameters and / or current device status and / or current data transmission requirements of the smart device; The generation module is used to generate a connection module selection decision based on the current network environment parameters and / or the current device status and / or the current data transmission requirements, according to the connection module selection strategy; the connection module selection decision is the connection module selected for the smart device to use when connecting to the local network or user terminal; The control module is used to control the connection method of the smart device based on the selection decision of the connection module.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-7.