Intelligent on-off control method and system based on Bluetooth technology
By combining Bluetooth MESH networking with an edge computing gateway, an intelligent on/off control model is constructed and asymmetric encryption is performed, which solves the problems of low transmission efficiency, poor stability and low level of intelligence in laboratory equipment management, and realizes efficient and secure laboratory equipment management.
Patent Information
- Application Number
- CN202410671283.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2026-01-23
AI Technical Summary
Existing intelligent on/off control methods for laboratory equipment rely on wired networks or Wi-Fi, which suffer from problems such as complex wiring, network congestion, high cost, signal interference, low data transmission efficiency, poor stability, low level of intelligence, and low data security.
By combining Bluetooth MESH networking with an edge computing gateway and managing it uniformly through a cloud data center, a smart on/off control model is built using reinforcement learning algorithms, and data transmission is performed using asymmetric encryption technology, thereby achieving intelligent automatic control of laboratory equipment.
It improved the efficiency and real-time performance of laboratory management, expanded the Bluetooth network coverage, solved the problems of complex wiring and network congestion, enhanced the stability and security of data transmission, and improved the level of intelligence.
Smart Images

Figure CN121397494A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of intelligent control, and particularly relates to an intelligent on-off control method and system based on Bluetooth technology. BACKGROUND
[0002] With the development of science and technology, laboratory equipment is becoming more and more intelligent. In the safety management and open management of colleges and universities, how to effectively, quickly and accurately make reservations for relevant laboratories for experiments and practice activities in idle time, and how to use modern intelligent control means to free management personnel from tedious work and enable them to devote more energy and time to laboratory management services have become an important problem. In order to improve the operation efficiency and safety of experimental equipment, it is necessary to intelligently control the experimental equipment, and the on-off control of the experimental equipment is used to realize the working state control of the experimental equipment.
[0003] The existing intelligent on-off control method of laboratory equipment mainly relies on wired network or Wi-Fi technology, and has problems such as complex wiring, network congestion, high cost, signal interference, low data transmission efficiency and poor stability. As a kind of wireless transmission technology, Bluetooth technology has the advantages of low power consumption, low cost and easy deployment, but the traditional Bluetooth control method has certain disadvantages in long-distance transmission and has poor practicability. The intelligent on-off control relies on manual judgment and cannot realize automatic generation of the intelligent on-off control scheme, and the intelligence level is low. The data transmission adopts plaintext form, sensitive data leakage accidents are easy to occur, and the data security is low. SUMMARY
[0004] In order to solve the problems of low transmission efficiency, poor stability, poor practicability, low intelligence level and low data security in the prior art, the application aims to provide an intelligent on-off control method and system based on Bluetooth technology.
[0005] The technical scheme adopted by the application is as follows:
[0006] An intelligent on-off control method based on Bluetooth technology comprises the following steps:
[0007] Connect all mobile terminals and all edge computing gateways to a cloud data center, construct a Bluetooth MESH network according to laboratory equipment, and connect the Bluetooth MESH network to the corresponding edge computing gateway;
[0008] Based on the cloud data center, collect real-time laboratory reservation information uploaded by a plurality of mobile terminals, encrypt the information and transmit it to all edge computing gateways, and construct a real-time laboratory reservation form in the edge computing gateway;
[0009] Based on the edge computing gateway, the real-time laboratory access information of the user is collected, and the real-time laboratory reservation form is searched and matched. If the matching fails, manual review is performed, otherwise, the next step is entered;
[0010] According to the real-time laboratory access information, a first real-time intelligent on-off control scheme is generated using a pre-trained intelligent on-off control model, and is sent to the corresponding laboratory equipment through Bluetooth MESH networking;
[0011] According to the real-time equipment operation data of the laboratory equipment, a second real-time intelligent on-off control scheme is generated using the intelligent on-off control model, and is returned to the corresponding laboratory equipment through Bluetooth MESH networking.
[0012] Further, all mobile terminals and all edge computing gateways are connected to the cloud data center, and according to the laboratory equipment, Bluetooth MESH networking is constructed, and the Bluetooth MESH networking is connected to the corresponding edge computing gateway, including the following steps:
[0013] All mobile terminals and all edge computing gateways are connected to the cloud data center, and a trusted third party is called to use asymmetric encryption algorithm and digital identity authentication algorithm to perform key initialization and digital identity authentication on all mobile terminals and all edge computing gateways;
[0014] Connect several laboratory equipment in each laboratory through Bluetooth network, construct Bluetooth MESH networking, and connect Bluetooth MESH networking to the corresponding edge computing gateway within the communication range;
[0015] Based on the cloud data center, according to the historical laboratory access information of several users, the historical equipment operation data of the experimental equipment and the corresponding historical intelligent on-off control scheme, an intelligent on-off control model is constructed, and the intelligent on-off control model is deployed on all edge computing gateways.
[0016] Further, the intelligent on-off control model is constructed based on DQN algorithm.
[0017] Further, based on the cloud data center, the real-time laboratory reservation information uploaded by several mobile terminals is collected, and is encrypted and transmitted to all edge computing gateways, and a real-time laboratory reservation form is constructed in the edge computing gateway, including the following steps:
[0018] Based on the mobile terminal, the real-time laboratory reservation information of the user is encrypted and signed to obtain corresponding first encrypted real-time laboratory reservation information and first signature data, and is uploaded to the cloud data center;
[0019] Based on the cloud data center, the first encrypted real-time laboratory reservation information and the first signature data are signed and verified and decrypted to obtain the first decrypted real-time laboratory reservation information;
[0020] The first decrypted real-time lab reservation information is encrypted to obtain the second encrypted real-time lab reservation information, which is then sent to all edge computing gateways.
[0021] Based on the edge computing gateway, the second encrypted real-time laboratory reservation information is decrypted to obtain the second decrypted real-time laboratory reservation information, and a real-time laboratory reservation form is constructed based on several pieces of the second decrypted real-time laboratory reservation information.
[0022] Furthermore, based on the edge computing gateway, real-time laboratory access information of users is collected and searched for and matched in the real-time laboratory reservation form. If a match fails, manual review is conducted; otherwise, the process proceeds to the next step, which includes the following steps:
[0023] Based on laboratory equipment, the system receives real-time laboratory access information from users and sends it to the edge computing gateway within the communication range via Bluetooth MESH networking. Based on the edge computing gateway, the system searches and matches the real-time laboratory access information in the real-time laboratory reservation form.
[0024] If the match fails, the user's real-time lab access information is encrypted and signed to obtain the corresponding first encrypted real-time lab access information and second signature data, which is then sent to the cloud data center.
[0025] Based on the cloud data center, the first encrypted real-time laboratory access information and the second signature data are signed, verified and decrypted to obtain the first decrypted real-time laboratory access information.
[0026] The first decrypted real-time laboratory access information is encrypted to obtain the corresponding second encrypted real-time laboratory access information, which is then sent to the corresponding mobile terminal for manual review.
[0027] If the review is approved or not, the intelligent on / off control process ends; otherwise, proceed to the next step.
[0028] Furthermore, based on real-time laboratory access information, a first real-time intelligent on / off control scheme is generated using a pre-trained intelligent on / off control model, and sent to the corresponding laboratory equipment via Bluetooth MESH networking, including the following steps:
[0029] The real-time laboratory access information is preprocessed to obtain preprocessed real-time laboratory access information.
[0030] The pre-processed real-time laboratory access information is input into the intelligent on / off control model to perform intelligent on / off control and generate the corresponding first real-time intelligent on / off control scheme.
[0031] Based on the first device address of the laboratory equipment that obtains real-time laboratory access information, the first real-time intelligent on / off control scheme is returned to the corresponding laboratory equipment via Bluetooth MESH networking.
[0032] Furthermore, the preprocessed real-time laboratory access information is input into the intelligent on / off control model for intelligent on / off control, generating the corresponding first real-time intelligent on / off control scheme, including the following steps:
[0033] The preprocessed real-time laboratory access information is input into the intelligent on / off control model. Based on the preprocessed real-time laboratory access information, the state space and action space of the intelligent on / off control model are updated to obtain the first updated state space and the first updated action space.
[0034] After the first update, the state space and action space are used to obtain the Q value of the Q network after the first update using the reward function.
[0035] Based on the Q value after the first update, and using the execution agent and experience replay pool, a greedy strategy is employed to perform intelligent on / off control, generating the corresponding first real-time intelligent on / off control scheme.
[0036] Furthermore, based on the real-time equipment operation data of the laboratory equipment, a second real-time intelligent on / off control scheme is generated using an intelligent on / off control model, and then returned to the corresponding laboratory equipment via Bluetooth MESH networking, including the following steps:
[0037] Based on laboratory equipment, the first real-time intelligent on / off control scheme is implemented, real-time equipment operation data during operation is collected, and sent to the edge computing gateway within the communication range via Bluetooth MESH networking;
[0038] Based on the edge computing gateway, the real-time device operation data is preprocessed to obtain preprocessed real-time device operation data.
[0039] The preprocessed real-time equipment operation data is input into the intelligent on / off control model to perform intelligent on / off control and generate a second real-time intelligent on / off control scheme.
[0040] Based on the second device address of the laboratory equipment that collects real-time equipment operation data, the second real-time intelligent on / off control scheme is returned to the corresponding laboratory equipment via Bluetooth MESH networking.
[0041] Furthermore, the preprocessed real-time equipment operation data is input into the intelligent on / off control model for intelligent on / off control, generating a second real-time intelligent on / off control scheme, including the following steps:
[0042] The preprocessed real-time equipment operation data is input into the intelligent on / off control model. Based on the preprocessed real-time equipment operation data, the state space and action space of the intelligent on / off control model are updated to obtain the second updated state space and the second updated action space.
[0043] The second updated state space and the second updated action space are used to obtain the second updated Q value of the Q network using the reward function.
[0044] Based on the second updated Q value, and using the execution agent and experience replay pool, a greedy strategy is employed to perform intelligent on / off control, generating a corresponding second real-time intelligent on / off control scheme.
[0045] A Bluetooth-based intelligent on / off control system is provided to implement an intelligent on / off control method. The system includes a cloud data center, a trusted third party, several edge computing gateways, several mobile terminals, and several laboratory devices. The cloud data center and the trusted third party are respectively connected to the edge computing gateways and the mobile terminals. The cloud data center is also connected to the trusted third party. Several laboratory devices in each laboratory form a Bluetooth MESH network through a Bluetooth network. Each edge computing gateway is connected to several Bluetooth MESH networks within its communication range.
[0046] The beneficial effects of this invention are as follows:
[0047] This invention discloses an intelligent on / off control method and system based on Bluetooth technology. Using Bluetooth for data transmission results in low power consumption, low cost, and easy deployment. Furthermore, it integrates edge computing gateways and cloud computing centers for unified management, improving the efficiency and real-time performance of laboratory management. Employing Bluetooth MESH networking for localized data transmission within the laboratory enhances practicality, expands the coverage and communication distance of the Bluetooth network, and solves problems such as complex wiring, network congestion, high costs, and signal interference. Delegating laboratory appointment verification to the edge computing gateway improves data transmission efficiency and stability. The intelligent on / off control model, constructed using reinforcement learning algorithms, accurately and automatically performs intelligent on / off control based on laboratory access information and equipment operation data, enhancing the intelligence level of laboratory management. Combining asymmetric encryption technology and digital identity authentication, transmission is performed in encrypted form, improving data transmission security.
[0048] Other beneficial effects of the present invention will be further explained in the specific embodiments. Attached Figure Description
[0049] Figure 1 This is a flowchart of the intelligent on / off control method based on Bluetooth technology in this invention.
[0050] Figure 2This is a structural block diagram of the intelligent on / off control system based on Bluetooth technology in this invention. Detailed Implementation
[0051] The present invention will be further explained below with reference to the accompanying drawings and specific embodiments.
[0052] Example 1:
[0053] like Figure 1 As shown, this embodiment provides an intelligent on / off control method based on Bluetooth technology, including the following steps:
[0054] S1: Connect all mobile terminals and all edge computing gateways to the cloud data center. Based on the laboratory equipment, build a Bluetooth MESH network and connect the Bluetooth MESH network to the corresponding edge computing gateways. This includes the following steps:
[0055] S1-1: Connect all mobile terminals and all edge computing gateways to the cloud data center. Based on the cloud data center, collect the first identity ID and first attribute information of all mobile terminals, as well as the second identity ID and second attribute information of the edge computing gateways, and send them to a trusted third party.
[0056] S1-2: Based on a trusted third party, and according to the first identity ID and first attribute information, as well as the second identity ID and second attribute information, perform identity authentication on all mobile terminals and all edge computing gateways, and generate the first public-private key pair and first registration information for the mobile terminals, and the second public-private key pair and second registration information for the edge computing gateways, including the following steps:
[0057] S1-2-1: Perform key initialization, generating the public parameter GP, master key MSK, and initial key PK, using the following formula:
[0058] GP={g,g1,g a ,e(g,g) a ,H1,H2,H3,H4,H5,H6}
[0059] PK = {g, g1, g a ,e(g,g) a H u}
[0060] MSK = {g a ,a}
[0061] In the formula, GP is the common parameter; MSK is the master key; PK is the initial key; a is a random number in the integer field; H1, H2, H3, H4, H5, H6, H u All are target hash functions; g, g1, g aAll are random numbers generated by the generator of the cyclic group; e(g,g) a For a bilinear mapping of random numbers g;
[0062] S1-2-2: Based on the public parameter GP, master key MSK, initial key PK, and first attribute information V u Generate the first public-private key pair for the corresponding mobile terminal. The first public-private key pair includes the first private key SK. u PK with the first public key u The formula is:
[0063] SK u ={MSK,V u ,K'=g a g ab ,L u =g b ,(K'=H3(V u ) b )}
[0064]
[0065] In the formula, SK u b is the first private key for mobile terminal u; b is the integer field Z. p random numbers; L u K′ are private key parameters; H3 is the target hash function of the public parameter GP; u is the mobile terminal indicator; MSK is the master key; PK is the initial key; PK u The first public key for mobile terminal u; g b g a g ab V is a random number generated by the generator of the cyclic group G; u This refers to the first attribute information of the mobile terminal u;
[0066] S1-2-3: Based on the public parameter GP, master key MSK, initial key PK, and second attribute information V u' Generate a second public-private key pair for the corresponding edge computing gateway. The second public-private key pair includes the second private key sk. u' Second public key pk u' The formula is:
[0067] sk u' ={MSK,V u' ,K'=g a g ab ,L u' =g b ,(K'=H3(V u ) b )}
[0068]
[0069] In the formula, sk u' L is the second private key for the edge computing gateway u'. u, K′ are private key parameters; u' is the edge computing gateway indicator; MSK is the master key; PK is the initial key; pk u' V is the second public key for the edge computing gateway u; u' This refers to the second attribute information of the edge computing gateway u';
[0070] S1-2-4: Based on the first private key and the corresponding first identity ID in the first public-private key pair, perform digital identity authentication to obtain the first registration information of the corresponding mobile terminal, using the following formula:
[0071]
[0072] In the formula, k is a random number; K u Registration parameters for mobile terminal u; KID u The registration ID of the mobile terminal u; KID u and the corresponding K u Constituting the first registration information {K u KID u}; H1 is the target hash function; ID u SK is the primary identity ID of the mobile terminal u. u Let P be the first private key of mobile terminal u; P is the base point of the prime field. It is of prime order;
[0073] S1-2-5: Based on the second private key and the corresponding second identity ID in the second public-private key pair, perform digital identity authentication to obtain the second registration information of the corresponding edge computing gateway, as shown in the formula:
[0074]
[0075] In the formula, k is a random number; K u’ Registration parameters for edge computing gateway u'; KID u′ KID is the registration ID of the edge computing gateway u'. u′ and the corresponding K u′ Constituting the second registration information {K u′ KID u′};ID u′ This serves as the second identity ID for the edge computing gateway u'.
[0076] S1-3: Send the first private key and the first registration information of the first public-private key pair to the corresponding mobile terminal, send the second private key and the second registration information of the second public-private key pair to the corresponding edge computing gateway, and publish the first public key of the first public-private key pair and the second public key of the second public-private key pair to the cloud data center.
[0077] S1-4: Connect several laboratory devices in each laboratory through a Bluetooth network to build a Bluetooth MESH network, and connect the Bluetooth MESH network to the corresponding edge computing gateway within the communication range.
[0078] Bluetooth MESH networking is a new type of network topology that allows laboratory devices equipped with Bluetooth modules to communicate without a central control node. In this network structure, each laboratory device can act as a repeater, transmitting information from one laboratory device to another, thereby expanding the coverage and communication distance of the Bluetooth network.
[0079] The features of Bluetooth MESH networking include:
[0080] High degree of decentralization: Unlike traditional Bluetooth star networks, MESH networks have no central control node. Each device can communicate directly with other devices or be relayed through other devices.
[0081] Good scalability: Since each laboratory device can act as a repeater, the MESH network can cover a wider area and accommodate more laboratory devices;
[0082] High robustness: In a MESH network, even if some laboratory equipment malfunctions or fails, other laboratory equipment can still communicate through different paths, thereby improving the robustness of the network.
[0083] Low power consumption: Bluetooth MESH networks support low-power devices, saving on cost investment;
[0084] In the field of intelligent on / off control in laboratories, Bluetooth MESH networks can connect access control systems, door locks, smart cabinets, and other experimental equipment, enabling them to communicate with each other and work collaboratively.
[0085] S1-5: Based on the cloud data center, and using historical laboratory access information from several users, historical equipment operation data from experimental equipment, and corresponding historical intelligent on / off control schemes, a smart on / off control model is constructed using the Deep Q-network (DQN) algorithm. This model is then deployed on all edge computing gateways, including the following steps:
[0086] S1-5-1: Preprocess all historical laboratory access information and all historical equipment operation data to obtain several preprocessed historical laboratory access information and several preprocessed historical equipment operation data.
[0087] S1-5-2: Use historical intelligent on / off control schemes as real intelligent on / off control tags, add them to several pre-processed historical laboratory access information and several pre-processed historical equipment operation data, and obtain several historical intelligent on / off control samples with real intelligent on / off control tags.
[0088] S1-5-3: Define the state space of the intelligent on / off control model based on historical intelligent on / off control samples, and define the action space of the intelligent on / off control model based on real intelligent on / off control labels.
[0089] S1-5-4: Based on the state space S=[s1,...,s i ,...,s I and action space A = [a1,...,a] j ,...,a I' Define the reward function R(s) for the intelligent on / off control model. p ,a p ,s' p ), and construct an execution agent, a Q network, and an experience replay pool, among which s i s p Let i and p be the state values, i and p be the state indicators, I be the size of the state space, and a be the state value. j a p Let s' be the action values for the j-th and p-th actions, where j and p are action indicators. p Let I' be the updated state value at state p, and I' be the size of the action space.
[0090] S1-5-5: Integrate the state space, action space, reward function, execution agent, Q network, and experience replay pool to construct the initial intelligent on / off control model;
[0091] S1-5-6: Based on several historical intelligent on / off control samples, optimize and train the initial intelligent on / off control model to obtain several corresponding historical predicted intelligent on / off control labels, and store the generated historical intelligent on / off control experience in the experience replay pool to obtain the optimized intelligent on / off control model.
[0092] S1-5-7: Compare and statistically analyze the obtained historical predicted intelligent on / off control labels with the corresponding real intelligent on / off control labels to obtain the corresponding model test accuracy.
[0093] S1-5-8: If the model's test accuracy is greater than the accuracy threshold, output the final intelligent on / off control model; otherwise, retrain and optimize.
[0094] S1-5-9: Extract the model metadata of the final intelligent on / off control model and send the model metadata to all edge computing gateways connected to the cloud data center;
[0095] S1-5-10: Based on the edge computing gateway, the model is reconstructed according to the model metadata to obtain the reconstructed intelligent on / off control model;
[0096] S2: Based on the cloud data center, collect real-time laboratory reservation information uploaded by several mobile terminals, encrypt and transmit it to all edge computing gateways, and build a real-time laboratory reservation form in the edge computing gateways, including the following steps:
[0097] S2-1: Based on the mobile terminal, according to the first private key and the first registration information in the first public-private key pair, the user's real-time laboratory reservation information is encrypted and signed to obtain the corresponding first encrypted real-time laboratory reservation information and first signature data, and then uploaded to the cloud data center.
[0098] The formula is:
[0099] M u =E(SK) u ,m u )
[0100] In the formula, M u The first encrypted real-time laboratory reservation information for mobile terminal u; E(*) is an asymmetric encryption function; m u Real-time laboratory reservation information for mobile terminals; SK u Here is the first private key for mobile terminal u; u is the indicator for mobile terminal.
[0101]
[0102] In the formula, r is a random number; P is the base point of the prime field; H2 is of prime order; H2 is the target hash function; K u Registration parameters for mobile terminal u; KID u For the registration ID of mobile terminal u; M u The first encrypted real-time laboratory reservation information for mobile terminal u; ID u Let {ID} be the first identity ID of the mobile terminal u; the signature data constituted is {ID}. u M u ,γ'={K u ,R u B u}};Ru B u ,γ' are both signature parameters of mobile terminal u;
[0103] S2-2: Based on the cloud data center, according to the first public key and the first registration information in the first public-private key pair, the first encrypted real-time laboratory reservation information and the first signature data are signed, verified and decrypted to obtain the first decrypted real-time laboratory reservation information;
[0104] The formula is:
[0105] β u B u P = β u H2(R u M u ID u ,K u )R u +β u K u +β u H1(ID u ,K u )PK u
[0106] In the formula, β u For the signature authentication parameters of mobile terminal u; PK u Let be the first public key of mobile terminal u; if the left side equals the right side, then the signature authentication is successful.
[0107] The formula is:
[0108] m' u =E - (PK u M u )
[0109] In the formula, m' u Real-time lab reservation information after initial decryption for mobile terminal u; E - (*) represents the asymmetric decryption function; PK u M is the first public key for mobile terminal u; u The first encrypted real-time supply chain multi-source data for mobile terminal u;
[0110] S2-3: Based on the second public key in the second public-private key pair, encrypt the first decrypted real-time laboratory reservation information to obtain the second encrypted real-time laboratory reservation information, and send it to all edge computing gateways;
[0111] The formula is:
[0112] M' u' =E(pk) u' ,m' u )
[0113] In the formula, M' u' The second encrypted real-time lab reservation information for edge computing gateway u'; E(*) is an asymmetric encryption function; m' u The first decrypted real-time laboratory reservation information for mobile terminal u;
[0114] S2-4: Based on the edge computing gateway, the second encrypted real-time laboratory reservation information is decrypted according to the second private key in the second public-private key pair to obtain the second decrypted real-time laboratory reservation information, and a real-time laboratory reservation form is constructed according to several pieces of the second decrypted real-time laboratory reservation information.
[0115] The formula is:
[0116] m' u' =E - (sk u' ,M' u' )
[0117] In the formula, m' u' Real-time lab reservation information after second decryption for mobile terminal u; E - (*) represents the asymmetric decryption function;
[0118] S3: Based on the edge computing gateway, collect users' real-time laboratory access information, search and match it in the real-time laboratory reservation form. If the match fails, manual review is required; otherwise, proceed to the next step, which includes the following steps:
[0119] S3-1: Based on laboratory equipment, receive real-time laboratory access information from users and send it to the edge computing gateway within the communication range via Bluetooth MESH networking. Based on the edge computing gateway, search and match in the real-time laboratory reservation form according to the real-time laboratory access information.
[0120] S3-2: If the match fails, the user's real-time lab access information is encrypted and signed according to the second private key and the second registration information in the second public-private key pair to obtain the corresponding first encrypted real-time lab access information and second signature data, and then sent to the cloud data center.
[0121] S3-3: Based on the cloud data center, according to the second public key and the second registration information in the second public-private key pair, the first encrypted real-time laboratory access information and the second signature data are signed, verified and decrypted to obtain the first decrypted real-time laboratory access information.
[0122] S3-4: Based on the first public key in the first public-private key pair, encrypt the first decrypted real-time laboratory access information to obtain the corresponding second encrypted real-time laboratory access information, and send it to the corresponding mobile terminal for manual review.
[0123] S3-5: If the review is approved or not, the intelligent on / off control process ends; otherwise, proceed to the next step.
[0124] S4: Based on real-time laboratory access information, using a pre-trained intelligent on / off control model, generate a first real-time intelligent on / off control scheme and send it to the corresponding laboratory equipment via Bluetooth MESH networking, including the following steps:
[0125] S4-1: Preprocess the real-time laboratory access information to obtain preprocessed real-time laboratory access information;
[0126] S4-2: Input the preprocessed real-time laboratory access information into the intelligent on / off control model to perform intelligent on / off control and generate the corresponding first real-time intelligent on / off control scheme, including the following steps:
[0127] S4-2-1: Input the preprocessed real-time laboratory access information into the intelligent on / off control model. Update the state space and action space of the intelligent on / off control model based on the preprocessed real-time laboratory access information to obtain the first updated state space S'=[s'1,...,s' i' ,...,s' I The action space after the first update is A' = [a'1,...,a'] j' ,...,a' I' ], where s' i' Let a' be the updated state value of the i'th state, where i' is the state indicator. j' This is the updated value of the j'th action, where j' is the action indicator.
[0128] S4-2-2: The state space after the first update is S' = [s'1,...,s'] i' ,...,s' I The action space after the first update is A' = [a'1,...,a'] j' ,...,a' I' Using the reward function R'(s) p' ,a p' ,s' p' ), obtain the first updated Q value corresponding to the Q network, where s' p' Let a be the updated state value at state p', where p' is the state and action indicator, and a is the state value at state p'. p' The value of action p';
[0129] The formula is:
[0130] Q(s' p' ,a' p' )=(1-α)·Q(s p' ,a p' )+α·(R(s p' ,a p' ,s' p' )+γ·Q max (s p' ,a p' ))
[0131] In the formula, Q(s' p' ,a' p' ) represents the updated state value s' p' and the updated action value a' p' The corresponding Q-value after the first update; Q(s) p' ,a p' ) represents the state value s from the previous moment. p' and the action value a from the previous moment p' The corresponding Q value at the previous time step; α' is the learning rate; α is the learning rate; Q max (s p' ,a p' The maximum Q value at the previous moment is ).
[0132] S4-2-3: Based on the first updated Q value, and using the execution agent and experience replay pool, a greedy strategy is employed to perform intelligent on / off control and generate the corresponding first real-time intelligent on / off control scheme.
[0133] S4-3: Based on the first device address of the laboratory device that has obtained real-time laboratory access information, the first real-time intelligent on / off control scheme is returned to the corresponding laboratory device through Bluetooth MESH networking;
[0134] S5: Based on the real-time equipment operation data of the laboratory equipment, a second real-time intelligent on / off control scheme is generated using the intelligent on / off control model, and returned to the corresponding laboratory equipment via Bluetooth MESH networking, including the following steps:
[0135] S5-1: Based on laboratory equipment, execute the first real-time intelligent on / off control scheme, collect real-time equipment operation data during operation, and send it to the edge computing gateway within the communication range via Bluetooth MESH networking;
[0136] S5-2: Based on the edge computing gateway, preprocess the real-time device operation data to obtain preprocessed real-time device operation data;
[0137] S5-3: Input the preprocessed real-time equipment operation data into the intelligent on / off control model to perform intelligent on / off control and generate a second real-time intelligent on / off control scheme, including the following steps:
[0138] S5-3-1: Input the preprocessed real-time equipment operation data into the intelligent on / off control model, and update the state space and action space of the intelligent on / off control model according to the preprocessed real-time equipment operation data to obtain the second updated state space and the second updated action space.
[0139] S5-3-2: The second updated state space and the second updated action space are used to obtain the second updated Q value of the Q network using the reward function;
[0140] S5-3-3: Based on the second updated Q value, and using the execution agent and experience replay pool, a greedy strategy is employed to perform intelligent on / off control and generate the corresponding second real-time intelligent on / off control scheme.
[0141] S5-4: Based on the second device address of the laboratory equipment that collects real-time equipment operation data, the second real-time intelligent on / off control scheme is returned to the corresponding laboratory equipment via Bluetooth MESH networking.
[0142] Example 2:
[0143] like Figure 2 As shown, this embodiment provides an intelligent on / off control system based on Bluetooth technology to implement an intelligent on / off control method. The system includes a cloud data center, a trusted third party, several edge computing gateways, several mobile terminals, and several laboratory devices. The cloud data center and the trusted third party are respectively connected to the several edge computing gateways and the several mobile terminals. The cloud data center is also connected to the trusted third party. Several laboratory devices in each laboratory form a Bluetooth MESH network through a Bluetooth network. Each edge computing gateway is connected to several Bluetooth MESH networks within its communication range.
[0144] The cloud data center is used to collect real-time laboratory reservation information uploaded by several mobile terminals, encrypt and transmit it to all edge computing gateways, and build a real-time laboratory reservation form in the edge computing gateways; if the edge computing gateway fails to retrieve and match the real-time laboratory access information, it calls the mobile terminals for manual review.
[0145] Trusted Machine (TMH) third-party authentication is used to authenticate all mobile terminals and all edge computing gateways.
[0146] The mobile terminal is used to collect users' real-time laboratory reservation information and encrypt and upload it to the cloud data center; it also receives calls from the cloud data center to manually review real-time laboratory access information.
[0147] The edge computing gateway is used to collect users' real-time laboratory access information and search and match it in the real-time laboratory reservation form; based on the real-time laboratory access information, it uses a pre-trained intelligent on / off control model to generate a first real-time intelligent on / off control scheme; based on the real-time equipment operation data of the laboratory equipment, it uses the intelligent on / off control model to generate a second real-time intelligent on / off control scheme.
[0148] Bluetooth MESH networking is used to build data transmission between laboratory equipment and edge computing gateways within communication range, including sending real-time laboratory access information and real-time equipment operation data to the edge computing gateway, and returning the first real-time intelligent on / off control scheme and the second real-time intelligent on / off control scheme sent by the edge computing gateway to the corresponding laboratory equipment.
[0149] Laboratory equipment is used to collect real-time laboratory access information and real-time equipment operation data from users, and send them to the edge computing gateway via Bluetooth MESH networking; it receives and executes the first real-time intelligent on / off control scheme and the second real-time intelligent on / off control scheme.
[0150] This invention discloses an intelligent on / off control method and system based on Bluetooth technology. Using Bluetooth for data transmission results in low power consumption, low cost, and easy deployment. Furthermore, it integrates edge computing gateways and cloud computing centers for unified management, improving the efficiency and real-time performance of laboratory management. Employing Bluetooth MESH networking for localized data transmission within the laboratory enhances practicality, expands the coverage and communication distance of the Bluetooth network, and solves problems such as complex wiring, network congestion, high costs, and signal interference. Delegating laboratory appointment verification to the edge computing gateway improves data transmission efficiency and stability. The intelligent on / off control model, constructed using reinforcement learning algorithms, accurately and automatically performs intelligent on / off control based on laboratory access information and equipment operation data, enhancing the intelligence level of laboratory management. Combining asymmetric encryption technology and digital identity authentication, transmission is performed in encrypted form, improving data transmission security.
[0151] This invention is not limited to the optional embodiments described above, and anyone can derive other various forms of products based on the inspiration of this invention. The specific embodiments described above should not be construed as limiting the scope of protection of this invention; the scope of protection of this invention should be determined by the claims, and the specification can be used to interpret the claims.
Claims
1. A smart on / off control method based on Bluetooth technology, characterized in that: Includes the following steps: Connect all mobile terminals and all edge computing gateways to the cloud data center, build a Bluetooth MESH network based on the laboratory equipment, and connect the Bluetooth MESH network to the corresponding edge computing gateway; Based on the cloud data center, real-time laboratory reservation information uploaded by several mobile terminals is collected, encrypted and transmitted to all edge computing gateways, and a real-time laboratory reservation form is built in the edge computing gateway. Based on the edge computing gateway, the system collects users' real-time laboratory access information and searches and matches it in the real-time laboratory reservation form. If the match fails, it will be manually reviewed; otherwise, it will proceed to the next step. Based on real-time laboratory access information, a first real-time intelligent on / off control scheme is generated using a pre-trained intelligent on / off control model and sent to the corresponding laboratory equipment via Bluetooth MESH networking. Based on the real-time equipment operation data of the laboratory equipment, a second real-time intelligent on / off control scheme is generated using an intelligent on / off control model, and then returned to the corresponding laboratory equipment via Bluetooth MESH networking.
2. The intelligent on / off control method based on Bluetooth technology according to claim 1, characterized in that: Connect all mobile terminals and all edge computing gateways to the cloud data center. Based on the laboratory equipment, build a Bluetooth MESH network and connect the Bluetooth MESH network to the corresponding edge computing gateways, including the following steps: Connect all mobile terminals and all edge computing gateways to the cloud data center, and call a trusted third party to perform key initialization and digital identity authentication for all mobile terminals and all edge computing gateways using asymmetric encryption algorithms and digital identity authentication algorithms; Connect several laboratory devices in each laboratory via Bluetooth network to build a Bluetooth MESH network, and connect the Bluetooth MESH network to the corresponding edge computing gateway within the communication range. Based on cloud data centers, an intelligent on / off control model is constructed by taking into account the historical laboratory access information of several users, the historical equipment operation data of experimental equipment, and the corresponding historical intelligent on / off control schemes. The intelligent on / off control model is then deployed on all edge computing gateways.
3. The intelligent on / off control method based on Bluetooth technology according to claim 2, characterized in that: The intelligent on / off control model is constructed based on the DQN algorithm.
4. The intelligent on / off control method based on Bluetooth technology according to claim 2, characterized in that: Based on a cloud data center, real-time laboratory reservation information uploaded by several mobile terminals is collected, encrypted, and transmitted to all edge computing gateways. A real-time laboratory reservation form is then constructed in the edge computing gateways, including the following steps: Based on mobile terminals, the user's real-time laboratory reservation information is encrypted and signed to obtain the corresponding first encrypted real-time laboratory reservation information and first signature data, which is then uploaded to the cloud data center. Based on the cloud data center, the first encrypted real-time laboratory reservation information and the first signature data are signed, verified and decrypted to obtain the first decrypted real-time laboratory reservation information. The first decrypted real-time lab reservation information is encrypted to obtain the second encrypted real-time lab reservation information, which is then sent to all edge computing gateways. Based on the edge computing gateway, the second encrypted real-time laboratory reservation information is decrypted to obtain the second decrypted real-time laboratory reservation information, and a real-time laboratory reservation form is constructed based on several pieces of the second decrypted real-time laboratory reservation information.
5. The intelligent on / off control method based on Bluetooth technology according to claim 2, characterized in that: Based on the edge computing gateway, real-time laboratory access information of users is collected and searched for in the real-time laboratory reservation form. If the match fails, manual review is required; otherwise, the process proceeds to the next step, which includes the following steps: Based on laboratory equipment, the system receives real-time laboratory access information from users and sends it to the edge computing gateway within the communication range via Bluetooth MESH networking. Based on the edge computing gateway, the system searches and matches the real-time laboratory access information in the real-time laboratory reservation form. If the match fails, the user's real-time lab access information is encrypted and signed to obtain the corresponding first encrypted real-time lab access information and second signature data, which is then sent to the cloud data center. Based on the cloud data center, the first encrypted real-time laboratory access information and the second signature data are signed, verified and decrypted to obtain the first decrypted real-time laboratory access information. The first decrypted real-time laboratory access information is encrypted to obtain the corresponding second encrypted real-time laboratory access information, which is then sent to the corresponding mobile terminal for manual review. If the review is approved or not, the intelligent on / off control process ends; otherwise, proceed to the next step.
6. The intelligent on / off control method based on Bluetooth technology according to claim 3, characterized in that: Based on real-time laboratory access information, a first real-time intelligent on / off control scheme is generated using a pre-trained intelligent on / off control model, and then sent to the corresponding laboratory equipment via Bluetooth MESH networking, including the following steps: The real-time laboratory access information is preprocessed to obtain preprocessed real-time laboratory access information. The pre-processed real-time laboratory access information is input into the intelligent on / off control model to perform intelligent on / off control and generate the corresponding first real-time intelligent on / off control scheme. Based on the first device address of the laboratory equipment that obtains real-time laboratory access information, the first real-time intelligent on / off control scheme is returned to the corresponding laboratory equipment via Bluetooth MESH networking.
7. The intelligent on / off control method based on Bluetooth technology according to claim 6, characterized in that: The preprocessed real-time laboratory access information is input into the intelligent on / off control model to perform intelligent on / off control and generate the corresponding first real-time intelligent on / off control scheme, including the following steps: The preprocessed real-time laboratory access information is input into the intelligent on / off control model. Based on the preprocessed real-time laboratory access information, the state space and action space of the intelligent on / off control model are updated to obtain the first updated state space and the first updated action space. After the first update, the state space and action space are used to obtain the Q value of the Q network after the first update using the reward function. Based on the Q value after the first update, and using the execution agent and experience replay pool, a greedy strategy is employed to perform intelligent on / off control, generating the corresponding first real-time intelligent on / off control scheme.
8. The intelligent on / off control method based on Bluetooth technology according to claim 3, characterized in that: Based on the real-time equipment operation data of the laboratory equipment, a second real-time intelligent on / off control scheme is generated using an intelligent on / off control model, and then returned to the corresponding laboratory equipment via Bluetooth MESH networking, including the following steps: Based on laboratory equipment, the first real-time intelligent on / off control scheme is implemented, real-time equipment operation data during operation is collected, and sent to the edge computing gateway within the communication range via Bluetooth MESH networking; Based on the edge computing gateway, the real-time device operation data is preprocessed to obtain preprocessed real-time device operation data. The preprocessed real-time equipment operation data is input into the intelligent on / off control model to perform intelligent on / off control and generate a second real-time intelligent on / off control scheme. Based on the second device address of the laboratory equipment that collects real-time equipment operation data, the second real-time intelligent on / off control scheme is returned to the corresponding laboratory equipment via Bluetooth MESH networking.
9. The intelligent on / off control method based on Bluetooth technology according to claim 8, characterized in that: The preprocessed real-time equipment operation data is input into the intelligent on / off control model to perform intelligent on / off control, generating a second real-time intelligent on / off control scheme, including the following steps: The preprocessed real-time equipment operation data is input into the intelligent on / off control model. Based on the preprocessed real-time equipment operation data, the state space and action space of the intelligent on / off control model are updated to obtain the second updated state space and the second updated action space. The second updated state space and the second updated action space are used to obtain the second updated Q value of the Q network using the reward function. Based on the second updated Q value, and using the execution agent and experience replay pool, a greedy strategy is employed to perform intelligent on / off control, generating a corresponding second real-time intelligent on / off control scheme.
10. A smart on / off control system based on Bluetooth technology, used to implement the smart on / off control method as described in any one of claims 1-9, characterized in that: The system includes a cloud data center, a trusted third-party machine, several edge computing gateways, several mobile terminals, and several laboratory devices. The cloud data center and the trusted third-party machine are respectively connected to the edge computing gateways and the mobile terminals. The cloud data center is also connected to the trusted third-party machine. Several laboratory devices in each laboratory form a Bluetooth MESH network through a Bluetooth network. Each edge computing gateway is connected to several Bluetooth MESH networks within its communication range.