Lighter data allocation method and system based on smart cloud platform

CN118626414APending Publication Date: 2024-09-10SHAODONG INTELLIGENT MFG INNOVATIVE INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410786074.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

然而,智能打火机仍存在以下问题,智能打火机的数据传输延迟可能会影响用户体验,尤其是在需要实时响应的情况下,智能打火机的数据存储访问效率的高低会影响数据的实时性和准确性,且没有专门的技术实时电池状态的监测及故障分析处理,导致智能打火机存在较大的使用安全隐患,当前技术无法进行高准确率地处理智能打火机的异常或故障,难以进行针对性地调配操作

Benefits of technology

[0061] 1. By setting up a data cache layer in the cloud platform, the present invention can efficiently store the real-time data generated by the smart lighter and improve the data access speed; by establishing the data cache mechanism of the smart lighter, the integrity and real-time nature of the data are ensured. Ensure cache efficiency and availability;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626414A
    Figure CN118626414A
Patent Text Reader

Abstract

The invention relates to the technical field of cloud computing data analysis, in particular to a lighter data allocation method and system based on an intelligent cloud platform, and the method comprises the steps: setting a data caching layer in the cloud platform, and efficiently storing the data of intelligent lighters; caching efficiency and availability are guaranteed by periodically updating cached data and establishing a data caching mechanism; the battery state data of the intelligent lighter is extracted from the cache layer regularly or according to the set trigger condition, and the change of the battery state is accurately captured; the battery health index of the intelligent lighter is obtained through calculation, and the battery state of the intelligent lighter is judged, so that subsequent fault early warning is facilitated; through processing and analysis, a first-level early warning prompt, a second-level early warning prompt and a third-level early warning prompt are obtained, and targeted management and control are carried out. The intelligent lighter is used for solving the technical problems of data transmission delay and potential safety hazards of the intelligent lighter in the existing scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud computing data analysis, and in particular to a lighter data allocation method and system based on a smart cloud platform. Background Art

[0002] The smart cloud platform is a cloud computing technology-based platform that aims to provide intelligent and data-based services. It integrates and manages computing, storage, network and other resources through the cloud to provide users with a good user experience and efficient services. Smart cloud platforms usually have powerful computing capabilities, flexible scalability and efficient management functions, and can meet the needs of users with different needs.

[0003] With the continuous development of science and technology, smart lighters have also stepped onto a new level. However, smart lighters still have the following problems: the data transmission delay of smart lighters may affect the user experience, especially when real-time response is required. The efficiency of data storage and access of smart lighters will affect the real-time and accuracy of data. There is no special technology for real-time battery status monitoring and fault analysis and processing, which leads to a large hidden danger of using smart lighters. The current technology cannot handle the abnormality or failure of smart lighters with high accuracy, and it is difficult to carry out targeted deployment operations. To this end, the present invention proposes a lighter data deployment method and system based on a smart cloud platform. Summary of the invention

[0004] The purpose of the present invention is to solve the problems in the background technology and to propose a lighter data allocation method and system based on a smart cloud platform.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] The lighter data allocation method based on the smart cloud platform includes:

[0007] Step 1: Set up a data cache layer in the cloud platform to store real-time data generated by the smart lighter; when a user or system requests data, try to obtain it from the cache to reduce access to the backend database;

[0008] Step 2: Update cached data periodically or eliminate data according to its timeliness; establish a data cache mechanism for smart lighters to temporarily store delayed data and upload it in time after the network is restored;

[0009] Step 3: communicate with the cache layer through the API interface, obtain smart lighter data from the cache layer, divide the monitoring time points, and monitor the battery status of the smart lighter in real time;

[0010] Step 4: extracting the battery status data of the smart lighter from the cache layer regularly or according to a set trigger condition;

[0011] Step 5: Based on the extracted battery status data of the smart lighter, the smart lighter battery health index is obtained by calculation, and the battery status of the smart lighter is determined, thereby obtaining a fault signal and a corresponding fault inspection index;

[0012] Step 6: Process and analyze the generated fault signal and the corresponding fault inspection index to obtain the first-level warning prompt, the second-level warning prompt and the third-level warning prompt, and carry out targeted management and control.

[0013] It should be noted that the application object of the lighter data allocation method and system based on the smart cloud platform in the embodiment of the present invention can be a smart lighter developed by a certain technology company. Specifically, it can process and analyze the data transmission delay of the smart lighter through cloud computing technology, and monitor the battery status data of the smart lighter in real time to determine whether it is in a normal state and whether there is a potential fault, and at the same time perform early warning processing on the fault information; in summary, the data access efficiency is optimized through the data caching layer of the cloud platform, so as to realize real-time monitoring and accurate early warning of the battery status of the smart lighter.

[0014] Furthermore, the process of establishing the data cache mechanism of the smart lighter includes:

[0015] D1. Determine cache requirements:

[0016] Analyze the data characteristics of the smart lighter and determine the data characteristics of the smart lighter that need to be cached, including data type, size, and update frequency;

[0017] D2. Evaluate the required cache capacity based on the data characteristics of the smart lighter:

