Vehicle-mounted incense stick state recognition method, device and equipment, medium and program product

By detecting the in-place status of the incense stick and verifying its identification information, outputting the life information of the incense stick, solving the problem that users cannot accurately understand the working status of the incense stick and improving the user experience.

CN119928523APending Publication Date: 2025-05-06SHANGHAI ANQINZHIXING AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411989483.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

Users cannot accurately understand whether the incense stick is working normally, and cannot replace the incense stick in time, which affects the user experience.

Method used

By obtaining the detection data of the incense stick slot, we judge whether the incense stick is in place, and check it based on the identification information of the incense stick. After the verification is passed, the life information of the incense stick is output.

Benefits of technology

This allows users to accurately perceive the working status and life of the incense stick, improves the user experience, and replace the incense stick in time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119928523A_ABST
    Figure CN119928523A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted incense stick state recognition method and device, equipment, a medium and a program product. The method comprises the following steps: acquiring detection data of an incense rod groove; according to the detection data of the incense rod groove, when it is determined that the incense rod in the incense rod groove is in place, the incense rod is verified according to the identification information of the incense rod; and after the verification is passed, life information of the incense stick is output. The method is used for achieving the effect of accurately identifying the in-place state and the service life state of the incense stick.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle control technology, and in particular to a method, device, equipment, medium and program product for identifying the state of a vehicle-mounted incense stick. Background Art

[0002] With the rapid development of the automobile industry and consumers' increasing requirements for the car riding environment, in-car fragrance equipment has gradually become an important configuration to enhance driving experience and riding comfort.

[0003] As a new type of fragrance carrier, solid incense sticks are favored by many car owners because of their long-lasting and stable fragrance release characteristics. At present, when using incense sticks, it is usually necessary to use plug-in fragrance devices. This device is designed with an incense stick slot, and the user can insert the solid incense stick into the slot, and the device's internal heating or fan mechanism promotes the volatilization of the fragrance in the incense stick.

[0004] However, when using incense sticks, users cannot accurately understand whether the incense sticks are working properly, and may not be able to replace the incense sticks in time, which affects the user experience. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment, medium and program product for identifying the status of a vehicle-mounted incense stick, so as to achieve the effect of accurately identifying the status of an incense stick.

[0006] In a first aspect, an embodiment of the present application provides a method for identifying the state of a vehicle-mounted incense stick, comprising:

[0007] Get the detection data of the incense stick slot;

[0008] When it is determined that the incense stick in the incense stick slot is in place according to the detection data of the incense stick slot, the incense stick is verified according to the identification information of the incense stick;

[0009] After verification, the lifespan information of the incense stick is output.

[0010] In a possible implementation, verifying the incense stick according to the identification information of the incense stick includes:

[0011] Get the identification information of the incense stick;

[0012] The identification information of the incense stick is compared with the identification information in the database to determine whether the identification information of the incense stick has passed the verification.

[0013] In a possible implementation, obtaining identification information of the incense stick includes:

[0014] Obtain identification information of the incense stick from the incense stick through the I2C channel;

[0015] If the acquisition fails, the identification information of the incense stick is obtained from the memory.

[0016] In a possible implementation, after verification, the lifespan information of the incense stick is output, including:

[0017] After the verification is passed, the first life information of the incense stick is obtained from the incense stick through the I2C channel, and the second life information of the incense stick is obtained from the memory;

[0018] If the first life information is successfully obtained, the life information with a shorter life between the first life information and the second life information is output;

[0019] If the first life information acquisition fails, the second life information of the incense stick is output.

[0020] In a possible implementation, the method further includes:

[0021] According to the detection data of the incense stick slot, when it is determined that the incense stick in the incense stick slot is not in place, it is determined whether the I2C communication of the incense stick is normal;

[0022] If the I2C communication of the incense stick is normal, it is determined that the incense stick in the incense stick slot is in place;

[0023] If the I2C communication of the incense stick is abnormal, make sure that the incense stick in the incense stick slot is not in place.

[0024] In a possible implementation manner, after verifying the incense stick according to the identification information of the incense stick, the method further includes:

