Vehicle end self-learning TSP long connection time-phased establishing method
Through the method of establishing a long TSP connection in a time-dividing period by self-learning the vehicle end, the problem of slow remote control response in a new energy vehicle in a dormant state is solved, efficient remote control response and low-power vehicle end operation are achieved, ensuring user experience and platform load balance.
Patent Information
- Application Number
- CN202510202920.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, new energy vehicles have slow remote control response in a dormant state, resulting in poor user experience. At the same time, frequent wake-up of TBOX will lead to large power consumption on the vehicle and excessive platform load.
The method of establishing TSP long connections in a time-dividing period by car-end self-learning, dynamically adjusting the opening and closing periods of long connections according to users' car usage habits, ensuring that long connections are established during peak hours to improve response speed, and closing long connections in off-peak hours to reduce power consumption.
Through long connection, the remote control response speed in the dormant state of the vehicle is improved, the vehicle side is kept low power consumption, the risk of power feeding is avoided, and the platform load balance is achieved.
Smart Images

Figure CN120076074A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle control, and particularly relates to a method for a vehicle end to self-learn and establish a TSP long connection in different time periods. Background Art
[0002] Remote control via a mobile phone APP for new energy vehicles is an essential basic function. The entire process realizes specific remote control functions through APP>TSP>vehicle end>TSP>APP, including the following functions: 1. Remote control of air conditioning on and off; 2. Remote control of unlocking and locking, and window opening and closing; 3. Remote seat ventilation and heating; 4. Remote vehicle status query, etc. In the prior art, when the vehicle is in the wake-up state, the response speed of remote control execution is very fast, and the user acceptance is high; when the vehicle is in the sleep state, the remote control response is slow, and the user experience is poor. The TBOX wakes up regularly. If the wake-up is too frequent, the power consumption of the vehicle end is relatively large, which easily leads to the risk of power failure; if the TBOX wakes up regularly, the platform load is relatively large, which easily causes abnormalities in the platform. Summary of the Invention
[0003] The purpose of the present invention is to provide a method for a vehicle end to self-learn and establish a TSP long connection in different time periods. The long connection scheme can greatly improve the response speed; according to different vehicle usage habits of users, establish a long connection between the vehicle end and the TSP in different time periods to keep the vehicle end with low power consumption; different vehicles establish long connections in different time periods, and the wake-up intervals are also different within this time period, so as to achieve the maximum platform load balancing and not cause platform problems.
[0004] To solve the above technical problems, the technical solution of the present invention is: a method for a vehicle end to self-learn and establish a TSP long connection in different time periods, including:
[0005] Establish a long connection between the vehicle end and the vehicle remote service provider TSP;
[0006] Control the opening and closing of the long connection between the vehicle end and the TSP according to preset time period information;
[0007] Dynamically adjust the time period information of the opening and closing of the long connection between the vehicle end and the TSP through self-learning;
[0008] Execute remote control instructions from the mobile phone APP through the long connection between the vehicle end and the TSP.
[0009] In the preset time period information, the preset time period is default set to the peak vehicle usage time periods, specifically including 6:00 - 8:00, 12:00 - 14:00, and 17:00 - 19:00.
[0010] The method for dividing time periods is as follows: The 24 hours of a day are evenly divided into 24 time periods per hour. The long connection between the vehicle end and TSP is opened or closed in units of time periods. The time periods and the identifiers indicating whether the corresponding long connections are opened are saved inside the TBOX of the vehicle end as time period information, and the TBOX establishes a long connection with TSP according to the dynamically adjusted and updated time period information.
[0011] The method for dynamically adjusting the time period information through self-learning is as follows: The TBOX continuously monitors and records the user's vehicle usage habits to determine the time periods when the user has the need to use the vehicle, and dynamically adjusts and updates the time period information according to the judgment results.
[0012] The user's vehicle usage habits for determining that the user has the need to use the vehicle at least include remote control operations and unlocking operations; the unlocking operations include, but are not limited to, unlocking the vehicle with a physical key, unlocking the vehicle with an NFC key, and unlocking the vehicle with a Bluetooth key.
[0013] The method for determining the time periods when the user has the need to use the vehicle and dynamically adjusting and updating the time period information according to the judgment results is as follows:
[0014] When it is detected that the vehicle end receives a remote control operation or an unlocking operation instruction within a certain time period, it is determined that the user has the need to use the vehicle during this time period. This time period is used as the default time period for opening the long connection and the time period information is dynamically adjusted and updated, and a long connection is established according to the updated time period information;
[0015] When the vehicle end does not receive a remote control operation or an unlocking operation instruction within the default time period for opening a certain long connection for more than 3 days, it is determined that the user does not have the need to use the vehicle during this time period. This time period is used as the default time period for closing the long connection and the time period information is dynamically adjusted and updated, and a long connection is established according to the updated time period information.
[0016] The steps for executing the remote control instruction from the mobile APP through the long connection between the vehicle end and TSP are specifically as follows:
[0017] The mobile APP sends the remote control instruction to the TSP background;
[0018] When the long connection between the vehicle end and TSP is in the active state, the TSP always maintains the Message Queuing Telemetry Transport (MQTT) connection, sends the remote control instruction to the vehicle end, and receives the feedback response in real time;
[0019] The TBOX sends the corresponding instruction to the corresponding execution end controller of the vehicle end to execute the remote control command;
[0020] The vehicle controller feeds back the execution result of the remote control instruction to the TBOX;
[0021] The TBOX sends the feedback result to the TSP background through the long connection;
[0022] The TSP background sends the remote control execution result to the mobile APP to update the execution result status of the mobile APP.
[0023] When the long connection between the vehicle end and the TSP is in the active state, the TBOX sends a heartbeat signal to the TSP at a preset time interval and receives a heartbeat response from the TSO.
[0024] There is also provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the method described in any one of the above are implemented.
[0025] There is also provided a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the above are implemented.
[0026] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0027] By establishing a long connection between the vehicle end and the TSP, the present invention can greatly improve the remote control response speed of the mobile APP in the vehicle's sleep state. While establishing the long connection, the low power consumption of the vehicle end is maintained to avoid the risk of power depletion. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic flowchart of an embodiment of the present invention;
[0029] Figure 2 It is a schematic structural diagram of the long connection between the vehicle end and the TSP in an embodiment of the present invention;
[0030] Figure 3 It is a schematic flowchart of self-learning in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0031] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0032] The technical solution of the present invention is as follows:
[0033] Embodiment 1:
[0034] A method for the vehicle end to establish a long connection with the TSP through self-learning in different time periods, as Figure 1 shown, includes:
[0035] S1. Establish a long connection between the vehicle end and the automotive remote service provider TSP;
[0036] S2. Control the opening and closing of the long connection between the vehicle end and TSP according to the preset time period information;
[0037] S3. Dynamically adjust the time period information for opening and closing the long connection between the vehicle end and TSP through self-learning;
[0038] S4. Execute the remote control instructions from the mobile APP through the long connection between the vehicle end and TSP.
[0039] Specifically include:
[0040] 1) Long connection establishment process
[0041] After the vehicle end and TSP establish a long connection, the remote control operation flow chart is as Figure 2 shown:
[0042] The remote control execution steps are as follows:
[0043] 1. The mobile APP sends the remote instruction to the TSP background;
[0044] 2. In the activated state of the long connection, TSP always maintains the MQTT connection, requests the remote control instruction operation from the vehicle end, and quickly receives the remote control response.
[0045] 3. The T-BOX sends the corresponding instruction to the corresponding execution end controller of the vehicle end to execute the control command;
[0046] 4. The vehicle controller feeds back the execution result of the remote control command to the T-BOX;
[0047] 5. The T-BOX feeds back the result to the TSP through the long connection channel;
[0048] 6. The TSP background returns the control execution result to the mobile APP to update the execution result status of the mobile APP. When the long connection is established and in the sleep state, the internal timer of the Tbox wakes up actively every
[0049] Keepalive_Period_TBOX (calibratable) mins to send a heartbeat to the TSP and receive the heartbeat response from the TSP. The software resets the timer after each timing timeout.
[0050] 2) Establish a long connection in different time periods
[0051] Divide the 24 hours of a day into 24 time periods per hour. Use the time period as the unit to open or close the TSP long connection. Save the time period and the flag indicating whether the corresponding long connection is open in the in-vehicle terminal Tbox. The Tbox establishes a long connection according to this time period information. When the vehicle leaves the factory, the default long connection opening time periods are set to the three peak vehicle usage time periods in the morning, noon, and evening (configurable).
[0052] Morning: 6:00 - 8:00, open the long connection;
[0053] Noon: 12:00 - 14:00, open the long connection;
[0054] Evening: 17:00 - 19:00, open the long connection;
[0055] The time period table is shown in Table 1. The first row, 0 - 23, represents the 24 time periods of a day. The second row is the long connection flag. 0 indicates that the long connection does not need to be opened or the long connection is to be exited, and 1 indicates that the long connection needs to be opened.
[0056] Table 1
[0057] Time period 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Long connection identifier 0 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 1 1 0 0 0 0 0
[0058] Whether to open or close the long connection within each time period is updated irregularly and takes effect immediately according to the actual vehicle usage needs of the user. At the same time, the updated data is stored in the internal memory of the vehicle - end Tbox, and the Tbox establishes a long connection with the TSP according to the new time period information.
[0059] In the preset time period information, the preset time periods are default set to the peak vehicle usage time periods, specifically including 6:00 - 8:00, 12:00 - 14:00, and 17:00 - 19:00.
[0060] The method of dividing time periods is as follows: Divide the 24 hours of a day into 24 time periods on average per hour. Use the time period as the unit to open or close the long connection between the vehicle - end and the TSP. Save the time period and the flag indicating whether the corresponding long connection is open in the vehicle - end TBOX as time period information. The TBOX establishes a long connection with the TSP according to the dynamically adjusted and updated time period information.
[0061] 3) Self - learning and updating the long connection time period
[0062] The in - vehicle terminal Tbox continuously monitors the user's vehicle usage needs, including remote control operations, and unlocking the vehicle operations with physical keys, NFC keys, or Bluetooth keys, etc., to judge in which time period the user may have vehicle usage needs or no needs, and dynamically learn and update the local long connection time period table, so as to achieve that different vehicles establish long connections in different time periods, and vehicles that have not been used for a long time do not establish long connections, reducing resource occupancy and balancing the platform load. The specific method is as followsFigure 3 as shown
[0063] 1. If remote control operations are detected within a certain time period, as well as vehicle unlocking operations using a physical key, NFC key, Bluetooth key, etc., it is considered that the vehicle user has a need to use or access the vehicle during this time period. Update the long connection identifier for this time period to 1 locally and establish a long connection according to the updated time period data.
[0064] 2. If there are no remote control or unlocking operations for more than 3 consecutive days within a certain time period, it is considered that there is no need to use the vehicle during this time period. Update the long connection identifier for this time period to 0 locally and establish a long connection according to the updated time period data.
[0065] 3. Wake up randomly once between every 10 - 15 minutes during the long connection time period to keep the heartbeat alive.
[0066] The method for dynamically adjusting the time period information through self - learning is as follows: Continuously monitor and record the user's vehicle - using habits through TBOX to determine the time periods when the user has a need to use the vehicle, and dynamically adjust and update the time period information according to the judgment results.
[0067] The user's vehicle - using habits for judging that the user has a need to use the vehicle at least include remote control operations and unlocking operations; unlocking operations include, but are not limited to, unlocking the vehicle with a physical key, unlocking the vehicle with an NFC key, and unlocking the vehicle with a Bluetooth key.
[0068] The method for judging the time periods when the user has a need to use the vehicle and dynamically adjusting and updating the time period information according to the judgment results is as follows:
[0069] When it is detected that the vehicle terminal receives a remote control operation or unlocking operation instruction within a certain time period, it is judged that the user has a need to use the vehicle during this time period. Use this time period as the default time period for opening the long connection, dynamically adjust and update the time period information, and establish a long connection according to the updated time period information;
[0070] When the vehicle terminal does not receive a remote control operation or unlocking operation instruction for more than 3 days within the default time period for opening a certain long connection, it is judged that the user does not have a need to use the vehicle during this time period. Use this time period as the default time period for closing the long connection, dynamically adjust and update the time period information, and establish a long connection according to the updated time period information.
[0071] The steps for executing the remote control instruction from the mobile APP through the long connection between the vehicle terminal and TSP are specifically as follows:
[0072] The mobile APP sends the remote control instruction to the TSP background;
[0073] When the long connection between the vehicle end and the TSP is in the active state, the TSP always maintains the Message Queuing Telemetry Transport (MQTT) connection, sends remote control instructions to the vehicle end, and receives feedback responses in real time.
[0074] The TBOX sends corresponding instructions to the corresponding execution end controller of the vehicle end to execute the remote control command.
[0075] The vehicle controller feeds back the execution result of the remote control instruction to the TBOX.
[0076] The TBOX sends the feedback result to the TSP background through the long connection.
[0077] The TSP background sends the remote control execution result to the mobile APP to update the status.
[0078] When the long connection between the vehicle end and the TSP is in the active state, the TBOX sends a heartbeat signal to the TSP at a preset time interval and receives a heartbeat response from the TSO.
[0079] The technical solution of the embodiment of the present invention can bring the following beneficial effects:
[0080] 1. Establishing a long connection between the vehicle end Tbox and the TSP can greatly improve the remote control response speed of the mobile APP in the vehicle's sleep state, from more than ten seconds to within 5 seconds.
[0081] 2. While establishing a long connection, keep the vehicle end with low power consumption to avoid the risk of power depletion.
[0082] 3. Each vehicle activates and establishes a long connection at different time periods and wakes up to send heartbeats at different time intervals, which can greatly reduce the load on the platform side and achieve the effect of load balancing.
[0083] Embodiment 2:
[0084] A computer device is also provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the method described in any one of the above are implemented.
[0085] Embodiment 3:
[0086] A computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in any one of the above are implemented.
[0087] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0088] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0089] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0091] Those skilled in the art can easily understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for establishing TSP long connection by self-learning in different time periods at the vehicle end, characterized in that: include: Establish a long connection between the vehicle and the automotive teleservice provider TSP; Control the opening and closing of the long connection between the vehicle end and TSP according to the preset time period information; Dynamically adjust the opening and closing time period information of the long connection between the vehicle end and TSP through self-learning; Remote control commands from the mobile phone APP are executed through a long connection between the vehicle and TSP.
2. According to claim 1, a method for establishing a TSP long connection by vehicle-side self-learning in time periods is characterized in that: The preset time periods in the preset time period information are set by default to the peak time periods for vehicle use, including 6:00-8:00, 12:00-14:00 and 17:00-19:
00.
3. According to claim 1, a method for establishing a TSP long connection by vehicle-side self-learning in time periods is characterized in that: The method of dividing time periods is as follows: 24 hours a day is divided into 24 time periods on average per hour, and the long connection between the vehicle end and TSP is opened or closed in units of time periods. The time periods and the corresponding flags indicating whether the long connection is opened are saved in the TBOX of the vehicle end as time period information. TBOX establishes a long connection with TSP according to the dynamically adjusted and updated time period information.
4. According to claim 1, a method for establishing a TSP long connection by vehicle-side self-learning in different time periods is characterized in that: The method for dynamically adjusting the time period information through self-learning is: continuously monitoring and recording the user's car usage habits through TBOX to determine whether the user has a time period when he needs to use the vehicle, and dynamically adjusting and updating the time period information based on the judgment result.
5. According to claim 4, a method for establishing a TSP long connection by vehicle-side self-learning in time periods is characterized in that: The user's vehicle usage habits as a means of judging whether the user has the need to use the vehicle include at least remote control operations and unlocking operations; unlocking operations include but are not limited to unlocking the vehicle by a physical key, unlocking the vehicle by an NFC key, and unlocking the vehicle by a Bluetooth key.
6. According to claim 4, a method for establishing TSP long connection by vehicle-side self-learning in time periods is characterized in that: The method for determining whether the user has a time period for using the vehicle and dynamically adjusting and updating the time period information according to the determination result is: When it is detected that the vehicle receives a remote control operation or unlocking operation command within a certain time period, it is determined that the user has a need to use the vehicle during this time period, and this time period is used as the default time period for opening the long connection, and the time period information is dynamically adjusted and updated, and a long connection is established according to the updated time period information; When the vehicle side does not receive any remote control or unlocking operation instructions for more than 3 days within the default period of a long connection being opened, it is determined that the user has no need to use the vehicle during this period, and this period is used as the default period for closing the long connection, and the period information is dynamically adjusted and updated, and a long connection is established based on the updated period information.
7. The method for establishing TSP long connection by vehicle-side self-learning in time periods according to claim 1 is characterized in that: The specific steps to execute remote control commands from the mobile phone APP through the long connection between the vehicle and TSP are: The mobile phone APP sends the remote control instructions to the TSP backend; When the long connection between the vehicle and TSP is activated, TSP always maintains the message queue telemetry transmission MQTT connection, sends remote control commands to the vehicle, and receives feedback responses in real time; TBOX sends the corresponding command to the corresponding execution end controller on the vehicle side to execute the remote control command; The vehicle controller feeds back the remote control command execution results to TBOX; TBOX sends the feedback results to the TSP backend through a persistent connection; The TSP backend sends the remote control execution results to the mobile APP and updates the mobile APP execution result status.
8. The method for establishing TSP long connection by vehicle-side self-learning in time periods according to claim 1 is characterized in that: When the long connection between the vehicle and TSP is activated, TBOX sends a heartbeat signal to TSP at a preset time interval and receives a heartbeat response from TSO.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.