Method and apparatus for displaying off-line state of bluetooth low energy mesh network device
Patent Information
- Application Number
- CN202610828978.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-09
- Publication Date
- 2026-09-29
AI Technical Summary
[0003]在智能家居设备管理系统的传统方案中,设备状态展示依赖于进入页面时直接读取本地缓存数据,导致用户看到的可能是过时的离在线信息,无法实时反映设备当前实际连接情况;同时,系统仅监听单一蓝牙状态,未对蓝牙低功耗网状网络设备(Bluetooth LowEnergy Mesh Device,蓝牙低功耗网状网络设备)与普通蓝牙设备的通信机制进行区分处理,使得两类设备的离在线逻辑混淆,进一步导致页面显示的混乱
[0017]本申请提供的蓝牙低功耗网状网络设备的离在线状态显示方法及装置,通过在用户打开智能家居设备设置页时自动完成蓝牙低功耗连接并按“蓝牙连接→蓝牙低功耗网络在线”的分层顺序判断目标蓝牙低功耗网状网络设备的状态,在标题栏展示表示同时处于云端在线与蓝牙本地在线的第一图标,使用户能够直观区分设备是同时支持云端远程控制与蓝牙本地控制还是仅支持蓝牙本地控制,解决了现有技术中蓝牙状态、蓝牙低功耗网络在线状态无法按优先级有序展示导致页面显示混乱的问题。
Smart Images