[0018] d1. Based on the relatively small data size, when setting the initial cache capacity, the memory cache is initially set to M hundreds of megabytes to N gigabytes; the disk cache is initially set to P ten gigabytes; among them, 1GB of memory cache is enough to store millions of smart lighter data; due to the high cost of memory and the small amount of data in smart lighters, there is no need to immediately configure a large amount of disk cache, and the cache capacity is dynamically expanded according to the need for persistent storage or scalability considerations; M, N, and P are the minimum initial capacity of the memory cache, the maximum initial capacity of the memory cache, and the initial capacity of the disk cache, respectively;

[0019] d2. Select the corresponding cache technology according to the data access frequency, size and whether persistence is required for the smart lighter. The cache technology includes memory cache and disk cache. The memory cache is used for situations where fast access is required and the data volume is not large, providing fast read and write speeds to ensure efficient data access. The disk cache is used for situations where the data volume is large or persistent storage is required. When the memory cache reaches a certain capacity limit, part of the data can be transferred to the disk cache.

[0020] D3. Divide the data of the smart lighter into different areas or partitions according to the data access mode of the smart lighter:

[0021] The real-time data area is used to store the smart lighter data that is recently used or frequently accessed, so that it can be quickly obtained from the cache; the historical data area is used to store the smart lighter data that is older or less frequently accessed, and the data is stored in the disk cache to save memory resources;

[0022] D4. Design index structure for cached data:

[0023] g1. Specify whether the query requirement is to query the comprehensive information of all smart lighters under the user ID or to quickly query the comprehensive information of smart lighters based on the serial number; the comprehensive information of smart lighters includes model, status, location, etc.;

[0024] g2. When establishing the index relationship between user ID and lighter data, the user ID and the set of unique identifiers of all smart lighters corresponding to the user ID are marked as U and S respectively, and the two are associated to obtain U→S, that is, each user ID U is mapped to a set S of one or more smart lighter identifiers;

[0025] g3. In the index relationship between the serial number and the lighter data, the serial number and the comprehensive information of the smart lighter are marked as SN and LD respectively, and the relationship between the two is expressed as SN→LD, that is, each serial number SN is uniquely mapped to the comprehensive information LD of a smart lighter; wherein, the index is an auxiliary data structure established to improve the query efficiency, and is associated with the storage location and unique identifier of the data; based on the uniqueness of the serial number, the serial number can be used as an independent index to quickly find the detailed information of the required smart lighter;

[0026] D5. Implement cache logic:

[0027] h1. For data writing, when the data of the smart lighter is uploaded, its network connection status is checked; if the network connection is normal, it is directly written into the smart lighter database, and the memory cache is updated according to whether the data is in the real-time data area; if the network connection is interrupted, the data of the smart lighter is written into the memory cache or disk cache;

[0028] h2. For data reading, when reading data from the smart lighter, first try to obtain it from the cache. If the required data exists in the cache, return it directly; if the required data does not exist in the memory cache, try to obtain it from the disk cache, and update the memory cache based on whether the data is in the real-time data area; if the required data does not exist in the disk cache either, obtain it from the smart lighter database, and update the disk cache and memory cache in turn based on whether the data is in the real-time data area.

[0029] Furthermore, the data type is structured data, which are the serial number, user ID, number of uses and last use time of the smart lighter; wherein the serial number is the unique identifier of the smart lighter;

[0030] The data size is to record usage information and user information;

[0031] The update rate means that the data of the number of times used and the last time used are updated with each use by the user, and the update frequency is high.

[0032] Furthermore, the process of extracting the battery status data of the smart lighter from the cache layer periodically or according to a set trigger condition includes:

[0033] Periodically means using a scheduled task to periodically extract the battery status data of the smart lighter from the cache layer;

[0034] The preset trigger conditions are as follows:

[0035] Set normal reference values ​​of battery charge BC and battery temperature BT and mark them as B1 and B2 respectively;

[0036] If the battery power value is 0 or |BC-B1|×B1>η2, the monitoring data corresponding to the value is marked as invalid battery power;

[0037] If η1≤|BC-B1|×B1≤η2, the monitoring data corresponding to the value is marked as abnormal battery power and a first signal to be detected is generated; otherwise, it is marked as valid battery power and a normal battery power signal is generated; η1 and η2 represent abnormal critical values ​​of battery power, η1<η2 and are both positive integers;

[0038] If the value of the monitored battery temperature is 0 or |BT-B2|×B2>μ2, the monitoring data corresponding to the value is marked as invalid battery temperature;

[0039] If μ1≤|BT-B2|×B2≤μ2, the monitoring data corresponding to the value is marked as abnormal battery temperature, and a second signal to be detected is generated; otherwise, it is marked as a valid battery temperature, and a normal battery temperature signal is generated; μ1 and μ2 represent abnormal critical values ​​of battery temperature, μ1<μ2 and both are positive integers;

[0040] Once the first signal to be detected or the second signal to be detected is generated, the condition will be triggered immediately to extract the battery status data of the smart lighter.

[0041] Furthermore, the specific analysis formula for calculating the health index of the smart lighter battery is as follows:

[0042]

[0043] Wherein, LBHI represents the battery health index of the smart lighter; b(t) represents the remaining battery capacity of the smart lighter at time t; bmax represents the state of the smart lighter when it is fully charged; represents the normalization of the remaining battery capacity of the smart lighter; f(t) represents the frequency of use of the smart lighter at time t; represents the average frequency of use of smart lighters; σf represents the standard deviation of the frequency of use of smart lighters; represents the normalization of the usage frequency deviation of the smart lighter; T l Indicates the last time the smart lighter was charged or maintained; T a represents the historical average maintenance interval of smart lighters; T max Indicates the maximum scheduled maintenance interval of the smart lighter; Indicates the normalization of the maintenance interval deviation of the smart lighter. When T a <T max And T l <T a When , the value is 0 or negative, indicating that maintenance is performed in advance; b 、w f 、w m They represent the weight coefficients of the remaining battery capacity, usage frequency deviation, and maintenance interval deviation of the smart lighter, respectively, and w b +w f +w m =1.