[0025] After the verification is passed, the air conditioning system is controlled to operate, and the air conditioning system is used to diffuse the fragrance of the incense sticks;

[0026] When the I2C communication of the incense stick is normal, the life information of the incense stick is updated to the incense stick according to the first working cycle;

[0027] When the I2C communication of the incense stick is abnormal, the life information of the incense stick is updated to the memory according to the second working cycle; the second working cycle is greater than the first working cycle.

[0028] In a second aspect, an embodiment of the present application provides a vehicle-mounted incense stick state recognition device, comprising:

[0029] An acquisition module is used to acquire detection data of the incense stick slot;

[0030] A processing module, used for verifying the incense stick according to the identification information of the incense stick when determining that the incense stick in the incense stick slot is in place according to the detection data of the incense stick slot;

[0031] The output module is used to output the life information of the incense stick after verification.

[0032] In a possible implementation, the acquisition module is further used to acquire identification information of the incense stick;

[0033] The processing module is specifically used to compare the identification information of the incense stick with the identification information in the database to determine whether the identification information of the incense stick has passed the verification.

[0034] In a possible implementation, the acquisition module is specifically configured to acquire identification information of the incense stick from the incense stick through an I2C channel;

[0035] If the acquisition fails, the identification information of the incense stick is obtained from the memory.

[0036] In a possible implementation, the acquisition module is further used to acquire the first life information of the incense stick from the incense stick through the I2C channel after the verification is passed, and acquire the second life information of the incense stick from the memory;

[0037] an output module, specifically configured to output the shorter life information of the first life information and the second life information if the first life information is successfully acquired;

[0038] If the first life information acquisition fails, the second life information of the incense stick is output.

[0039] In a possible implementation, the processing module is further used to determine whether the I2C communication of the incense stick is normal when it is determined that the incense stick in the incense stick slot is not in place according to the detection data of the incense stick slot;

[0040] If the I2C communication of the incense stick is normal, it is determined that the incense stick in the incense stick slot is in place;

[0041] If the I2C communication of the incense stick is abnormal, make sure that the incense stick in the incense stick slot is not in place.

[0042] In a possible implementation, the processing module is further used to control the operation of an air conditioning system after verification, and the air conditioning system is used to diffuse the fragrance of the incense stick;

[0043] When the I2C communication of the incense stick is normal, the life information of the incense stick is updated to the incense stick according to the first working cycle;

[0044] When the I2C communication of the incense stick is abnormal, the life information of the incense stick is updated to the memory according to the second working cycle; the second working cycle is greater than the first working cycle.

[0045] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0046] Memory stores computer-executable instructions;

[0047] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0050] The vehicle-mounted incense stick status identification method, device, equipment, medium and program product provided in the present application, when determining that the incense stick is in place based on the detection data of the incense stick slot, checks the incense stick to ensure that the incense stick is valid and working normally, and outputs the life information of the incense stick at this time, so that the user can perceive the working status and life status of the incense stick, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0052] Figure 1 A schematic diagram of the structure of a fragrance system provided in this application;

[0053] Figure 2 A schematic diagram of a process for identifying the state of a vehicle-mounted incense stick provided in this application;

[0054] Figure 3 A partial process diagram of the vehicle-mounted incense stick status identification method provided in this application Figure 1 ;

[0055] Figure 4 A partial process diagram of the vehicle-mounted incense stick status identification method provided in this application Figure 2 ;

[0056] Figure 5 A partial process diagram of the vehicle-mounted incense stick status identification method provided in this application Figure 3 ;

[0057] Figure 6 A schematic diagram of the structure of a vehicle-mounted incense stick status identification device provided in this application;

[0058] Figure 7 A schematic diagram of the structure of an electronic device provided in this application.

[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0061] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0062] Currently, most commonly used fragrance devices are liquid spray devices. The fragrance of this type of device evaporates quickly and cannot be stored for a long time, and users cannot determine the remaining fragrance. The plug-in fragrance device based on solid incense sticks has many obvious advantages, such as longer storage time and long-lasting and stable fragrance release. However, when using incense sticks, the incense sticks may have poor contact due to the shaking of the vehicle, and users cannot be sure whether the incense sticks are working properly. In addition, the life information of the incense sticks cannot be determined.

