Method for remotely controlling vehicle air conditioner through mobile terminal
Technical Field
The invention relates to the field of automobile control systems, in particular to a method for remotely controlling a vehicle air conditioner by a mobile terminal.
Background
With the development of the automobile industry, remote control technology has penetrated into a plurality of components of automobiles, the structures of the automobiles become more and more complex, and the automation degree is more and more favored. With the rapid development in the automotive field, remote control technology is being used rationally.
The remote control technology is applied to the automobile industry in China at present, is developed to a certain extent, and can realize the function of remotely opening or closing the air conditioner.
The user controls the vehicle to start or close the air conditioning system through the mobile terminal, the user needs to record time and manually operate the vehicle at the mobile terminal, and unnecessary loss is caused once the user forgets to close the air conditioner.
Disclosure of Invention
The technical problem to be solved by the invention is to overcome the defects in the prior art and provide a method for remotely controlling the vehicle air conditioner by the mobile terminal, which can control the timing switch of the air conditioner.
The invention is realized by the following technical scheme:
a method for a mobile terminal to remotely control a vehicle air conditioner is characterized by comprising the following steps:
a. a user sends a remote control air conditioner instruction to a TSP platform through a mobile terminal, the TSP platform sends the received remote control air conditioner instruction to a vehicle-mounted TBOX, the vehicle-mounted TBOX and a VCU carry out authentication, and the VCU sends an authentication success signal to the vehicle-mounted TBOX and executes an upper high-voltage process after the authentication is successful;
b. the vehicle-mounted TBOX receives the authentication success signal and sends a control instruction to the air conditioner, the air conditioner receives the control instruction, operates or closes according to the control instruction and sends the air conditioner operation state data to the vehicle-mounted TBOX, and the control instruction comprises air conditioner operation time and set temperature;
c. the vehicle-mounted TBOX receives the air conditioner running state data and sends the air conditioner running state data to the TSP platform, and the TSP platform receives the air conditioner running state data and sends the air conditioner running state data to the mobile terminal.
Preferably, when the vehicle-mounted TBOX authenticates with the VCU in step a, the vehicle-mounted TBOX sends an authentication request to the VCU, the VCU sends a random number to the vehicle-mounted TBOX, the vehicle-mounted TBOX receives the random number, performs authentication operation according to an authentication algorithm, and sends an operation result to the VCU, the VCU compares the received operation result with a calculation result of the VCU itself, if the received operation result is the same as the calculation result, the VCU sends an authentication success signal to the vehicle-mounted TOBX, if the received operation result is different from the authentication success signal, the VCU sends an authentication failure signal to the vehicle-mounted TBOX, the vehicle-mounted TBOX sends the authentication failure signal to the TSP platform, and the TSP platform sends the authentication failure.
Preferably, when the random number sent by the VCU is not received within time T1 after the vehicle-mounted TBOX sends the authentication request to the VCU, the vehicle-mounted TBOX sends the authentication request to the VCU again.
Preferably, after the vehicle-mounted TBOX sends the authentication request to the VCU N times and does not receive the random number sent by the VCU, the vehicle-mounted TBOX sends a remote control failure signal to the TSP platform, and the TSP platform sends the remote control failure signal to the mobile terminal.
Preferably, after the VCU sends the random number to the vehicle-mounted TBOX, and the VCU does not receive the operation result sent from the vehicle-mounted TBOX within time T2, the VCU sends an authentication timeout signal to the vehicle-mounted TBOX, the TBOX sends the authentication timeout signal to the TSP platform, and the TSP platform sends the authentication timeout signal to the mobile terminal.
Preferably, after the vehicle-mounted TBOX sends the operation result to the VCU, and the authentication result sent by the VCU is not received within time T3, the vehicle-mounted TBOX sends an authentication timeout signal to the TSP platform, and the TSP platform sends the authentication timeout signal to the mobile terminal.
The invention has the beneficial effects that:
the timing module in the vehicle-mounted TBOX or the air-conditioning system controls the timing switch of the air conditioner, so that the operation amount of a user is reduced, the phenomenon that the air conditioner is not normally operated or is forgotten to be closed due to the fact that the user forgets to switch the timing module is avoided, and the user experience is improved.
Drawings
Fig. 1 is a schematic view of the connection structure of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the present invention will be further described in detail with reference to the accompanying drawings and preferred embodiments.
As shown in the figure, the method for controlling the air conditioner of the vehicle in the present invention includes the following processes:
a user sends a remote air conditioner control command to the TSP platform through the mobile terminal, the vehicle-mounted TBOX receives the remote air conditioner control command sent by the TSP platform, then a remote authentication request is initiated, and in the authentication process, the vehicle-mounted TBOX does not send the authentication request any more;
after receiving the authentication request signal, the VCU sends a random number signal to the vehicle-mounted TBOX, the vehicle-mounted TBOX carries out authentication operation according to an authentication algorithm after receiving the random number, the operation result is sent to the VCU through a bus signal, the VCU compares the received calculation result with the self calculation result, if the calculation result is the same as the self calculation result, the authentication is successful, the VCU sends an authentication success status signal to the vehicle-mounted TBOX, if the authentication is unsuccessful, the VCU sends an authentication unsuccessful status signal to the vehicle-mounted TBOX, and the vehicle-mounted TBOX reports to the TSP platform and is pushed to the mobile terminal to cause 'remote control failure';
after the remote authentication is successful, the VCU sends a high-voltage request instruction to execute the local high-voltage process;
after receiving the remote authentication success signal and the air conditioner control enabling signal sent by the VCU, the vehicle-mounted TBOX sends a remote control state signal and simultaneously sends an air conditioner control instruction and an air conditioner starting time signal set by a user;
after receiving the remote control instruction, the air conditioner executes the action of remote air conditioner cooling/heating, feeds the air conditioner state back to the vehicle-mounted TBOX and starts timing, and after the timing is finished, the air conditioner is automatically closed, or the vehicle-mounted TBOX timing module times, and after the timing is finished, the air conditioner is closed;
after receiving a state signal that the air conditioner is started successfully, the vehicle-mounted TBOX uploads information to the TSP platform, and sends information of 'successful start of the remote air conditioner' to the mobile terminal;
if the remote air conditioner is not started successfully, the vehicle-mounted TBOX uploads the state information of the air conditioner which is not started to the TSP platform, and the TSP platform sends the information of 'remote air conditioner start failure' to the mobile terminal;
authentication request timeout: if the random number message sent by the VCU is not detected within the time T1 after the vehicle-mounted TBOX initiates the authentication request, the vehicle-mounted TBOX initiates the request again, the random number message sent by the VCU is not detected within the time T1, the vehicle-mounted TBOX initiates a third request, the random number message sent by the VCU is not detected within the time T1, the vehicle-mounted TBOX authentication request is overtime, overtime information is reported to the TSP platform, and the TSP platform pushes the information of 'remote control failure' to the mobile terminal;
response result time-out: after sending a random number message, the VCU continuously detects a response result message sent by the vehicle-mounted TBOX; if the response result message is not received within the time T2, the VCU considers that the authentication is overtime and sends an authentication failure signal, the vehicle-mounted TBOX uploads the authentication failure information to the TSP platform, and the TSP platform pushes the information of the remote control failure to the mobile terminal;
authentication state timeout: after the vehicle-mounted TBOX sends the calculation result to the VCU, if the authentication result message is not received within the time T3, the vehicle-mounted TBOX considers that the authentication is overtime, the vehicle-mounted TBOX uploads the information of the authentication failure to the TSP platform, and the TSP platform pushes the information of the remote control failure to the user.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.