Smoking information sharing method and system, electronic device and storage medium
By integrating an information sharing system into e-cigarettes, interaction with servers is achieved, and estimated smoking duration is calculated and shared, solving the problem of poor interactivity in e-cigarettes and enhancing information interaction capabilities.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- XIAN WINGTECH INFORMATION TECH CO LTD
- Filing Date
- 2022-05-31
- Publication Date
- 2026-07-24
AI Technical Summary
Existing e-cigarettes lack information interaction functions and have poor interactivity.
By integrating an information sharing system into e-cigarettes, e-cigarettes can interact with servers and calculate estimated smoking duration based on historical smoking data, which can then be shared with other electronic devices.
The interactivity of e-cigarettes has been improved, allowing smokers to easily obtain the estimated smoking time of other smokers, thus enhancing the information interaction function.
Smart Images

Figure CN114968955B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic cigarettes, specifically to a smoking information sharing method, system, electronic device, and storage medium. Background Technology
[0002] As smoking safety and health concerns gain increasing attention, HNB (Heat Not Burning) e-cigarettes have emerged. Because HNB e-cigarettes heat tobacco products without burning them, they significantly improve smoking safety. Furthermore, since the tobacco products are not directly burned, the amount of harmful substances produced is greatly reduced, making HNB e-cigarettes increasingly popular with consumers.
[0003] Currently, e-cigarettes typically only offer smoking functionality and lack other information interaction features, resulting in poor interactivity. Summary of the Invention
[0004] This application discloses a smoking information sharing method, system, electronic device, and storage medium. The electronic cigarette can interact with the server, and the server can be used to share the estimated smoking time of different smokers, thereby improving the interactivity of the electronic cigarette.
[0005] This application discloses a smoking information sharing method applied to electronic cigarettes, the method comprising:
[0006] If the smoking function is detected to be enabled, the identity information of the first smoker bound to the electronic cigarette is sent to the server, so that the server can obtain the historical smoking data corresponding to the identity information, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices, including other electronic cigarettes and / or terminal devices that are communicatively connected to the other electronic cigarettes.
[0007] In one embodiment, the historical smoking data includes the number of cigarettes smoked in each of the multiple historical smoking processes, and the duration of a single cigarette smoked in each of the multiple historical smoking processes.
[0008] The step of sending the identity information of the first smoker bound to the electronic cigarette to the server, so that the server can obtain historical smoking data corresponding to the identity information, and determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, includes:
[0009] The identity information of the first smoker bound to the electronic cigarette is sent to the server, so that the server can obtain the historical number of cigarettes corresponding to multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes. The server determines the estimated number of cigarettes based on the historical number of cigarettes corresponding to each of the multiple historical smoking processes and the estimated single cigarette smoking duration based on the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes. Finally, the server determines the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes and the estimated single cigarette smoking duration.
[0010] In one embodiment, the historical smoking data further includes historical smoking time points corresponding to each historical smoking process, and the step of determining the estimated number of cigarettes based on the historical smoking quantities corresponding to each of the multiple historical smoking processes includes:
[0011] Determine the smoking time period corresponding to the current time point;
[0012] Identify the first historical smoking process that falls within the smoking time period, and determine the estimated number of cigarettes smoked based on the historical number of cigarettes smoked during the first historical smoking process.
[0013] In one embodiment, the historical smoking data further includes the historical smoking locations corresponding to each historical smoking session, and the method further includes:
[0014] If the activation of the electronic cigarette is detected, the current location information corresponding to the electronic cigarette is sent to the server;
[0015] The step of determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the multiple historical smoking processes includes:
[0016] A second historical smoking process is identified, in which the distance between the historical smoking location information and the current location information is less than a first distance threshold. Based on the historical smoking quantity corresponding to the second historical smoking process, an estimated smoking quantity is determined.
[0017] In one embodiment, determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the multiple historical smoking processes includes:
[0018] The historical smoking counts corresponding to the multiple historical smoking processes are sorted in descending order of frequency of occurrence, and the historical smoking counts of the top N are used as the estimated smoking counts, where N is an integer greater than 1.
[0019] Based on the frequency of occurrence corresponding to the first N historical smoking counts, determine the smoking probability corresponding to each of the N estimated smoking counts;
[0020] The step of determining the first estimated smoking duration for the first smoker based on the estimated number of cigarettes smoked and the estimated duration of a single cigarette smoked includes:
[0021] Based on the N estimated smoking quantity values, the smoking probability corresponding to each estimated smoking quantity value, and the estimated duration of a single cigarette, determine the N estimated smoking durations and the estimated smoking probability corresponding to each estimated smoking duration for the first smoker.
[0022] In one embodiment, if the smoking function is detected to be activated, sending the identity information of the first smoker associated with the electronic cigarette to the server includes:
[0023] If the smoking function is detected to be enabled, the identity information of the first smoker bound to the electronic cigarette is sent to the terminal device that is communicatively connected to the electronic cigarette, so that the terminal device sends the identity information to the server.
[0024] In one embodiment, the method further includes:
[0025] If the smoking function is detected to be activated, the smoking data of the electronic cigarette during this smoking process is recorded;
[0026] If the smoking function is detected to be turned off or the cigarette cartridges are exhausted, the smoking data during the current smoking process is sent to the server so that the server updates the smoking data during the current smoking process in the database to the historical smoking data corresponding to the identity information.
[0027] This application discloses a smoking information sharing system, including: at least one electronic cigarette, a terminal device, and a server, wherein the electronic cigarette is communicatively connected to the terminal device, and the server is communicatively connected to the at least one electronic cigarette and the terminal device;
[0028] The electronic cigarette is used to send the identity information of the first smoker bound to the electronic cigarette to the server if the smoking function is detected to be activated.
[0029] The server is configured to receive the identity information of the first smoker sent by the electronic cigarette, obtain historical smoking data corresponding to the identity information, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices, wherein the other electronic devices include other electronic cigarettes and / or terminal devices that are communicatively connected to the other electronic cigarettes.
[0030] In one embodiment, the server is further configured to receive the identity information of the first smoker sent by the electronic cigarette, obtain the historical number of cigarettes corresponding to multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to the multiple historical smoking processes, determine the estimated number of cigarettes based on the historical number of cigarettes corresponding to the multiple historical smoking processes, determine the estimated single cigarette smoking duration based on the historical single cigarette smoking duration corresponding to the multiple historical smoking processes, and then determine the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes and the estimated single cigarette smoking duration.
[0031] In one embodiment, the historical smoking data also includes the historical smoking time points corresponding to each historical smoking process;
[0032] The server is also used to determine the smoking time period corresponding to the current time point;
[0033] The server is also used to determine a first historical smoking process that falls within the smoking time period, and to determine an estimated number of cigarettes based on the historical number of cigarettes corresponding to the first historical smoking process.
[0034] In one embodiment, the historical smoking data also includes the historical smoking locations corresponding to each historical smoking process;
[0035] The electronic cigarette is also used to send the current location information corresponding to the electronic cigarette to the server if the activation of the electronic cigarette is detected.
[0036] The server is also used to determine a second historical smoking process in which the distance between the historical smoking location information and the current location information is less than a first distance threshold, and to determine an estimated number of cigarettes based on the historical smoking quantity corresponding to the second historical smoking process.
[0037] In one embodiment, the server is further configured to sort the number of historical cigarettes corresponding to the multiple historical smoking processes in descending order of frequency of occurrence, and use the number of historical cigarettes in the top N as the estimated number of cigarettes, where N is an integer greater than 1.
[0038] The server is also used to determine the smoking probability corresponding to each of the N estimated smoking quantities based on the frequency of occurrence of the N historical smoking quantities.
[0039] The server is further configured to determine, based on the N estimated smoking durations, the smoking probabilities corresponding to each of the estimated smoking durations, and the estimated duration of a single cigarette, the first smoker's N estimated smoking durations and the estimated smoking probabilities corresponding to each of the N estimated smoking durations.
[0040] In one embodiment, the electronic cigarette is further configured to send the identity information of a first smoker bound to the electronic cigarette to a terminal device that is communicatively connected to the electronic cigarette if the smoking function is detected to be activated.
[0041] The terminal device is also used to receive the identity information of the first smoker bound to the electronic cigarette and send the identity information to the server;
[0042] The server is also used to receive the identity information sent by the terminal device.
[0043] In one embodiment, the electronic cigarette is further configured to record smoking data of the electronic cigarette during the current smoking process if the smoking function is detected to be activated;
[0044] The electronic cigarette is also used to send the smoking data during the current smoking process to the server if it is detected that the smoking function is turned off or the cartridge is exhausted;
[0045] The server is also used to receive smoking data during the current smoking process sent by the electronic cigarette, and update the smoking data during the current smoking process in the database to the historical smoking data corresponding to the identity information.
[0046] This application discloses a smoking information sharing device for use with electronic cigarettes, the device comprising:
[0047] The sending module is configured to send the identity information of the first smoker bound to the electronic cigarette to the server if the smoking function is detected to be enabled, so that the server can obtain the historical smoking data corresponding to the identity information, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices, the other electronic devices including other electronic cigarettes and / or terminal devices that are communicatively connected to the other electronic cigarettes.
[0048] In one embodiment, historical smoking data includes the number of cigarettes smoked in each of the multiple historical smoking processes, and the duration of a single cigarette smoked in each of the multiple historical smoking processes.
[0049] The sending module is further configured to send the identity information of the first smoker bound to the electronic cigarette to the server, so that the server obtains the historical number of cigarettes corresponding to the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to the multiple historical smoking processes, and determines the estimated number of cigarettes based on the historical number of cigarettes corresponding to the multiple historical smoking processes, and determines the estimated single cigarette smoking duration based on the historical single cigarette smoking duration corresponding to the multiple historical smoking processes, and then determines the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes and the estimated single cigarette smoking duration.
[0050] In one embodiment, the historical smoking data also includes the historical smoking time points corresponding to each historical smoking process;
[0051] The sending module is further configured to send the identity information of the first smoker bound to the electronic cigarette to the server, so that the server can obtain the historical smoking quantity corresponding to the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to the multiple historical smoking processes, determine the smoking time period corresponding to the current time point, determine the first historical smoking process that the historical smoking time point is in the smoking time period, and determine the estimated smoking quantity based on the historical smoking quantity corresponding to the first historical smoking process.
[0052] In one embodiment, the historical smoking data also includes the historical smoking locations corresponding to each historical smoking process;
[0053] The sending module is further configured to send the current location information corresponding to the electronic cigarette to the server if the activation of the electronic cigarette is detected.
[0054] The sending module is further configured to send the identity information of the first smoker bound to the electronic cigarette to the server, so that the server obtains the historical smoking quantity corresponding to the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to the multiple historical smoking processes, determines the second historical smoking process in which the distance between the historical smoking location information and the current location information is less than a first distance threshold, and determines the estimated smoking quantity based on the historical smoking quantity corresponding to the second historical smoking process.
[0055] In one embodiment, the sending module is further configured to send the identity information of the first smoker bound to the electronic cigarette to the server, so that the server obtains the historical smoking quantity corresponding to each of the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes. The server sorts the historical smoking quantities corresponding to each of the multiple historical smoking processes in descending order of frequency of occurrence, and uses the top N historical smoking quantities as estimated smoking quantity values, where N is an integer greater than 1. Based on the frequency of occurrence corresponding to the top N historical smoking quantities, the server determines the smoking probability corresponding to each of the N estimated smoking quantity values, and determines the estimated single cigarette smoking duration based on the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes. Based on the N estimated smoking quantity values, the smoking probability corresponding to each of the estimated smoking quantity values, and the estimated single cigarette smoking duration, the server determines the N first estimated smoking durations corresponding to the first smoker and the estimated smoking probability corresponding to each of the first estimated smoking durations.
[0056] In one embodiment, the sending module is further configured to, if the smoking function is detected to be activated, send the identity information of the first smoker bound to the electronic cigarette to a terminal device that is communicatively connected to the electronic cigarette, so that the terminal device sends the identity information to the server.
[0057] In one embodiment, the smoking information sharing device further includes:
[0058] The update module is used to record the smoking data of the electronic cigarette during the current smoking process if the smoking function is detected to be enabled; and to send the smoking data of the current smoking process to the server if the smoking function is detected to be disabled or the cartridge is exhausted, so that the server updates the smoking data of the current smoking process to the historical smoking data corresponding to the identity information in the database.
[0059] This application discloses an electronic device, including:
[0060] Memory containing executable program code;
[0061] A processor coupled to the memory;
[0062] The processor calls the executable program code stored in the memory to execute the method described in any of the above embodiments.
[0063] This application discloses a computer-readable storage medium storing a computer program, wherein when executed by a processor, the computer program causes the processor to perform the methods described in any of the above embodiments.
[0064] The smoking information sharing method, system, device, electronic device, and storage medium disclosed in this application embodiment enable the electronic cigarette to determine the first estimated smoking duration corresponding to the first smoker bound to the electronic cigarette through a server when the smoking function is activated. This first estimated smoking duration is then shared with other electronic devices, allowing the smoker corresponding to the electronic device to easily obtain the estimated smoking duration of other smokers. In other words, the electronic cigarette can interact with the server, and the sharing of estimated smoking durations of different smokers implemented by the server allows smokers to interact more with the electronic cigarette, improving the interactivity of the electronic cigarette. Attached Figure Description
[0065] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0066] Figure 1 This is a schematic diagram illustrating an application scenario of a smoking information sharing method disclosed in an embodiment of this application;
[0067] Figure 2 This is a flowchart illustrating a smoking information sharing method disclosed in an embodiment of this application;
[0068] Figure 3 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application;
[0069] Figure 4 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application;
[0070] Figure 5 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application;
[0071] Figure 6 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application;
[0072] Figure 7 This is a timing diagram of a smoking information sharing method disclosed in an embodiment of this application;
[0073] Figure 8 This is a modular schematic diagram of a smoking information sharing device disclosed in an embodiment of this application;
[0074] Figure 9 This is a structural block diagram of an electronic device disclosed in an embodiment of this application. Detailed Implementation
[0075] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0076] It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or devices.
[0077] It is understood that the terms "first," "second," etc., used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of this application, a first historical smoking process may be referred to as a second historical smoking process, and similarly, a second historical smoking process may be referred to as a first historical smoking process. Both the first historical smoking process and the second historical smoking process are historical smoking processes, but they are not the same historical smoking process.
[0078] This application discloses a smoking information sharing method, system, electronic device, and storage medium, which can obtain the estimated smoking duration of other smokers, thereby increasing the probability of finding other smokers.
[0079] The following will be described in detail with reference to the accompanying drawings.
[0080] like Figure 1 As shown, Figure 1This is a schematic diagram illustrating an application scenario of a smoking information sharing method disclosed in this application embodiment, which is applied to a smoking information sharing system. The smoking information sharing system includes multiple electronic cigarettes 10, a server 20, and multiple terminal devices 30. The electronic cigarettes 10 may include, but are not limited to, HNB electronic cigarettes and e-liquid atomizing electronic cigarettes. Each electronic cigarette 10 can be bound to a first smoker and stores the first smoker's corresponding first identity information. The terminal devices 30 may include, but are not limited to, mobile phones, tablets, wearable devices, laptops, and PCs (Personal Computers). Furthermore, the operating systems of the aforementioned terminal devices may include, but are not limited to, Android, iOS, Symbian, BlackBerry, and Windows Phone 8 operating systems; this application embodiment does not impose any limitations. The server 20 can receive data sent by the electronic cigarettes 10 or the terminal devices 30 and store the data. The electronic cigarettes 10 can communicate with the server 20 or with the terminal devices 30, and the terminal devices 30 can communicate with the server 20.
[0081] The electronic cigarette 10 can establish a communication connection with the terminal device 30 upon startup. This communication connection can be via Bluetooth, Wi-Fi, or UWB (Ultra Wideband), but is not limited to these methods. If the electronic cigarette 10 is connected to the server 20, it can directly send the data it needs to transmit to the server 20. If the electronic cigarette 10 is connected to the terminal device 30, it can first send the data it needs to transmit to the server 20 to the terminal device 30, which then sends the data to the server 20. For example, the electronic cigarette 10 can send the smoker's identity information associated with it to the terminal device 30, which then receives and sends the identity information to the server 20.
[0082] When each e-cigarette 10 activates its smoking function, it can send corresponding identity information to the server 20. The server 20 can obtain the corresponding historical smoking data based on the identity information sent by the e-cigarette 10, determine the corresponding estimated smoking duration, and then share the estimated smoking duration with other e-cigarettes 10 or terminal devices 30 to achieve the sharing of estimated smoking duration.
[0083] by Figure 1Taking the leftmost electronic cigarette 10, which communicates with server 20, as an example, if the electronic cigarette 10 detects that the smoking function is activated, it can send the identity information of the first smoker bound to the electronic cigarette 10 to server 20. After receiving the identity information sent by the electronic cigarette 10, server 20 can obtain the historical smoking data corresponding to the identity information of the first smoker, and determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data. Server 20 can share the first estimated smoking duration with other electronic devices, including other electronic cigarettes 10 and / or terminal devices 30 that communicate with other electronic cigarettes 10.
[0084] In some embodiments, the smoking information sharing system may not include the terminal device 30. Multiple electronic cigarettes 10 are all communicatively connected to the server 20. After the server 20 determines the first estimated smoking duration corresponding to the first smoker, it can share the first estimated smoking duration with other electronic cigarettes 10. In some embodiments, users can also query the smoking information of other electronic cigarettes through the terminal device 30. The terminal device 30 can respond to the query operation, generate a corresponding query instruction based on the query operation, and send the query instruction to the server to obtain the smoking information corresponding to the query operation. For example, the terminal device 30 can respond to a query operation querying the second estimated smoking duration of a second smoker corresponding to another electronic cigarette, generate a corresponding query instruction, and send it to the server 20. The server 20 can query the second estimated smoking duration of the second smoker based on the query instruction and return the second estimated smoking duration of the second smoker to the terminal device 30, thereby obtaining the second estimated smoking duration of the second smoker. The smoking information corresponding to the query operation may include, but is not limited to, the second estimated smoking duration of the second smoker corresponding to another electronic cigarette, second current location information, etc., and this embodiment does not impose any limitations on this.
[0085] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a smoking information sharing method disclosed in an embodiment of this application. The smoking information sharing method is applied to the aforementioned electronic cigarette and includes:
[0086] Step 210: If the smoking function is detected to be enabled, the identity information of the first smoker bound to the e-cigarette is sent to the server so that the server can obtain the historical smoking data corresponding to the identity information, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices, including other e-cigarettes and / or terminal devices communicating with other e-cigarettes.
[0087] If the e-cigarette detects that its smoking function is activated, it can send the identity information of the first smoker associated with the e-cigarette to the server. Optionally, the smoking function can refer to the e-cigarette heating or burning tobacco products, which may include e-cigarette cartridges, e-liquid, etc., and the identity information may include the first smoker's ID number, name, etc.
[0088] After receiving the identity information of the first smoker, the server can retrieve the corresponding historical smoking data from the database. The server's database may include the identity information of multiple smokers and the corresponding historical smoking data for each smoker. This historical smoking data consists of the smoking data sent to the server by the smoker corresponding to the identified identity during their historical smoking process.
[0089] The server can determine the first estimated smoking duration of the first smoker based on the first smoker's historical smoking data, and store the first estimated smoking duration in the database along with the first smoker's identity information. The database may include the identity information of multiple smokers, the historical smoking data corresponding to each smoker's identity information, and the estimated smoking duration corresponding to each smoker's identity information. The estimated smoking duration can represent the duration for which the smoker will continue to smoke.
[0090] When other electronic devices send a query command for the first estimated smoking duration corresponding to the first smoker, the server can determine the first estimated smoking duration from the database based on the first smoker's identity information sent by the other electronic devices, and then send this first estimated smoking duration to the other electronic devices that sent the query command, thereby completing the sharing of the first estimated smoking duration with the other electronic devices. Preferably, if the e-cigarette has already established a communication connection with the terminal device, the server can share the first estimated smoking duration with the terminal device that is communicating with the e-cigarette.
[0091] In one embodiment, if the e-cigarette detects that the smoking function is activated, it sends the identity information of the first smoker bound to the e-cigarette to the terminal device that is connected to the e-cigarette, so that the terminal device sends the identity information to the server.
[0092] Electronic cigarettes can use a terminal device that communicates with the electronic cigarette as a data relay station between the electronic cigarette and the server. When the electronic cigarette detects that the smoking function is activated, it can send the identity information of the first smoker bound to the electronic cigarette to the terminal device. After receiving the identity information, the terminal device can send the identity information to the server. Optionally, the terminal device can also receive other information sent by the electronic cigarette and then send that other information to the server. This other information may include, but is not limited to, the current location information of the electronic cigarette, the smoking status of the electronic cigarette, etc., which can be used to indicate whether the smoker is currently smoking.
[0093] As an optional implementation, the terminal device can respond to a query operation, generate a corresponding query instruction based on the query operation, and send the query instruction to the server to obtain the information corresponding to the query operation. The information corresponding to the query operation may include the estimated smoking duration, the smoker's current location information, the smoker's smoking status, the location information of the smoking area, and the number of people in the smoking area, etc., without limitation. For example, the terminal device can respond to a query operation to query the second estimated smoking duration of a second smoker corresponding to another e-cigarette, generate a corresponding query instruction and send it to the server. The server queries the second estimated smoking duration of the second smoker based on the query instruction and sends the second estimated smoking duration to the terminal device, allowing the terminal device to obtain the corresponding second estimated smoking duration.
[0094] In this embodiment, when the electronic cigarette detects that the smoking function is activated, it can determine the first estimated smoking time corresponding to the first smoker bound to the electronic cigarette through the server, and share the first estimated smoking time with other electronic devices. This allows the smoker corresponding to the electronic device to easily obtain the estimated smoking time of other smokers. In other words, the electronic cigarette can interact with the server, and the sharing of the estimated smoking time of different smokers implemented by the server enables smokers to interact more with the electronic cigarette, thus improving the interactivity of the electronic cigarette.
[0095] like Figure 3 As shown, Figure 3 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application. The method is applied to the aforementioned electronic cigarette, and includes:
[0096] Step 310: If the smoking function is detected to be activated, the identity information of the first smoker bound to the e-cigarette is sent to the server so that the server can obtain the historical number of cigarettes and the historical single cigarette smoking duration corresponding to the multiple historical smoking processes corresponding to the identity information. The server determines the estimated number of cigarettes based on the historical number of cigarettes and the estimated single cigarette smoking duration based on the historical single cigarette smoking duration. Finally, the server determines the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes and the estimated single cigarette smoking duration.
[0097] The method by which the electronic cigarette sends the identity information of the first smoker is the same as the method in the above embodiment, and will not be repeated here.
[0098] After receiving the identity information of the first smoker, the server can retrieve from the database the historical smoking counts and the historical single-cigarette smoking durations corresponding to each of the multiple historical smoking processes associated with that identity information. The historical smoking data on the server can include the identity information of multiple smokers, the historical smoking counts for each of the multiple historical smoking processes associated with each smoker's identity information, and the historical single-cigarette smoking durations for each of the multiple historical smoking processes. The historical smoking count for each historical smoking process refers to the number of cigarettes smoked by the smoker in each historical smoking process, and the historical single-cigarette smoking duration for each historical smoking process refers to the time spent smoking each cigarette in each historical smoking process.
[0099] The server can determine the estimated number of cigarettes smoked based on the historical cigarette counts corresponding to each of the multiple historical smoking processes, and the estimated duration of a single cigarette smoked based on the historical cigarette smoking durations corresponding to each of the multiple historical smoking processes. The estimated number of cigarettes smoked is the number of cigarettes a smoker might smoke in one session, and the estimated duration of a single cigarette smoked is the time a smoker might spend smoking one cigarette. Optionally, the estimated number of cigarettes smoked can be an integer or a decimal value, without restriction. The method for determining the estimated number of cigarettes smoked can be either the average of the historical cigarette counts corresponding to multiple historical smoking processes, or a weighted average of the historical cigarette counts corresponding to multiple historical smoking processes, without restriction. Similarly, the method for determining the estimated duration of a single cigarette smoked can be either the average of the historical single cigarette smoking durations corresponding to multiple historical smoking processes, or a weighted average of the historical single cigarette smoking durations corresponding to multiple historical smoking processes, without restriction. After the server determines the estimated number of cigarettes smoked and the estimated duration of each cigarette smoked, the estimated number of cigarettes smoked and the estimated duration of each cigarette smoked can be multiplied to obtain the first estimated smoking duration for the first smoker.
[0100] As an optional implementation method, if the calculated result obtained from the historical single-smoking duration corresponding to multiple historical smoking processes is not an integer, the integer part of the calculated result can be retained as the estimated number of cigarettes smoked. However, retaining the integer part of the result as the estimated number of cigarettes smoked is only one implementation method. Other methods for determining the integer estimated number of cigarettes smoked based on non-integer calculation results include adding one to the integer part of the calculated result to obtain the estimated number of cigarettes smoked, or rounding the calculated result to the nearest whole number. Implementing this method, since smokers typically smoke in units of cigarettes, can improve the accuracy of estimating the smoking duration by determining the integer estimated number of cigarettes smoked.
[0101] In one embodiment, the step of determining the estimated number of cigarettes based on the historical cigarette counts corresponding to multiple historical smoking processes includes: determining the smoking time period corresponding to the current time point; determining the first historical smoking process within the smoking time period based on the historical cigarette counts corresponding to the first historical smoking process; and determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the first historical smoking process.
[0102] The historical smoking data in the server can also include the historical smoking time points corresponding to each historical smoking process.
[0103] Optionally, the smoking time period can be a pre-set time period. For example, if the server pre-sets each time period to be 2 hours, then each day can be divided into 12 time periods starting from 0:00. The smoking time period can also be divided by the server based on historical smoking times. For example, if smokers frequently smoke between 7:00 and 10:00 and between 16:00 and 18:00, the server can designate the 7:00-10:00 time period as the first smoking time period and the 16:00-18:00 time period as the second smoking time period. The smoking time period can also be determined by the smoker. For example, a smoker can trigger a smoking time period from 12:00 to 13:00 via a terminal device connected to the e-cigarette, causing the terminal device to generate a corresponding instruction and send it to the server, which can then designate 12:00 to 13:00 as a smoking time period.
[0104] After determining the smoking time period corresponding to the current time point, the server can identify the first historical smoking process within the smoking time period corresponding to the current time point. This first historical smoking process can include one or more instances. Then, based on the historical smoking count corresponding to the identified first historical smoking process, an estimated smoking quantity is determined. For example, if the server contains the historical smoking counts corresponding to 100 historical smoking processes, and the identified first historical smoking processes include 10 instances, the estimated smoking quantity can be determined based on the historical smoking counts corresponding to these 10 first historical smoking processes. Implementing this embodiment, the server can determine the first estimated smoking duration by combining the current time point, improving the accuracy of the estimated smoking duration.
[0105] As an optional implementation, the historical smoking data in the server includes the smoking time periods corresponding to each historical smoking process. The server determines the smoking time period corresponding to the current time point, and determines the estimated number of cigarettes smoked based on the historical smoking counts corresponding to the historical smoking processes within the smoking time period corresponding to the current time point. Implementing this method eliminates the need for the server to re-determine the smoking time periods corresponding to each historical smoking time point, thus improving work efficiency.
[0106] In one embodiment, the step of determining the estimated number of cigarettes based on the historical number of cigarettes corresponding to multiple historical smoking processes includes: sorting the historical number of cigarettes corresponding to multiple historical smoking processes in descending order of frequency of occurrence, and taking the top N historical number of cigarettes as the estimated number of cigarettes, where N is an integer greater than 1; and determining the smoking probability corresponding to the N estimated number of cigarettes based on the frequency of occurrence corresponding to the top N historical number of cigarettes.
[0107] The server can sort the historical smoking counts corresponding to multiple historical smoking processes in descending order of frequency, and use the top N historical smoking counts as the estimated smoking counts. For example, if the historical smoking counts corresponding to 8 historical smoking processes are 2, 1, 2, 3, 2, 2, 1, 1, then the frequency of historical smoking count 1 is 0.5, the frequency of historical smoking count 2 is 0.375, and the frequency of historical smoking count 3 is 0.125. Sorting them in descending order of frequency, they are historical smoking count 1, historical smoking count 2, and historical smoking count 3, where N can be 2. The server retrieves the top two historical smoking counts, historical smoking count 1 and historical smoking count 2, and uses them as the estimated smoking counts.
[0108] Optionally, the server can determine the frequency of occurrence of each historical smoking quantity across multiple historical smoking events by analyzing the frequency of occurrence of each historical smoking quantity. For example, in 8 historical smoking events, if historical smoking quantity 1 occurs 4 times, historical smoking quantity 2 occurs 3 times, and historical smoking quantity 3 occurs 1 time, then the frequency of occurrence of historical smoking quantity 1 is 0.5, the frequency of occurrence of historical smoking quantity 2 is 0.375, and the frequency of occurrence of historical smoking quantity 3 is 0.125. The server can also determine the frequency of occurrence of each historical smoking quantity through big data statistics; there is no limitation on this method.
[0109] The server can use the frequency of occurrence of the first N historical smoking counts as the smoking probability corresponding to the N estimated smoking counts.
[0110] The steps involve determining the first estimated smoking duration for the first smoker based on the estimated number of cigarettes smoked and the estimated duration of a single cigarette smoked. This includes: determining the N estimated smoking durations for the first smoker and the estimated smoking probability for each estimated smoking duration based on N estimated number of cigarettes smoked, the smoking probability corresponding to each estimated number of cigarettes smoked, and the estimated duration of a single cigarette smoked.
[0111] Optionally, the server can assign the smoking probability corresponding to each estimated number of cigarettes as the estimated smoking probability corresponding to each first estimated smoking duration. For example, if the estimated duration of a single cigarette is A, and the three estimated numbers of cigarettes are 1, 2, and 3, the smoking probability corresponding to the estimated number of cigarettes is 50%, the smoking probability corresponding to the estimated number of cigarettes is 30%, and the smoking probability corresponding to the estimated number of cigarettes is 20%, the server can obtain three first estimated smoking durations of A, 2A, and 3A. The 50% smoking probability corresponding to the estimated number of cigarettes is assigned as the estimated smoking probability corresponding to the first estimated smoking duration A, the 30% smoking probability corresponding to the estimated number of cigarettes is assigned as the estimated smoking probability corresponding to the first estimated smoking duration 2A, and the 20% smoking probability corresponding to the estimated number of cigarettes is assigned as the estimated smoking probability corresponding to the first estimated smoking duration 3A.
[0112] Optionally, the first estimated number of cigarettes can be any one of N estimated cigarette counts. The server can add the smoking probability corresponding to the first estimated cigarette count to the smoking probability corresponding to an estimated cigarette count that is greater than the first estimated cigarette count, to obtain the estimated smoking probability corresponding to the first estimated smoking duration. For example, if the estimated duration of a single cigarette is A, and the three estimated cigarette counts are 1, 2, and 3, the smoking probability corresponding to estimated cigarette count 1 is 50%, estimated cigarette count 2 is 30%, and estimated cigarette count 3 is 20%. The server can obtain three first estimated smoking durations of A, 2A, and 3A, which are greater than the estimated number of cigarettes. The estimated number of cigarettes for the first estimated smoking duration A is 2 and 3. Adding the smoking probability of 50% corresponding to the estimated number of cigarettes for the first estimated duration A to the smoking probability of 30% corresponding to the estimated number of cigarettes for the first estimated duration A, we get 100%. There is a smoking probability of 3 that is greater than the estimated number of cigarettes for the first estimated duration A. Adding the smoking probability of 30% corresponding to the estimated number of cigarettes for the first estimated duration A to the smoking probability of 50% corresponding to the smoking probability of the first estimated duration A, we get 20% corresponding to the smoking probability of the first estimated duration A. There is no smoking probability greater than the estimated number of cigarettes for the first estimated duration A. Therefore, the estimated smoking probability of the first estimated smoking duration A is 20% corresponding to the smoking probability of the first estimated duration A.
[0113] As an optional implementation, after determining the N estimated smoking durations and the estimated smoking probabilities corresponding to each estimated smoking duration for the first smoker, the server can send the N estimated smoking durations and the estimated smoking probabilities to the terminal device, and the terminal device can display each estimated smoking duration and the corresponding estimated smoking probability. This application embodiment does not limit the method of displaying each estimated smoking duration and the corresponding estimated smoking probability. Implementing this implementation allows smokers to obtain more smoking information from other smokers, thereby making it easier and more accurate to find other smokers, increasing the probability of finding other smokers, improving the convenience of making friends among e-cigarette users, and meeting user needs.
[0114] In this embodiment, the server determines the estimated number of cigarettes smoked by a smoker based on the historical number of cigarettes smoked, and determines the estimated duration of a single cigarette smoked by a smoker based on the historical duration of a single cigarette smoked. Thus, by determining the first estimated smoking duration through the estimated number of cigarettes smoked and the estimated duration of a single cigarette smoked, the accuracy of the estimated smoking duration can be improved.
[0115] like Figure 4 As shown, Figure 4 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application. The method is applied to the aforementioned electronic cigarette, and includes:
[0116] Step 410: If the activation of the electronic cigarette is detected, the current location information corresponding to the electronic cigarette is sent to the server.
[0117] If the activation of an e-cigarette is detected, the e-cigarette can send its current location information to the server.
[0118] Optionally, the electronic cigarette may be equipped with GPS, which allows the electronic cigarette to locate its current location in real time and send the location information to a server.
[0119] Optionally, the e-cigarette may not contain GPS, but the terminal device may include GPS. GPS refers to a global positioning system, which can include the US Global Navigation Satellite System, Europe's Galileo system, Russia's GLONASS system, and China's BeiDou system. The e-cigarette may or may not include GPS. If the e-cigarette does not include GPS, it cannot determine its current location. Therefore, the current location of the terminal device can be determined through its GPS, and this location information can be used as the corresponding current location information for the e-cigarette.
[0120] As an optional implementation, the terminal device can simultaneously combine its own positioning and the e-cigarette's positioning to jointly determine the e-cigarette's current location information. The e-cigarette may be equipped with GPS, which allows it to locate its position in real time and send this information to the terminal device. The terminal device can receive the location information sent by the e-cigarette, determine its own location using its GPS, and then determine the e-cigarette's current location information based on both. Furthermore, the terminal device can calculate the e-cigarette's current location information using the e-cigarette's location information and its own location information. This calculation can include, but is not limited to, calculating the average of the e-cigarette's location information and the terminal device's location information, or calculating a weighted average of the two. Implementing this implementation allows the terminal device to determine the e-cigarette's current location information based on both its own location information and the e-cigarette's location information, thereby improving the accuracy of the current location information obtained by the server.
[0121] In one embodiment, the server can also share the current location information corresponding to the e-cigarette with other electronic devices. These other electronic devices can send a query command to the server to retrieve the current location information of the e-cigarette, obtain it from the server, and display it. By implementing this embodiment, electronic devices can easily obtain the current location information of the e-cigarette, thereby helping smokers find other smokers, improving the interactivity of the e-cigarette and meeting user needs.
[0122] Step 420: If the smoking function is detected to be activated, the identity information of the first smoker bound to the e-cigarette is sent to the server so that the server can obtain the historical number of cigarettes and the historical single cigarette smoking duration corresponding to the multiple historical smoking processes corresponding to the identity information. The server determines the estimated number of cigarettes based on the historical number of cigarettes and the estimated single cigarette smoking duration based on the historical single cigarette smoking duration. Finally, the server determines the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes and the estimated single cigarette smoking duration.
[0123] The historical smoking data includes the number of cigarettes smoked in each historical smoking process, the location information of each historical smoking process, and the duration of each historical single cigarette smoked.
[0124] The steps involve determining the estimated number of cigarettes based on the historical cigarette counts corresponding to multiple historical smoking processes, including: identifying a second historical smoking process where the distance between the historical smoking location information and the current location information is less than a first distance threshold, and determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the second historical smoking process.
[0125] The server can determine a second historical smoking process where the distance between the historical smoking location information and the current location information is less than a first distance threshold. The determined second historical smoking process may include one or more instances. Then, based on the historical smoking quantity corresponding to the determined second historical smoking process, the server can determine an estimated smoking quantity.
[0126] As an optional implementation, the server can determine the third historical smoking process within the smoking area corresponding to the current location, and determine an estimated number of cigarettes smoked based on the historical smoking quantity corresponding to the determined third historical smoking process. The server pre-stores the location information of one or more smoking areas, and the historical smoking data in the server may also include the smoking areas corresponding to each historical smoking process. Implementing this implementation eliminates the need for the server to recalculate the distance between the historical smoking location information and the current location information for each historical smoking time point, thus improving work efficiency.
[0127] In this embodiment of the application, the electronic cigarette can send the current location information corresponding to the electronic cigarette to the server when it is started, so that the server can determine the first estimated smoking time based on the current time point, thereby further improving the accuracy of the estimated smoking time.
[0128] like Figure 5 As shown, Figure 5 This is a flowchart illustrating another smoking information sharing method disclosed in this application embodiment. The method is applied to the aforementioned electronic cigarette, and includes:
[0129] Step 510: If the smoking function is detected to be activated, the smoking data of the e-cigarette during this smoking process is recorded, and the identity information of the first smoker bound to the e-cigarette is sent to the server so that the server can obtain the historical smoking data corresponding to the identity information, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices, including other e-cigarettes and / or terminal devices communicating with other e-cigarettes.
[0130] The e-cigarette can record smoking data during the current smoking process. This "current smoking process" refers to the period from when the e-cigarette's smoking function is activated until it is deactivated or the cartridge is depleted. Smoking data can include the number of cigarettes smoked, the duration of each cigarette smoked, location information, and the identity information of the first smoker during the process, without limitation. The recording duration can be achieved using a timer.
[0131] Step 520: If the smoking function is detected to be turned off or the cigarette cartridges are exhausted, the smoking data during this smoking process is sent to the server so that the server updates the smoking data during this smoking process in the database to the historical smoking data corresponding to the identity information.
[0132] After the server updates the historical smoking data corresponding to the first smoker's identity information, the server can determine the estimated smoking duration for the first smoker again based on the updated historical smoking data the next time the first smoker uses an e-cigarette.
[0133] In this embodiment, the electronic cigarette can send smoking data from when the smoking function is turned on to when the smoking function is turned off or when the cartridge is exhausted to the server, so that the server can update historical smoking data and thus improve the accuracy of the estimated smoking duration.
[0134] like Figure 6 As shown, Figure 6 This is a flowchart illustrating another smoking information sharing method disclosed in an embodiment of this application. The smoking information sharing method is applied to the aforementioned server and includes:
[0135] Step 610: Receive the identity information of the first smoker bound to the electronic cigarette sent by the electronic device; wherein the electronic device includes the electronic cigarette or a terminal device that is connected to the electronic cigarette.
[0136] In one embodiment, the method further includes receiving current location information corresponding to the electronic cigarette sent by the electronic device.
[0137] Step 620: Obtain historical smoking data corresponding to the identity information.
[0138] In one embodiment, step 620 includes: obtaining the number of historical cigarettes smoked in each of the multiple historical smoking processes corresponding to the identity information, and the duration of each historical cigarette smoked in each of the multiple historical smoking processes.
[0139] In one embodiment, step 620 includes: obtaining the number of historical cigarettes smoked in each of the multiple historical smoking processes corresponding to the identity information, the duration of each historical cigarette smoked in each of the multiple historical smoking processes, and the time point of each of the multiple historical smoking processes.
[0140] In one embodiment, step 620 includes: the number of historical cigarettes smoked in each of the multiple historical smoking processes corresponding to the identity information, the duration of each historical cigarette smoked in each of the multiple historical smoking processes, and the location information of each of the multiple historical smoking processes.
[0141] Step 630: Determine the first estimated smoking duration for the first smoker based on historical smoking data.
[0142] In one embodiment, step 630 includes: determining an estimated number of cigarettes based on the historical number of cigarettes corresponding to multiple historical smoking processes, and determining an estimated duration of a single cigarette based on the historical duration of a single cigarette corresponding to multiple historical smoking processes; and determining a first estimated smoking duration for the first smoker based on the estimated number of cigarettes and the estimated duration of a single cigarette.
[0143] In one embodiment, the step of determining the estimated number of cigarettes based on the historical cigarette counts corresponding to multiple historical smoking processes includes: determining the smoking time period corresponding to the current time point; determining the first historical smoking process within the smoking time period based on the historical cigarette counts corresponding to the first historical smoking process; and determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the first historical smoking process.
[0144] In one embodiment, the step of determining the estimated number of cigarettes based on the historical number of cigarettes corresponding to multiple historical smoking processes includes: determining a second historical smoking process in which the distance between the historical smoking location information and the current location information is less than a first distance threshold, and determining the estimated number of cigarettes based on the historical number of cigarettes corresponding to the second historical smoking process.
[0145] In one embodiment, the step of determining the estimated number of cigarettes based on the historical number of cigarettes corresponding to multiple historical smoking processes includes: sorting the historical number of cigarettes corresponding to multiple historical smoking processes in descending order of frequency of occurrence, and taking the top N historical number of cigarettes as the estimated number of cigarettes, where N is an integer greater than 1; and determining the smoking probability corresponding to the N estimated number of cigarettes based on the frequency of occurrence corresponding to the top N historical number of cigarettes.
[0146] In one embodiment, the step of determining the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes smoked and the estimated duration of a single cigarette smoked includes: determining the N first estimated smoking durations corresponding to the first smoker and the estimated smoking probability corresponding to each first estimated smoking duration based on N estimated number of cigarettes smoked, the smoking probability corresponding to each estimated number of cigarettes smoked, and the estimated duration of a single cigarette smoked.
[0147] Step 640: Share the first estimated smoking duration with other electronic devices.
[0148] In one embodiment, step 640 includes: sharing N first estimated smoking durations and the estimated smoking probability corresponding to each first estimated smoking duration with other electronic devices.
[0149] In one embodiment, the method further includes: receiving smoking data recorded by the electronic cigarette during the current smoking process from the electronic device; and updating the smoking data during the current smoking process in the database to the historical smoking data corresponding to the identity information.
[0150] Steps 610 to 640 in this embodiment can be referred to the relevant description of the smoking information sharing method for electronic cigarettes provided in the above embodiments, and will not be repeated here.
[0151] In this embodiment, when the e-cigarette detects that the smoking function is activated, it can transmit data to the server. The server can determine the first estimated smoking time corresponding to the first smoker bound to the e-cigarette and share the first estimated smoking time with other electronic devices. This allows the smoker corresponding to the electronic device to easily obtain the estimated smoking time of other smokers. In other words, the e-cigarette can interact with the server, and the sharing of estimated smoking time of different smokers implemented by the server enables smokers to interact more with the e-cigarette, thus improving the interactivity of the e-cigarette.
[0152] Figure 7 This is a timing diagram of a smoking information sharing method disclosed in an embodiment of this application, such as... Figure 7 As shown, if the e-cigarette detects that the smoking function is activated, it records the smoking data of the current smoking process and sends the first smoker's identity information to the terminal device. Upon receiving this identity information, the terminal device can send it to the server. The server can then retrieve the historical smoking data corresponding to the identity information and determine the first smoker's estimated smoking duration based on this data. After receiving the first smoker's identity information, the terminal device can also respond to query operations, generate a query command, and send it to the server. The server will then retrieve and display the information corresponding to the query command. When the e-cigarette detects that the smoking function is deactivated or the cartridge is depleted, it can send the smoking data of the current smoking process to the server via the terminal device. The server can then update the historical smoking data corresponding to the first smoker's identity information.
[0153] like Figure 8 As shown, Figure 8This is a modular schematic diagram of a smoking information sharing device 800 disclosed in an embodiment of this application. The smoking information sharing device 800 is applied to the aforementioned electronic cigarette. The smoking information sharing device 800 includes a sending module 810, wherein:
[0154] The sending module 810 is used to send the identity information of the first smoker bound to the electronic cigarette to the server if the smoking function is detected to be enabled, so that the server can obtain the historical smoking data corresponding to the identity information, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices, including other electronic cigarettes and / or terminal devices that are connected to other electronic cigarettes.
[0155] In one embodiment, the historical smoking data includes the number of cigarettes smoked in each of the multiple historical smoking processes, and the duration of a single cigarette smoked in each of the multiple historical smoking processes. The sending module 810 is further configured to send the identity information of the first smoker bound to the e-cigarette to the server, so that the server can obtain the number of cigarettes smoked in each of the multiple historical smoking processes and the duration of a single cigarette smoked in each of the multiple historical smoking processes corresponding to the identity information, and determine the estimated number of cigarettes smoked based on the number of cigarettes smoked in each of the multiple historical smoking processes, and determine the estimated duration of a single cigarette smoked based on the duration of a single cigarette smoked in each of the multiple historical smoking processes, and then determine the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes smoked and the estimated duration of a single cigarette smoked.
[0156] In one embodiment, the historical smoking data also includes the historical smoking time points corresponding to each historical smoking process; the sending module 810 is further configured to send the identity information of the first smoker bound to the e-cigarette to the server, so that the server can obtain the historical smoking quantity corresponding to each of the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes, determine the smoking time period corresponding to the current time point, determine the first historical smoking process in the smoking time period, and determine the estimated smoking quantity based on the historical smoking quantity corresponding to the first historical smoking process.
[0157] In one embodiment, the historical smoking data also includes the historical smoking location corresponding to each historical smoking process; the sending module 810 is further configured to send the current location information corresponding to the electronic cigarette to the server if the electronic cigarette is detected to be activated; and send the identity information of the first smoker bound to the electronic cigarette to the server, so that the server can obtain the historical smoking quantity corresponding to each of the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes, determine the second historical smoking process in which the distance between the historical smoking location information and the current location information is less than a first distance threshold, and determine the estimated smoking quantity based on the historical smoking quantity corresponding to the second historical smoking process.
[0158] In one embodiment, the sending module 810 is further configured to send the identity information of the first smoker bound to the electronic cigarette to the server, so that the server obtains the historical smoking quantity corresponding to each of the multiple historical smoking processes corresponding to the identity information and the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes. The server sorts the historical smoking quantities corresponding to each of the multiple historical smoking processes in descending order of frequency of occurrence, and uses the top N historical smoking quantities as the smoking quantity estimate, where N is an integer greater than 1. Based on the frequency of occurrence corresponding to the top N historical smoking quantities, the server determines the smoking probability corresponding to each of the N smoking quantity estimates, and determines the single cigarette smoking duration estimate based on the historical single cigarette smoking duration corresponding to each of the multiple historical smoking processes. Based on the N smoking quantity estimates, the smoking probability corresponding to each smoking quantity estimate, and the single cigarette smoking duration estimate, the server determines the N first estimated smoking durations corresponding to the first smoker and the estimated smoking probability corresponding to each first estimated smoking duration.
[0159] In one embodiment, the sending module 810 is further configured to send the identity information of the first smoker bound to the electronic cigarette to the terminal device that is connected to the electronic cigarette if the smoking function is detected to be activated, so that the terminal device sends the identity information to the server.
[0160] In one embodiment, the smoking information sharing device 800 further includes an update module, wherein:
[0161] The update module is also used to record the smoking data of the e-cigarette during the current smoking process if the smoking function is detected to be enabled; if the smoking function is detected to be disabled or the cartridge is exhausted, the smoking data of the current smoking process is sent to the server so that the server can update the smoking data of the current smoking process in the database to the historical smoking data corresponding to the identity information.
[0162] In this embodiment, when the electronic cigarette detects that the smoking function is activated, it can determine the first estimated smoking time corresponding to the first smoker bound to the electronic cigarette through the server, and share the first estimated smoking time with other electronic devices. This allows the smoker corresponding to the electronic device to easily obtain the estimated smoking time of other smokers. In other words, the electronic cigarette can interact with the server, and the sharing of the estimated smoking time of different smokers implemented by the server enables smokers to interact more with the electronic cigarette, thus improving the interactivity of the electronic cigarette.
[0163] like Figure 9 As shown, in one embodiment, an electronic device is provided, which may include: a memory 910 storing executable program code;
[0164] Processor 920 coupled to memory 910;
[0165] The processor 920 calls the executable program code stored in the memory 910 to implement the smoking information sharing method for electronic cigarettes provided in the above embodiments.
[0166] The memory 910 may include random access memory (RAM) or read-only memory (ROM). The memory 910 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 910 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described above. The data storage area may also store data created during the use of the electronic device.
[0167] Processor 920 may include one or more processing cores. Processor 920 connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 910, and by calling data stored in memory 910. Optionally, processor 920 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 920 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 920 and may be implemented separately using a communication chip.
[0168] Understandably, electronic devices may include more or fewer structural elements than those shown in the block diagram above, such as power modules, physical buttons, WiFi (Wireless Fidelity) modules, speakers, Bluetooth modules, sensors, etc., and are not limited thereto.
[0169] In one embodiment, an electronic device is provided, comprising:
[0170] Memory containing executable program code;
[0171] The processor coupled to the memory;
[0172] The processor calls the executable program code stored in the memory to implement the smoking information sharing method for servers provided in the above embodiments.
[0173] This application discloses a computer-readable storage medium storing a computer program that causes a computer to execute the smoking information sharing method for electronic cigarettes provided in the above embodiments.
[0174] In one embodiment, a computer-readable storage medium is provided that stores a computer program, wherein the computer program causes a computer to perform the smoking information sharing method for a server provided in the above embodiments.
[0175] Furthermore, this application further discloses a computer program product that, when run on a computer, enables the computer to execute all or part of the steps in any of the smoking information sharing methods described in the above embodiments.
[0176] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0177] The foregoing has provided a detailed description of a smoking information sharing method, system, electronic device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for sharing smoking information, characterized in that, Applied to electronic cigarettes, the method includes: If the smoking function is detected to be activated, the identity information of the first smoker bound to the electronic cigarette is sent to the server, so that the server can obtain the historical smoking data corresponding to the identity information from the database, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices. The other electronic devices include other electronic cigarettes and / or terminal devices that are communicatively connected to the other electronic cigarettes. The historical smoking data includes the number of historical cigarettes corresponding to multiple historical smoking processes and the historical single cigarette smoking duration corresponding to multiple historical smoking processes. The step of sending the identity information of the first smoker bound to the electronic cigarette to the server, so that the server can obtain historical smoking data corresponding to the identity information, and determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, includes: The identity information of the first smoker bound to the electronic cigarette is sent to the server, so that the server can obtain the historical number of cigarettes and the historical single cigarette smoking time corresponding to the multiple historical smoking processes corresponding to the identity information, and determine the estimated number of cigarettes based on the historical number of cigarettes and the estimated single cigarette smoking time based on the historical single cigarette smoking time. Then, the first estimated smoking time corresponding to the first smoker is determined based on the estimated number of cigarettes and the estimated single cigarette smoking time. The step of determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the multiple historical smoking processes includes: The historical smoking counts corresponding to the multiple historical smoking processes are sorted in descending order of frequency of occurrence, and the historical smoking counts of the top N are used as the estimated smoking counts, where N is an integer greater than 1. Based on the frequency of occurrence corresponding to the first N historical smoking counts, determine the smoking probability corresponding to each of the N estimated smoking counts; The step of determining the first estimated smoking duration for the first smoker based on the estimated number of cigarettes smoked and the estimated duration of a single cigarette smoked includes: Based on the N estimated smoking quantity values, the smoking probability corresponding to each estimated smoking quantity value, and the estimated duration of a single cigarette, determine the N estimated smoking durations and the estimated smoking probability corresponding to each estimated smoking duration for the first smoker.
2. The method according to claim 1, characterized in that, The historical smoking data also includes the historical smoking time points corresponding to each historical smoking process. The step of determining the estimated number of cigarettes based on the historical smoking quantities corresponding to each of the multiple historical smoking processes includes: Determine the smoking time period corresponding to the current time point; Identify the first historical smoking process that falls within the smoking time period, and determine the estimated number of cigarettes smoked based on the historical number of cigarettes smoked during the first historical smoking process.
3. The method according to claim 1, characterized in that, The historical smoking data also includes the historical smoking locations corresponding to each historical smoking process, and the method further includes: If the activation of the electronic cigarette is detected, the current location information corresponding to the electronic cigarette is sent to the server; The step of determining the estimated number of cigarettes based on the historical cigarette counts corresponding to the multiple historical smoking processes includes: A second historical smoking process is identified, in which the distance between the historical smoking location information and the current location information is less than a first distance threshold. Based on the historical smoking quantity corresponding to the second historical smoking process, an estimated smoking quantity is determined.
4. The method according to claim 1, characterized in that, If the smoking function is detected to be activated, the identity information of the first smoker associated with the electronic cigarette will be sent to the server, including: If the smoking function is detected to be enabled, the identity information of the first smoker bound to the electronic cigarette is sent to the terminal device that is communicatively connected to the electronic cigarette, so that the terminal device sends the identity information to the server.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If the smoking function is detected to be activated, the smoking data of the electronic cigarette during this smoking process is recorded; If the smoking function is detected to be turned off or the cigarette cartridges are exhausted, the smoking data during the current smoking process is sent to the server so that the server updates the smoking data during the current smoking process in the database to the historical smoking data corresponding to the identity information.
6. A smoking information sharing system, characterized in that, include: At least one electronic cigarette, a terminal device, and a server, wherein the electronic cigarette is communicatively connected to the terminal device, and the server is communicatively connected to the at least one electronic cigarette and the terminal device; The electronic cigarette is used to send the identity information of the first smoker bound to the electronic cigarette to the server if the smoking function is detected to be activated. The server is configured to receive the identity information of the first smoker sent by the electronic cigarette, retrieve historical smoking data corresponding to the identity information from the database, determine the first estimated smoking duration corresponding to the first smoker based on the historical smoking data, and share the first estimated smoking duration with other electronic devices. The other electronic devices include other electronic cigarettes and / or terminal devices that are communicatively connected to the other electronic cigarettes. The historical smoking data includes the number of historical cigarettes corresponding to multiple historical smoking processes and the historical single cigarette smoking duration corresponding to multiple historical smoking processes. The server is specifically used to determine the estimated number of cigarettes based on the historical number of cigarettes corresponding to the multiple historical smoking processes, and to determine the estimated duration of a single cigarette based on the historical duration of a single cigarette corresponding to the multiple historical smoking processes, and then to determine the first estimated smoking duration corresponding to the first smoker based on the estimated number of cigarettes and the estimated duration of a single cigarette. The server is specifically configured to sort the historical smoking counts corresponding to the multiple historical smoking processes in descending order of frequency of occurrence, and use the top N historical smoking counts as estimated smoking counts, where N is an integer greater than 1; and determine the smoking probabilities corresponding to the N estimated smoking counts based on the frequency of occurrence of the top N historical smoking counts. The server is specifically used to determine, based on N estimated smoking durations for the first smoker, the smoking probability corresponding to each of the estimated smoking durations, and the estimated duration of a single cigarette, N first estimated smoking durations and the estimated smoking probability corresponding to each of the first estimated smoking durations.
7. An electronic device, characterized in that, include: Memory containing executable program code; A processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein, when executed by a processor, the computer program causes the processor to perform the method according to any one of claims 1 to 5.