[0044] Furthermore, the process of determining the battery status of the smart lighter to obtain a fault signal and a corresponding fault inspection index includes:

[0045] When analyzing the calculation results of the smart lighter battery health index, if the value of the smart lighter battery health index is large, the smart lighter battery is in good condition, indicating that the remaining battery is high, the usage frequency is close to the average, and the maintenance interval is close to the average or the maximum maintenance interval has not been reached, which together indicate that the smart lighter battery is currently in a relatively healthy state; if the value of the smart lighter battery health index is small, the smart lighter battery is in poor condition, indicating that the remaining battery is low, the usage frequency deviation is large or the maintenance interval deviation is large, and any one or more of the above factors will lead to a decline in the performance of the smart lighter battery;

[0046] A comprehensive threshold Cmin of the health of the smart lighter battery is set, and the smart lighter battery health index is compared and analyzed with the comprehensive threshold of the health of the smart lighter battery to determine whether the current smart lighter battery health index is within the range of Cmin±C0, where C0 represents the error value of the smart lighter battery health index; when the smart lighter battery health index exceeds the range of Cmin±C0, it is determined that the smart lighter battery has a fault, and a fault signal is generated. At the same time, the smart lighter battery health index corresponding to the fault signal is calculated and processed to obtain a fault inspection index LF, where the calculation formula is LF=LBHI·(1-ek·q), where q represents the total battery usage time, k is a positive number, representing the battery aging speed, and the larger the LF value is, the higher the risk of fault is; otherwise, it is determined that the smart lighter battery is in normal condition.

[0047] Furthermore, the process of processing and analyzing the generated fault signal and the corresponding fault inspection index to obtain the first-level warning prompt, the second-level warning prompt and the third-level warning prompt includes:

[0048] Obtain the corresponding fault inspection index LF based on the fault signal;

[0049] Match the fault inspection index LF with the preset control and allocation interval [CI 1, CI 2]; if LF>CI2, it means that the battery fault state of the smart lighter is severely abnormal, and a first warning prompt is generated, and the corresponding smart lighter is defined as a first-class allocation smart lighter for the first warning prompt; if CI 1≤LF≤CI 2, it means that the battery fault state of the smart lighter is moderately abnormal, and a second warning prompt is generated, and the corresponding smart lighter is defined as a second-class allocation smart lighter for the second warning prompt; if LF<CI 1, it means that the battery fault state of the smart lighter is slightly abnormal, and a third warning prompt is generated, and the corresponding smart lighter is defined as a third-class allocation smart lighter for the third warning prompt;

[0050] The battery fault signal information of all smart lighters is collected and integrated into a battery fault signal set and uploaded to the background, so that the batteries of the smart lighters can be replaced or maintained immediately.

[0051] Furthermore, the process of conducting targeted control based on different early warning prompts includes:

[0052] For the first warning prompt, the second warning prompt and the third warning prompt, corresponding first-level maintenance frequency, second-level maintenance frequency and third-level maintenance frequency are established for type I, type II and type III deployed smart lighters respectively; among which, the first-level maintenance frequency is higher than the second-level maintenance frequency, and the second-level maintenance frequency is higher than the third-level maintenance frequency.

[0053] Lighter data allocation system based on smart cloud platform, including:

[0054] The data cache layer setting module is used to set up a data cache layer in the cloud platform to store real-time data generated by the smart lighter; when a user or system requests data, it tries to obtain it from the cache to reduce access to the backend database;

[0055] The data cache mechanism establishment module is used to periodically update cached data or eliminate data according to its timeliness; establish a data cache mechanism for smart lighters to temporarily store delayed data and upload it in time after the network is restored;

[0056] The status data monitoring module is used to communicate with the cache layer through the API interface, obtain the smart lighter data from the cache layer, divide the monitoring time points, and monitor the battery status of the smart lighter in real time;

[0057] The status data extraction module is used to extract the battery status data of the smart lighter from the cache layer regularly or according to the set trigger conditions;

[0058] The analysis, judgment and fault signal generation module is used to obtain the smart lighter battery health index by calculation based on the extracted battery status data of the smart lighter, and to judge the smart lighter battery status, thereby obtaining the fault signal and the corresponding fault inspection index;

[0059] The intelligent deployment and control module is used to process and analyze the generated fault signals and the corresponding fault inspection indexes, obtain the first-level early warning prompts, the second-level early warning prompts and the third-level early warning prompts, and carry out targeted control.

[0060] Compared with the existing technology, the advantages of the lighter data allocation method and system provided by the present invention based on the smart cloud platform are:

[0061] 1. The present invention can efficiently store the real-time data generated by the smart lighter and improve the data access speed by setting up a data cache layer in the cloud platform; by establishing a data cache mechanism for the smart lighter, the integrity and real-time nature of the data are ensured, and the efficiency and availability of the cache are guaranteed;