[0063] Based on the above problems, this application proposes a method, device, equipment, medium and program product for identifying the status of vehicle-mounted incense sticks. By detecting whether the incense stick is in place, determining whether the incense stick is in good contact, and verifying the incense stick in place, outputting the life information of the incense stick after the verification, finally enabling the user to perceive the working status and life information of the incense stick to meet the user's needs.

[0064] Figure 1 This is a schematic diagram of the structure of a fragrance system provided in this application. Figure 1As shown, the fragrance system of the present application includes a fragrance controller, an air conditioning system and a plurality of fragrance stick slots. The fragrance controller detects whether the fragrance stick in the fragrance stick slot is in place through the general purpose input / output (GPIO) port (detect) pin. For example, when the fragrance stick is not in place, the detect pin displays a high level; when the fragrance stick is in place, the detect pin displays a low level.

[0065] The incense stick is equipped with an Electrically Erasable Programmable Read-Only Memory (EEPROM) chip as a memory. The EEPROM chip supports I2C interface communication. Multiple incense sticks are connected to the same I2C bus, and each incense stick has a different I2C address. The fragrance controller can read and write data to the incense stick through the I2C channel.

[0066] After detecting that the fragrance stick is in place and passes the data verification, the fragrance controller controls the operation of the air-conditioning system, which includes multiple fans, and the fans rotate to diffuse the fragrance of the fragrance stick.

[0067] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0068] Figure 2 This is a flow chart of a method for identifying the state of a vehicle-mounted incense stick provided in this application. Figure 2 As shown, with the fragrance controller as the execution subject, the method of this embodiment includes the following steps:

[0069] S101, obtaining detection data of the incense stick slot.

[0070] In this embodiment, when the fragrance system is started, or when the user inserts or removes the fragrance stick after the fragrance system is started, the fragrance controller will identify the state of the fragrance stick. Optionally, the fragrance controller can initialize the fragrance system and load the identification information of the fragrance stick from the non-volatile memory FLASH of the fragrance system to the random access memory (RAM) for data processing. At this time, the in-place state of the fragrance stick is unknown.

[0071] The fragrance controller obtains the detection data of the incense stick slot through the GPIO detect pin. The detection data is used to reflect whether the incense stick in the incense stick slot is in place.

[0072] S102, judging whether the incense stick in the incense stick slot is in place according to the detection data of the incense stick slot; if so, executing step S103; if not, executing step S105.

[0073] For example, when the incense stick is not in place, the detect pin shows a high level; when the incense stick is in place, the detect pin shows a low level. It can be understood that the incense stick is not in place, including at least two situations: poor contact of the incense stick and the incense stick is pulled out. The incense stick is in place, which means that the incense stick is inserted and in good contact.

[0074] Optionally, when the detection data shows that the incense stick is in place and the duration is greater than a preset time, for example, more than 300ms, the incense stick is determined to be in place. When the detection data shows that the incense stick is in place, but the duration is less than or equal to the preset time, the incense stick's in place status is still unknown, and the fragrance controller continues to determine whether the next incense stick is in place. The fragrance controller periodically identifies the status of each incense stick, and will still identify the status of the current incense stick in the next cycle.

[0075] Similarly, if the detection data shows that the incense stick is not in place and the duration is greater than the preset time, for example, more than 300ms, it is determined that the incense stick is not in place. If the detection data shows that the incense stick is not in place, but the duration is less than or equal to the preset time, the incense stick's in place status is still unknown, and the fragrance controller continues to determine whether the next incense stick is in place. The fragrance controller periodically identifies the status of each incense stick, and will still identify the status of the current incense stick in the next cycle.

[0076] S103, verifying the incense stick according to the identification information of the incense stick.

[0077] In this embodiment, after determining that the incense stick is in place, the validity of the incense stick needs to be verified. Specifically, the fragrance controller can obtain the identification information of the incense stick, such as the serial number of the incense stick, and search for the identification information of the incense stick to be verified in the identification information library of valid incense sticks. If it can be found, the incense stick is considered valid, that is, the verification passes; if it cannot be found, the incense stick is considered invalid, that is, the verification fails. Here, the valid incense stick is a predefined incense stick that matches the fragrance system.