Figure CN122845650A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and more specifically, to a method and apparatus for displaying the online / offline status of a Bluetooth Low Energy mesh network device. Background Technology
[0002] With the popularization of smart home devices, Bluetooth and BleMesh (Bluetooth Mesh) technologies are widely used in sensors, lighting and other devices due to their low power consumption and low cost.
[0003] In traditional smart home device management systems, device status display relies on directly reading local cached data upon entering the page. This can lead to users seeing outdated online / offline information, failing to reflect the device's current actual connection status in real time. Furthermore, the system only monitors a single Bluetooth status and does not differentiate between the communication mechanisms of Bluetooth Low Energy Mesh Devices (BLM) and regular Bluetooth devices. This confusion between the online / offline logic of the two types of devices further contributes to the chaotic page display.
[0004] Therefore, how to achieve accurate and reasonable visualization of the online status of Bluetooth Low Energy mesh network devices is a technical problem that urgently needs to be solved. Summary of the Invention
[0005] This application provides a method and apparatus for displaying the online and offline status of Bluetooth Low Energy mesh network devices, in order to solve the above-mentioned defects in the prior art and realize the accurate and reasonable visualization of the online status of Bluetooth Low Energy mesh network devices.
[0006] This application provides a method for displaying the online / offline status of a Bluetooth Low Energy mesh network device, executed by a terminal device, the method comprising: In response to the opening operation of the smart home device settings page, a Bluetooth Low Energy (BLE) connection is initiated to the target Bluetooth Low Energy (BLE) mesh network device corresponding to the smart home device settings page; the BLE connection is confirmed to be successful; the target Bluetooth Low Energy (BLE) mesh network device is confirmed to be online in the cloud through the target Bluetooth Low Energy (BLE) mesh network gateway, and a first icon is displayed on the smart home device settings page. The first icon is used to indicate that the target Bluetooth Low Energy (BLE) mesh network device is simultaneously in a cloud online state and a Bluetooth local online state.
[0007] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, the method further includes: If it is determined that the target Bluetooth Low Energy Mesh Network device is not online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, a second icon is displayed on the smart home device settings page. The second icon is used to indicate that the target Bluetooth Low Energy Mesh Network device is in a Bluetooth local online state and is not in a cloud online state.
[0008] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, the step of initiating a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page includes: Obtain the Bluetooth switch status of the terminal device; if the Bluetooth switch status is not enabled, display a first UI interface, which is used to indicate that the Bluetooth of the terminal device is not enabled.
[0009] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, the step of initiating a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page includes: Obtain the Bluetooth switch status of the terminal device; if the Bluetooth switch status is on, initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device.
[0010] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, the step of initiating a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page includes: Initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device; display a target animation to represent that the terminal device is establishing a Bluetooth Low Energy connection.
[0011] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, the displayed target animation includes: The process involves determining that a first operating system is running on the terminal device; invoking the animation rendering component of the first operating system to display the target animation; determining that a second operating system is running on the terminal device; and invoking the animation rendering component of the second operating system to display the target animation.
[0012] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, the method further includes: The Bluetooth Low Energy connection is determined to have failed; a second UI interface is displayed to indicate that the terminal device has failed to connect to the target Bluetooth Low Energy mesh network device.
[0013] According to the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device provided in this application, determining that the target Bluetooth Low Energy mesh network device is online in the cloud through a target Bluetooth Low Energy mesh network gateway includes: The system determines that the target Bluetooth Low Energy (BLE) mesh network gateway is online; sends a query request to the target BLE mesh network gateway to determine whether the target BLE mesh network device is online in the cloud; receives the query result returned by the target BLE mesh network gateway in response to the query request, wherein the query result indicates that the target BLE mesh network device is online in the cloud; and determines that the target BLE mesh network device is online in the cloud through the target BLE mesh network gateway.
[0014] This application also provides an offline / online status display device for a Bluetooth Low Energy mesh network device, installed on a mobile terminal, the device comprising: The connection module is used to initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page in response to the opening operation of the smart home device settings page; the determination module is used to determine that the Bluetooth Low Energy connection is successful; the display module is used to determine that the target Bluetooth Low Energy mesh network device is online in the cloud through the target Bluetooth Low Energy mesh network gateway, and to display a first icon on the smart home device settings page, the first icon being used to indicate that the target Bluetooth Low Energy mesh network device is simultaneously in a cloud online state and a Bluetooth local online state.
[0015] This application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the offline / offline status display method of any of the Bluetooth Low Energy Mesh Network devices described above.
[0016] This application also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the online / offline status display method for Bluetooth Low Energy Mesh Network Device as described above.
[0017] The method and apparatus for displaying the online / offline status of Bluetooth Low Energy mesh network devices provided in this application automatically completes the Bluetooth Low Energy connection when the user opens the smart home device settings page and determines the status of the target Bluetooth Low Energy mesh network device in a hierarchical order of "Bluetooth connection → Bluetooth Low Energy network online". The first icon indicating that the device is simultaneously online in the cloud and online locally via Bluetooth is displayed in the title bar, allowing the user to intuitively distinguish whether the device supports both cloud remote control and Bluetooth local control or only Bluetooth local control. This solves the problem of page display chaos caused by the inability to display Bluetooth status and Bluetooth Low Energy network online status in the prior art according to priority. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0019] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the hardware environment for an interaction method of a smart device according to an embodiment of this application.
[0021] Figure 2 This is one of the flowcharts illustrating the offline / online status display method for Bluetooth Low Energy mesh network devices provided in this application; Figure 3 This is the second flowchart illustrating the offline / online status display method for Bluetooth Low Energy mesh network devices provided in this application; Figure 4 This is a logical diagram illustrating the online / offline status display of the Bluetooth Low Energy mesh network device provided in this application; Figure 5 This is an interactive timing diagram of the online / offline status display of the Bluetooth Low Energy mesh network device provided in this application; Figure 6 This is a schematic diagram of the offline / online status display device for the Bluetooth Low Energy mesh network device provided in this application; Figure 7 This is a schematic diagram of the structure of the electronic device provided in this application; Detailed Implementation
[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] According to one aspect of the embodiments of this application, an interaction method for smart home devices is provided. This interaction method for smart home devices is widely applicable to digital control scenarios such as smart homes, smart home ecosystems, intelligence house ecosystems, whole-house intelligence, digital homes, networked homes, automated homes, electronic homes, digital homes, and digital homes. It relies on technologies such as the Internet of Things (IoT), cloud computing, artificial intelligence (AI), digital technology, digital twins, and AR / VR to construct an intelligent, automated, personalized, and customized digital ecosystem. Optionally, in this embodiment, the above-mentioned interaction method for smart home devices can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0025] The aforementioned network communication architecture includes, but is not limited to, two types of links: wired transmission and wireless connection. Among them, the wired network can cover wide area networks, metropolitan area networks, and local area networks, while the wireless network supports communication standards such as WIFI, Bluetooth, and 5G. It can adapt to the digital technology transmission needs of the Internet of Things (IoT), the Internet of Things, and the Internet of Things blockchain, ensuring stable interaction of digital information, enabling devices to make autonomous, accurate, precise, and accurate judgments and adjustments, and supporting personalized and customized intelligent capabilities such as voice interaction, remote control, and self-control. Terminal devices 102 include, but are not limited to, PCs, mobile phones, tablets, and all categories of digital home appliances, digital electrical appliances, smart home appliances, and whole-house smart devices. Specifically, they include: smart air conditioners, air conditioning equipment, smart range hoods, smart refrigerators, smart ovens, grilling and cooking equipment, smart stoves, smart washing machines, washing, rinsing, drying and garment processing equipment, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom systems, kitchens, cabinets, kitchen cabinet equipment, smart bathroom equipment, robot vacuum cleaners, robot window cleaners, robot mopping, air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, smart lighting fixtures, smart light bulbs, smart air detectors, smart remote controls, and smart gateways. They also cover smart terminals for security, lighting, and other digital home furnishings.
[0026] The following is combined with Figures 2 to 4 This application describes a method for displaying the online / offline status of a Bluetooth Low Energy mesh network device.
[0027] Figure 2 This is one of the flowcharts illustrating the online / offline status display method for Bluetooth Low Energy mesh network devices provided in this application. For example... Figure 2 As shown, the method includes: Step 201: In response to the opening operation of the smart home device settings page, initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page.
[0028] The smart home device settings page is the page users access within the smart home app to view details or modify the configuration of a specific smart home device. For example, clicking on a "smart bulb" in the app takes you to the bulb's details page, which displays information such as the bulb name, on / off button, brightness adjustment, color temperature adjustment, firmware version, and online status. Alternatively, clicking on the bulb and then "Settings" takes you to the configuration page, where you can perform operations such as renaming the device, assigning it to a room, configuring network settings, restoring factory settings, and upgrading firmware.
[0029] Bluetooth Low Energy (BLE) connectivity is a short-range wireless communication link established based on Bluetooth Low Energy (BLE) technology. It is used to enable low-power data transmission between devices, such as the transmission of control commands between a smartphone and a smart light bulb via BLE.
[0030] Bluetooth Low Energy mesh networking devices can include, but are not limited to, smart light bulbs, smart switches, temperature and humidity sensors, door and window sensors, smart door locks, curtain motors, and smart sockets.
[0031] In the specific implementation process, the terminal device can listen to the trigger signal of the opening event of the smart home device settings page; parse the identification information of the target Bluetooth Low Energy Mesh Network device carried in the opening operation; broadcast a Bluetooth Low Energy connection request frame to the target Bluetooth Low Energy Mesh Network device according to the identification information; and wait for the connection response frame returned by the target Bluetooth Low Energy Mesh Network device to establish a BLE communication link.
[0032] In some embodiments, after initiating a Bluetooth Low Energy connection to a target Bluetooth Low Energy mesh network device, a target animation is displayed to represent that the terminal device is establishing a Bluetooth Low Energy connection.
[0033] After a user opens the settings page of a smart home device, the terminal device initiates a Bluetooth Low Energy connection while displaying a target animation. This provides the user with clear feedback on the connection process, allowing them to clearly perceive that the device is making a Bluetooth connection rather than freezing or becoming unresponsive. This avoids issues such as lag and asynchronous interface refresh caused by untimely status updates.
[0034] In some embodiments, it is determined that a first operating system is running on the terminal device; the animation rendering component of the first operating system is invoked to display the target animation; it is determined that a second operating system is running on the terminal device; the animation rendering component of the second operating system is invoked to display the target animation.
[0035] The first operating system and the second operating system are different operating systems. For example, the first operating system is iOS and the second operating system is Android.
[0036] As an example, the terminal device can read the currently running operating system type through the system API. If it is identified as an iOS system, the Core Animation animation rendering component built into the iOS system is called to display the target animation. If it is identified as an Android system, the Lottie or Property Animation animation rendering component of the Android system is called to display the target animation. By distinguishing between iOS and Android systems and calling their respective native animation rendering components to display a unified target animation, the animation performance of different mobile phone systems in the Bluetooth connection process is kept consistent. This solves the problem of inconsistent performance and inconsistent experience between iOS and Android in the Bluetooth connection process in the existing technology, and achieves the invention goal of a unified process and consistent experience across the entire system.
[0037] In some embodiments, if it is determined that the Bluetooth Low Energy connection has failed, a second UI interface is displayed to indicate that the terminal device has failed to connect to the target Bluetooth Low Energy mesh network device.
[0038] In practice, the second UI interface can be in any form and is not limited by the description in this manual.
[0039] In the embodiments provided in this application, when the BLE physical connection fails to be established, the terminal device clearly informs the user of the connection failure result through a second UI interface (e.g., a pop-up window or a red warning prompt), avoiding the user from repeatedly trying due to not knowing the connection status, thereby providing a unified state transition and UI linkage in the Bluetooth connection scenario.
[0040] Step 202: Confirm that the Bluetooth Low Energy connection is successful.
[0041] In some embodiments, after determining that the Bluetooth Low Energy connection is successful, it is further determined whether the target Bluetooth Low Energy Mesh Network device is online in the cloud through the target Bluetooth Low Energy Mesh Network gateway.
[0042] If it is determined that the target Bluetooth Low Energy Mesh Network device is online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, proceed to step 203. If it is determined that the target Bluetooth Low Energy Mesh Network device is not online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, proceed to step 204.
[0043] Step 203: Determine if the target Bluetooth Low Energy Mesh Network device is online in the cloud through the target Bluetooth Low Energy Mesh Network gateway. On the smart home device settings page, display the first icon, which indicates that the target Bluetooth Low Energy Mesh Network device is simultaneously online in the cloud and online locally via Bluetooth.
[0044] Step 204: Determine that the target Bluetooth Low Energy Mesh Network device is not online in the cloud through the target Bluetooth Low Energy Mesh Network gateway. On the smart home device settings page, display a second icon. The second icon indicates that the target Bluetooth Low Energy Mesh Network device is in a Bluetooth local online state and is not online in the cloud.
[0045] In the specific implementation process, the terminal device determines that the target Bluetooth Low Energy Mesh Network Gateway is online; sends a query request to the target Bluetooth Low Energy Mesh Network Gateway to determine whether the target Bluetooth Low Energy Mesh Network Device is online in the cloud; receives the query result returned by the target Bluetooth Low Energy Mesh Network Gateway in response to the query request; if the query result indicates that the target Bluetooth Low Energy Mesh Network Device is online in the cloud, it is determined that the target Bluetooth Low Energy Mesh Network Device is online in the cloud through the target Bluetooth Low Energy Mesh Network Gateway; if the query result indicates that the target Bluetooth Low Energy Mesh Network Device is not online in the cloud, it is determined that the target Bluetooth Low Energy Mesh Network Device is not online in the cloud through the target Bluetooth Low Energy Mesh Network Gateway.
[0046] A target Bluetooth Low Energy Mesh gateway is an intermediate gateway node in a BleMesh network responsible for connecting devices to cloud services and enabling devices to be remotely controlled and managed. For example, the Aqara multimode gateway in a user's home is a typical Bluetooth Low Energy Mesh gateway.
[0047] "Cloud online status" refers to the state in which the target Bluetooth Low Energy Mesh network device has been successfully registered to the cloud server through the Mesh gateway and can be remotely accessed and controlled.
[0048] Bluetooth Local Online status refers to the state in which the target Bluetooth Low Energy Mesh network device has established a physical connection with the terminal device via Bluetooth BLE and can conduct short-range communication.
[0049] As an example only, the terminal device queries the target Bluetooth Low Energy Mesh Network Gateway to see if the target Bluetooth Low Energy Mesh Network device has achieved Mesh cloud online status. If the target Bluetooth Low Energy Mesh Network Gateway returns an offline result indicating that the target Bluetooth Low Energy Mesh Network device is not registered or unreachable, the terminal device determines that the target Bluetooth Low Energy Mesh Network device has not achieved cloud online status through the gateway.
[0050] In the embodiments provided in this application, by displaying a first icon or a second icon in the title bar of the smart home device settings page based on the combination of the local connection status and cloud online status of the target Bluetooth Low Energy Mesh Network device, users can intuitively distinguish whether the target Bluetooth Low Energy Mesh Network device only supports Bluetooth local control or also supports cloud remote control. This solves the problem in the prior art where the gateway online status and Bluetooth Low Energy network online status cannot be displayed in an orderly manner according to priority, resulting in a chaotic page display.
[0051] Figure 3 This is the second flowchart illustrating the online / offline status display method for Bluetooth Low Energy mesh network devices provided in this application. Figure 3 As shown, the method includes: Step 301: In response to the opening operation of the smart home device settings page, obtain the Bluetooth switch status of the terminal device.
[0052] Step 302: With Bluetooth on, initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page.
[0053] The Bluetooth on / off status indicates whether the Bluetooth function of a terminal device is currently available or unavailable. In practice, the terminal device can query the current Bluetooth switch status in real time by calling the Bluetooth management interface provided by the operating system. If the query result shows that it is on, the device will actively initiate a Bluetooth Low Energy connection request to the target Bluetooth Low Energy mesh network device through the Bluetooth protocol stack.
[0054] In some embodiments, the Bluetooth switch status of the terminal device is obtained; if the Bluetooth switch status is not enabled, a first UI interface is displayed, which is used to indicate that the Bluetooth of the terminal device is not enabled.
[0055] The first UI interface is a visual prompt component used to inform users of the abnormal state that Bluetooth is not turned on, such as a prompt bar that pops up at the top of the page with a Bluetooth off icon and the text "Please turn on Bluetooth first".
[0056] In the embodiments provided in this application, by actively displaying a prompt UI and terminating the connection process when Bluetooth is not enabled, the connection failure and interface refresh asynchrony caused by directly initiating the connection are avoided, and UI linkage display is realized for scenarios such as Bluetooth connection failure and Bluetooth not being enabled.
[0057] Step 303: Confirm that the Bluetooth Low Energy connection is successful.
[0058] Step 304: Determine if the target Bluetooth Low Energy Mesh Network device is online in the cloud through the target Bluetooth Low Energy Mesh Network gateway. On the smart home device settings page, display the first icon, which indicates that the target Bluetooth Low Energy Mesh Network device is simultaneously online in the cloud and in Bluetooth local online state.
[0059] Step 305: Determine that the target Bluetooth Low Energy Mesh Network device is not online in the cloud through the target Bluetooth Low Energy Mesh Network gateway. On the smart home device settings page, display a second icon. The second icon indicates that the target Bluetooth Low Energy Mesh Network device is in a Bluetooth local online state and is not online in the cloud.
[0060] For a detailed description of steps 303, 304 and 305, please refer to the relevant content in steps 202 to 204, which will not be repeated here.
[0061] In the embodiments provided in this application, after initiating a Bluetooth Low Energy connection upon confirming Bluetooth is enabled and confirming a successful Bluetooth Low Energy connection, a first icon or a second icon is displayed on the smart home device settings page, depending on whether the target Bluetooth Low Energy mesh network device is online in the cloud via a gateway. This allows users to intuitively distinguish whether a device is simultaneously online in the cloud and via Bluetooth, or only online locally via Bluetooth, solving the problem in existing technologies where Bluetooth status, gateway online status, and Bluetooth Low Energy network online status cannot be displayed in order of priority, leading to page display chaos.
[0062] The following describes the offline / online status display device for a Bluetooth Low Energy mesh network device provided in this application. The offline / online status display device for a Bluetooth Low Energy mesh network device described below can be referred to in correspondence with the offline / online status display method for a Bluetooth Low Energy mesh network device described above.
[0063] Figure 4 This is a logical diagram illustrating the online / offline status display of the Bluetooth Low Energy mesh network device provided in this application. For example... Figure 4 As shown, in some embodiments, the method for displaying the online / offline status of a Bluetooth Low Energy mesh network device includes the following steps.
[0064] 1. When the user enters the device details page or settings page corresponding to the target Bluetooth Low Energy Mesh Network device, the terminal device initiates the online / offline status determination process.
[0065] 2. The terminal device (e.g., the device details page APP or the settings page APP) initializes and obtains the online status of the target Bluetooth Low Energy Mesh Network Gateway as the basis for subsequent judgments.
[0066] 3. The terminal device checks its own Bluetooth switch status to determine whether Bluetooth is available.
[0067] 4. If Bluetooth is not enabled, a "Not Connected to Bluetooth" message will be displayed on the UI, terminating the subsequent connection process.
[0068] 5. If Bluetooth is enabled, execute a unified animation display regardless of the operating system (e.g., iOS and Android).
[0069] 6. The terminal device displays the UI components during the Bluetooth connection process, providing users with clear feedback on the process.
[0070] 7. The terminal device actively initiates a Bluetooth Low Energy connection request to the Bluetooth Low Energy mesh network device.
[0071] 8. The terminal device determines whether the BLE physical connection has been successfully established.
[0072] 9. If the connection fails, a Bluetooth connection failure UI will be displayed, and the process will end.
[0073] 10. If the connection is successful, update the device's Bluetooth status to online.
[0074] 11. Terminal devices can query whether the device has achieved cloud-based online connectivity through the Mesh gateway.
[0075] 12. If the Bluetooth Low Energy network is online, the Bluetooth Low Energy network online icon will be displayed in the title bar.
[0076] 13. If Mesh is not online, the title bar will display a Bluetooth local online icon.
[0077] 14. The status is stable, and the online / offline process has been completed.
[0078] Figure 5 This is an interactive timing diagram of the online / offline status display of the Bluetooth Low Energy mesh network device provided in this application. For example... Figure 5 As shown, the interaction for displaying the online / offline status of Bluetooth Low Energy mesh network devices includes the following steps.
[0079] 1. When the user enters the details page or settings page of the target Bluetooth Low Energy Mesh Network device, the status check process is triggered.
[0080] 2. The terminal device (e.g., the app on the device details page or the app on the settings page) obtains information from the target Bluetooth Low Energy Mesh network gateway to determine whether the gateway is currently online.
[0081] 3. The terminal device queries the Bluetooth management module to see if Bluetooth is enabled.
[0082] 4. The Bluetooth module returns the Bluetooth on / off status to the terminal device.
[0083] 5. The terminal device displays an animation of the Bluetooth connection process and provides feedback.
[0084] 6. The terminal device actively initiates a connection to the target Bluetooth Low Energy mesh network device via the Bluetooth protocol.
[0085] 7. The target Bluetooth Low Energy mesh network device returns a result indicating whether the Bluetooth Low Energy connection was successful or failed.
[0086] 8. The terminal device queries the target Bluetooth Low Energy mesh network gateway to check whether the device is online via Bluetooth Low Energy networking.
[0087] 9. The target Bluetooth Low Energy mesh network gateway returns the device's online or offline status.
[0088] 10. The terminal device automatically refreshes the title bar icon based on the status (Bluetooth Low Energy Network Online / Bluetooth Online).
[0089] The page displays the final stable offline status, and the process ends.
[0090] Figure 6 This is a schematic diagram of the offline / online status display device for the Bluetooth Low Energy mesh network device provided in this application. Figure 6 As shown, the Bluetooth Low Energy mesh network device offline / online status display device 600 includes the following modules.
[0091] The connection module 610 is used to initiate a Bluetooth Low Energy connection to a target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page in response to an operation of opening the settings page of the smart home device.
[0092] The determination module 620 is used to determine whether the Bluetooth Low Energy connection is successful.
[0093] The display module 630 is used to determine that the target Bluetooth Low Energy Mesh Network device is online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, and to display a first icon on the smart home device settings page. The first icon is used to indicate that the target Bluetooth Low Energy Mesh Network device is simultaneously in a cloud online state and a Bluetooth local online state.
[0094] Figure 7 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 7 As shown, the electronic device may include: a processor 710, a communications interface 720, a memory 730, and a communication bus 740, wherein the processor 710, communications interface 720, and memory 730 communicate with each other through the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute a method for displaying the online / offline status of a Bluetooth Low Energy (BLE) mesh network device. This method includes: in response to an opening operation of a smart home device settings page, initiating a Bluetooth Low Energy (BLE) connection to a target BLE mesh network device corresponding to the smart home device settings page; determining that the BLE connection is successful; determining that the target BLE mesh network device is online in the cloud through a target BLE mesh network gateway; and displaying a first icon on the smart home device settings page, the first icon indicating that the target BLE mesh network device is simultaneously online in the cloud and online locally via Bluetooth.
[0095] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0096] On the other hand, this application also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer is able to execute the Bluetooth Low Energy Mesh Network Device Offline / Offline Status Display Method provided by the above methods, the method including: in response to an opening operation of a smart home device settings page, initiating a Bluetooth Low Energy connection to a target Bluetooth Low Energy Mesh Network Device corresponding to the smart home device settings page; determining that the Bluetooth Low Energy connection is successful; determining that the target BleMesh device is online in the cloud through a target BleMesh gateway, and displaying a first icon on the smart home device settings page, the first icon being used to indicate that the target Bluetooth Low Energy Mesh Network Device is simultaneously in a cloud online state and a Bluetooth local online state.
[0097] In another aspect, this application also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program is implemented to perform the above-described methods for displaying the online / offline status of Bluetooth Low Energy Mesh network devices. The method includes: in response to an operation to open a smart home device settings page, initiating a Bluetooth Low Energy connection to a target Bluetooth Low Energy Mesh network device corresponding to the smart home device settings page; determining that the Bluetooth Low Energy connection is successful; determining that the target BleMesh device is online in the cloud through a target BleMesh gateway; and displaying a first icon on the smart home device settings page, the first icon indicating that the target Bluetooth Low Energy Mesh network device is simultaneously in a cloud-based online state and a Bluetooth local online state.
[0098] 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. Those skilled in the art can understand and implement this without any creative effort.
[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, 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.
[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for displaying the online / offline status of a Bluetooth Low Energy mesh network device, characterized in that, The method, executed by a terminal device, includes: In response to an operation to open the settings page of a smart home device, initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the settings page of the smart home device; The Bluetooth Low Energy connection has been confirmed to be successful. If the target Bluetooth Low Energy Mesh Network device is determined to be online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, a first icon is displayed on the smart home device settings page. The first icon is used to indicate that the target Bluetooth Low Energy Mesh Network device is simultaneously in a cloud online state and a Bluetooth local online state.
2. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 1, characterized in that, The method further includes: If it is determined that the target Bluetooth Low Energy Mesh Network device is not online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, a second icon is displayed on the smart home device settings page. The second icon is used to indicate that the target Bluetooth Low Energy Mesh Network device is in a Bluetooth local online state and is not in a cloud online state.
3. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 1 or 2, characterized in that, The step of initiating a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page includes: Obtain the Bluetooth switch status of the terminal device; When the Bluetooth switch is off, a first UI interface is displayed, which is used to indicate that Bluetooth is not turned on on the terminal device.
4. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 1 or 2, characterized in that, The step of initiating a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page includes: Obtain the Bluetooth switch status of the terminal device; When the Bluetooth switch is turned on, initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device.
5. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 1, characterized in that, The step of initiating a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page includes: Initiate a Bluetooth Low Energy connection to the target Bluetooth Low Energy mesh network device; Display a target animation, which represents the terminal device establishing a Bluetooth Low Energy connection.
6. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 5, characterized in that, The displayed target animation includes: It is determined that a first operating system is running on the terminal device; The animation rendering component of the first operating system is invoked to display the target animation; It is determined that the terminal device is running a second operating system; The animation rendering component of the second operating system is invoked to display the target animation.
7. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 1, characterized in that, The method further includes: The Bluetooth Low Energy connection has failed. A second UI interface is displayed to indicate that the terminal device has failed to connect to the target Bluetooth Low Energy Mesh network device.
8. The method for displaying the online / offline status of a Bluetooth Low Energy mesh network device according to claim 1, characterized in that, The step of determining that the target Bluetooth Low Energy Mesh Network device achieves cloud-based online connectivity through the target Bluetooth Low Energy Mesh Network gateway includes: The target Bluetooth Low Energy mesh network gateway is confirmed to be online; Send a query request to the target Bluetooth Low Energy Mesh Network Gateway to check whether the target Bluetooth Low Energy Mesh Network device is online in the cloud; Receive the query result returned by the target Bluetooth Low Energy Mesh Network Gateway in response to the query request, wherein the query result indicates that the target Bluetooth Low Energy Mesh Network Device is in an online state in the cloud; The target Bluetooth Low Energy Mesh Network device is determined to be online in the cloud through the target Bluetooth Low Energy Mesh Network gateway.
9. An offline / online status display device for a Bluetooth Low Energy mesh network device, characterized in that, The device, located on a mobile terminal, includes: The connection module is used to initiate a Bluetooth Low Energy connection to a target Bluetooth Low Energy mesh network device corresponding to the smart home device settings page in response to an operation of opening the settings page of the smart home device. The determination module is used to determine whether the Bluetooth Low Energy connection is successful. The display module is used to determine that the target Bluetooth Low Energy Mesh Network device is online in the cloud through the target Bluetooth Low Energy Mesh Network gateway, and to display a first icon on the smart home device settings page. The first icon is used to indicate that the target Bluetooth Low Energy Mesh Network device is simultaneously in a cloud online state and a Bluetooth local online state.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 8 through the computer program.