[0062] 2. The present invention extracts the battery status data of the smart lighter from the cache layer periodically or according to a set trigger condition, and regularly extracts the battery status data to maintain continuous monitoring of the battery status of the smart lighter, so as to accurately capture changes in the battery status;

[0063] 3. The present invention obtains the smart lighter battery health index by calculation, determines the smart lighter battery status, obtains the fault signal and the corresponding fault inspection index, and realizes quantitative evaluation of the smart lighter battery status.

[0064] To sum up, the present invention can perform intelligent lighter monitoring through comprehensive data processing and analysis according to actual conditions, use the data cache layer to optimize data access efficiency, and perform real-time management and control of stored data, determine the severity of the fault, and perform targeted deployment and processing of different early warning prompts, thereby ensuring the normal operation of the subsequent lighter data deployment method and system based on the smart cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 This is a flow chart of the lighter data allocation method based on the smart cloud platform proposed by the present invention.

[0066] Figure 2 This is a module diagram of the lighter data allocation system based on the smart cloud platform proposed by the present invention. DETAILED DESCRIPTION

[0067] 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 implementation regulations described 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.

[0068] See also Figure 1 The present invention provides a lighter data allocation method based on a smart cloud platform, comprising:

[0069] Step 1: Set up a data cache layer in the cloud platform to store real-time data generated by the smart lighter; when a user or system requests data, try to obtain it from the cache to reduce access to the backend database;

[0070] Step 2: Update cached data periodically or eliminate data according to its timeliness; establish a data cache mechanism for smart lighters to temporarily store delayed data and upload it in time after the network is restored;

[0071] Step 3: communicate with the cache layer through the API interface, obtain smart lighter data from the cache layer, divide the monitoring time points, and monitor the battery status of the smart lighter in real time;

[0072] Step 4: extracting the battery status data of the smart lighter from the cache layer regularly or according to a set trigger condition;

[0073] Step 5: Based on the extracted battery status data of the smart lighter, the smart lighter battery health index is obtained by calculation, and the battery status of the smart lighter is determined, thereby obtaining a fault signal and a corresponding fault inspection index;

[0074] Step 6: Process and analyze the generated fault signal and the corresponding fault inspection index to obtain the first-level warning prompt, the second-level warning prompt and the third-level warning prompt, and carry out targeted management and control.

[0075] It should be noted that the application object of the lighter data allocation method and system based on the smart cloud platform in the embodiment of the present invention can be a smart lighter developed by a certain technology company. Specifically, it can process and analyze the data transmission delay of the smart lighter through cloud computing technology, and monitor the battery status data of the smart lighter in real time to determine whether it is in a normal state and whether there is a potential fault, and at the same time perform early warning processing on the fault information; in summary, the data access efficiency is optimized through the data caching layer of the cloud platform, so as to realize real-time monitoring and accurate early warning of the battery status of the smart lighter.

[0076] See also Figure 1 The present invention provides a lighter data allocation method based on a smart cloud platform, wherein step 2 includes the following contents:

[0077] D1. Determine cache requirements:

[0078] Analyze the data characteristics of the smart lighter and determine the data characteristics of the smart lighter that need to be cached, including data type, size, and update frequency;

[0079] D2. Evaluate the required cache capacity based on the data characteristics of the smart lighter:

[0080] d1. Based on the relatively small data size, when setting the initial cache capacity, the memory cache is initially set to M hundreds of megabytes to N gigabytes; the disk cache is initially set to P ten gigabytes; among them, 1GB of memory cache is enough to store millions of smart lighter data; due to the high cost of memory and the small amount of data in smart lighters, there is no need to immediately configure a large amount of disk cache, and the cache capacity is dynamically expanded according to the need for persistent storage or scalability considerations; M, N, and P are the minimum initial capacity of the memory cache, the maximum initial capacity of the memory cache, and the initial capacity of the disk cache, respectively;

[0081] d2. Select the corresponding cache technology according to the data access frequency, size and whether persistence is required for the smart lighter. The cache technology includes memory cache and disk cache. The memory cache is used for situations where fast access is required and the data volume is not large, providing fast read and write speeds to ensure efficient data access. The disk cache is used for situations where the data volume is large or persistent storage is required. When the memory cache reaches a certain capacity limit, part of the data can be transferred to the disk cache.

[0082] D3. Divide the data of the smart lighter into different areas or partitions according to the data access mode of the smart lighter:

[0083] The real-time data area is used to store the smart lighter data that is recently used or frequently accessed, so that it can be quickly obtained from the cache; the historical data area is used to store the smart lighter data that is older or less frequently accessed, and the data is stored in the disk cache to save memory resources;

[0084] D4. Design index structure for cached data:

[0085] g1. Specify whether the query requirement is to query the comprehensive information of all smart lighters under the user ID or to quickly query the comprehensive information of smart lighters based on the serial number; the comprehensive information of smart lighters includes model, status, location, etc.;

[0086] g2. When establishing the index relationship between user ID and lighter data, the user ID and the set of unique identifiers of all smart lighters corresponding to the user ID are marked as U and S respectively, and the two are associated to obtain U→S, that is, each user ID U is mapped to a set S of one or more smart lighter identifiers;

[0087] g3. In the index relationship between the serial number and the lighter data, the serial number and the comprehensive information of the smart lighter are marked as SN and LD respectively, and the relationship between the two is expressed as SN→LD, that is, each serial number SN is uniquely mapped to the comprehensive information LD of a smart lighter; wherein, the index is an auxiliary data structure established to improve the query efficiency, and is associated with the storage location and unique identifier of the data; based on the uniqueness of the serial number, the serial number can be used as an independent index to quickly find the detailed information of the required smart lighter;