[0078] S104: After verification, the lifespan information of the incense stick is output.

[0079] In this embodiment, during the use of the incense stick, the fragrance controller can record the use time of the incense stick, so as to determine the life information of the incense stick, that is, the remaining amount of the incense stick.

[0080] S105, judging whether the I2C communication of the incense stick is normal. If normal, executing step S106; if abnormal, executing step S107.

[0081] S106: Determine that the incense stick in the incense stick slot is in place, and execute step S103.

[0082] S107, determining that the incense stick in the incense stick slot is not in place.

[0083] Specifically, since the detection data shows that the incense stick is not in place, it may be caused by poor contact of the incense stick, so it is necessary to detect the I2C communication of the incense stick. If the I2C communication is normal, it can still be considered that the incense stick in the incense stick slot is in place, and return to execute steps S103 and S104. If the I2C communication is abnormal, it indicates that the incense stick in the incense stick slot is not in place.

[0084] Here, the I2C communication abnormality includes the inability to obtain information from the memory in the incense stick. After the incense stick slot is powered, you can try to obtain the information in the incense stick memory multiple times, for example, repeat the acquisition three times. If it cannot be obtained, it is considered that the I2C communication is abnormal and the incense stick is not in place.

[0085] The vehicle-mounted incense stick status identification method provided in this embodiment preliminarily determines whether the incense stick is in place through the detection data of the incense stick slot. If the incense stick is not in place, it is judged again whether the incense stick is in place through I2C communication, thereby avoiding the problem that the incense stick status is inaccurately judged by the fragrance controller due to inaccurate detection data, and solves the problem that the user cannot perceive the poor contact of the incense stick caused by the abnormal environment of the vehicle. If the incense stick is in place, the life information of the incense stick is output after the validity check of the incense stick is passed, so that the user can perceive the incense stick status and life status, which is convenient for timely replacement of the incense stick and improves the user experience.

[0086] Optionally, if it is determined based on the detection data of the incense stick slot that the incense stick in the incense stick slot is not in place, and the I2C communication of the incense stick is normal, the fragrance controller can also monitor the in-place status of the incense stick in real time. If the in-place state switching frequency of the incense stick is greater than the preset frequency, it can be considered that the incense stick is in a state of poor contact. At this time, this state can be output, such as voice prompts in the car, text displays on the display screen, etc., so that the user can perceive this information and then make corresponding processing, such as reinserting the incense stick to improve the poor contact.

[0087] In a possible implementation manner, a specific implementation manner of step S103 includes:

[0088] S201, obtaining identification information of an incense stick.

[0089] Specifically, the fragrance controller may obtain the identification information of the fragrance stick from the built-in memory of the fragrance stick.

[0090] S202: Compare the identification information of the incense stick with the identification information in the database to determine whether the identification information of the incense stick has passed the verification.

[0091] Specifically, the identification information in the database is the identification information of predefined valid incense sticks. If the identification information of the incense stick to be verified is included in the database, the incense stick is determined to be a valid incense stick, that is, the verification is passed. If the database does not include the identification information of the incense stick to be verified, the incense stick is determined to be an invalid incense stick, that is, the verification fails. Among them, the valid incense stick has a higher matching degree with the fragrance system, and the fragrance is safer during use.

[0092] In this embodiment, by verifying the incense stick, it is determined that the incense stick used by the user is more compatible with the fragrance system, thereby improving the safety during the use of the fragrance.

[0093] Optionally, the specific implementation of step S201 is: obtaining the identification information of the incense stick from the incense stick through the I2C channel, and if the acquisition fails, obtaining the identification information of the incense stick from the memory.

[0094] Specifically, Figure 3 As shown, step S201 may include the following steps:

[0095] S2011, determine whether the I2C communication is normal, if normal, execute step S2012; if abnormal, execute step S2013.

[0096] S2012. Obtain identification information of the incense stick from the incense stick through the I2C channel.

