Asynchronous online control method and control system
Patent Information
- Application Number
- CN202411435195.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-01-14
AI Technical Summary
BEKEN的bk7238作为目前常用的方案,其包含的288K的RAM是实现小程序+双云的最大障碍,在实际应用中,同时连接双云时重复使用mqtt申请资源,进而导致资源不足,容易在配网时出现崩溃
[0022] (1) In the present invention, by first connecting to Jingdong Cloud and then connecting to Changhong Cloud, the problem of insufficient resources caused by repeated use of mqtt to apply for resources is solved, and three-in-one control is realized.
Smart Images

Figure CN119316459A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of WIFI and BLE, and in particular to a control method and a control system for asynchronous online operation. Background Art
[0002] In current IoT applications, dual-cloud or mini-program + single-cloud requirements are usually implemented on Wi-Fi + BLE modules.
[0003] However, dual cloud or mini program + single cloud can hardly meet the requirements of high availability and scalability. BEKEN's bk7238 is a Wi-Fi module widely used in smart home and IoT devices. It has the characteristics of low power consumption and high performance, supports multiple wireless protocols, and is suitable for various intelligent control and remote management applications. As a commonly used solution, BEKEN's bk7238 contains 288K RAM, which is the biggest obstacle to the realization of mini program + dual cloud. In actual applications, when connecting to dual clouds at the same time, mqtt is repeatedly used to apply for resources, which leads to insufficient resources and easy crash during network configuration. Summary of the invention
[0004] The purpose of the present invention is to solve the above-mentioned background technical problems and to provide an asynchronous online control method and control system.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A control method for asynchronous online operation, comprising:
[0007] S1. Initialize the device and enter the network configuration state;
[0008] S2, the mobile terminal configures the network by adding devices;
[0009] S3, after receiving the network configuration information, the device connects to the dual cloud platforms in sequence, and determines whether the connection is successful. Based on at least two levels of judgment results, the device dynamically returns to step S1 until both the dual cloud platforms are successfully connected;
[0010] S4. Use the applet to add a device;
[0011] S5. Use multi-platform control devices.
[0012] As a further solution of the present invention: in the step S1, the device side is initialized to add the mini program and dual cloud platform network configuration service through bk7328, and start the AP hotspot. The dual cloud platforms are JD Xiaojia and Zhihuijia respectively. The JD Xiaojia uses JD Cloud as its cloud service platform, and the Zhihuijia uses Changhong Cloud as its cloud service platform.
[0013] As a further solution of the present invention: in step S2, the mobile terminal needs to open the JD Xiaojia APP before adding the device.
[0014] As a further solution of the present invention: the step S3 includes the following steps: S31, the device first connects to JD Cloud to determine whether the connection is successful, if not, return to the step S1.
[0015] As a further solution of the present invention: the step S3 includes the following steps: S32, after JD Cloud is successfully connected, the device connects to Changhong Cloud again to determine whether the connection is successful, if not, return to step S1.
[0016] As a further solution of the present invention: in step S5, the multi-platform control method is to log in to Zhihuijia and JD Xiaojia at the same time, and use the mini program, Zhihuijia and JD Xiaojia to control the device.
[0017] A control system for realizing an asynchronous online control method includes: a communication module, wherein the communication module is connected in series with a dual cloud platform, and the communication module is connected in series with a mini-program.
[0018] As a further solution of the present invention: the communication module is a WIFI+BLE module based on bk7238.
[0019] As a further solution of the present invention: the dual cloud platform is a first registration platform and a second registration platform, the first registration platform is Jingdong Xiaojia, and the second registration platform is Zhihuijia, the Jingdong Xiaojia and the Zhihuijia complete network configuration through BLE and bk7238, and complete communication control through WI FI and bk7238.
[0020] As a further solution of the present invention: the applet is connected to bk7238 via BLE.
[0021] Beneficial effects of the present invention:
[0022] (1) In the present invention, by first connecting to JD Cloud and then connecting to Changhong Cloud, the problem of insufficient resources caused by repeated use of MQTT to apply for resources is solved, and three-in-one control is achieved.
[0023] (2) In the present invention, the three-in-one dual cloud + mini program combines the advantages of two cloud platforms and utilizes the flexibility of the mini program to provide higher compatibility and scalability, which can achieve better resource integration and improve data processing capabilities. At the same time, the user experience is smoother and convenient to use on different devices. This integration can also accelerate development and deployment and reduce operating costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The present invention will be further described below in conjunction with the accompanying drawings.
[0025] Figure 1 It is a flow chart of the control method of asynchronous online access of the present invention;
[0026] Figure 2 It is a structural schematic diagram of a control system of the present invention for realizing the control method of asynchronous online. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] See also Figure 1 As shown, the present invention is a control method for asynchronous online, comprising:
[0029] S1. Initialize the device and enter the network configuration state.
[0030] Specifically, the device side needs to be initialized by adding the mini program and dual cloud platform network configuration service through bk7328, and starting the AP hotspot. The dual cloud platforms are JD Xiaojia and Zhihuijia. JD Xiaojia uses JD Cloud as its cloud service platform, and Zhihuijia uses Changhong Cloud as its cloud service platform.
[0031] S2. Open the JD Xiaojia APP on your mobile device and configure the network by adding devices.
[0032] S3. After receiving the network configuration information, the device bk7328 connects to the dual cloud platforms in turn and determines whether the connection is successful. Based on at least two levels of judgment results, it dynamically returns to step S1 until both cloud platforms are successfully connected.
[0033] The specific steps are:
[0034] S31. The device first connects to JD Cloud to determine whether the connection is successful. If not, return to step S1.
[0035] S32. After JD Cloud is successfully connected, the device connects to Changhong Cloud to determine whether the connection is successful. If not, return to step S1.
[0036] S4. Use the applet to add devices.
[0037] S5. Use multi-platform control devices.
[0038] Specifically, the multi-platform control method is to log in to Zhihuijia and JD Xiaojia at the same time, and use mini programs, Zhihuijia and JD Xiaojia to control the devices.
[0039] The inventors found that single cloud control, mini program + single cloud control, and dual cloud control are usually used in the prior art. For single cloud control, using a single cloud service provider makes management and maintenance simpler, reduces technical complexity, and concentrates voluntarily on one platform, which can be effectively utilized and configured. However, once a single cloud service fails, the entire system is easily affected, resulting in service interruption; for mini program + single cloud control, because the mini program can provide timely data processing and storage through cloud services, the user experience can be improved, and the single cloud architecture can also make management and maintenance simpler, reducing the complexity of operation and maintenance, but the single cloud service has a low fault tolerance rate, and once a problem occurs, the entire mini program will be affected; for dual cloud control, using two different cloud service providers can improve the availability and fault tolerance of the system, and can also dynamically adjust resources according to user needs and select appropriate cloud services. However, the dual cloud architecture requires coordination between different cloud services, which limits its flexibility and rapid response capabilities, and monitoring and management across multiple cloud platforms is relatively difficult, and system health is easily affected. In addition, inconsistent service quality or response speed between different cloud platforms will also affect the end-user experience.
[0040] In this application, an asynchronous cloud connection method is proposed. When JD Xiaojia distributes the network, it first connects to JD Cloud, and after connecting to JD Cloud, it applies for resources through MQTT, and then connects to Changhong Cloud. This avoids the problem of insufficient resources caused by MQTT applying for resources at the same time when connecting to JD Cloud and Changhong Cloud at the same time. In the case of insufficient resources, the three-in-one control of dual clouds + mini programs can be achieved. The three-in-one solution of dual clouds + mini programs combines the advantages of two cloud platforms and uses the flexibility of mini programs to provide higher compatibility and scalability. Compared with dual clouds or mini programs + single cloud, it can achieve better resource integration and improve data processing capabilities. At the same time, the user experience is smoother and convenient to use on different devices. This integration can also accelerate development and deployment and reduce operating costs.
[0041] It is understandable that the three-in-one solution of dual cloud + mini program adopted in this application can be quickly developed and deployed, taking advantage of the faster development cycle of mini programs, and can be quickly launched and iterated, thereby improving market response speed. In addition, the mini program provides a good user experience on the mobile terminal, and users can quickly access it without installation or downloading, which improves user convenience. The dual cloud platform combined with the mini program can better utilize cloud resources, allocate computing and storage capabilities on demand, and achieve higher resource utilization, thereby improving resource utilization efficiency. In addition, as the front end, the mini program can uniformly manage the calls of different cloud services, simplifying the complexity of the overall architecture and facilitating management. The mini program can collect user behavior data, and combined with the data processing capabilities of the dual cloud environment, it can achieve more in-depth user analysis and personalized services.
[0042] See also Figure 2As shown, a control system for realizing an asynchronous online control method includes: a communication module, the communication module is a WIFI+BLE module based on bk7238, the communication module is connected in series with dual cloud platforms, the dual cloud platforms are a first registration platform and a second registration platform, the first registration platform is Jingdong Xiaojia, and the second registration platform is Zhihuijia, Jingdong Xiaojia and Zhihuijia complete network configuration through BLE and bk7238, and complete communication control through WIFI and bk7238, the communication module is connected in series with mini-programs, and the mini-programs are connected through BLE and bk7238.
[0043] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made according to the scope of application of the present invention should still fall within the scope of the claims of the present invention.
Claims
1. A control method for asynchronous online access, characterized in that: include: S1. Initialize the device and enter the network configuration state; S2, the mobile terminal configures the network by adding devices; S3, after receiving the network configuration information, the device connects to the dual cloud platforms in sequence, and determines whether the connection is successful. Based on at least two levels of judgment results, the device dynamically returns to step S1 until both the dual cloud platforms are successfully connected; S4. Use the applet to add a device; S5. Use multi-platform control devices.
2. The control method for asynchronous online access according to claim 1, characterized in that: In step S1, the device side is initialized to add the mini program and dual cloud platform network configuration service through bk7328, and start the AP hotspot. The dual cloud platforms are JD Xiaojia and Zhihuijia respectively. JD Xiaojia uses JD Cloud as its cloud service platform, and Zhihuijia uses Changhong Cloud as its cloud service platform.
3. The control method for asynchronous online access according to claim 2, characterized in that: In step S2, the mobile terminal needs to open the JD Xiaojia APP before adding the device.
4. The asynchronous online control method according to claim 3 is characterized in that: The step S3 includes the following steps: S31, the device first connects to JD Cloud to determine whether the connection is successful, if not, return to step S1.
5. The control method for asynchronous online access according to claim 4, characterized in that: The step S3 includes the following steps: S32. After JD Cloud is successfully connected, the device connects to Changhong Cloud to determine whether the connection is successful. If not, return to step S1.
6. The asynchronous online control method according to claim 5, characterized in that: In step S5, the multi-platform control method is to log in to Zhihuijia and JD Xiaojia at the same time, and use the mini program, Zhihuijia and JD Xiaojia to control the device.
7. A control system for implementing the asynchronous online control method according to any one of claims 1 to 6, characterized in that: include: A communication module, wherein the communication module is connected in series with a dual cloud platform, and the communication module is connected in series with a mini-program.
8. A control system according to claim 7, characterized in that: The communication module is a WIFI+BLE module based on bk7238.
9. A control system according to claim 8, characterized in that: The dual cloud platform is a first registration platform and a second registration platform, the first registration platform is Jingdong Xiaojia, and the second registration platform is Zhihuijia. Jingdong Xiaojia and Zhihuijia complete network configuration through BLE and bk7238, and complete communication control through WIFI and bk7238.
10. A control system according to claim 8, characterized in that: The applet connects via BLE and bk7238.