[0088] D5. Implement cache logic:

[0089] h1. For data writing, when the data of the smart lighter is uploaded, its network connection status is checked; if the network connection is normal, it is directly written into the smart lighter database, and the memory cache is updated according to whether the data is in the real-time data area; if the network connection is interrupted, the data of the smart lighter is written into the memory cache or disk cache;

[0090] h2. For data reading, when reading data from the smart lighter, first try to obtain it from the cache. If the required data exists in the cache, it will be returned directly; if the required data does not exist in the memory cache, try to obtain it from the disk cache, and update the memory cache according to whether the data is in the real-time data area; if the required data does not exist in the disk cache either, obtain it from the smart lighter database, and update the disk cache and memory cache in turn according to whether the data is in the real-time data area;

[0091] In step 2, the data type is structured data, which includes the serial number, user ID, number of uses, and last use time of the smart lighter; wherein the serial number is the unique identifier of the smart lighter;

[0092] The data size is to record usage information and user information;

[0093] Update rate means that the data of the number of times used and the last time used are updated with each use of the user, and the update frequency is high;

[0094] See also Figure 1 The present invention provides a lighter data allocation method based on a smart cloud platform, wherein step 4 includes the following contents:

[0095] The preset trigger conditions are as follows:

[0096] E1. Set normal reference values ​​of battery charge BC and battery temperature BT and mark them as B1 and B2 respectively;

[0097] E2. If the value of the battery power is 0 or |BC-B1|×B1>η2, the monitoring data corresponding to the value is marked as invalid battery power;

[0098] E3. If η1≤|BC-B1|×B1≤η2, the monitoring data corresponding to the value is marked as abnormal battery power and a first signal to be detected is generated; otherwise, it is marked as valid battery power and a normal battery power signal is generated; η1 and η2 represent abnormal critical values ​​of battery power, η1<η2 and are both positive integers;

[0099] E4. If the value of the monitored battery temperature is 0 or |BT-B2|×B2>μ2, the monitoring data corresponding to the value is marked as invalid battery temperature;

[0100] E5. If μ1≤|BT-B2|×B2≤μ2, the monitoring data corresponding to the value is marked as abnormal battery temperature, and a second signal to be detected is generated; otherwise, it is marked as a valid battery temperature, and a normal battery temperature signal is generated; μ1 and μ2 represent abnormal critical values ​​of battery temperature, μ1<μ2 and both are positive integers;

[0101] E6. Once the first signal to be detected or the second signal to be detected is generated, a condition will be triggered immediately to extract the battery status data of the smart lighter;

[0102] In step 4, periodically means using a scheduled task to periodically extract the battery status data of the smart lighter from the cache layer.

[0103] See also Figure 1 The present invention provides a lighter data allocation method based on a smart cloud platform, wherein step five includes the following contents:

[0104] F1. The specific analysis formula for calculating the health index of the smart lighter battery is as follows:

[0105]

[0106] Wherein, LBHI represents the battery health index of the smart lighter; b(t) represents the remaining battery capacity of the smart lighter at time t; bmax represents the state of the smart lighter when it is fully charged; represents the normalization of the remaining battery capacity of the smart lighter; f(t) represents the frequency of use of the smart lighter at time t; represents the average frequency of use of smart lighters; σf represents the standard deviation of the frequency of use of smart lighters; represents the normalization of the usage frequency deviation of the smart lighter; T l Indicates the last time the smart lighter was charged or maintained; T a represents the historical average maintenance interval of smart lighters; T max Indicates the maximum scheduled maintenance interval of the smart lighter; Indicates the normalization of the maintenance interval deviation of the smart lighter. When Ta <T max And T l <T a When , the value is 0 or negative, indicating that maintenance is performed in advance; b 、w f 、w m They represent the weight coefficients of the remaining battery capacity, usage frequency deviation, and maintenance interval deviation of the smart lighter, respectively, and w b +w f +w m =1;

[0107] F2. When analyzing the calculation results of the smart lighter battery health index, if the value of the smart lighter battery health index is large, the smart lighter battery is in good condition, indicating that the remaining battery is high, the usage frequency is close to the average, and the maintenance interval is close to the average or the maximum maintenance interval has not been reached, which together indicate that the smart lighter battery is currently in a relatively healthy state; if the value of the smart lighter battery health index is small, the smart lighter battery is in poor condition, indicating that the remaining battery is low, the usage frequency deviation is large or the maintenance interval deviation is large, and any one or more of the above factors will lead to a decline in the performance of the smart lighter battery;

[0108] F3. Set the comprehensive threshold Cmin of the smart lighter battery health, compare and analyze the smart lighter battery health index with the comprehensive threshold of the smart lighter battery health, and determine whether the current smart lighter battery health index is within the range of Cmin±C0, where C0 represents the error value of the smart lighter battery health index; when the smart lighter battery health index exceeds the range of Cmin±C0, it is determined that the smart lighter battery has a fault, and a fault signal is generated. At the same time, the smart lighter battery health index corresponding to the fault signal is calculated and processed to obtain the fault inspection index LF, where the calculation formula is LF=LBHI·(1-ek·q), where q represents the total battery usage time, k is a positive number, representing the battery aging speed, and the larger the LF value, the higher the risk of fault; otherwise, it is determined that the smart lighter battery is in normal condition.