[0097] S2013, after resetting the I2C bus, determine again whether the I2C communication is normal. If normal, execute step S2012, if still abnormal, execute step S2014.

[0098] S2014, obtaining identification information of the incense stick from the memory.

[0099] In this embodiment, to determine whether the I2C communication is normal, the data in the built-in memory of the fragrance stick can be obtained through the I2C channel. If the data can be obtained successfully, it means that the I2C communication is normal; if the data cannot be obtained successfully, the acquisition can be repeated multiple times. If the acquisition cannot be obtained, it can be determined that the I2C communication is abnormal, and the identification information of the fragrance stick is obtained from the FLASH memory in the fragrance system.

[0100] Among them, when judging whether the I2C communication is normal, if the identification information in the built-in memory of the incense stick is successfully obtained through the I2C channel, step S2012 may not be executed.

[0101] When determining that the I2C communication is abnormal, the fragrance controller can directly obtain the identification information of the fragrance stick from the FLASH memory, or reset the I2C bus and obtain the data in the built-in memory of the fragrance stick again. If it still cannot be obtained, the identification information of the fragrance stick is obtained from the FLASH memory; if it can be obtained, the identification information in the built-in memory of the fragrance stick is used as the identification information of the fragrance stick. Among them, the premise of resetting the I2C bus is that the I2C communication of multiple fragrance sticks in the fragrance system is abnormal.

[0102] In this embodiment, when the I2C communication is normal, the identification information in the built-in memory of the incense stick is selected as the identification information of the incense stick, so that the obtained identification information of the incense stick is more accurate. When the I2C communication is abnormal, the identification information in the FLASH memory is selected as the identification information of the incense stick, so that the available identification information of the incense stick can be obtained, which is convenient for the validity verification of the incense stick.

[0103] Optionally, after step S2012, the fragrance controller may further execute step S2015, and when the identification information obtained from the incense stick is different from the identification information of the incense stick in the memory, the identification information of the incense stick in the memory is updated. That is to say, when the identification information of the incense stick in the FLASH memory of the fragrance system is different from the identification information in the built-in memory of the incense stick, the identification information in the built-in memory of the incense stick shall prevail, and it needs to be synchronously stored in the FLASH memory, so that when the incense stick state is identified again, when the incense stick is in place and the I2C communication is abnormal, accurate identification information of the incense stick can be obtained.

[0104] In a possible implementation, the specific implementation of step S104 includes: after the verification is passed, obtaining the first life information of the incense stick from the incense stick through the I2C channel, and obtaining the second life information of the incense stick from the memory. If the first life information is successfully obtained, the life information with a shorter life between the first life information and the second life information is output; if the first life information fails to be obtained, the second life information of the incense stick is output.

[0105] Specifically, the fragrance controller needs to calculate the life of the incense stick and write it into the incense stick regularly. However, when the I2C communication is abnormal, the fragrance controller can only write the incense stick life information into the FLASH memory. Therefore, the incense stick built-in memory and the incense stick life information stored in the FLASH memory may not be synchronized. It can be understood that when the I2C communication is abnormal, only the incense stick life information stored in the FLASH memory can be used; when the I2C communication is normal, the incense stick built-in memory and the incense stick life information stored in the FLASH memory are the same, and the shorter the incense stick life information is, the more accurate it is.

[0106] like Figure 4 As shown, step S104 may include the following steps:

[0107] S301, after verification, determine whether the I2C communication is normal, if normal, execute step S302; if abnormal, execute step S306.

[0108] S302, obtaining the first life information of the incense stick from the incense stick through the I2C channel, obtaining the second life information of the incense stick from the memory, and executing step S303.

[0109] S303, determine whether the first life information is less than the second life information. If yes, execute step S304; otherwise, execute step S305.

[0110] S304: Output the first life information, and update the second life information according to the first life information.

[0111] S305: Output the second life information, and update the first life information according to the second life information.

[0112] S306, obtaining the second life information of the incense stick from the memory and outputting the second life information.

