A method and system for clearing TBOX device reservation messages
By automatically comparing and deleting reservation information in the TBOX device that predates the cloud-cleared configuration timestamp, the problem of reservation information remaining after unbinding the APP is resolved, ensuring vehicle safety and user experience.
Patent Information
- Application Number
- CN202610196734.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-02-11
- Publication Date
- 2026-06-23
AI Technical Summary
In existing technologies, after a vehicle's TBOX device is unbound from a user's app, the reservation information is not automatically cleared, causing the vehicle to periodically execute reservation operations not set by the customer, resulting in security losses and a decline in user experience.
The system obtains local reservation information by responding to power-on information in the TBOX device, establishes an MQTT connection to obtain the cloud's clear configuration timestamp, compares the timestamp of the reservation information with the clear configuration timestamp, and automatically deletes reservation information whose timestamp is earlier than the clear configuration timestamp.
This feature automatically clears reservation information from the TBOX after a user unbinds the app, preventing the vehicle from performing unnecessary operations at set times and ensuring vehicle safety and user experience.
Smart Images

Figure CN122268884A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle networking technology, and in particular to a method and system for clearing reservation messages based on a TBOX device. Background Technology
[0002] In the current vehicle-to-everything (V2X) technology system, the TBOX device is a key hub for communication between the vehicle and the cloud server. Users can access the cloud platform through a mobile app to obtain real-time vehicle data, and can also perform intelligent operations on the mobile app, such as booking a trip, booking charging, and scheduling the air conditioning to turn on, thereby obtaining a fully intelligent travel experience.
[0003] Before a vehicle leaves the factory, some vehicles undergo scheduled inspections. At this time, the vehicle is bound to a test mobile app. After the user vehicle performs the scheduled inspection function test, the scheduled information will be stored in the TBOX. After the test is completed, the user app will be unbound. If the scheduled information is not cleared, certain scheduled operations not set by the customer will be executed on the actual vehicle at regular intervals, causing unnecessary safety damage to the customer's vehicle.
[0004] In existing technology, when binding a different APP account to the same car, it is necessary to unbind the previous mobile APP user. After unbinding, the background will clear some data and synchronize it to the mobile APP. However, when unbinding the user's APP before leaving the factory, the reservation information cannot be automatically deleted; it can only be deleted manually. The reservation information has multiple interfaces, and it can be deleted from multiple interfaces. However, if it is forgotten to delete from one interface, this function will remain on the customer's car.
[0005] Therefore, there is an urgent need for a solution that can clear the reservation information in the vehicle's TBOX without the need for additional equipment and using the existing TBOX device. Summary of the Invention
[0006] The present invention aims to solve at least one of the above-mentioned problems in the prior art by proposing a method for clearing reservation information in a TBOX. When a user unbinds the APP, the reservation information stored in the TBOX can be cleared, thus avoiding the situation where the reservation information is not cleared after the APP is unbound and continues to be processed on the vehicle, causing unnecessary damage to the customer's vehicle.
[0007] In a first aspect, embodiments of the present invention provide a method for clearing reservation messages based on a TBOX device, comprising:
[0008] In response to power-on information, retrieve locally stored reservation information;
[0009] Establish an MQTT connection and obtain the clear configuration timestamp sent from the cloud;
[0010] The timestamp of the reservation information is compared with the timestamp of the clear configuration. If the timestamp of the reservation information is less than or equal to the timestamp of the clear configuration, the reservation information is deleted.
[0011] In a preferred embodiment, in the step of obtaining locally stored reservation information in response to power-on information:
[0012] In response to the sleep / wake-up message from the main control unit, the system obtains the handshake message from the network access device, retrieves the reservation information from the EEPROM, and synchronizes the reservation information to the network access device.
[0013] In a preferred embodiment, in the step of obtaining the clear configuration timestamp issued by the cloud after establishing the MQTT connection:
[0014] The establishment of the MQTT connection refers to establishing an MQTT connection between TBOX and TSP, and the clear configuration timestamp sent from the cloud is the clear configuration timestamp sent from TSP to TBOX.
[0015] In a preferred embodiment, the step of comparing the timestamp of the appointment information with the timestamp of the clear configuration, and deleting the appointment information if the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration, includes:
[0016] When there are multiple reservation records, poll each reservation record in turn;
[0017] The timestamps of each of the aforementioned reservation information entries are compared with the clear configuration timestamp. If the timestamp of the target reservation information is less than or equal to the clear configuration timestamp, the target reservation information is deleted.
[0018] In a preferred embodiment, the method further includes: outputting the result of deleting the reservation information to the cloud.
[0019] In a preferred embodiment, the method further includes: uploading locally stored reservation information to the cloud, so that the reservation information is synchronized from the cloud to the mobile APP and displayed in the mobile APP.
[0020] In a preferred embodiment, in the step of obtaining the clear configuration timestamp issued by the cloud after establishing the MQTT connection:
[0021] After establishing the MQTT connection, the network access device obtains the clear configuration timestamp sent from the cloud;
[0022] In the step of comparing the timestamp of the appointment information with the timestamp of the clear configuration, and deleting the appointment information if the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration:
[0023] The network access device compares the timestamp of the reservation information with the timestamp of the clear configuration. If the timestamp of the reservation information is less than or equal to the timestamp of the clear configuration, the network access device outputs a command to delete the reservation information and removes the reservation information from the EEPROM.
[0024] In a second aspect, embodiments of the present invention provide a system for clearing reservation messages based on TBOX devices, configured to implement any of the methods described in the first aspect, the system comprising:
[0025] The module for obtaining reservation information is used to obtain locally stored reservation information in response to power-on information.
[0026] The Clear Configuration Timestamp module is used to establish an MQTT connection and obtain the Clear Configuration Timestamp sent from the cloud.
[0027] The module for deleting appointment information is used to compare the timestamp of the appointment information with the timestamp of the clear configuration. If the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration, the appointment information is deleted.
[0028] Thirdly, embodiments of the present invention provide an electronic device, including:
[0029] One or more processors;
[0030] Memory, used to store one or more programs;
[0031] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the first aspect.
[0032] Fourthly, embodiments of the present invention provide a computer-readable medium on which a computer program is stored, which, when executed by a processor, implements the steps of any of the methods described in the first aspect.
[0033] Beneficial effects of this invention:
[0034] The reservation message clearing method of the present invention is reasonable and reliable, ensures vehicle safety, and improves user experience.
[0035] This invention ensures that all operations on the platform and APP are cleared after the user's vehicle leaves the factory, preventing the vehicle from waking up at scheduled times, which could cause losses to the customer and negatively impact the user experience.
[0036] This invention ensures that after different APP users bind their vehicles to their vehicles, all functions operated on the APP interface can be cleared after the users unbind their vehicles, thus protecting the privacy of car owners. Attached Figure Description
[0037] Figure 1 This is a schematic flowchart of a method for clearing reservation messages based on a TBOX device, provided as an embodiment of the present invention.
[0038] Figure 2 This is a structural block diagram of an electronic device provided in an embodiment of the present invention.
[0039] Figure 3 A timing diagram of an optional implementation of the reservation information synchronization step provided in an embodiment of the present invention.
[0040] Figure 4 This is a schematic flowchart of an optional implementation of the reservation information clearing step provided in an embodiment of the present invention.
[0041] Figure 5 A timing diagram of an optional implementation of the TBOX internal reservation information clearing step provided in this embodiment of the invention. Detailed Implementation
[0042] To enable those skilled in the art to better understand the technical solutions of the present invention, exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0043] Where there is no conflict, the various embodiments of the present invention and the features thereof may be combined with each other.
[0044] As used herein, the term “and / or” includes any and all combinations of one or more related enumerated entries.
[0045] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein, the singular forms “a” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “made of” are used in this specification, the presence of the stated feature, integral, step, operation, element, and / or component is specified, but the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof is not excluded. Terms such as “connected” or “linked” are not limited to physical or mechanical connections but can include electrical connections, whether direct or indirect.
[0046] Unless otherwise specified, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art and the invention, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.
[0047] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information all comply with relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution follows relevant national laws and regulations (e.g., the "Information Security Technology - Personal Information Security Specification"). For example: appropriate measures are taken for personal information access control; restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; and explicit identity targeting is eliminated when using personal information to avoid precisely locating a specific individual.
[0048] Some abbreviations and key terms in this invention are defined as follows:
[0049] TBOX, Telematics Box, is a remote control terminal. In the automotive industry, the MCU and NAD are the two core hardware modules of a TBOX. They work together to enable the TBOX to achieve vehicle networking, data management, and remote control functions.
[0050] MCU, Microcontroller Unit, is a microcontroller unit / main control unit. Its main functions include: System control: running the T-Box's main operating system, managing and scheduling all tasks; In-vehicle communication: communicating with other electronic control units in the vehicle via CAN bus, Ethernet, and other in-vehicle networks to collect vehicle status data; Data preprocessing and storage: filtering, encrypting, packaging, and temporarily storing the collected vehicle data; Business logic processing: executing specific vehicle networking business logic; Peripheral device management: controlling interaction with GPS modules, accelerometers, Bluetooth / Wi-Fi chips, etc.; Communication with NAD: handing over data to be sent to the cloud to the NAD and receiving cloud commands from the NAD for execution.
[0051] NAD, Network Access Device. Main functions: Cellular network access: Integrates a 2G / 3G / 4G / 5G cellular modem, responsible for wireless communication with mobile operator base stations; Wireless data transmission: Transmits data packaged by the MCU to the vehicle-to-everything (V2X) cloud service platform via the cellular network, while simultaneously receiving instructions or update packets from the cloud and forwarding them to the MCU; SIM card management: Contains built-in or external eSIM / physical SIM cards, responsible for SIM card authentication, network registration, and connection management; Communication protocol stack processing: Handles complex cellular network protocols to ensure reliable and secure data transmission; Communication security: Typically includes a built-in independent security chip for communication encryption and authentication, a key hardware component for secure communication between the vehicle and the cloud.
[0052] TSP, Telematics Service Provider, is responsible for service content and platform operation.
[0053] SOC, System on Chip.
[0054] Wake-up of a System-on-a-Chip (SoC) is the process of restoring a system-on-a-chip (SoC) in a low-power sleep or shutdown state to its normal operating state by triggering a specific event or signal.
[0055] In this embodiment, for ease of description, TBOX will be used as the execution subject in the following description. The execution subject can also be a software module, or other electronic devices capable of performing the following functions.
[0056] Figure 1 This is a flowchart illustrating a method for clearing reservation messages based on a TBOX device, provided as an embodiment of the present invention. Figure 1 As shown, the method includes:
[0057] Step S101: In response to the power-on information, obtain the reservation information stored locally;
[0058] Step S201: Establish an MQTT connection and obtain the clear configuration timestamp sent from the cloud;
[0059] Step S301: Compare the timestamp of the reservation information with the timestamp of the clear configuration. If the timestamp of the reservation information is less than or equal to the timestamp of the clear configuration, delete the reservation information.
[0060] The reservation information stored locally on the TBOX device includes reservation information stored in the TBOX after the user's vehicle has undergone reservation function testing. The timestamps of these reservation function test reservation information are relatively early. Therefore, after the cloud sends the clear configuration timestamp, as long as the timestamp of the reservation information is less than or equal to the clear configuration timestamp, it can be determined that the reservation information is the reservation information of the reservation function test that needs to be deleted.
[0061] In one scenario, when switching mobile app accounts and needing to unbind the previous account's app, the cloud can also send a clear configuration timestamp. If the timestamp of the previous account's reservation information is less than or equal to the clear configuration timestamp sent by the cloud at this time, the reservation information of the previous account can be deleted.
[0062] The above-mentioned method for clearing reservation messages in this invention is reasonable and reliable, can ensure vehicle safety, and improve user experience; it also ensures that after different APP users bind to the real vehicle, all functions operated on the APP interface can be cleared after the user unbinds, thus protecting the privacy of the car owner.
[0063] In some embodiments, in step S101, in response to power-on information, the step of obtaining locally stored reservation information is as follows:
[0064] In response to the sleep / wake-up message from the main control unit (MCU), the device obtains the handshake message from the network access device (NAD), retrieves the reservation information from the EEPROM, and synchronizes the reservation information to the network access device (NAD).
[0065] In some embodiments, in step S201, after establishing the MQTT connection, the step of obtaining the clear configuration timestamp sent from the cloud is as follows:
[0066] The establishment of the MQTT connection refers to establishing an MQTT connection between TBOX and TSP, and the clear configuration timestamp sent from the cloud is the clear configuration timestamp sent from TSP to TBOX.
[0067] In some embodiments, step S301, comparing the timestamp of the appointment information with the clear configuration timestamp, and deleting the appointment information if the timestamp of the appointment information is less than or equal to the clear configuration timestamp, includes:
[0068] When there are multiple reservation records, poll each reservation record in turn;
[0069] The timestamps of each of the aforementioned reservation information entries are compared with the clear configuration timestamp. If the timestamp of the target reservation information is less than or equal to the clear configuration timestamp, the target reservation information is deleted.
[0070] In some embodiments, the method further includes: step S401, outputting the result of deleting the reservation information to the cloud.
[0071] The clearing results are fed back to the cloud, allowing the cloud to obtain the status of cleared reservation information for each vehicle, facilitating viewing, maintenance, and feedback to users.
[0072] In some embodiments, the method further includes: step S102, reporting the locally stored reservation information to the cloud, so that the reservation information is synchronized from the cloud to the mobile APP and displayed in the mobile APP.
[0073] In some embodiments, in step S201, after establishing the MQTT connection, the step of obtaining the clear configuration timestamp sent from the cloud is as follows:
[0074] After establishing the MQTT connection, the network access device (NAD) obtains the clear configuration timestamp sent from the cloud;
[0075] In step S301, the timestamp of the appointment information is compared with the timestamp of the clear configuration. If the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration, the appointment information is deleted.
[0076] The network access device (NAD) compares the timestamp of the reservation information with the timestamp of the clear configuration. If the timestamp of the reservation information is less than or equal to the timestamp of the clear configuration, the network access device (NAD) outputs a delete reservation information instruction and deletes the reservation information from the EEPROM.
[0077] Based on the same inventive concept, embodiments of the present invention also provide a system for clearing reservation messages based on TBOX devices, configured to implement any of the methods described in the above embodiments, the system comprising:
[0078] The module for obtaining reservation information is used to obtain locally stored reservation information in response to power-on information.
[0079] The Clear Configuration Timestamp module is used to establish an MQTT connection and obtain the Clear Configuration Timestamp sent from the cloud.
[0080] The module for deleting appointment information is used to compare the timestamp of the appointment information with the timestamp of the clear configuration. If the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration, the appointment information is deleted.
[0081] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 2 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Figure 2As shown, an embodiment of the present invention provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement any of the methods described in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, configured to enable information interaction between the processor and the memory.
[0082] The processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus).
[0083] In some embodiments, the processor 101, memory 102, and I / O interface 103 are interconnected via bus 104, and thus connected to other components of the computing device.
[0084] In some embodiments, the one or more processors 101 include a field-programmable gate array.
[0085] Based on the same inventive concept, embodiments of the present invention also provide a computer-readable medium. This computer-readable medium stores a computer program, wherein, when executed by a processor, the program implements the steps of any of the methods described in the above embodiments. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.
[0086] Figure 3 This is a timing diagram of an optional implementation of the reservation information synchronization step provided in an embodiment of the present invention. (See diagram below.) Figure 3 As shown, when the TBOX wakes up from hibernation, the MCU in the TBOX pulls the IO pin to wake up the NAD. After the NAD in the TBOX starts working, it sends a handshake message to the MCU. After receiving the handshake message, the MCU considers that communication has been established between the NAD and the MCU, and then reads the reservation information stored in the EEPROM and synchronizes it to the NAD. After receiving it, the NAD reports it to the cloud, and the mobile APP synchronizes the reservation information from the cloud and displays it on the APP.
[0087] Figure 4 This is a schematic flowchart illustrating an optional implementation of the reservation information clearing step provided in an embodiment of the present invention. Figure 4As shown, each time the TBOX powers on, it updates the configuration information stored locally. After the TBOX establishes an MQTT connection with the TSP, the TSP sends the cloud memory clear configuration timestamp to the TBOX. If the timestamp sent by the TSP is 0, the TBOX will respond with a protocol indicating no operation is required. If the timestamp sent by the TSP is not 0, the TBOX must compare the timestamp of the locally stored reservation information with the timestamp of the cloud-stored reservation information. If the timestamp of the locally remotely configured air conditioner reservation is less than or equal to the timestamp sent by the cloud (e.g., the timestamp of the remote configuration is August 1st, and the timestamp sent is September 1st), the TBOX needs to clear the data. If the timestamp of the locally remotely configured air conditioner reservation is greater than the timestamp sent by the cloud (e.g., the timestamp of the remote configuration is September 1st, and the timestamp sent is August 1st), the TBOX does not need to clear the data. After the TBOX completes the internal clearing, it sends the clearing result back to the cloud.
[0088] Figure 5 This is a timing diagram of an optional implementation of the TBOX internal reservation information clearing step provided in an embodiment of the present invention. (See diagram below.) Figure 5 As shown, each time the TBOX powers on, the MCU inside the TBOX synchronizes the local reservation information to the NAD. The NAD stores this information locally. After the TBOX establishes an MQTT connection with the TSP, the TSP sends a cloud-memory clear configuration timestamp to the TBOX. After the NAD obtains the timestamp, it compares it with the locally stored reservation information. The reservation information protocol reports a serial number, which is the timestamp stored at that time. If the timestamp in a reservation message is earlier than the timestamp sent by the TSP, a private protocol is sent to notify the MCU to delete the reservation message. After receiving the notification, the MCU clears the reservation message specified by the NAD, that is, clears the data stored in the EEPROM, and reports the clearing result to the NAD. The NAD polls all reservation messages reported by the MCU and processes each one in a similar manner.
[0089] Those skilled in the art will understand that all or some of the steps, systems, and apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software can be distributed on a computer-readable storage medium, which may include computer storage media (or non-transitory media) and communication media (or transient media).
[0090] As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable program instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technologies, portable compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, it is known to those skilled in the art that communication media typically contain computer-readable program instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0091] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.
[0092] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuitry, such as programmable logic circuitry, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), is personalized by utilizing state information from the computer-readable program instructions. This electronic circuitry can execute the computer-readable program instructions to implement various aspects of the invention.
[0093] The computer program product described herein can be implemented specifically through hardware, software, or a combination thereof. In one alternative embodiment, the computer program product is specifically embodied in a computer storage medium; in another alternative embodiment, the computer program product is specifically embodied in a software product, such as a software development kit (SDK), etc.
[0094] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.
[0095] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0096] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.
[0097] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0098] Example embodiments have been disclosed herein, and while specific terminology has been used, it is for illustrative purposes only and should be construed as such, and is not intended to be limiting. In some instances, it will be apparent to those skilled in the art that features, characteristics, and / or elements described in conjunction with particular embodiments may be used alone, or in combination with features, characteristics, and / or elements described in conjunction with other embodiments, unless otherwise expressly indicated. Therefore, those skilled in the art will understand that various changes in form and detail may be made without departing from the scope of the invention as set forth in the appended claims.
Claims
1. A method for clearing reservation messages based on a TBOX device, characterized in that, include: In response to power-on information, retrieve locally stored reservation information; Establish an MQTT connection and obtain the clear configuration timestamp sent from the cloud; The timestamp of the reservation information is compared with the timestamp of the clear configuration. If the timestamp of the reservation information is less than or equal to the timestamp of the clear configuration, the reservation information is deleted.
2. The method according to claim 1, characterized in that, In the step of responding to power-on information and obtaining locally stored reservation information: In response to the sleep / wake-up message from the main control unit, the system obtains the handshake message from the network access device, retrieves the reservation information from the EEPROM, and synchronizes the reservation information to the network access device.
3. The method according to claim 1, characterized in that, In the step of obtaining the clear configuration timestamp sent from the cloud after establishing the MQTT connection: The establishment of the MQTT connection refers to establishing an MQTT connection between TBOX and TSP, and the clear configuration timestamp sent from the cloud is the clear configuration timestamp sent from TSP to TBOX.
4. The method according to claim 1, characterized in that, The step of comparing the timestamp of the appointment information with the timestamp of the clear configuration, and deleting the appointment information if the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration, includes: When there are multiple reservation records, poll each reservation record in turn; The timestamps of each of the aforementioned reservation information entries are compared with the clear configuration timestamp. If the timestamp of the target reservation information is less than or equal to the clear configuration timestamp, the target reservation information is deleted.
5. The method according to claim 1, characterized in that, Also includes: Output the result of deleting the reservation information to the cloud.
6. The method according to claim 1, characterized in that, Also includes: The locally stored reservation information is reported to the cloud, so that the reservation information is synchronized from the cloud to the mobile APP and displayed on the mobile APP.
7. The method according to claim 2, characterized in that, In the step of obtaining the clear configuration timestamp sent from the cloud after establishing the MQTT connection: After establishing the MQTT connection, the network access device obtains the clear configuration timestamp sent from the cloud; In the step of comparing the timestamp of the appointment information with the timestamp of the clear configuration, and deleting the appointment information if the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration: The network access device compares the timestamp of the reservation information with the timestamp of the clear configuration. If the timestamp of the reservation information is less than or equal to the timestamp of the clear configuration, the network access device outputs a command to delete the reservation information and removes the reservation information from the EEPROM.
8. A system for clearing reservation messages based on TBOX devices, characterized in that, The system, configured to implement the method as described in any one of claims 1 to 7, comprises: The module for obtaining reservation information is used to obtain locally stored reservation information in response to power-on information. The Clear Configuration Timestamp module is used to establish an MQTT connection and obtain the Clear Configuration Timestamp sent from the cloud. The module for deleting appointment information is used to compare the timestamp of the appointment information with the timestamp of the clear configuration. If the timestamp of the appointment information is less than or equal to the timestamp of the clear configuration, the appointment information is deleted.
9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 7.
10. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