[0109] See also Figure 1 The present invention provides a lighter data allocation method based on a smart cloud platform, and step six includes the following contents:

[0110] G1. Obtain the corresponding fault inspection index LF based on the fault signal;

[0111] G2. Match the fault inspection index LF with the preset control and allocation interval [CI 1, CI 2]. If LF>CI 2, it means that the battery fault state of the smart lighter is severely abnormal, and a first warning prompt is generated. For the first warning prompt, the corresponding smart lighter is defined as a Class I allocation smart lighter. If CI 1≤LF≤CI 2, it means that the battery fault state of the smart lighter is moderately abnormal, and a second warning prompt is generated. For the second warning prompt, the corresponding smart lighter is defined as a Class II allocation smart lighter. If LF<CI 1, it means that the battery fault state of the smart lighter is slightly abnormal, and a third warning prompt is generated. For the third warning prompt, the corresponding smart lighter is defined as a Class III allocation smart lighter.

[0112] G3. Collect the battery fault signal information of all smart lighters, integrate them into a battery fault signal set and upload it to the backend, and immediately replace or maintain the batteries of the smart lighters;

[0113] In step six, corresponding first-level maintenance frequencies, second-level maintenance frequencies and third-level maintenance frequencies are established for Class I deployed smart lighters, Class II deployed smart lighters and Class III deployed smart lighters respectively for the first warning prompt, the second warning prompt and the third warning prompt; among which, the first-level maintenance frequency is higher than the second-level maintenance frequency, and the second-level maintenance frequency is higher than the third-level maintenance frequency.

[0114] In the embodiment of the present invention, a data cache layer is set to store the real-time data generated by the smart lighter; to reduce the access to the back-end database and improve the data access speed; by establishing a data cache mechanism for the smart lighter, the integrity and real-time of the data are ensured; by extracting the battery status data of the smart lighter from the cache layer regularly or according to the set trigger conditions, the change of the battery status is captured more accurately, and a strong support is provided for fault warning; by determining the battery status of the smart lighter, it is determined whether the battery is in a normal state and whether there is a potential fault, so as to facilitate subsequent fault warning and control; by processing and analyzing the generated fault signal and the corresponding fault inspection index, the first-level warning prompt, the second-level warning prompt and the third-level warning prompt are obtained, and targeted deployment and control are carried out to ensure the safe use of the smart lighter. In summary, the example of the present invention involves data collection and analysis, result generation and decision-making of optimization measures, and solves the technical problems of data transmission delay and potential safety hazards of smart lighters in the existing scheme. In actual situations, more data and context information may be needed to make specific decisions and optimization schemes.

[0115] See also Figure 2 The present invention provides a lighter data allocation system based on a smart cloud platform, comprising:

[0116] The data cache layer setting module is used to set up a data cache layer in the cloud platform to store real-time data generated by the smart lighter; when a user or system requests data, it tries to obtain it from the cache to reduce access to the backend database;

[0117] The data cache mechanism establishment module is used to periodically update cached data or eliminate data according to its timeliness; establish a data cache mechanism for smart lighters to temporarily store delayed data and upload it in time after the network is restored;

[0118] The status data monitoring module is used to communicate with the cache layer through the API interface, obtain the smart lighter data from the cache layer, divide the monitoring time points, and monitor the battery status of the smart lighter in real time;

[0119] The status data extraction module is used to extract the battery status data of the smart lighter from the cache layer regularly or according to the set trigger conditions;

[0120] The analysis, judgment and fault signal generation module is used to obtain the smart lighter battery health index by calculation based on the extracted battery status data of the smart lighter, and to judge the smart lighter battery status, thereby obtaining the fault signal and the corresponding fault inspection index;

[0121] The intelligent deployment and control module is used to process and analyze the generated fault signals and the corresponding fault inspection indexes, obtain the first-level early warning prompts, the second-level early warning prompts and the third-level early warning prompts, and carry out targeted control.

[0122] In addition, the formulas involved in the above are all calculated by removing dimensions and taking their numerical values. They are a formula that is closest to the actual situation obtained by collecting a large amount of data and performing software simulation. The proportional coefficient in the formula and the various preset thresholds in the analysis process are set by technical personnel in this field according to actual conditions or obtained by simulating a large amount of data; the size of the proportional coefficient is to quantify each parameter to obtain a specific value for subsequent comparison. The size of the proportional coefficient depends on the amount of sample data and the preliminary setting of the corresponding processing coefficient for each group of sample data by technical personnel in this field; as long as it does not affect the proportional relationship between the parameter and the quantized value.

[0123] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically based on the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0124] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0125] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] Secondly: In the drawings of the embodiments disclosed in the present invention, only the structures related to the embodiments disclosed in the present invention are involved, and other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of the present invention can be combined with each other;