[0113] In this embodiment, to determine whether the I2C communication is normal, the data in the built-in memory of the fragrance stick can be obtained through the I2C channel. If the data can be obtained successfully, it means that the I2C communication is normal; if the data cannot be obtained successfully, it can be determined that the I2C communication is abnormal, and the second life information of the fragrance stick is obtained from the FLASH memory in the fragrance system.

[0114] Among them, when judging whether the I2C communication is normal, if the first life information is successfully obtained through the I2C channel, step S302 can be partially executed, that is, obtaining the second life information of the incense stick from the memory.

[0115] In this embodiment, the shorter life information of the first life information and the second life information is selected as the life information of the incense stick, which can remind the user to replace the incense stick in time and improve the user experience. The shorter life information is synchronized to another storage device, so that more accurate information can be obtained when the life information of the incense stick is obtained again.

[0116] In one possible implementation, Figure 2 On the basis of the embodiment, after the verification is passed, the fragrance controller can also control the operation of the air conditioning system, and the air conditioning system is used to diffuse the fragrance of the incense stick. When the I2C communication of the incense stick is normal, the life information of the incense stick is updated to the incense stick according to the first working cycle; when the I2C communication of the incense stick is abnormal, the life information of the incense stick is updated to the memory according to the second working cycle; the second working cycle is greater than the first working cycle.

[0117] Specifically, Figure 5 As shown, the fragrance controller can perform the following steps:

[0118] S401. Control the operation of the air conditioning system.

[0119] S402, determine whether the I2C communication is normal. If normal, execute step S403; if abnormal, execute step S405.

[0120] S403, determining that the incense stick is a carrier for writing the life information.

[0121] S404: updating the life information of the incense stick according to the first working cycle, and resetting the working time of the air conditioning system.

[0122] S405: Determine that the memory is the writing carrier of the life information.

[0123] S406: Update the life information of the incense stick according to the second working cycle, and reset the working time of the air conditioning system.

[0124] For example, when I2C communication is normal, the carrier for writing life information is set to be the incense stick. Every 5 seconds that the air conditioning system works, the life information of the incense stick in the built-in memory of the incense stick is updated, and the working time of the air conditioning system is cleared to allow the working time of the next cycle to be counted. When I2C communication is normal, the carrier for writing life information is set to be the FLASH memory. Every 5 minutes that the air conditioning system works, the life information of the incense stick in the built-in memory of the incense stick is updated, and the working time of the air conditioning system is cleared to allow the working time of the next cycle to be counted.

[0125] In this embodiment, the fragrance controller can accurately record the life information of the fragrance stick, and the FLASH memory can ensure that the data is reliable and safe, and the outputted life information of the fragrance stick is also more accurate.

[0126] Figure 6 A schematic diagram of the structure of a vehicle-mounted incense stick status recognition device provided in this application, such as Figure 6 As shown, the vehicle-mounted incense stick state recognition device 10 of this embodiment is used to implement the operation corresponding to the fragrance controller in any of the above method embodiments. The vehicle-mounted incense stick state recognition device 10 provided in this embodiment includes:

[0127] An acquisition module 11 is used to acquire detection data of the incense stick slot;

[0128] The processing module 12 is used to verify the incense stick according to the identification information of the incense stick when determining that the incense stick in the incense stick slot is in place according to the detection data of the incense stick slot;

[0129] The output module 13 is used to output the life information of the incense stick after passing the verification.

[0130] In a possible implementation, the acquisition module 11 is further used to acquire identification information of the incense stick;

[0131] The processing module 12 is specifically used to compare the identification information of the incense stick with the identification information in the database to determine whether the identification information of the incense stick has passed the verification.

[0132] In a possible implementation, the acquisition module 11 is specifically configured to acquire the identification information of the incense stick from the incense stick through the I2C channel; if the acquisition fails, the identification information of the incense stick is acquired from the memory.

[0133] In a possible implementation, the acquisition module 11 is further used to acquire the first life information of the incense stick from the incense stick through the I2C channel after the verification is passed, and acquire the second life information of the incense stick from the memory;

[0134] The output module 13 is specifically configured to output the shorter life information between the first life information and the second life information if the first life information is successfully acquired;

