Electronic cigarette using method and device, electronic equipment and storage medium
By calculating the first time the user goes to the target bus stop and the second time the target bus arrives, the usable time of the e-cigarette is determined, which solves the problem of the impact of electronic cigarette use on others in public places and improves the user experience.
Patent Information
- Application Number
- CN202411393078.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-02-21
AI Technical Summary
In public places where smoking e-cigarettes are allowed, the use of e-cigarettes will have an impact on others, and the user experience of e-cigarette users is low, especially during the stage-based smoking cessation process.
By calculating the first time the user goes to the target bus stop and the second time the target bus arrives at the target bus stop, the time it is possible to determine the usable time of e-cigarettes, so as to use e-cigarettes reasonably before the bus arrives, reducing the impact on others and improving the impact on others and User experience.
It effectively reduces the impact of direct smoking at the bus stop on others, and at the same time improves the user experience of e-cigarette users, especially during the process of quitting smoking.
Smart Images

Figure CN119488177A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic cigarettes, and in particular to an electronic cigarette use method, device, electronic device and storage medium. Background Art
[0002] Electronic cigarettes, also known as virtual cigarettes and electronic atomizers, have a similar appearance and taste to paper cigarettes. However, electronic cigarettes generally do not contain harmful ingredients such as tar and suspended particles in paper cigarettes, so they are often used to quit smoking as a substitute for paper cigarettes. Therefore, the use of electronic cigarettes is allowed in public places such as bus stations, but smoking electronic cigarettes at bus stations will still affect others. How to properly deal with personal smoking habits is a social issue that cannot be ignored. Traditional methods often use electronic cigarettes to cut off the power when entering public places such as bus stations. However, this method will reduce the user experience of electronic cigarette users. At the same time, if the user is in a staged smoking cessation process, blindly cutting off the power may have the opposite effect of quitting smoking. Therefore, how to provide an electronic cigarette use method to reduce the impact of smoking electronic cigarettes on other people in public places where electronic cigarettes are allowed, and at the same time improve the user experience of electronic cigarette users, has become an urgent problem to be solved. Summary of the invention
[0003] The embodiment of the present invention provides a method for using an electronic cigarette, which aims to solve the problem that smoking electronic cigarettes in public places where smoking electronic cigarettes is allowed affects other people, and the user experience of electronic cigarette users is low. Through the average pace speed and distance, the first time duration of the user going to the target bus station can be accurately calculated, and the target bus and the second time duration corresponding to the target bus can be accurately determined through historical navigation data, so that on the basis of comprehensively considering the first time duration and the second time duration, the electronic cigarette can be used within the usable time duration between the target bus and the target bus station, which can well reduce the impact of smoking directly at the target bus station on other people, and can also improve the user experience.
[0004] In a first aspect, an embodiment of the present invention provides a method for using an electronic cigarette, the method comprising the following steps:
[0005] Get the smoking location of the target bus stop;
[0006] When the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, the average walking speed and navigation data of the user are obtained, and the distance between the electronic cigarette and the target bus stop is calculated;
[0007] Based on the average pace speed and the distance, calculate a first time duration for the user to travel to the target bus stop;
[0008] Based on the navigation data, determining a target bus corresponding to the user and a second time duration for the target bus to travel to the target bus station;
[0009] Determining a usable time of the electronic cigarette based on the first time period and the second time period;
[0010] Based on the usable time, the electronic cigarette is used.
[0011] Optionally, obtaining the smoking location of the target bus stop includes:
[0012] Obtaining wind condition data of the target bus station;
[0013] Based on the wind condition data, determine smoking locations around the target bus stop.
[0014] Optionally, the navigation data includes historical navigation data and current navigation data, and determining the target bus corresponding to the user and the second duration of the target bus to the target bus stop based on the navigation data includes:
[0015] In the historical navigation data, the riding record of the user at the target bus station is screened out, wherein the riding record includes the number of times and the riding time of at least one bus number;
[0016] Determining the target bus based on the number of rides and the ride time;
[0017] The second duration for the target bus to travel to the target bus stop is determined based on the current navigation data.
[0018] Optionally, the determining, based on the current navigation data, the second duration for the target bus to travel to the target bus stop includes:
[0019] Obtaining a layout diagram of the target bus station;
[0020] In the current navigation data, a first estimated time for the target bus to arrive at the target bus stop and other buses within a preset time range from the first estimated time are determined, and the preset time range is no later than the first estimated time;
[0021] Based on the number of the other buses and the layout diagram, determining a stop for the target bus to the target bus station;
[0022] Based on the parking point, the second duration for the target bus to travel to the target bus stop is determined.
[0023] Optionally, determining the usable time of the electronic cigarette based on the first time and the second time includes:
[0024] Obtain the average passenger flow of the target bus station in the current time period;
[0025] Based on the average passenger flow, the dwelling time of the target bus is calculated;
[0026] The usable time of the electronic cigarette is determined based on the stay time, the first time, and the second time.
[0027] Optionally, using the electronic cigarette based on the usable time includes:
[0028] Based on the current time and the usable time, calculate the time to stop using;
[0029] When the stop use time is reached, the power supply of the electronic cigarette is stopped, and a stop prompt message is sent to the user.
[0030] Optionally, the calculating the stop use time based on the current time and the usable time includes:
[0031] Subtract the preset retention time from the usable time to obtain the target usage time;
[0032] The target usage time is added to the current time to obtain the stop usage time.
[0033] In a second aspect, an embodiment of the present invention further provides an electronic cigarette using device, the electronic cigarette using device comprising:
[0034] The first acquisition module is used to acquire the smoking location of the target bus stop;
[0035] A second acquisition module is used to acquire the average pace speed and navigation data of the user when the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, and calculate the distance between the electronic cigarette and the target bus stop;
[0036] A first calculation module, configured to calculate a first time duration for the user to travel to the target bus stop based on the average pace speed and the distance;
[0037] A first determination module is used to determine the target bus corresponding to the user and the second time duration for the target bus to travel to the target bus station based on the navigation data;
[0038] A second determining module, configured to determine a usable time of the electronic cigarette based on the first time and the second time;
[0039] The first use module is used to use the electronic cigarette based on the usable time.
[0040] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the electronic cigarette use method provided in an embodiment of the present invention when executing the computer program.
[0041] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the method for using an electronic cigarette provided in an embodiment of the invention are implemented.
[0042] In an embodiment of the present invention, the smoking position of the target bus station is obtained; when the user of the electronic cigarette reaches the smoking position of the target bus station and enters the smoking state, the average pace speed and navigation data of the user are obtained, and the distance between the electronic cigarette and the target bus station is calculated; based on the average pace speed and the distance, the first time duration for the user to go to the target bus station is calculated; based on the navigation data, the target bus corresponding to the user and the second time duration for the target bus to go to the target bus station are determined; based on the first time duration and the second time duration, the usable time duration of the electronic cigarette is determined; based on the usable time duration, the electronic cigarette is used. The first time duration for the user to go to the target bus station can be accurately calculated through the average pace speed and distance, and the target bus and the second time duration corresponding to the target bus can be accurately determined through the navigation data, so that on the basis of comprehensively considering the first time duration and the second time duration, the electronic cigarette can be used within the usable time duration between the target bus and the target bus station, which can well reduce the impact of smoking directly at the target bus station on other people and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 is a flow chart of a method for using an electronic cigarette provided by an embodiment of the present invention;
[0045] Figure 2is a schematic structural diagram of an electronic cigarette using device provided in an embodiment of the present invention;
[0046] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] like Figure 1 As shown, Figure 1 This is a flow chart of a method for using an electronic cigarette provided by an embodiment of the present invention, including:
[0049] 101. Obtain the smoking location of the target bus stop;
[0050] In the embodiment of the present invention, the above-mentioned electronic cigarette use method can be applied to the above-mentioned electronic cigarette, or can also be applied to the electronic cigarette management platform, and the above-mentioned electronic cigarette management platform can be constructed by a server or a server cluster, and the above-mentioned server or server cluster can be any electronic device with functions such as data processing, data storage, and data transmission. When the above-mentioned electronic cigarette use method is applied to the above-mentioned electronic cigarette management platform, the above-mentioned electronic cigarette management platform can send corresponding management instructions to the above-mentioned electronic cigarette through the above-mentioned data transmission function to realize the use of the electronic cigarette.
[0051] The target bus stop can be the bus stop that the user is close to at the current moment. Specifically, the electronic cigarette can be deployed with a position sensor, which detects the current position in real time, and determines whether the electronic cigarette is close to the bus stop through the current position and the map, and whether the distance between the electronic cigarette and the bus stop is less than the preset distance threshold. When the electronic cigarette is close to the bus stop, and the distance between the electronic cigarette and the bus stop is less than the preset distance threshold, the bus stop can be used as the target bus stop, and the smoking position of the target bus stop can be obtained. The smoking position can be determined based on the wind condition data of the target bus stop, or can be set by the user according to actual needs, or can also be set by the administrator of the electronic cigarette management platform.
[0052] It should be noted that, by implementing any one of the electronic cigarette use methods provided in the embodiments of the present invention, it is possible to effectively calculate the time during which the user can use the electronic cigarette during the time when the target bus arrives at the target bus stop, thereby prompting the user with as much usable time as possible without delaying the user from taking the bus in time, which can effectively improve the user's experience of using electronic cigarettes in the scenario of taking the bus.
[0053] 102. When the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, the user's average walking speed and navigation data are obtained, and the distance between the electronic cigarette and the target bus stop is calculated.
[0054] In an embodiment of the present invention, the above average pace speed can be determined based on the historical location data of the user carrying the electronic cigarette. Based on the historical location data within a certain time period, the pace speed of the user within the above time period is determined. After the pace speeds of multiple time periods are statistically obtained, the above average pace speed can be calculated. The above historical navigation data can be determined from the navigation platform data corresponding to the navigation application in the user terminal (for example, a mobile phone, a tablet, a smart watch, etc.) used by the user.
[0055] Specifically, the electronic cigarette can collect the location information of the electronic cigarette through the location sensor. At the same time, the electronic cigarette and the electronic cigarette management platform can communicate with any navigation platform. By communicating with the navigation platform, the information of the target bus stop in the area where the electronic cigarette is located (i.e. including coordinate information) can be obtained. The location information of the electronic cigarette and the information of the target bus stop can be used to detect whether the user of the electronic cigarette is close to the target bus stop. When close to the target bus stop, the distance between the electronic cigarette and the target bus stop can be calculated through the coordinate information of the target bus stop and the location information of the electronic cigarette.
[0056] It should be noted that the above distance may not be a straight-line distance, but a distance connected by a road, or a route distance that can be passed by pedestrians. Although the above electronic cigarette is adjacent to the above target bus stop, it is outside the electronic fence of the target bus stop (or it can be understood that the above smoking position is adjacent to the above target bus stop, but outside the above electronic fence). The above electronic fence can be understood as a fence for electronic cigarettes. When it is in the above electronic fence, the above electronic cigarette will automatically power off, otherwise it can only be powered on outside the electronic fence. The above electronic fence can be set by the range of the above target bus stop. The larger the range of the above target bus stop, the larger the electronic fence can be set in proportion. On the contrary, the smaller the range of the above target bus stop, the smaller the electronic fence can be set in proportion.
[0057] Whether the user of the electronic cigarette has reached the smoking position can also be determined by the position information of the electronic cigarette, and whether the user has entered the smoking state can be determined by the atomizer and other modules of the electronic cigarette. When the atomizer is working, the user enters the smoking state, otherwise the user does not enter the smoking state.
[0058] It is understandable that using electronic cigarettes in a smoking location can minimize the impact on other people in the bus station. Only when the user enters the smoking location will the subsequent steps be executed, that is, obtaining relevant data (navigation data, average pace speed) and calculating the above distance, etc. If the user does not enter the above smoking location, the subsequent steps will not be executed, and the user will not be provided with the available time, so it can effectively avoid the impact on other people in the bus station.
[0059] 103. Based on the average walking speed and distance, calculate the first time it takes for the user to reach the target bus stop.
[0060] In the embodiment of the present invention, the distance can be calculated by time and speed, which is a commonly used distance calculation formula. By inverting the above distance calculation formula, the above first duration can be calculated by the average pace speed and distance.
[0061] Specifically, the average walking speed may also be obtained by averaging the walking speeds of the user going to the target bus stop in history.
[0062] 104. Determine, based on the navigation data, a target bus corresponding to the user and a second duration for the target bus to reach the target bus stop.
[0063] In an embodiment of the present invention, the above-mentioned navigation data may include historical navigation data and current navigation data. The above-mentioned historical navigation data may be navigation data before the current moment, and the above-mentioned current navigation data may be navigation data at the current moment. Specifically, the above-mentioned target bus may be determined based on the above-mentioned historical navigation data. The above-mentioned current navigation data may be real-time navigation data of the bus corresponding to the above-mentioned target bus station in the above-mentioned navigation platform, that is, including real-time navigation data of each bus corresponding to the above-mentioned target bus station. Therefore, after determining the above-mentioned target bus, the second duration of the above-mentioned target bus to the above-mentioned target bus station may be determined based on the above-mentioned current navigation data.
[0064] Specifically, the electronic cigarette or the electronic cigarette management platform may communicate with the navigation platform to obtain the current navigation data, and then determine the second duration.
[0065] 105. Determine a usable time of the electronic cigarette based on the first time period and the second time period.
[0066] In the embodiment of the present invention, the usable time period may be obtained by subtracting the first time period from the second time period.
[0067] For example, assuming that the second duration is 25 minutes and the first duration is 10 minutes, 25-10 can be subtracted to determine that the available duration is 15 minutes. It is understandable that the durations mentioned are all a length of time on the timeline but do not determine the start and end points.
[0068] In a possible embodiment, the number of puffs remaining within the usable time period may be calculated based on the user's usable time and the user's average frequency of using the electronic cigarette; a countdown reminder of the remaining puffs may also be performed in the electronic cigarette.
[0069] 106. Use e-cigarettes based on the duration of use.
[0070] In an embodiment of the present invention, the above-mentioned usable time can be subtracted from the preset retention time to obtain the target usage time. The above-mentioned preset retention time can be determined according to the time the taste is retained after using the electronic cigarette. Assuming that after using the electronic cigarette, the retained taste will usually dissipate after 30 seconds. At this time, the above-mentioned 15 minutes can be subtracted from 30 seconds, that is, the target usage time is 14 minutes and 30 seconds. Adding the above-mentioned target usage time on the basis of the current time (assuming that the current time is 8:30:00), it can be determined that the user needs to stop using the electronic cigarette at 8:44:30 and get on the bus at 8:45 or before 8:45:00. Therefore, after calculating the above-mentioned usable time, the above-mentioned time-related data can be delivered to the user, so that the user can use the above-mentioned electronic cigarette according to the above-mentioned time-related data. In order to reduce the impact on other people in the target bus stop, it can also well improve the user experience.
[0071] In an embodiment of the present invention, the smoking position of the target bus station is obtained; when the user of the electronic cigarette reaches the smoking position of the target bus station and enters the smoking state, the average pace speed and navigation data of the user are obtained, and the distance between the electronic cigarette and the target bus station is calculated; based on the average pace speed and the distance, the first time duration for the user to go to the target bus station is calculated; based on the navigation data, the target bus corresponding to the user and the second time duration for the target bus to go to the target bus station are determined; based on the first time duration and the second time duration, the usable time duration of the electronic cigarette is determined; based on the usable time duration, the electronic cigarette is used. The first time duration for the user to go to the target bus station can be accurately calculated through the average pace speed and distance, and the target bus and the second time duration corresponding to the target bus can be accurately determined through the navigation data, so that on the basis of comprehensively considering the first time duration and the second time duration, the electronic cigarette can be used within the usable time duration between the target bus and the target bus station, which can well reduce the impact of smoking directly at the target bus station on other people and improve the user experience.
[0072] It is understandable that in the specific implementation of the present application, related data such as average pace speed, navigation data, wind data, layout diagram of the target bus stop, etc., when the embodiments in the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data and the construction, training and use of related models need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0073] It should be noted that the electronic cigarette use method provided in the embodiment of the present invention can be applied to devices such as computers and servers that can be used for electronic cigarettes.
[0074] Optionally, in the step of obtaining the smoking positions of the target bus station, wind condition data of the target bus station may also be obtained; based on the wind condition data, the smoking positions around the target bus station are determined.
[0075] In an embodiment of the present invention, the wind condition data may include wind force value and wind direction. A data acquisition sensor and a communication module may be deployed in the electronic cigarette. Since the electronic cigarette will only use the bus stop as the target bus stop when it is close to the bus stop at the current moment, it means that the electronic cigarette is in the same area as the target bus stop at the current moment (for example, within a radius of 300 meters or 500 meters). Usually, the wind condition data of each position in the same area are the same, so the wind condition data of the target bus stop can be obtained by the acquisition sensor. When the electronic cigarette is close to the bus stop and the bus stop is used as the target bus stop, the wind condition data can be obtained by the acquisition sensor, or when the electronic cigarette is close to the bus stop and the bus stop is used as the target bus stop, the wind condition data can also be obtained through the communication module. Specifically, the communication module can be connected to any weather platform to obtain the weather data of the area where the target bus stop is located. Usually, the weather data will include the wind condition data.
[0076] Specifically, the map information of the target bus station can be obtained, and the map information can include the open space around the target bus station. According to the wind direction, the target open space located downwind of the target bus station is determined in each open space. The distance interval between each target open space and the target bus station is calculated, and the wind force value and the preset wind force threshold are compared. When the wind force value is greater than the preset wind force threshold, the target open space with a smaller distance interval can be selected as the above-mentioned smoking position. When the wind force value is less than the preset wind force threshold, the target open space with a larger distance interval can be selected as the above-mentioned smoking position.
[0077] It is understandable that when the wind force value is greater than the above-preset wind force threshold, it means that the current wind force is sufficient, which can well reduce the impact of using electronic cigarettes on other people in the target bus station, so the target open space with a smaller distance interval can be selected as the smoking position to reduce the situation that the electronic cigarette user misses the bus. Conversely, the target open space with a larger distance interval can be selected as the smoking position to reduce the impact of using electronic cigarettes on other people in the target bus station.
[0078] It should be noted that after determining the above-mentioned smoking position, the distance between the above-mentioned smoking position and the above-mentioned target bus stop can be calculated. Since the time for calculating the first duration is after the user reaches the smoking position, when calculating the first duration, the distance between the smoking position and the target bus stop or the distance between the electronic cigarette and the target bus stop can be used. The first duration finally calculated is the same and the effect is consistent. Therefore, after calculating the first duration, the corresponding usable duration can be determined according to the first duration, and the electronic cigarette can be used based on the usable duration. While ensuring that the impact on other people is reduced, it can also ensure that the user will not miss the bus, thereby improving the user experience.
[0079] Optionally, in the step of determining the target bus corresponding to the user and the second duration of time for the target bus to travel to the target bus station based on the navigation data, the user's riding record at the target bus station can also be screened out in the historical navigation data, the riding record including the number of rides and riding time of at least one bus type; the target bus is determined based on the number of rides and riding time; and the second duration of time for the target bus to travel to the target bus station is determined based on the current navigation data.
[0080] In an embodiment of the present invention, the navigation data includes historical navigation data and current navigation data. The above-mentioned bus number can be set by the bus operation management personnel, for example, bus number 395, bus number 226, etc. Based on the above-mentioned number of rides and riding time, the above-mentioned target bus is determined. For example, when the user arrives at Station A (that is, the above-mentioned target bus station), the number of times he takes Bus No. 1 (or understood as the first bus) is the largest; when the user currently arrives near Station A, the navigation platform data (that is, the current data) can be directly obtained, from which it is obtained how long it will take for the next few Bus No. 1 taken by the user to arrive at the station (that is, the second duration).
[0081] More specifically, based on the riding time, the bus corresponding to the bus with the most rides in the recent time period can be selected as the target bus. By introducing the riding time as the basis for judging the target bus, the riding records that are too old can be filtered out, thereby improving the accuracy of judging the target bus. Then, based on the current navigation data, the second duration is determined.
[0082] Optionally, in the step of determining the second time duration for the target bus to travel to the target bus station based on the current navigation data, a layout diagram of the target bus station can also be obtained; in the current navigation data, a first estimated time for the target bus to travel to the target bus station and other buses that are within a preset time range with the first estimated time are determined, and the preset time range is no later than the first estimated time; based on the number and layout diagram of other buses, a stopping point for the target bus to travel to the target bus station is determined; based on the stopping point, the second time duration for the target bus to travel to the target bus station is determined.
[0083] In an embodiment of the present invention, the above-mentioned layout diagram may be obtained by surveying and mapping by satellite or artificial or other means. Through the above-mentioned layout diagram, the layout of the above-mentioned target bus station, for example, the number of parking spaces and the parking position of each parking space, can be clearly known. The above-mentioned preset time range can usually be a smaller time range, and is not later than the first estimated time (i.e., earlier than or equal to the first estimated time). Specifically, assuming that the first estimated time for the above-mentioned target bus to go to the target bus station is 8:00, the above-mentioned preset time range may be 30 seconds earlier than the above-mentioned 8:00. It may be 7:59:30 to 8:00:00. Since the above-mentioned current navigation data includes the real-time navigation data of each bus number corresponding to the above-mentioned target bus station, other buses and the corresponding number that arrive at the target bus station in the time period from 7:59:30 to 8:00:00 can be determined in the current navigation data.
[0084] Specifically, assuming that the layout diagram shows that the target bus station has a first parking space and a second parking space, when the target bus enters the station, there is already a bus entering the target bus station (that is, the number of other buses is 1), it means that the target bus is parked at the second parking space. At this time, the time required to initially enter the target bus station to the second parking space can be calculated, and the second time can be obtained by adding the first estimated time to the time spent in the station.
[0085] The above-mentioned time consumed in the station can be obtained by adding the driving time in the station and the waiting time outside the station. Assuming that the number of the above-mentioned other buses is 2, and the layout diagram shows that there are only the first parking space and the second parking space in the target bus station, the waiting time outside the station is not zero at this time, and is specifically determined by the average stay time of a bus at the above-mentioned target bus station. Alternatively, assuming that the number of other buses is 1, and the layout diagram shows that there are only the first parking space and the second parking space in the target bus station, the waiting time outside the station is zero at this time. It is understandable that if the target bus station is relatively large, the difference in parking spots will have a certain impact on the target bus going to the parking spot. Therefore, when considering the parking spot as the basis for calculating the second time, a more accurate second time can be determined.
[0086] In a possible embodiment, the parking point can also be used as a basis for calculating the first duration. Specifically, the distance between the electronic cigarette and the parking point can be determined based on the location of the parking point and the location of the electronic cigarette, and the first duration can be calculated based on the distance between the electronic cigarette and the parking point and the average pace. It can be understood that if the target bus station is relatively large, the difference in parking points will also have a certain impact on the user's going to the parking point to take the target bus. Therefore, when considering the parking point as the basis for calculating the first duration, a more accurate first duration can also be determined.
[0087] From the above content, it can be seen that no matter whether the above parking point is used as the basis for calculating the first duration or the second duration, the ultimate goal is to calculate a more accurate usable time. Therefore, in the actual process, the specific use of the parking point as the basis for calculating the first duration or the second duration, or the use of the parking point as the basis for calculating both the first duration and the second duration can be selected according to actual needs.
[0088] Optionally, in the step of determining the usable time of the electronic cigarette based on the first duration and the second duration, the average passenger flow of the target bus stop in the current time period can also be obtained; based on the average passenger flow, the stay time of the target bus is calculated; based on the stay time, the first duration and the second duration, the usable time of the electronic cigarette is determined.
[0089] In the embodiment of the present invention, the average passenger flow may be the average number of passengers boarding each bus at the target bus station during a certain time period, where the time period is the time period during which the user is at the target bus station.
[0090] Specifically, for example, during the morning rush hour, between 8:00 and 8:30, the number of people boarding the bus at the target bus station (i.e., the average passenger flow) can determine the boarding time T3 (i.e., the above-mentioned stay time) at the station.
[0091] The available time can be obtained by adding T3+(T2-T1), wherein T3 is the stay time, T2 is the second time, and T1 is the first time.
[0092] In a possible embodiment, the above-mentioned stay duration can also be calculated based on the time when the first card is swiped to get on the bus and the time when the last card is swiped to get on the bus within the above-mentioned time period.
[0093] It should be noted that after using the length of stay as the basis for determining the usable time, as long as the e-cigarette is used strictly in accordance with the above-mentioned usable time, the bus will not be missed, which can reserve more time for the user to use the e-cigarette. At the same time, it can also avoid the time spent queuing for the bus, further improving the user experience.
[0094] Optionally, in the step of using the electronic cigarette based on the usable time, a time to stop using can also be calculated based on the current time and the usable time; when the time to stop using is reached, the power supply of the electronic cigarette is stopped, and a stop prompt message is sent to the user.
[0095] In an embodiment of the present invention, when the user goes to the waiting position (or understood as the parking spot of the target bus or understood as the smoking position), he will start to use the electronic cigarette, that is, consume the above-mentioned usable time. Therefore, the above-mentioned usable time can be added to the current time to calculate the above-mentioned stop time. Therefore, when the stop time is reached, the power supply of the electronic cigarette is stopped, and a prompt message in the form of voice, text, image, etc. is sent to the user to remind the user that the bus is about to arrive and the electronic cigarette cannot be used at this time to avoid affecting others.
[0096] Optionally, in the step of calculating the stop use time based on the current time and the usable time, the usable time can be subtracted from the preset retention time to obtain the target usage time; the target usage time can be added to the current time to obtain the stop use time.
[0097] In an embodiment of the present invention, the preset retention time can be determined based on the time the smell of the electronic cigarette remains after use. The preset retention time is subtracted from the usable time to obtain the target usage time, and then the target usage time is added to the current time to obtain the stop time, so that 30 seconds (i.e., the preset retention time) can be used to disperse the smell of cigarettes on the body to avoid affecting other passengers when walking to get on the bus.
[0098] like Figure 2 As shown, an embodiment of the present invention further provides an electronic cigarette using device, comprising:
[0099] The first acquisition module 201 is used to acquire the smoking location of the target bus stop;
[0100] The second acquisition module 202 is used to acquire the average pace speed and navigation data of the user when the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, and calculate the distance between the electronic cigarette and the target bus stop;
[0101] A first calculation module 203, configured to calculate a first time duration for the user to travel to the target bus stop based on the average pace speed and the distance;
[0102] A first determination module 204 is used to determine the target bus corresponding to the user and the second time duration for the target bus to travel to the target bus station based on the navigation data;
[0103] A second determining module 205, configured to determine a usable time of the electronic cigarette based on the first time and the second time;
[0104] The first using module 206 is configured to use the electronic cigarette based on the usable time.
[0105] Optionally, the first acquisition module 201 includes:
[0106] A first acquisition submodule is used to acquire wind condition data of the target bus station;
[0107] The first determination submodule is used to determine the smoking location around the target bus stop based on the wind condition data.
[0108] Optionally, the navigation data includes historical navigation data and current navigation data, and the first determining module 204 includes:
[0109] A first screening submodule is used to screen out the riding records of the user at the target bus station from the historical navigation data, wherein the riding records include the number of times and riding time of at least one bus number;
[0110] A second determination submodule is used to determine the target bus based on the number of rides and the ride time;
[0111] The third determining submodule is used to determine the second time duration for the target bus to travel to the target bus stop based on the current navigation data.
[0112] Optionally, the third determining submodule includes:
[0113] A first acquisition unit, used to acquire a layout diagram of the target bus stop;
[0114] A first determining unit is used to determine, in the current navigation data, a first estimated time for the target bus to travel to the target bus stop and other buses that are within a preset time range from the first estimated time, wherein the preset time range is no later than the first estimated time;
[0115] A second determining unit, configured to determine a stop point for the target bus to the target bus stop based on the number of the other buses and the layout diagram;
[0116] The third determining unit is used to determine the second time duration for the target bus to travel to the target bus stop based on the parking point.
[0117] Optionally, the second determining module 205 includes:
[0118] The second acquisition submodule is used to obtain the average passenger flow of the target bus station in the current time period;
[0119] A first calculation submodule, configured to calculate the dwelling time of the target bus based on the average passenger flow;
[0120] The fourth determining submodule is used to determine the usable time of the electronic cigarette based on the stay time, the first time and the second time.
[0121] Optionally, the first using module 206 includes:
[0122] A second calculation submodule is used to calculate a stop-use time based on the current time and the usable time;
[0123] The sending submodule is used to stop the power supply of the electronic cigarette and send a stop prompt message to the user when the stop use time is reached.
[0124] Optionally, the second calculation submodule includes:
[0125] A first calculation unit, configured to subtract a preset retention time from the usable time to obtain a target usage time;
[0126] The second calculation unit is used to increase the target usage time on the basis of the current time to obtain the stop usage time.
[0127] like Figure 3 As shown, an embodiment of the present invention further provides an electronic device, characterized in that it includes a processor, and the processor can execute any one of the above-mentioned electronic cigarette use methods.
[0128] Specifically, it includes a processor 301 and a memory 302, and a computer program for executing the method for using an electronic cigarette which is stored in the memory 302 and can be run on the processor 301, wherein:
[0129] The processor 301 runs the computer program of the electronic cigarette usage method stored in the memory 302 and performs the following steps:
[0130] Get the smoking location of the target bus stop;
[0131] When the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, the average walking speed and navigation data of the user are obtained, and the distance between the electronic cigarette and the target bus stop is calculated;
[0132] Based on the average pace speed and the distance, calculate a first time duration for the user to travel to the target bus stop;
[0133] Based on the navigation data, determining a target bus corresponding to the user and a second time duration for the target bus to travel to the target bus station;
[0134] Determining a usable time of the electronic cigarette based on the first time period and the second time period;
[0135] Based on the usable time, the electronic cigarette is used.
[0136] Optionally, the obtaining of the smoking location of the target bus stop performed by the processor 301 includes:
[0137] Obtaining wind condition data of the target bus station;
[0138] Based on the wind condition data, determine smoking locations around the target bus stop.
[0139] Optionally, the navigation data includes historical navigation data and current navigation data, and the processor 301 determines the target bus corresponding to the user and the second duration for the target bus to travel to the target bus station based on the navigation data, including:
[0140] In the historical navigation data, the riding record of the user at the target bus station is screened out, wherein the riding record includes the number of times and the riding time of at least one bus number;
[0141] Determining the target bus based on the number of rides and the ride time;
[0142] The second duration for the target bus to travel to the target bus stop is determined based on the current navigation data.
[0143] Optionally, the processor 301 determines the second duration of the target bus traveling to the target bus stop based on the current navigation data, including:
[0144] Obtaining a layout diagram of the target bus station;
[0145] In the current navigation data, a first estimated time for the target bus to arrive at the target bus stop and other buses within a preset time range from the first estimated time are determined, and the preset time range is no later than the first estimated time;
[0146] Based on the number of the other buses and the layout diagram, determining a stop for the target bus to the target bus station;
[0147] Based on the parking point, the second duration for the target bus to travel to the target bus stop is determined.
[0148] Optionally, the processor 301 determines the usable duration of the electronic cigarette based on the first duration and the second duration, including:
[0149] Obtain the average passenger flow of the target bus station in the current time period;
[0150] Based on the average passenger flow, the dwelling time of the target bus is calculated;
[0151] The usable time of the electronic cigarette is determined based on the stay time, the first time, and the second time.
[0152] Optionally, the processor 301 executes the use of the electronic cigarette based on the usable time, including:
[0153] Based on the current time and the usable time, calculate the time to stop using;
[0154] When the stop use time is reached, the power supply of the electronic cigarette is stopped, and a stop prompt message is sent to the user.
[0155] Optionally, the processor 301 calculates the stop use time based on the current time and the usable time, including:
[0156] Subtract the preset retention time from the usable time to obtain the target usage time;
[0157] The target usage time is added to the current time to obtain the stop usage time.
[0158] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the electronic cigarette use method or the application-end electronic cigarette use method provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0160] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for using an electronic cigarette, characterized in that: The method comprises the following steps: Get the smoking location of the target bus stop; When the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, the average walking speed and navigation data of the user are obtained, and the distance between the electronic cigarette and the target bus stop is calculated; Based on the average pace speed and the distance, calculate a first time duration for the user to travel to the target bus stop; Based on the navigation data, determining a target bus corresponding to the user and a second time duration for the target bus to travel to the target bus station; Determining a usable time of the electronic cigarette based on the first time period and the second time period; Based on the usable time, the electronic cigarette is used.
2. The method for using an electronic cigarette according to claim 1, characterized in that: The step of obtaining the smoking location of the target bus stop includes: Obtaining wind condition data of the target bus station; Based on the wind condition data, determine smoking locations around the target bus stop.
3. The method for using an electronic cigarette according to claim 1, characterized in that: The navigation data includes historical navigation data and current navigation data, and determining the target bus corresponding to the user and the second duration for the target bus to travel to the target bus station based on the navigation data includes: In the historical navigation data, the riding record of the user at the target bus station is screened out, wherein the riding record includes the number of times and the riding time of at least one bus number; Determining the target bus based on the number of rides and the ride time; The second duration for the target bus to travel to the target bus stop is determined based on the current navigation data.
4. The method for using an electronic cigarette according to claim 3, characterized in that: The determining, based on the current navigation data, the second duration for the target bus to travel to the target bus station comprises: Obtaining a layout diagram of the target bus stop; In the current navigation data, a first estimated time for the target bus to arrive at the target bus stop and other buses within a preset time range from the first estimated time are determined, and the preset time range is no later than the first estimated time; Based on the number of the other buses and the layout diagram, determining a stop for the target bus to the target bus station; Based on the parking point, the second duration for the target bus to travel to the target bus stop is determined.
5. The method for using an electronic cigarette according to claim 1, characterized in that: The determining, based on the first time period and the second time period, the usable time period of the electronic cigarette includes: Obtain the average passenger flow of the target bus station in the current time period; Based on the average passenger flow, the dwelling time of the target bus is calculated; The usable time of the electronic cigarette is determined based on the stay time, the first time, and the second time.
6. The method for using an electronic cigarette according to claim 1, wherein: The using of the electronic cigarette based on the usable time includes: Based on the current time and the usable time, calculate the time to stop using; When the stop use time is reached, the power supply of the electronic cigarette is stopped, and a stop prompt message is sent to the user.
7. The method for using an electronic cigarette according to claim 6, characterized in that: The calculation of the stop use time based on the current time and the usable time includes: Subtract the preset retention time from the usable time to obtain the target usage time; The target usage time is added to the current time to obtain the stop usage time.
8. An electronic cigarette using device, characterized in that: The electronic cigarette using device comprises: The first acquisition module is used to acquire the smoking location of the target bus stop; A second acquisition module is used to acquire the average pace speed and navigation data of the user when the user of the electronic cigarette reaches the smoking position of the target bus stop and enters the smoking state, and calculate the distance between the electronic cigarette and the target bus stop; A first calculation module, configured to calculate a first time duration for the user to travel to the target bus stop based on the average pace speed and the distance; A first determination module is used to determine the target bus corresponding to the user and the second time duration for the target bus to travel to the target bus station based on the navigation data; A second determining module, configured to determine a usable time of the electronic cigarette based on the first time and the second time; The first use module is used to use the electronic cigarette based on the usable time.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the method for using an electronic cigarette as claimed in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the electronic cigarette use method according to any one of claims 1 to 7 are implemented.