[0130] Finally: The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A lighter data allocation method based on a smart cloud platform, characterized in that: Step 1: Set up a data cache layer in the cloud platform to store real-time data generated by the smart lighter; when a user or system requests data, try to obtain it from the cache to reduce access to the backend database; Step 2: Update cached data periodically or eliminate data according to its timeliness; establish a data cache mechanism for smart lighters to temporarily store delayed data and upload it in time after the network is restored; Step 3: communicate with the cache layer through the API interface, obtain smart lighter data from the cache layer, divide the monitoring time points, and monitor the battery status of the smart lighter in real time; Step 4: extracting the battery status data of the smart lighter from the cache layer regularly or according to a set trigger condition; Step 5: Based on the extracted battery status data of the smart lighter, the smart lighter battery health index is obtained by calculation, and the battery status of the smart lighter is determined, thereby obtaining a fault signal and a corresponding fault inspection index; Step 6: Process and analyze the generated fault signal and the corresponding fault inspection index to obtain the first-level warning prompt, the second-level warning prompt and the third-level warning prompt, and carry out targeted management and control.

2. The lighter data allocation method based on the smart cloud platform according to claim 1 is characterized in that: In the step 2, the process of establishing the data cache mechanism of the smart lighter includes: D1. Determine cache requirements: Analyze the data characteristics of the smart lighter and determine the data characteristics of the smart lighter that need to be cached, including data type, size, and update frequency; D2. Evaluate the required cache capacity based on the data characteristics of the smart lighter: d1. Based on the relatively small data size, when setting the initial cache capacity, the memory cache is initially set to M hundreds of megabytes to N gigabytes; the disk cache is initially set to P tens of gigabytes; d2. Select corresponding cache technology according to the data access frequency and size of the smart lighter and whether persistence is required; wherein the cache technology includes memory cache and disk cache; D3. Divide the data of the smart lighter into different areas or partitions according to the data access mode of the smart lighter: The real-time data area is used to store the smart lighter data that is recently used or frequently accessed, so that it can be quickly obtained from the cache; the historical data area is used to store the smart lighter data that is older or less frequently accessed, and the data is stored in the disk cache to save memory resources; D4. Design index structure for cached data: g1. Specify whether the query requirement is to query the comprehensive information of all smart lighters under the user ID or to quickly query the comprehensive information of smart lighters based on the serial number; g2. When establishing the index relationship between user ID and lighter data, the user ID and the set of unique identifiers of all smart lighters corresponding to the user ID are marked as U and S respectively, and the two are associated to obtain U→S, that is, each user ID U is mapped to a set S of one or more smart lighter identifiers; g3. In the index relationship between the serial number and the lighter data, the serial number and the comprehensive information of the smart lighter are marked as SN and LD respectively, and the relationship between the two is expressed as SN→LD, that is, each serial number SN is uniquely mapped to the comprehensive information LD of a smart lighter; D5. Implement cache logic: h1. For data writing, when the data of the smart lighter is uploaded, its network connection status is checked; if the network connection is normal, it is directly written into the smart lighter database, and the memory cache is updated according to whether the data is in the real-time data area; if the network connection is interrupted, the data of the smart lighter is written into the memory cache or disk cache; h2. For data reading, when reading data from the smart lighter, first try to obtain it from the cache. If the required data exists in the cache, return it directly; if the required data does not exist in the memory cache, try to obtain it from the disk cache, and update the memory cache based on whether the data is in the real-time data area; if the required data does not exist in the disk cache either, obtain it from the smart lighter database, and update the disk cache and memory cache in turn based on whether the data is in the real-time data area.

3. The lighter data allocation method based on the smart cloud platform according to claim 2 is characterized in that: The data types are structured data, which are the serial number, user ID, number of uses, and last use time of the smart lighter; the serial number is the unique identifier of the smart lighter; The data size is to record usage information and user information; The update rate means that the data of the number of times used and the last time used are updated with each use by the user, and the update frequency is high.

4. The lighter data allocation method based on the smart cloud platform according to claim 1 is characterized in that: In step 4, the process of extracting the battery status data of the smart lighter from the cache layer regularly or according to a set trigger condition includes: Periodically means using a scheduled task to periodically extract the battery status data of the smart lighter from the cache layer; The preset trigger conditions are as follows: Set normal reference values ​​of battery charge BC and battery temperature BT and mark them as B1 and B2 respectively; If the value of the battery power is 0 or |BC-B1|×B1>η2, the monitoring data corresponding to the value is marked as invalid battery power; If η1≤|BC-B1|×B1≤η2, the monitoring data corresponding to the value is marked as abnormal battery power and a first signal to be detected is generated; otherwise, it is marked as valid battery power and a normal battery power signal is generated; η1 and η2 represent abnormal critical values ​​of battery power, η1<η2 and are both positive integers; If the value of the monitored battery temperature is 0 or |BT-B2|×B2>μ2, the monitoring data corresponding to the value is marked as invalid battery temperature; If μ1≤|BT-B2|×B2≤μ2, the monitoring data corresponding to the value is marked as abnormal battery temperature, and a second signal to be detected is generated; otherwise, it is marked as a valid battery temperature, and a normal battery temperature signal is generated; μ1 and μ2 represent abnormal critical values ​​of battery temperature, μ1<μ2 and both are positive integers; Once the first signal to be detected or the second signal to be detected is generated, the condition will be triggered immediately to extract the battery status data of the smart lighter.