[0135] If the first life information acquisition fails, the second life information of the incense stick is output.

[0136] In a possible implementation, the processing module 12 is further used to determine whether the I2C communication of the incense stick is normal when it is determined that the incense stick in the incense stick slot is not in place according to the detection data of the incense stick slot;

[0137] If the I2C communication of the incense stick is normal, it is determined that the incense stick in the incense stick slot is in place;

[0138] If the I2C communication of the incense stick is abnormal, make sure that the incense stick in the incense stick slot is not in place.

[0139] In a possible implementation, the processing module 12 is also used to control the operation of the air conditioning system after the verification is passed, and the air conditioning system is used to diffuse the fragrance of the incense stick;

[0140] When the I2C communication of the incense stick is normal, the life information of the incense stick is updated to the incense stick according to the first working cycle;

[0141] When the I2C communication of the incense stick is abnormal, the life information of the incense stick is updated to the memory according to the second working cycle; the second working cycle is greater than the first working cycle.

[0142] The vehicle-mounted incense stick status recognition device 10 provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0143] Figure 7 This is a schematic diagram of the structure of an electronic device provided in this application. Figure 7As shown, the electronic device 20 provided in this embodiment includes: a memory 21 and at least one processor 22. Optionally, the device 20 also includes a communication component 23. The memory 21, the processor 22 and the communication component 23 are connected via a bus 24.

[0144] In a specific implementation process, at least one processor 22 executes the computer-executable instructions stored in the memory 21, so that at least one processor 22 executes the above method.

[0145] The specific implementation process of the processor 22 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0146] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in the invention may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0147] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0148] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0149] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0150] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0151] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0152] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in a device as discrete components.

[0153] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0155] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0156] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0157] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0158] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for identifying the state of a vehicle-mounted incense stick, characterized in that: include: Get the detection data of the incense stick slot; When it is determined that the incense stick in the incense stick slot is in place according to the detection data of the incense stick slot, the incense stick is verified according to the identification information of the incense stick; After the verification is passed, the life information of the incense stick is output.

2. The method according to claim 1, characterized in that: The verifying the incense stick according to the identification information of the incense stick comprises: Get the identification information of the incense stick; The identification information of the incense stick is compared with the identification information in the database to determine whether the identification information of the incense stick has passed the verification.

3. The method according to claim 2, characterized in that The step of obtaining identification information of the incense stick includes: Obtaining identification information of the incense stick from the incense stick through an I2C channel; If the acquisition fails, the identification information of the incense stick is acquired from the memory.

4. The method according to claim 1, characterized in that: After the verification is passed, the life information of the incense stick is output, including: After the verification is passed, the first life information of the incense stick is obtained from the incense stick through the I2C channel, and the second life information of the incense stick is obtained from the memory; If the first life information is successfully acquired, outputting the life information with a shorter life between the first life information and the second life information; If the first life information fails to be obtained, the second life information of the incense stick is output.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: When it is determined according to the detection data of the incense stick slot that the incense stick in the incense stick slot is not in place, judging whether the I2C communication of the incense stick is normal; If the I2C communication of the incense stick is normal, it is determined that the incense stick in the incense stick slot is in place; If the I2C communication of the incense stick is abnormal, it is determined that the incense stick in the incense stick slot is not in place.

6. The method according to claim 5, characterized in that After verifying the incense stick according to the identification information of the incense stick, the method further includes: After the verification is passed, the air conditioning system is controlled to operate, and the air conditioning system is used to diffuse the fragrance of the incense stick; When the I2C communication of the incense stick is normal, updating the life information of the incense stick to the incense stick according to the first working cycle; When the I2C communication of the incense stick is abnormal, the life information of the incense stick is updated to the memory according to a second working cycle; the second working cycle is greater than the first working cycle.

7. A vehicle-mounted incense stick status recognition device, characterized in that: include: An acquisition module is used to acquire detection data of the incense stick slot; A processing module, used for verifying the incense stick according to the identification information of the incense stick when determining that the incense stick in the incense stick slot is in place according to the detection data of the incense stick slot; The output module is used to output the life information of the incense stick after passing the verification.

8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.