5. The lighter data allocation method based on the smart cloud platform according to claim 1 is characterized in that: In step 5, the specific analysis formula for calculating the health index of the smart lighter battery is as follows: Where LBHI represents the battery health index of the smart lighter; b(t) represents the remaining battery capacity of the smart lighter at time t; bmax represents the state of the smart lighter when it is fully charged; represents the normalization of the remaining battery capacity of the smart lighter; f(t) represents the frequency of use of the smart lighter at time t; represents the average frequency of use of smart lighters; σf represents the standard deviation of the frequency of use of smart lighters; represents the normalization of the usage frequency deviation of the smart lighter; T l Indicates the last time the smart lighter was charged or maintained; T a Indicates the historical average maintenance interval of smart lighters; T max Indicates the maximum scheduled maintenance interval of the smart lighter; Indicates the normalization of the maintenance interval deviation of the smart lighter. When T a <T max And T l <T a When , the value is 0 or negative, indicating that maintenance is performed in advance; b 、w f 、w m They represent the weight coefficients of the remaining battery capacity, usage frequency deviation, and maintenance interval deviation of the smart lighter, respectively, and w b +w f +w m =1.

6. The method for allocating lighter data based on the smart cloud platform according to claim 5 is characterized in that: In step 5, the process of determining the battery status of the smart lighter to obtain a fault signal and a corresponding fault inspection index includes: When analyzing the calculation results of the smart lighter battery health index, if the value of the smart lighter battery health index is large, the smart lighter battery is in good condition, indicating that the remaining battery is high, the usage frequency is close to the average, and the maintenance interval is close to the average or the maximum maintenance interval has not been reached, which together indicate that the smart lighter battery is currently in a relatively healthy state; if the value of the smart lighter battery health index is small, the smart lighter battery is in poor condition, indicating that the remaining battery is low, the usage frequency deviation is large or the maintenance interval deviation is large, and any one or more of the above factors will lead to a decline in the performance of the smart lighter battery; A comprehensive threshold Cmin of the health of the smart lighter battery is set, and the smart lighter battery health index is compared and analyzed with the comprehensive threshold of the health of the smart lighter battery to determine whether the current smart lighter battery health index is within the range of Cmin±C0, where C0 represents the error value of the smart lighter battery health index; when the smart lighter battery health index exceeds the range of Cmin±C0, it is determined that the smart lighter battery has a fault, and a fault signal is generated. At the same time, the smart lighter battery health index corresponding to the fault signal is calculated and processed to obtain a fault inspection index LF, where the calculation formula is LF=LBHI·(1-ek·q), where q represents the total battery usage time, k is a positive number, representing the battery aging speed, and the larger the LF value is, the higher the risk of fault is; otherwise, it is determined that the smart lighter battery is in normal condition.

7. The method for allocating lighter data based on the smart cloud platform according to claim 6, characterized in that: In step 6, the process of processing and analyzing the generated fault signal and the corresponding fault inspection index to obtain the first-level warning prompt, the second-level warning prompt and the third-level warning prompt includes: Obtain the corresponding fault inspection index LF based on the fault signal; Match the fault inspection index LF with the preset control and allocation interval [CI 1, CI 2]; if LF>CI 2, it means that the battery fault state of the smart lighter is severely abnormal, and a first warning prompt is generated, and the corresponding smart lighter is defined as a Class I allocation smart lighter for the first warning prompt; if CI 1≤LF≤CI 2, it means that the battery fault state of the smart lighter is moderately abnormal, and a second warning prompt is generated, and the corresponding smart lighter is defined as a Class II allocation smart lighter for the second warning prompt; if LF<CI 1, it means that the battery fault state of the smart lighter is slightly abnormal, and a third warning prompt is generated, and the corresponding smart lighter is defined as a Class III allocation smart lighter for the third warning prompt; The battery fault signal information of all smart lighters is collected and integrated into a battery fault signal set and uploaded to the background, so that the batteries of the smart lighters can be replaced or maintained immediately.

8. The method for allocating lighter data based on the smart cloud platform according to claim 7, characterized in that: In step 6, the process of carrying out targeted control according to different early warning prompts includes: For the first warning prompt, the second warning prompt and the third warning prompt, corresponding first-level maintenance frequency, second-level maintenance frequency and third-level maintenance frequency are established for type I, type II and type III deployed smart lighters respectively; among which, the first-level maintenance frequency is higher than the second-level maintenance frequency, and the second-level maintenance frequency is higher than the third-level maintenance frequency.

9. The lighter data allocation system based on the smart cloud platform is characterized by: The method for allocating lighter data based on a smart cloud platform as claimed in any one of claim 1, wherein the system comprises: The data cache layer setting module is used to set up a data cache layer in the cloud platform to store real-time data generated by the smart lighter; when a user or system requests data, it tries to obtain it from the cache to reduce access to the backend database; The data cache mechanism establishment module is used to periodically update cached data or eliminate data according to its timeliness; establish a data cache mechanism for smart lighters to temporarily store delayed data and upload it in time after the network is restored; The status data monitoring module is used to communicate with the cache layer through the API interface, obtain the smart lighter data from the cache layer, divide the monitoring time points, and monitor the battery status of the smart lighter in real time; The status data extraction module is used to extract the battery status data of the smart lighter from the cache layer regularly or according to the set trigger conditions; The analysis, judgment and fault signal generation module is used to obtain the smart lighter battery health index by calculation based on the extracted battery status data of the smart lighter, and to judge the smart lighter battery status, thereby obtaining the fault signal and the corresponding fault inspection index; The intelligent deployment and control module is used to process and analyze the generated fault signals and the corresponding fault inspection indexes, obtain the first-level early warning prompts, the second-level early warning prompts and the third-level early warning prompts, and carry out targeted control.