[go: up one dir, main page]

WO2025161731A1 - Vehicle remote control method and apparatus, server, vehicle, and storage medium - Google Patents

Vehicle remote control method and apparatus, server, vehicle, and storage medium

Info

Publication number
WO2025161731A1
WO2025161731A1 PCT/CN2024/139381 CN2024139381W WO2025161731A1 WO 2025161731 A1 WO2025161731 A1 WO 2025161731A1 CN 2024139381 W CN2024139381 W CN 2024139381W WO 2025161731 A1 WO2025161731 A1 WO 2025161731A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
target vehicle
server
mqtt
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/139381
Other languages
French (fr)
Chinese (zh)
Inventor
刘波
权香妮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Geely Automobile Research Institute Ningbo Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Geely Automobile Research Institute Ningbo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Geely Automobile Research Institute Ningbo Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Publication of WO2025161731A1 publication Critical patent/WO2025161731A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal

Definitions

  • the present application relates to vehicle communication technology, and in particular to a method, device, server, vehicle and storage medium for remote control of a vehicle.
  • MQTT Message Queuing Telemetry Transport
  • IoV Internet of Vehicles
  • TCAM Traffic Control and Monitoring Module
  • the present application provides a method, device, server, vehicle and storage medium for remote control of a vehicle, which are used to solve the problem of service life of vehicle batteries.
  • the present application provides a method for remotely controlling a vehicle, applied to a server, the method comprising:
  • a connection status of the target vehicle according to a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle corresponding to the target vehicle identifier, wherein the target vehicle is determined to be online when the status of the MQTT connection is connected, and the target vehicle is determined to be offline when the status of the MQTT connection is disconnected;
  • control instruction is sent to the target vehicle via MQTT.
  • the method further includes:
  • the method further includes:
  • the MQTT connection with the target vehicle is disconnected.
  • connection time periods corresponding to vehicles of different energy types are different, and the energy types include pure electric type and non-pure electric type.
  • the present application further provides a vehicle remote control method, applied to a vehicle, the method comprising:
  • the energy type of the vehicle includes a pure electric type and a non-pure electric type
  • the method further includes:
  • the MQTT connection is maintained with the server through the communication module, and the SOC is placed in a dormant state;
  • the MQTT connection with the server is maintained through the communication module within a preset connection time period, and the SOC is placed in a sleep state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected.
  • the method includes:
  • the SOC is awakened, and the control instruction is sent to the SOC for execution.
  • the method further includes:
  • the MQTT connection with the server is disconnected.
  • the present application further provides a vehicle remote control device, the device comprising:
  • a receiving module configured to receive a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction;
  • a judgment module configured to determine a connection status of the target vehicle according to a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle corresponding to the target vehicle identifier, wherein the target vehicle is determined to be online when the status of the MQTT connection is connected, and the target vehicle is determined to be offline when the status of the MQTT connection is disconnected;
  • a first sending module is used to send a text message SMS to wake up the target vehicle if the target vehicle is offline;
  • the second sending module is used to send the control instruction to the target vehicle through MQTT after the target vehicle is awakened.
  • the present application further provides a vehicle remote control device, the device comprising:
  • a receiving module receives a short message SMS sent by a server, wherein the SMS is used to wake up the vehicle;
  • a wake-up module is used to wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module;
  • the execution module is used to receive the control instruction sent by the server through MQTT and execute the control instruction.
  • the present application further provides a server, comprising:
  • a processor a memory connected to the processor, and a communication interface for interacting with other devices, wherein the processor is used to execute the vehicle remote control method described in any one of the first aspects.
  • the present application further provides a vehicle, comprising a vehicle body and a controller;
  • the controller is used to execute the vehicle remote control method described in any one of the second aspects.
  • the present application also provides a computer-readable storage medium, which stores computer-executable instructions.
  • the computer-executable instructions are executed by a processor, they are used to implement the vehicle remote control method as described in any one of the first aspect or the second aspect.
  • the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the vehicle remote control method as described in any one of the first aspect or the second aspect.
  • the present application provides a method, device, server, vehicle and storage medium for remote control of a vehicle, the method comprising: a server receiving a request for controlling a vehicle sent by a user terminal device; determining the connection status of the target vehicle based on the status of the MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and is determined to be offline when the MQTT connection status is disconnected; if the target vehicle is offline, sending an SMS message (SMS) to wake up the target vehicle; after the target vehicle is woken up, an MQTT connection is established with the server, and the server sends the control instruction to the target vehicle via MQTT for execution.
  • SMS SMS
  • This method can reduce the loss of static current on the vehicle side, avoid power loss when the vehicle is awake for a long time, and thus improve battery life.
  • SMS and MQTT can be applied to a variety of network environments.
  • FIG1 is a schematic diagram of an application scenario of the present application.
  • FIG2 is a flow chart of a first embodiment of a method for remotely controlling a vehicle provided by the present application
  • FIG3 is a flow chart of a second embodiment of a method for remotely controlling a vehicle provided by the present application.
  • FIG4 is a flow chart of a third embodiment of the vehicle remote control method provided by the present application.
  • FIG5 is a flow chart of a fourth embodiment of a method for remotely controlling a vehicle provided by the present application.
  • FIG6 is a schematic structural diagram of a first embodiment of a vehicle remote control device provided by the present application.
  • FIG7 is a schematic structural diagram of a second embodiment of a vehicle remote control device provided by the present application.
  • FIG8 is a schematic diagram of the structure of a server provided in this application.
  • Message Queuing Telemetry Transport uses a publish/subscribe-based communication model in which devices can publish (send) messages and subscribe (receive) topics of interest. It usually has low latency and is suitable for application scenarios that require high real-time performance.
  • SMS Short Messaging Service
  • Telematics Service Provider responsible for providing remote vehicle services such as remote monitoring and remote control. Through the TSP, users can remotely manage vehicle functions such as vehicle positioning and remote unlocking.
  • Telematics Communication Access Module acts as the communication hub between the vehicle and the Internet of Vehicles service platform, responsible for handling communication-related tasks, including receiving instructions from the TSP and passing them to other control modules inside the vehicle.
  • the data link used by users to activate vehicle-side services via mobile applications is long, spanning the APP, TSP, TCAM, the in-vehicle data exchange gateway (BGM), and the onboard electronic controller, spanning the mobile phone, cloud, and vehicle systems.
  • the TCAM is a key node responsible for vehicle-cloud communication.
  • the current mainstream method generally uses SMS wake-up mode, which is a traditional SMS technology solution.
  • SMS wake-up mode is a traditional SMS technology solution.
  • the TSP side wakes up the vehicle's TCAM through the operator's SMS message.
  • the TCAM completes the network and sends the command to the vehicle.
  • the execution results are fed back to the app.
  • Another method is to use a car networking solution based on MQTT technology (commonly known as a long connection method) to achieve vehicle-to-vehicle connection and control services in pure electric and extended-range vehicles.
  • MQTT technology features low latency and high success rate.
  • MQTT technology has certain disadvantages in weak network environments (such as underground garages).
  • weak network environments such as underground garages.
  • the vehicle-side TCAM will be in an awake state for a long time, so its static current consumption will be significantly increased, which will have a certain impact on the frequency of intelligent charging, the static calibration of the BMS, the battery life, and the locking time in the absence of charging.
  • the inventors discovered during their research in this field that a solution that integrates MQTT and SMS could be used.
  • the vehicle connects to the server and sends control commands via MQTT.
  • the vehicle is disconnected from the server.
  • commands are sent via SMS, thereby extending the service life of the vehicle battery.
  • the present application proposes a method, apparatus, server, vehicle, and storage medium for remote vehicle control.
  • Figure 1 is a schematic diagram of the application scenario of this application, which includes three major systems: terminal devices, cloud servers, and vehicle-side systems.
  • the application on the user terminal device connects to the cloud server, and the cloud server establishes a connection with the vehicle-side system to complete the issuance of user remote commands.
  • mobile phones, tablets, and smart wearable devices are all terminal devices.
  • the vehicle side is not limited to any type of vehicle, but must be able to communicate with the server.
  • FIG2 is a flow chart of a first embodiment of a method for remotely controlling a vehicle provided by the present application. As shown in FIG2 , the method includes the following steps:
  • a user terminal device sends a vehicle control request, where the vehicle control request includes a target vehicle identifier and a control instruction.
  • the vehicle control request includes the target vehicle identification and control instructions to be controlled, such as remote unlocking/locking, remote opening of the sunroof, remote opening of the air conditioner, remote seat heating, checking tire pressure, checking driving logs, and other operations.
  • S102 The server receives a vehicle control request sent by a user terminal device.
  • S103 Determine the connection status of the target vehicle according to the status of the MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and the target vehicle is determined to be offline when the MQTT connection status is disconnected.
  • the cloud server connects to each vehicle and displays its connection status. If the connection status is disconnected, it means the vehicle is offline.
  • the MQTT connection status can be changed by the server or the vehicle.
  • the server periodically sends a heartbeat message to the target vehicle. If the server does not receive a response from the target vehicle within a certain period of time, it can determine that the target vehicle's MQTT connection status is disconnected. If the vehicle is displayed as offline, it can send another heartbeat message to confirm that the target vehicle is offline when a control request is received.
  • the MQTT protocol allows the client to use a persistent session identifier when establishing a connection.
  • the server can record the persistent session identifiers of each target vehicle and check their status to determine whether the connection still exists.
  • a last wish message is a message sent by a vehicle when the connection is disconnected.
  • the server can learn the connection status of the target vehicle when it subscribes to the last wish topic of the target vehicle.
  • the target vehicle can periodically publish its own status information to a specific MQTT topic, and the server subscribes to this topic to understand the connection status of the target vehicle.
  • the server may obtain the latest status of the target vehicle by subscribing to a retention message. If no retention message is received, the server may determine that the connection status is disconnected.
  • step 107 If the target vehicle is online, execute step 107 .
  • the target vehicle may be offline due to active disconnection or poor network, making it impossible to send control instructions via MQTT. Therefore, the vehicle needs to be woken up first.
  • the SMS method has strong adaptability to weak networks, so the server wakes up the vehicle via SMS.
  • the server system prepares an SMS message containing specific instructions in advance, including a command to wake up the target vehicle.
  • the server sends the SMS message to the SIM card of the target vehicle via a mobile network through an SMS gateway or SMS service provider.
  • the vehicle receives the SMS message sent by the server.
  • the target vehicle receives a text message sent via SMS and parses the instruction content in the text message, which is usually a wake-up instruction, to perform subsequent operations.
  • the vehicle wakes up the TCAM's system-on-chip (SoC) and the communication module according to the wake-up command in the SMS.
  • SoC system-on-chip
  • the communication module establishes an MQTT connection with the server over the mobile network for subsequent communication.
  • the server sends the control instruction to the target vehicle via MQTT.
  • the server when the server detects that the target vehicle's connection status has become online, it sends the control command to the target vehicle via MQTT.
  • the target vehicle receives the control instruction sent by the server via MQTT and executes the control instruction.
  • the target vehicle forwards the control instructions sent by the communication module server through MQTT to the in-vehicle data interaction gateway (BGM), and the BGM then forwards the instructions to the electronic control unit of the corresponding function for execution.
  • BGM in-vehicle data interaction gateway
  • the target vehicle on the server side is online, that is, the target vehicle maintains an MQTT connection with the server, but the main control chip SOC in the TCAM is put into a sleep state to reduce power loss. After receiving the control instruction, the SOC is awakened and the control instruction is forwarded to the electronic control unit of the corresponding function.
  • the MQTT connection is actively disconnected, putting the vehicle offline.
  • This embodiment provides a method for remote control of a vehicle, wherein a server receives a request for controlling a vehicle sent by a user terminal device; the connection status of the target vehicle is determined based on the status of the MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and the target vehicle is determined to be offline when the MQTT connection status is disconnected; if the target vehicle is offline, a text message SMS is sent to wake up the target vehicle; after the target vehicle is woken up, an MQTT connection is established with the server, and the server sends the control instruction to the target vehicle via MQTT for execution.
  • This method can reduce the loss of static current on the vehicle side, avoid power loss when the vehicle is awake for a long time, and thus improve battery life.
  • SMS and MQTT can be applied to a variety of network environments.
  • FIG3 is a flow chart of a second embodiment of the method for remotely controlling a vehicle provided by the present application. As shown in FIG3 , based on the above-mentioned first embodiment, after the control instruction is executed on the vehicle side, the following steps are further included:
  • the target vehicle returns the command execution result to the server via MQTT.
  • the target vehicle In this step, the target vehicle generates a command execution result, which indicates the execution status of the command, such as success, failure, or other specific status information.
  • the command execution result is packaged into a message via MQTT and published to the result topic that the server has subscribed to in advance.
  • the server returns the command execution result to the user's terminal device via MQTT.
  • the server subscribes to the result topic associated with the target vehicle via MQTT and receives the command execution results returned by the target vehicle.
  • the server generates a corresponding result message, including the execution status and possible detailed information, and sends the generated result message via MQTT to the topic subscribed by the user terminal device, or sends the command execution results to the topic subscribed by the user terminal device.
  • the terminal device displays the execution result.
  • the user's terminal device subscribes to the topic related to the target vehicle through MQTT, so it can receive the command execution result message sent by the server.
  • This embodiment returns the execution results from the vehicle to the user's terminal device via MQTT, which has low latency and high success rate, and reduces the possibility of message sending failures due to network connection problems.
  • FIG4 is a flow chart of a third embodiment of the vehicle remote control method provided by the present application. As shown in FIG4 , the server side further includes the following steps:
  • the server side pre-sets the time-sharing scheduling strategy, that is, sets a preset connection time period.
  • the server establishes an MQTT connection with the vehicle.
  • the preset time period can be set to different time periods as needed. For example, the time period from 6:00 to 22:00 when users frequently use the car is the preset time period, and the time period from 22:00 to 6:00 the next day when users do not frequently use the car is the non-preset time period.
  • the time-sharing adjustment strategy can also be set according to the different energy types of the vehicle (such as BEV ⁇ PHEV ⁇ extended range), different battery types (lithium battery/lead-acid battery), different vehicle types, and ambient temperature types. It also supports user-defined settings.
  • the cloud server divides the time periods when the car is frequently used as preset time periods and the other time periods as non-preset time periods based on the user's car usage history data.
  • the preset time period is 24 hours a day.
  • the vehicle's communication module maintains an MQTT connection with the cloud server, maintaining a heartbeat. From 6:00 AM to 10:00 PM, the vehicle wakes up the TCAM every 10 minutes. That is, the TCAM's main control chip and microprocessor are in a dormant state. The vehicle wakes up once every preset time period and maintains the preset time after waking up. From 10:00 PM to 6:00 AM the next day, the TCAM wakes up every 60 minutes.
  • the preset time period is set from 6:00 to 22:00.
  • the vehicle's communication module and the cloud server remain in an MQTT connection state, and the heartbeat is maintained; during the non-preset time period, the vehicle's communication module and the cloud server's long connection is disconnected, and only SMS communication with the vehicle is supported.
  • the server records the target vehicle's start-up and shutdown times. Based on the current time and the target vehicle's shutdown time, the shutdown time is determined. If the shutdown time exceeds a preset duration—for example, more than 14 days since the last vehicle start (i.e., the shutdown duration)—the user has no plans to use the vehicle within that timeframe, the connection to the target vehicle is disconnected, and the time-sharing scheduling strategy is no longer implemented to reduce power consumption. However, this does not affect vehicle wake-up via SMS.
  • a preset duration for example, more than 14 days since the last vehicle start (i.e., the shutdown duration)—the user has no plans to use the vehicle within that timeframe, the connection to the target vehicle is disconnected, and the time-sharing scheduling strategy is no longer implemented to reduce power consumption. However, this does not affect vehicle wake-up via SMS.
  • the preset duration can be adjusted as needed. It differs between pure electric and non-pure electric vehicles. For example, the preset duration for pure electric vehicles is 14 days, while the preset duration for non-pure electric vehicles is 7 days. Non-pure electric vehicles have smaller battery capacities, so the preset duration is shorter than that for pure electric vehicles.
  • the subsequent time-sharing adjustment strategy is executed.
  • S203 Determine whether the current moment is within a preset connection time period corresponding to the target vehicle identifier.
  • the current time acquired in real time, is used to determine whether the target vehicle is within the preset connection time period corresponding to the target vehicle ID.
  • Each vehicle participating in the time-sharing scheduling strategy has a different preset connection time period. Therefore, the current time is used to determine whether the target vehicle is within the corresponding preset connection time period.
  • step S204 is executed.
  • step S205 is executed.
  • the server will actively disconnect the MQTT connection with the target vehicle.
  • the TCAM of the target vehicle will be in a dormant state after the preset offline time.
  • S205 Establish an MQTT connection with the target vehicle.
  • the MQTT connection status with the target vehicle is detected.
  • the target vehicle is online, there is no need to establish a connection.
  • an MQTT connection with the target vehicle is established.
  • both the vehicle side and the server side store a preset connection time period.
  • the vehicle side wakes up the communication module of the TCAM, and the server and the communication module can establish an MQTT connection.
  • the server when a preset time period is reached, the server sends an SMS message to the vehicle to activate the vehicle TCAM and establish an MQTT connection with the vehicle TCAM.
  • the server side sets the MQTT connection time period with each vehicle through a time-sharing scheduling strategy.
  • the time-sharing scheduling strategy can be set according to the vehicle energy type or user historical behavior data. If the current moment does not belong to the preset connection time period, the MQTT connection with the vehicle is disconnected. If the current moment belongs to the preset connection time period, the MQTT connection with the vehicle is established. Moreover, if the vehicle's ignition is turned off for more than the preset duration, the MQTT connection with the target vehicle is disconnected and the time-sharing adjustment strategy is no longer executed.
  • the time-sharing modulation strategy allows for flexible scheduling that conforms to user behavior, reduces static current loss, and improves battery life without affecting the user's vehicle control experience. This improves the adaptability of different vehicle types to achieve the optimal vehicle control optimization solution under the hardware conditions of different vehicle categories.
  • the MQTT connection with the server is maintained through the communication module, and the SOC is put into sleep mode.
  • the preset connection time period for pure electric vehicles is set to all day, that is, the MQTT connection is maintained with the server through the communication module, and the heartbeat is maintained, but in order to save power, other components in the vehicle need to be put into sleep mode.
  • the vehicle communication module After the vehicle communication module is started, it sends authentication information, and the server establishes an MQTT connection with the vehicle communication module after verifying the identity information.
  • the communication module subscribes to topics related to the target vehicle so that it can receive instructions from the server.
  • the SOC main control chip performs preparatory work, such as saving the current state and shutting down unnecessary modules or peripherals in order to enter the sleep state; the communication module sends a command or signal to notify the SOC to enter the sleep state; the SOC shuts down the main processor and other unnecessary power-consuming modules according to the instructions of the communication module.
  • the communication module While the SOC is in sleep mode, the communication module continues to maintain the MQTT connection, and the heartbeat mechanism is used between the device and the server to ensure that the connection remains active.
  • the server side shows that the vehicle is online. When the server has instructions to send to the target vehicle, it is sent to the communication module via MQTT messages. After the communication module receives the instruction from the server, it needs to detect whether the SOC is in a dormant state.
  • the communication module sends a wake-up signal to the SOC so that the SOC wakes up from the dormant state. After the SOC is awakened, it processes the received instruction and forwards the instruction to the corresponding execution module. When the SOC is not in a dormant state, the control instruction is sent to the SOC. After the SOC executes the instruction, the communication module sends the instruction execution result to the server through MQTT, including the execution status and related information. After the SOC completes instruction processing, it maintains the preset time and continues to remain in the dormant state if no other instructions are issued.
  • This method can ensure that while the SOC is in sleep mode, the MQTT connection with the server is maintained through the communication module, so that remote commands can be issued and execution results can be returned.
  • the MQTT connection with the server is maintained through the communication module during the preset connection time period, and the SOC is put into a dormant state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected.
  • the process is the same as that of the pure electric type within the preset connection time period, but outside the preset connection time period, the MQTT between the vehicle and the server will also be disconnected, and the communication module will enter a dormant state, further reducing power consumption.
  • FIG5 is a flow chart of a fourth embodiment of the method for remotely controlling a vehicle provided by the present application. As shown in FIG5 , the vehicle side further includes the following steps:
  • the vehicle initiates an operation to obtain vehicle information based on certain trigger conditions, such as timing, event triggering, or request.
  • Vehicle information includes the current vehicle temperature and remaining battery power.
  • the vehicle's internal temperature sensors and battery management module obtain the vehicle's ambient temperature and remaining battery power.
  • the MQTT connection with the server needs to be disconnected, and the main control chip, processor and other devices need to be put into sleep mode.
  • the preset temperature value and the preset power value can be set as needed. For example, in non-pure electric vehicles, it is set that when the temperature is below -18°C or when the power battery SOC is below 20%, the MQTT connection with the server will be disconnected; in pure electric vehicles, it is set that when the temperature is below -18°C or when the power battery SOC is below 10%, the MQTT connection with the server will be disconnected. It should be understood that the preset temperature value and preset power value of different vehicles can be set according to the vehicle conditions. Different battery types have different decay cycles, so the preset power value can be set to different power levels.
  • the vehicle side actively disconnects the MQTT connection.
  • the server side can still wake up the vehicle through SMS to establish a connection. After the connection is established, it still needs to be disconnected when there is no communication data.
  • the following example illustrates how to issue commands while maintaining a long MQTT connection.
  • the vehicle-side TCAM and the cloud-side TSP maintain a long connection through the MQTT protocol.
  • the TSP forwards the unlock command to the TCAM through an MQTT message after receiving the unlock command.
  • the TCAM addresses the ECU through the in-vehicle data interaction gateway BGM, and forwards the command to the body domain controller ECU through the vehicle network to complete the door unlocking.
  • the direct result is returned to the TCAM through the BGM, and the TCAM returns it to the TSP.
  • the TSP returns the result code of the command execution to the APP.
  • the APP prompts the APP side that the vehicle has been unlocked based on the returned result code.
  • the car model status changes to unlocked
  • the unlock switch changes from closed to unlocked.
  • dial-up can be used instead of SMS, combining dial-up with MQTT technology. That is, when the vehicle is offline, dial-up can be used to wake up the vehicle, and after waking up, the vehicle establishes an MQTT connection with the server. This method allows for faster message delivery and more stable connections even under unstable network conditions.
  • a private TCP protocol can be integrated with an SMS solution to facilitate massive message communication across millions of vehicle computers.
  • the private TCP protocol provides more refined control and more efficient communication.
  • the server establishes a connection with the vehicle module via the private TCP protocol, and the vehicle's communication module receives instructions from the server via the private TCP protocol. Even when the vehicle is offline, SMS can still be used to wake it up. After waking up, the vehicle establishes a TCP connection with the server.
  • FIG6 is a schematic structural diagram of a first embodiment of a vehicle remote control device provided by the present application. As shown in FIG6 , the device 600 includes:
  • a receiving module 611 is configured to receive a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction;
  • a determination module 612 for determining a connection status of the target vehicle based on a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and is determined to be offline when the MQTT connection status is disconnected;
  • the first sending module 613 is used to send a text message SMS to wake up the target vehicle if the target vehicle is offline;
  • the second sending module 614 is configured to send the control instruction to the target vehicle via MQTT after the target vehicle is awakened.
  • the device further includes an acquisition module and a control module:
  • the acquisition module is used to acquire the current time in real time and determine whether the current time is within the preset connection time period corresponding to the target vehicle identifier;
  • the control module is used for:
  • control module is further configured to:
  • the MQTT connection with the target vehicle is disconnected.
  • connection time periods corresponding to vehicles of different energy types are different, and the energy types include pure electric type and non-pure electric type.
  • the vehicle remote control device provided in the embodiment of the present application is used to implement the vehicle remote control method described in any one of the server side embodiments of the aforementioned method. Its implementation principle and technical effects are similar and will not be described in detail here.
  • the server On the server side, the server is divided into three modules: the cloud service module handles the interaction with the terminal device, the policy engine module is responsible for managing the vehicle's time-sharing scheduling strategy, and the MQTT service provider (Broker) is responsible for maintaining communication with the vehicle end.
  • the cloud service module handles the interaction with the terminal device
  • the policy engine module is responsible for managing the vehicle's time-sharing scheduling strategy
  • the MQTT service provider (Broker) is responsible for maintaining communication with the vehicle end.
  • FIG7 is a schematic diagram of the structure of a second embodiment of a vehicle remote control device provided by the present application. As shown in FIG7 , the device includes:
  • Receiving module 711 receiving SMS messages sent by the server, the SMS being used to wake up the vehicle;
  • a wake-up module 712 is used to wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module;
  • the execution module 713 is configured to receive the control instruction sent by the server via MQTT and execute the control instruction.
  • the energy type of the vehicle includes a pure electric type and a non-pure electric type
  • the apparatus further includes a control module 714, and the control module 714 is configured to:
  • the MQTT connection is maintained with the server through the communication module, and the SOC is placed in a dormant state;
  • the MQTT connection with the server is maintained through the communication module within a preset connection time period, and the SOC is placed in a sleep state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected.
  • the control module 714 is further configured to:
  • the SOC is awakened, and the control instruction is sent to the SOC for execution.
  • the device further includes an acquisition module, the acquisition module being configured to acquire the temperature and remaining battery power of the vehicle;
  • the control module 714 is further configured to disconnect the MQTT connection with the server if the temperature is lower than a preset temperature value or the remaining battery power is lower than a preset power value.
  • the vehicle remote control device provided in the embodiment of the present application is used to implement any vehicle remote control method on the vehicle side in the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.
  • FIG8 is a schematic diagram of the structure of a server provided by the present application. As shown in FIG8 , the server 800 includes:
  • a processor 811 a memory 812 in communication with the processor, and a communication interface 813 for interacting with other devices;
  • the memory 812 stores computer-executable instructions
  • the processor 811 executes the computer-executable instructions stored in the memory to implement the vehicle remote control method described in any one of the above-mentioned server-side method embodiments.
  • the above-mentioned components of the server 800 may be connected via a system bus.
  • the memory 812 may be a separate storage unit or a storage unit integrated in the processor 811.
  • the number of the processor 811 may be one or more.
  • the processor 811 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc.
  • the general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly implemented as being executed by a hardware processor, or by a combination of hardware and software modules in the processor.
  • the system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • System buses can be divided into address buses, data buses, and control buses.
  • the diagram uses a single thick line, but this does not imply a single bus or type of bus.
  • Memory may include random access memory (RAM) and non-volatile memory (NVM), such as at least one disk drive.
  • RAM random access memory
  • NVM non-volatile memory
  • the aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.
  • the server provided in the embodiment of the present application is used to implement the vehicle remote control method described in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.
  • An embodiment of the present application further provides a vehicle, the vehicle comprising a vehicle body and a controller;
  • the controller includes: a processor, a memory connected to the processor, and a communication module;
  • the processor executes the computer-executable instructions stored in the memory to implement the vehicle remote control method described in any of the above-mentioned vehicle-side method embodiments.
  • the vehicle also includes a temperature sensor that senses the ambient temperature of the vehicle and transmits the sensed temperature to the processor via the vehicle network.
  • the vehicle provided in the embodiment of the present application is used to implement the method of vehicle remote control described in any one of the vehicle side embodiments of the aforementioned method. Its implementation principle and technical effects are similar and will not be described in detail here.
  • the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the equity data processing method as described in any one of the aforementioned method embodiments.
  • the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the vehicle remote control method as described in any one of the first aspect or the second aspect.
  • the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchlink DRAM
  • DR RAM direct RAMbus RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present application provides a vehicle remote control method and apparatus, a server, a vehicle, and a storage medium. The method comprises: a server receiving a vehicle control request sent by a user terminal device; on the basis of the state of a MQTT connection with a target vehicle corresponding to a target vehicle identifier, determining a connection state of the target vehicle, wherein when the state of the MQTT connection is a connected state, the target vehicle is determined to be online, and when the state of the MQTT connection is a disconnected state, the target vehicle is determined to be offline; if the target vehicle is offline, sending a short messaging service (SMS) to wake up the target vehicle; and when the target vehicle is woken up, establishing a MQTT connection with the server, and by means of a MQTT, the server sending a control instruction to the target vehicle for execution. By means of the present method, the loss of a quiescent current on a vehicle side can be reduced to avoid the loss of power caused when a vehicle remains in a wake-up state for a long time, thereby prolonging the service life of a battery; in addition, the method can be applicable to a variety of network environments by means of SMS and MQTT integration.

Description

车辆远程控制的方法、装置、服务器、车辆及存储介质Vehicle remote control method, device, server, vehicle and storage medium

本申请要求于2024年01月29日提交中国专利局、申请号为202410122783.4、申请名称为“车辆远程控制的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on January 29, 2024, with application number 202410122783.4 and application name “Method and Device for Remote Control of Vehicle”, the entire contents of which are incorporated by reference into this application.

技术领域Technical Field

本申请涉及车辆通信技术,尤其涉及一种车辆远程控制的方法、装置、服务器、车辆及存储介质。The present application relates to vehicle communication technology, and in particular to a method, device, server, vehicle and storage medium for remote control of a vehicle.

背景技术Background Art

随着车联网以及移动互联网的发展,用户对于车联网的需求不再仅限于车机端产品服务的使用,对于手机端与车机端互联的需求也日益增加,通过手机应用远程控制车端服务的开启,例如远程解锁、远程开启空调等,给客户用车带来了极大的便利性。With the development of the Internet of Vehicles and mobile Internet, users' demand for the Internet of Vehicles is no longer limited to the use of vehicle-side products and services. The demand for the interconnection between mobile phones and vehicle-side is also increasing. Remote control of vehicle-side services through mobile phone applications, such as remote unlocking and remote air conditioning, has brought great convenience to customers' car use.

消息队列遥测传输协议(Message Queuing Telemetry Transport,简称:MQTT)作为面向下一代车联网的技术,具有低时延、高成功率的特点,但基于MQTT的技术方案智能车载通信终端(Traffic Control and Monitoring Module,简称:TCAM)将长时间处于唤醒状态,因此其静态电流消耗将明显增加,从而对蓄电池的使用寿命产生了一定的影响。Message Queuing Telemetry Transport (MQTT), a technology for the next-generation Internet of Vehicles (IoV), features low latency and a high success rate. However, the intelligent vehicle communication terminal (Traffic Control and Monitoring Module, TCAM) based on MQTT will remain awake for a long time, significantly increasing its quiescent current consumption and impacting the battery life.

因此,如何在不影响用户的车辆控制体验下,提升车辆蓄电池的使用寿命时亟待解决的问题。Therefore, how to improve the service life of vehicle batteries without affecting the user's vehicle control experience is an urgent problem to be solved.

发明内容Summary of the Invention

本申请提供一种车辆远程控制的方法、装置、服务器、车辆及存储介质,用以解决车辆蓄电池的使用寿命的问题。The present application provides a method, device, server, vehicle and storage medium for remote control of a vehicle, which are used to solve the problem of service life of vehicle batteries.

第一方面,本申请提供一种车辆远程控制的方法,应用于服务器,所述方法包括:In a first aspect, the present application provides a method for remotely controlling a vehicle, applied to a server, the method comprising:

接收用户终端设备发送的控制车辆请求,所述控制车辆请求中包括目标车辆标识和控制指令;Receiving a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction;

根据与所述目标车辆标识对应的目标车辆之间的消息队列遥测传输协议MQTT连接的状态,确定所述目标车辆的连接状态,其中,所述MQTT连接的状态为连接时确定所述目标车辆在线,所述MQTT连接的状态为断开时确定所述目标车辆离线;Determining a connection status of the target vehicle according to a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle corresponding to the target vehicle identifier, wherein the target vehicle is determined to be online when the status of the MQTT connection is connected, and the target vehicle is determined to be offline when the status of the MQTT connection is disconnected;

若所述目标车辆离线,发送短信消息SMS唤醒目标车辆;If the target vehicle is offline, sending a text message SMS to wake up the target vehicle;

在所述目标车辆被唤醒之后,通过MQTT将所述控制指令发送到所述目标车辆。After the target vehicle is awakened, the control instruction is sent to the target vehicle via MQTT.

可选的,所述方法还包括:Optionally, the method further includes:

实时获取当前时刻,并确定所述当前时刻是否处于所述目标车辆标识对应的预设连接时间段内;Acquire the current time in real time, and determine whether the current time is within a preset connection time period corresponding to the target vehicle identifier;

若当前时刻不处于所述预设连接时间段内,则断开与所述目标车辆的MQTT连接;If the current time is not within the preset connection time period, disconnect the MQTT connection with the target vehicle;

若当前时刻处于所述预设连接时间段内,则建立与所述目标车辆的MQTT连接。If the current time is within the preset connection time period, an MQTT connection is established with the target vehicle.

可选的,所述方法还包括:Optionally, the method further includes:

若检测到所述目标车辆的熄火时间超过预设时长,断开与所述目标车辆的MQTT连接。If it is detected that the target vehicle is turned off for longer than a preset time, the MQTT connection with the target vehicle is disconnected.

可选的,不同能源类型的车辆对应的所述连接时间段不同,所述能源类型包括纯电类型和非纯电类型。Optionally, the connection time periods corresponding to vehicles of different energy types are different, and the energy types include pure electric type and non-pure electric type.

第二方面,本申请还提供一种车辆远程控制的方法,应用于车辆,所述方法包括:In a second aspect, the present application further provides a vehicle remote control method, applied to a vehicle, the method comprising:

接收服务器发送的短信消息SMS,所述SMS用于唤醒车辆;Receive a text message SMS sent by a server, where the SMS is used to wake up the vehicle;

唤醒主控芯片SOC以及通信模组,并通过所述通信模组建立与所述服务器之间的消息队列遥测传输协议MQTT连接;Wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module;

接收所述服务器通过MQTT发送的控制指令,并执行所述控制指令。Receive the control instruction sent by the server via MQTT and execute the control instruction.

可选的,所述车辆的能源类型包括纯电类型和非纯电类型;Optionally, the energy type of the vehicle includes a pure electric type and a non-pure electric type;

相应的,所述方法还包括:Accordingly, the method further includes:

若所述车辆属于纯电类型,则通过所述通信模组与所述服务器保持MQTT连接,并且将所述SOC置于休眠状态;If the vehicle is a pure electric vehicle, the MQTT connection is maintained with the server through the communication module, and the SOC is placed in a dormant state;

若所述车辆属于非纯电类型,则在预设连接时间段内通过所述通信模组与所述服务器保持MQTT连接,并且将所述SOC置于休眠状态,在所述预设连接时间段之外的时间,将所述通信模组与所述服务器之间的MQTT连接断开。If the vehicle is not a pure electric type, the MQTT connection with the server is maintained through the communication module within a preset connection time period, and the SOC is placed in a sleep state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected.

可选的,所述方法包括;Optionally, the method includes:

若在所述车辆与所述服务器保持MQTT连接时,接收到云端服务器下发的控制指令,则判断所述SOC是否处于休眠状态;If a control instruction sent by a cloud server is received while the vehicle maintains an MQTT connection with the server, determining whether the SOC is in a dormant state;

若所述SOC处于休眠状态,唤醒所述SOC,并将所述控制指令发送至所述SOC进行执行。If the SOC is in a dormant state, the SOC is awakened, and the control instruction is sent to the SOC for execution.

可选的,所述方法还包括:Optionally, the method further includes:

获取所述车辆的温度和剩余电池电量;obtaining the temperature and remaining battery power of the vehicle;

若所述温度低于预设温度值或者所述剩余电池电量低于预设电量值时,断开与所述服务器之间的MQTT连接。If the temperature is lower than a preset temperature value or the remaining battery power is lower than a preset power value, the MQTT connection with the server is disconnected.

第三方面,本申请还提供一种车辆远程控制的装置,所述装置包括:In a third aspect, the present application further provides a vehicle remote control device, the device comprising:

接收模块,用于接收用户终端设备发送的控制车辆请求,所述控制车辆请求中包括目标车辆标识和控制指令;A receiving module, configured to receive a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction;

判断模块,用于根据与所述目标车辆标识对应的目标车辆之间的消息队列遥测传输协议MQTT连接的状态,确定所述目标车辆的连接状态,其中,所述MQTT连接的状态为连接时确定所述目标车辆在线,所述MQTT连接的状态为断开时确定所述目标车辆离线;a judgment module, configured to determine a connection status of the target vehicle according to a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle corresponding to the target vehicle identifier, wherein the target vehicle is determined to be online when the status of the MQTT connection is connected, and the target vehicle is determined to be offline when the status of the MQTT connection is disconnected;

第一发送模块,用于若所述目标车辆离线,发送短信消息SMS唤醒目标车辆;A first sending module is used to send a text message SMS to wake up the target vehicle if the target vehicle is offline;

第二发送模块,用于在所述目标车辆被唤醒之后,通过MQTT将所述控制指令发送到所述目标车辆。The second sending module is used to send the control instruction to the target vehicle through MQTT after the target vehicle is awakened.

第四方面,本申请还提供一种车辆远程控制的装置,所述装置包括:In a fourth aspect, the present application further provides a vehicle remote control device, the device comprising:

接收模块,接收服务器发送的短信消息SMS,所述SMS用于唤醒车辆;A receiving module receives a short message SMS sent by a server, wherein the SMS is used to wake up the vehicle;

唤醒模块,用于唤醒主控芯片SOC以及通信模组,并通过所述通信模组建立与所述服务器之间的消息队列遥测传输协议MQTT连接;A wake-up module is used to wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module;

执行模块,用于接收所述服务器通过MQTT发送的控制指令,并执行所述控制指令。The execution module is used to receive the control instruction sent by the server through MQTT and execute the control instruction.

第五方面,本申请还提供一种服务器,所述服务器包括:In a fifth aspect, the present application further provides a server, comprising:

处理器,与所述处理器连接的存储器,以及与其他设备交互的通信接口,所述处理器用于执行第一方面任一项所述的车辆远程控制的方法。A processor, a memory connected to the processor, and a communication interface for interacting with other devices, wherein the processor is used to execute the vehicle remote control method described in any one of the first aspects.

第六方面,本申请还提供一种车辆,所述车辆包括车辆主体和控制器;In a sixth aspect, the present application further provides a vehicle, comprising a vehicle body and a controller;

所述控制器用于执行第二方面任一项所述的车辆远程控制的方法。The controller is used to execute the vehicle remote control method described in any one of the second aspects.

第七方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如第一方面或第二方面任一项所述的车辆远程控制的方法。In the seventh aspect, the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the vehicle remote control method as described in any one of the first aspect or the second aspect.

第八方面,本申请还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如第一方面或第二方面任一项所述的车辆远程控制的方法。In an eighth aspect, the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the vehicle remote control method as described in any one of the first aspect or the second aspect.

本申请提供一种车辆远程控制的方法、装置、服务器、车辆及存储介质,该方法包括:服务器接收用户终端设备发送的控制车辆请求;根据与目标车辆标识对应的目标车辆之间的MQTT连接的状态,确定目标车辆的连接状态,其中,MQTT连接的状态为连接时确定目标车辆在线,MQTT连接的状态为断开时确定目标车辆离线;若目标车辆离线,发送短信消息SMS唤醒目标车辆;目标车辆被唤醒之后,与服务器建立MQTT连接,服务器通过MQTT将控制指令发送到目标车辆进行执行。通过本方法可以减少车辆侧的静态电流的损耗,避免车辆长时间唤醒时的电量损耗,进而提升电池寿命,另外通过SMS和MQTT的方式可以适用多种网络环境。The present application provides a method, device, server, vehicle and storage medium for remote control of a vehicle, the method comprising: a server receiving a request for controlling a vehicle sent by a user terminal device; determining the connection status of the target vehicle based on the status of the MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and is determined to be offline when the MQTT connection status is disconnected; if the target vehicle is offline, sending an SMS message (SMS) to wake up the target vehicle; after the target vehicle is woken up, an MQTT connection is established with the server, and the server sends the control instruction to the target vehicle via MQTT for execution. This method can reduce the loss of static current on the vehicle side, avoid power loss when the vehicle is awake for a long time, and thus improve battery life. In addition, SMS and MQTT can be applied to a variety of network environments.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。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.

图1为本申请的应用场景示意图;FIG1 is a schematic diagram of an application scenario of the present application;

图2为本申请提供的车辆远程控制的方法的实施例一的流程示意图;FIG2 is a flow chart of a first embodiment of a method for remotely controlling a vehicle provided by the present application;

图3为本申请提供的车辆远程控制的方法的实施例二的流程示意图;FIG3 is a flow chart of a second embodiment of a method for remotely controlling a vehicle provided by the present application;

图4为本申请提供的车辆远程控制的方法的实施例三的流程示意图;FIG4 is a flow chart of a third embodiment of the vehicle remote control method provided by the present application;

图5为本申请提供的车辆远程控制的方法的实施例四的流程示意图;FIG5 is a flow chart of a fourth embodiment of a method for remotely controlling a vehicle provided by the present application;

图6为本申请提供的车辆远程控制的装置的实施例一的结构示意图;FIG6 is a schematic structural diagram of a first embodiment of a vehicle remote control device provided by the present application;

图7为本申请提供的车辆远程控制的装置的实施例二的结构示意图;FIG7 is a schematic structural diagram of a second embodiment of a vehicle remote control device provided by the present application;

图8为本申请提供的一种服务器的结构示意图。FIG8 is a schematic diagram of the structure of a server provided in this application.

通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.

具体实施方式DETAILED DESCRIPTION

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

首先对本申请所涉及的名词进行解释:First, let’s explain the terms involved in this application:

消息队列遥测传输协议(Message Queuing Telemetry Transport,简称:MQTT):使用基于发布/订阅的通信模式,其中设备可以发布(发送)消息,也可以订阅(接收)感兴趣的主题,通常具有较低的延迟,适用于需要实时性较高的应用场景。Message Queuing Telemetry Transport (MQTT): uses a publish/subscribe-based communication model in which devices can publish (send) messages and subscribe (receive) topics of interest. It usually has low latency and is suitable for application scenarios that require high real-time performance.

短信消息(Short Messaging Service,简称:SMS):在本申请中是指采用短信服务,通过移动网络基站直接发送文本消息到车辆。Short Messaging Service (SMS): In this application, it refers to the use of SMS service to send text messages directly to the vehicle through the mobile network base station.

车联网服务平台(Telematics Service Provider,简称:TSP):负责提供车辆远程服务,如远程监控、远程控制等。通过TSP,用户可以远程管理车辆功能,例如车辆定位、远程解锁等。Telematics Service Provider (TSP): Responsible for providing remote vehicle services such as remote monitoring and remote control. Through the TSP, users can remotely manage vehicle functions such as vehicle positioning and remote unlocking.

智能车载通信终端(Telematics Communication Access Module,简称:TCAM):充当车辆与车联网服务平台之间的通信枢纽,负责处理与通信相关的任务,包括接收来自TSP的指令,并将其传递给车辆内部的其他控制模块。Telematics Communication Access Module (TCAM): acts as the communication hub between the vehicle and the Internet of Vehicles service platform, responsible for handling communication-related tasks, including receiving instructions from the TSP and passing them to other control modules inside the vehicle.

目前各个主流车型基本上都支持通过手机远程控制车端服务的开启,给客户用车带来了极大的便利性。用户通过手机应用(Application,简称:APP)控制车端的服务启动的数据链路较长,从APP-TSP-TCAM-车内数据交互网关(BGM)-车载电子控制器,贯穿了手机端、云端、车端三大系统,其中,TCAM是负责车云通信的重要节点。Currently, nearly all mainstream car models support remote control of vehicle-side services via mobile phone, bringing significant convenience to customers. The data link used by users to activate vehicle-side services via mobile applications (APPs) is long, spanning the APP, TSP, TCAM, the in-vehicle data exchange gateway (BGM), and the onboard electronic controller, spanning the mobile phone, cloud, and vehicle systems. The TCAM is a key node responsible for vehicle-cloud communication.

目前主流的方法普遍采用短信唤醒模式,即传统的SMS技术方案,在车辆休眠之后,当APP发出远程控车指令时,TSP侧通过运营商短信将车端的TCAM唤醒,TCAM唤醒之后完成驻网,同时将指令下发至车端,车端完成一系列的操作之后再将车端的执行结果反馈至APP端。还有一种方法是在纯电和增程车型之中采用基于MQTT技术的车联网方案(即通常说的长连接方式)实现车联车控服务。The current mainstream method generally uses SMS wake-up mode, which is a traditional SMS technology solution. After the vehicle is dormant, when the app issues a remote vehicle control command, the TSP side wakes up the vehicle's TCAM through the operator's SMS message. After waking up, the TCAM completes the network and sends the command to the vehicle. After the vehicle completes a series of operations, the execution results are fed back to the app. Another method is to use a car networking solution based on MQTT technology (commonly known as a long connection method) to achieve vehicle-to-vehicle connection and control services in pure electric and extended-range vehicles.

MQTT技术作为面向下一代车联网的技术具有低时延、高成功率的特点,但是相较于SMS方案,MQTT技术方案在弱网环境下(如地下车库)存在一定的劣势,同时在MQTT技术方案中,车端TCAM将长时间处于唤醒状态,因此其静态电流消耗将明显增加,从而对智能补电的频率、BMS的静态校准、蓄电池的使用寿命以及无补电情况下的锁电时间都产生了一定的影响。As a technology for the next-generation Internet of Vehicles, MQTT technology features low latency and high success rate. However, compared to SMS solutions, MQTT technology has certain disadvantages in weak network environments (such as underground garages). At the same time, in the MQTT technology solution, the vehicle-side TCAM will be in an awake state for a long time, so its static current consumption will be significantly increased, which will have a certain impact on the frequency of intelligent charging, the static calibration of the BMS, the battery life, and the locking time in the absence of charging.

鉴于上述问题,发明人在对本领域研究过程中发现,采用MQTT和SMS融合的方案,在用户经常使用车辆的时间段,车辆与服务器连接,通过MQTT的方式下发控制指令,而在不经常使用车辆的时间段,车辆与服务器断开连接,在需要远程控制车时,通过SMS的方式发送指令,提高车辆电池的使用寿命。基于此,本申请提出一种车辆远程控制的方法、装置、服务器、车辆及存储介质。In light of the above issues, the inventors discovered during their research in this field that a solution that integrates MQTT and SMS could be used. During periods when the user frequently uses the vehicle, the vehicle connects to the server and sends control commands via MQTT. During periods when the vehicle is not frequently used, the vehicle is disconnected from the server. When remote control of the vehicle is required, commands are sent via SMS, thereby extending the service life of the vehicle battery. Based on this, the present application proposes a method, apparatus, server, vehicle, and storage medium for remote vehicle control.

图1为本申请的应用场景示意图,该示意图中包括中终端设备、云端、车端三大系统,用户终端设备侧的应用程序连接云端服务器,云端服务器与车端建立连接,完成用户远程指令的下发。在本申请的应用场景中,手机、平板、智能穿戴设备都属于终端设备,而车辆侧不限定车辆的类型,车辆需要具备和服务器通信的能力。Figure 1 is a schematic diagram of the application scenario of this application, which includes three major systems: terminal devices, cloud servers, and vehicle-side systems. The application on the user terminal device connects to the cloud server, and the cloud server establishes a connection with the vehicle-side system to complete the issuance of user remote commands. In this application scenario, mobile phones, tablets, and smart wearable devices are all terminal devices. The vehicle side is not limited to any type of vehicle, but must be able to communicate with the server.

下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. 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.

图2为本申请提供的车辆远程控制的方法的实施例一的流程示意图,如图2所示,该方法包括以下步骤:FIG2 is a flow chart of a first embodiment of a method for remotely controlling a vehicle provided by the present application. As shown in FIG2 , the method includes the following steps:

S101、用户终端设备发送控制车辆请求,控制车辆请求中包括目标车辆标识和控制指令。S101. A user terminal device sends a vehicle control request, where the vehicle control request includes a target vehicle identifier and a control instruction.

在本步骤中,用户在终端设备中车辆厂商APP中进行操作,发送远程控制车辆请求,控制车辆请求中包括所要控制的目标车辆标识和控制指令,例如远程解/闭锁、远程开启天窗、远程开启空调、远程座椅加热、查看胎压、查看行车日志等操作。In this step, the user operates in the vehicle manufacturer's APP in the terminal device and sends a remote vehicle control request. The vehicle control request includes the target vehicle identification and control instructions to be controlled, such as remote unlocking/locking, remote opening of the sunroof, remote opening of the air conditioner, remote seat heating, checking tire pressure, checking driving logs, and other operations.

S102、服务器接收用户终端设备发送的控制车辆请求。S102: The server receives a vehicle control request sent by a user terminal device.

S103、根据与目标车辆标识对应的目标车辆之间的MQTT连接的状态,确定目标车辆的连接状态,其中,MQTT连接的状态为连接时确定目标车辆在线,MQTT连接的状态为断开时确定目标车辆离线。S103. Determine the connection status of the target vehicle according to the status of the MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and the target vehicle is determined to be offline when the MQTT connection status is disconnected.

在本步骤中,在云端服务器会与每一个车辆进行连接,显示其连接状态,当连接状态为断开时表示车辆离线。MQTT连接的状态的改变可以由服务器侧或者车辆侧执行。In this step, the cloud server connects to each vehicle and displays its connection status. If the connection status is disconnected, it means the vehicle is offline. The MQTT connection status can be changed by the server or the vehicle.

在一种实现方式中,服务器定期向目标车辆发送一个心跳消息,如果服务器在一定时间内未收到目标车辆的响应,就可以判断目标车辆的MQTT连接状态为断开。若车辆显示为离线状态,则在接收到控制车辆请求时,可以再次发送心跳消息确认目标车辆离线。In one implementation, the server periodically sends a heartbeat message to the target vehicle. If the server does not receive a response from the target vehicle within a certain period of time, it can determine that the target vehicle's MQTT connection status is disconnected. If the vehicle is displayed as offline, it can send another heartbeat message to confirm that the target vehicle is offline when a control request is received.

在一种实现方式中,MQTT协议允许客户端在建立连接时使用持久会话标识。服务器可以记录每个目标车辆的持久会话标识,并检查它们的状态,以确定连接是否仍然存在。In one implementation, the MQTT protocol allows the client to use a persistent session identifier when establishing a connection. The server can record the persistent session identifiers of each target vehicle and check their status to determine whether the connection still exists.

在一种实现方式中,通过遗愿消息的方式,即车辆在连接断开时发送的消息。服务器可以在订阅了目标车辆的遗愿主题时得知目标车辆的连接状态。In one implementation, a last wish message is a message sent by a vehicle when the connection is disconnected. The server can learn the connection status of the target vehicle when it subscribes to the last wish topic of the target vehicle.

在一种实现方式中,目标车辆可以定期发布自身的状态信息到一个特定的MQTT主题,服务器订阅这个主题,从而了解目标车辆的连接状态。In one implementation, the target vehicle can periodically publish its own status information to a specific MQTT topic, and the server subscribes to this topic to understand the connection status of the target vehicle.

在一种实现方式中,服务器可以通过订阅保留消息的方式获取目标车辆的最新状态,如果没有收到保留消息,就可以判断连接状态为断开。In one implementation, the server may obtain the latest status of the target vehicle by subscribing to a retention message. If no retention message is received, the server may determine that the connection status is disconnected.

若目标车辆在线,执行步骤107。If the target vehicle is online, execute step 107 .

S104、若目标车辆离线,发送短信消息SMS唤醒目标车辆。S104: If the target vehicle is offline, send a text message SMS to wake up the target vehicle.

在本步骤中,目标车辆离线可能是主动断开,或者网络较差,无法通过MQTT的方式发送控制指令,因此,需要首先将车辆唤醒,而SMS的方式对于弱网的适应性强,所以服务器通过SMS的方式唤醒车辆。In this step, the target vehicle may be offline due to active disconnection or poor network, making it impossible to send control instructions via MQTT. Therefore, the vehicle needs to be woken up first. The SMS method has strong adaptability to weak networks, so the server wakes up the vehicle via SMS.

具体的,服务器端系统预先准备一条包含特定指令的SMS短信,短信中包括唤醒目标车辆的命令,服务器通过一个短信网关或短信服务提供商将短信通过移动网络发送到目标车辆的SIM卡。Specifically, the server system prepares an SMS message containing specific instructions in advance, including a command to wake up the target vehicle. The server sends the SMS message to the SIM card of the target vehicle via a mobile network through an SMS gateway or SMS service provider.

需要说明的是,车辆离线是基于时间片的调度策略进行离线的,即在非预设的连接时间段内,车辆是保持在离线状态,除非通过SMS唤醒。It should be noted that the vehicle is offline based on the time slice scheduling strategy, that is, during the non-preset connection time period, the vehicle remains offline unless it is woken up by SMS.

S105、车辆接收服务器发送的短信消息SMS。S105. The vehicle receives the SMS message sent by the server.

在本步骤中,目标车辆接收通过SMS发送的短信,解析短信中的指令内容,通常是唤醒指令,以执行后续的操作。In this step, the target vehicle receives a text message sent via SMS and parses the instruction content in the text message, which is usually a wake-up instruction, to perform subsequent operations.

S106、唤醒主控芯片SOC以及通信模组,并通过通信模组建立与服务器之间的MQTT连接。S106 , waking up the main control chip SOC and the communication module, and establishing an MQTT connection with the server through the communication module.

在本步骤中,车辆根据短信中的唤醒指令,唤醒TCAM的主控芯片(SOC)、通信模组。一旦车辆被唤醒(TCAM被唤醒),通信模组会通过移动网络建立与服务器的MQTT连接,以便进行后续的通信。In this step, the vehicle wakes up the TCAM's system-on-chip (SoC) and the communication module according to the wake-up command in the SMS. Once the vehicle wakes up (and the TCAM wakes up), the communication module establishes an MQTT connection with the server over the mobile network for subsequent communication.

S107、服务器通过MQTT将控制指令发送到目标车辆。S107. The server sends the control instruction to the target vehicle via MQTT.

在本步骤中,服务器侧在检测到目标车辆的连接状态变为在线,则通过MQTT的方式将控制指令发送到目标车辆,In this step, when the server detects that the target vehicle's connection status has become online, it sends the control command to the target vehicle via MQTT.

S108、目标车辆接收服务器通过MQTT发送的控制指令,并执行控制指令。S108. The target vehicle receives the control instruction sent by the server via MQTT and executes the control instruction.

在本步骤中,目标车辆通过通信模组服务器通过MQTT发送的控制指令,将其指令转发至车内数据交互网关(BGM),BGM再将指令转发至对应功能的电子控制单元进行执行。In this step, the target vehicle forwards the control instructions sent by the communication module server through MQTT to the in-vehicle data interaction gateway (BGM), and the BGM then forwards the instructions to the electronic control unit of the corresponding function for execution.

在一种情况下,服务器侧目标车辆在线,即目标车辆与服务器保持MQTT连接,但是TCAM中的主控芯片SOC为减少电量损耗被置于休眠状态,接收到控制指令后唤醒SOC,将控制指令转发到对应功能的电子控制单元。In one case, the target vehicle on the server side is online, that is, the target vehicle maintains an MQTT connection with the server, but the main control chip SOC in the TCAM is put into a sleep state to reduce power loss. After receiving the control instruction, the SOC is awakened and the control instruction is forwarded to the electronic control unit of the corresponding function.

可选的,在执行控制指令之后,预设时长内没有接收到通过MQTT发送的其他消息,并且处于非预设的连接时间段,则主动断开MQTT连接,使车辆处于离线状态。Optionally, after executing the control instruction, if no other messages sent via MQTT are received within a preset time period and the vehicle is in a non-preset connection time period, the MQTT connection is actively disconnected, putting the vehicle offline.

本实施例提供一种车辆远程控制的方法,服务器接收用户终端设备发送的控制车辆请求;根据与目标车辆标识对应的目标车辆之间的MQTT连接的状态,确定目标车辆的连接状态,其中,MQTT连接的状态为连接时确定目标车辆在线,MQTT连接的状态为断开时确定目标车辆离线;若目标车辆离线,发送短信消息SMS唤醒目标车辆;目标车辆被唤醒之后,与服务器建立MQTT连接,服务器通过MQTT将控制指令发送到目标车辆进行执行。通过本方法可以减少车辆侧的静态电流的损耗,避免车辆长时间唤醒时的电量损耗,进而提升电池寿命,另外通过SMS和MQTT的方式可以适用多种网络环境。This embodiment provides a method for remote control of a vehicle, wherein a server receives a request for controlling a vehicle sent by a user terminal device; the connection status of the target vehicle is determined based on the status of the MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and the target vehicle is determined to be offline when the MQTT connection status is disconnected; if the target vehicle is offline, a text message SMS is sent to wake up the target vehicle; after the target vehicle is woken up, an MQTT connection is established with the server, and the server sends the control instruction to the target vehicle via MQTT for execution. This method can reduce the loss of static current on the vehicle side, avoid power loss when the vehicle is awake for a long time, and thus improve battery life. In addition, SMS and MQTT can be applied to a variety of network environments.

图3为本申请提供的车辆远程控制的方法的实施例二的流程示意图,如图3所示,在上述实施例一基础上,在车辆侧执行完控制指令后还包括以下步骤:FIG3 is a flow chart of a second embodiment of the method for remotely controlling a vehicle provided by the present application. As shown in FIG3 , based on the above-mentioned first embodiment, after the control instruction is executed on the vehicle side, the following steps are further included:

S109、目标车辆通过MQTT返回指令执行结果至服务器。S109. The target vehicle returns the command execution result to the server via MQTT.

在本步骤中,目标车辆生成指令执行结果,表示指令的执行状态,例如成功、失败或其他特定的状态信息。通过MQTT将指令执行结果打包成消息,并将其发布到服务器事先订阅的结果主题。In this step, the target vehicle generates a command execution result, which indicates the execution status of the command, such as success, failure, or other specific status information. The command execution result is packaged into a message via MQTT and published to the result topic that the server has subscribed to in advance.

S110、服务器通过MQTT返回指令执行结果至用户的终端设备。S110. The server returns the command execution result to the user's terminal device via MQTT.

在本步骤,服务器端通过MQTT订阅了与目标车辆相关的结果主题,接收目标车辆返回的指令执行结果。服务器生成相应的结果消息包括执行状态和可能的详细信息通过MQTT将生成的结果消息发送到用户终端设备所订阅的主题,或者将指令执行结果发送到用户终端设备所订阅的主题。In this step, the server subscribes to the result topic associated with the target vehicle via MQTT and receives the command execution results returned by the target vehicle. The server generates a corresponding result message, including the execution status and possible detailed information, and sends the generated result message via MQTT to the topic subscribed by the user terminal device, or sends the command execution results to the topic subscribed by the user terminal device.

S111、终端设备侧显示执行结果。S111. The terminal device displays the execution result.

在本步骤中,用户的终端设备通过MQTT订阅了与目标车辆相关的主题,因此可以接收到服务器发送的指令执行结果消息。In this step, the user's terminal device subscribes to the topic related to the target vehicle through MQTT, so it can receive the command execution result message sent by the server.

本实施例通过MQTT的方式将执行结果从车辆返回至用户的终端设备,低时延,并且成功率高,降低了因为网络连接问题导致的消息发送失败的情况。This embodiment returns the execution results from the vehicle to the user's terminal device via MQTT, which has low latency and high success rate, and reduces the possibility of message sending failures due to network connection problems.

图4为本申请提供的车辆远程控制的方法的实施例三的流程示意图,如图4所示,服务器侧还包括如下步骤:FIG4 is a flow chart of a third embodiment of the vehicle remote control method provided by the present application. As shown in FIG4 , the server side further includes the following steps:

S201、实时获取当前时刻。S201. Obtain the current time in real time.

在本步骤中,服务器侧预先设置了分时调度策略,即设置预设连接时间段,在预设连接时间段内,服务器与车辆建立MQTT连接。预设时间段可以根据需要设置为不同的时间段,例如在6:00-22点用户常用车的时间段为预设时间段的时间,22:00-次日6:00用户不经常用车的时间段为非预设时间段。分时调整策略也可以根据车辆的不同能源类型(如BEV\PHEV\增程式)、不同蓄电池类型(锂电池/铅酸电池)、不同车型类型、环境温度类型进行对应的设置,也支持用户自定义设置。In this step, the server side pre-sets the time-sharing scheduling strategy, that is, sets a preset connection time period. During the preset connection time period, the server establishes an MQTT connection with the vehicle. The preset time period can be set to different time periods as needed. For example, the time period from 6:00 to 22:00 when users frequently use the car is the preset time period, and the time period from 22:00 to 6:00 the next day when users do not frequently use the car is the non-preset time period. The time-sharing adjustment strategy can also be set according to the different energy types of the vehicle (such as BEV\PHEV\extended range), different battery types (lithium battery/lead-acid battery), different vehicle types, and ambient temperature types. It also supports user-defined settings.

在一种可能的实现方式中,云端服务器根据用户的用车历史数据,划分出常用车的时间段为预设时间段,其他时间为非预设时间段。In a possible implementation, the cloud server divides the time periods when the car is frequently used as preset time periods and the other time periods as non-preset time periods based on the user's car usage history data.

示例性的,对于纯电类型的车辆,预设时间段为全天24小时,车辆的通信模组与云端服务器保持处于MQTT的连接状态,心跳保持,在6点至22:点期间,车辆每间隔10分钟唤醒一次TCAM,即TCAM的主控芯片和微处理器都处于休眠状态,每隔预设时间段唤醒一次,唤醒后保持预设的时间。22点至次日6点,每间隔60分钟唤醒一次TCAM。For example, for a pure electric vehicle, the preset time period is 24 hours a day. The vehicle's communication module maintains an MQTT connection with the cloud server, maintaining a heartbeat. From 6:00 AM to 10:00 PM, the vehicle wakes up the TCAM every 10 minutes. That is, the TCAM's main control chip and microprocessor are in a dormant state. The vehicle wakes up once every preset time period and maintains the preset time after waking up. From 10:00 PM to 6:00 AM the next day, the TCAM wakes up every 60 minutes.

对于非纯电类型的车辆,预设时间段设置为6点至22点,在预设时间段内车辆的通信模组与云端服务器保持处于MQTT的连接状态,心跳保持;在非预设时间段内车辆的通信模组与云端服务器的长连接断开,仅支持SMS方式与车辆通信。For non-pure electric vehicles, the preset time period is set from 6:00 to 22:00. During the preset time period, the vehicle's communication module and the cloud server remain in an MQTT connection state, and the heartbeat is maintained; during the non-preset time period, the vehicle's communication module and the cloud server's long connection is disconnected, and only SMS communication with the vehicle is supported.

S202、若检测到目标车辆的熄火时间超过预设时长,断开与目标车辆的MQTT连接。S202: If it is detected that the target vehicle has been turned off for longer than a preset time, disconnect the MQTT connection with the target vehicle.

在本步骤中,服务器侧记录有目标车辆的启动时刻和熄火时刻,根据当前时刻与目标车辆的熄火时刻,确定熄火时间,若熄火时间超过预设时长,例如距上一次车辆启动时间(即熄火时长)超过14天,则表示用户在该时间段内没有用车计划,断开与目标车辆的连接,并且不再采取分时调度策略,减少电量消耗。但是不影响通过SMS方式唤醒车辆。In this step, the server records the target vehicle's start-up and shutdown times. Based on the current time and the target vehicle's shutdown time, the shutdown time is determined. If the shutdown time exceeds a preset duration—for example, more than 14 days since the last vehicle start (i.e., the shutdown duration)—the user has no plans to use the vehicle within that timeframe, the connection to the target vehicle is disconnected, and the time-sharing scheduling strategy is no longer implemented to reduce power consumption. However, this does not affect vehicle wake-up via SMS.

其中,预设时长可以根据需要调整,纯电类型车辆和非纯电类型车辆的预设时长不同,示例性的,纯电类型车辆的预设时长为14天,非纯电类型车辆的预设时长为7天。非纯电类型车辆的电池容量小,相较于纯电类型预设时长设置的短。The preset duration can be adjusted as needed. It differs between pure electric and non-pure electric vehicles. For example, the preset duration for pure electric vehicles is 14 days, while the preset duration for non-pure electric vehicles is 7 days. Non-pure electric vehicles have smaller battery capacities, so the preset duration is shorter than that for pure electric vehicles.

若检测到目标车辆的熄火时间没有超过预设时长,执行后续分时调整策略。If it is detected that the target vehicle's shutdown time does not exceed the preset time, the subsequent time-sharing adjustment strategy is executed.

S203、确定当前时刻是否处于目标车辆标识对应的预设连接时间段内。S203: Determine whether the current moment is within a preset connection time period corresponding to the target vehicle identifier.

在本步骤中,根据实时获取的当前时刻确定是否处于目标车辆标识对应的预设连接时间段内。参与分时调度策略的每一辆车辆的预设连接时间段是不同的,因此,根据当前时刻确定是否处于对应的预设连接时间段内。In this step, the current time, acquired in real time, is used to determine whether the target vehicle is within the preset connection time period corresponding to the target vehicle ID. Each vehicle participating in the time-sharing scheduling strategy has a different preset connection time period. Therefore, the current time is used to determine whether the target vehicle is within the corresponding preset connection time period.

若当前时刻不处于预设连接时间段内,执行步骤S204。If the current time is not within the preset connection time period, step S204 is executed.

若当前时刻处于预设连接时间段内,执行步骤S205。If the current time is within the preset connection time period, step S205 is executed.

S204、断开与目标车辆的MQTT连接。S204: Disconnect the MQTT connection with the target vehicle.

在本步骤中,若当前时刻不处于预设连接时间段内,服务器主动断开与目标车辆的MQTT连接。目标车辆在离线预设时间后TCAM处于休眠状态。In this step, if the current time is not within the preset connection time period, the server will actively disconnect the MQTT connection with the target vehicle. The TCAM of the target vehicle will be in a dormant state after the preset offline time.

S205、建立与目标车辆的MQTT连接。S205: Establish an MQTT connection with the target vehicle.

在本步骤中,若当前时刻处于预设连接时间段内,检测与目标车辆的MQTT连接状态,当目标车辆在线时,不需要再建立连接,当目标车辆不在线时,建立与目标车辆的MQTT连接。In this step, if the current moment is within the preset connection time period, the MQTT connection status with the target vehicle is detected. When the target vehicle is online, there is no need to establish a connection. When the target vehicle is offline, an MQTT connection with the target vehicle is established.

在一种可能的实现方式中,车辆侧和服务器侧都存储预设连接时间段,车辆侧在到达预设时间段时,唤醒TCAM的通信模块,服务器与通信模块即可建立MQTT连接。In one possible implementation, both the vehicle side and the server side store a preset connection time period. When the preset time period is reached, the vehicle side wakes up the communication module of the TCAM, and the server and the communication module can establish an MQTT connection.

在另一种可能的实现方式中,服务器侧在达到预设时间段时,发送SMS消息到车辆激活车辆TCAM,建立与车辆TCAM之间的MQTT连接。In another possible implementation, when a preset time period is reached, the server sends an SMS message to the vehicle to activate the vehicle TCAM and establish an MQTT connection with the vehicle TCAM.

本实施例中服务器侧通过分时调度策略设置与每一辆车辆的MQTT连接时间段,其中,分时调度策略可以根据车辆能源类型或者用户历史行为数据设置,若当前时刻不属于预设连接时间段,则断开与车辆的MQTT连接,若当前时刻属于预设连接时间段,则建立与车辆的MQTT连接;并且在车辆的熄火时间超过预设时长,断开与目标车辆的MQTT连接,不再执行分时调整策略,通过分时调制策略可以进行灵活调度,符合用户行为,在不影响用户控车体验下,减少静态电流损耗,提升电池使用寿命。提高了不同车辆类型的适配性,以实现在不同类别的车辆的硬件条件下采用最优的车控优化方案。In this embodiment, the server side sets the MQTT connection time period with each vehicle through a time-sharing scheduling strategy. The time-sharing scheduling strategy can be set according to the vehicle energy type or user historical behavior data. If the current moment does not belong to the preset connection time period, the MQTT connection with the vehicle is disconnected. If the current moment belongs to the preset connection time period, the MQTT connection with the vehicle is established. Moreover, if the vehicle's ignition is turned off for more than the preset duration, the MQTT connection with the target vehicle is disconnected and the time-sharing adjustment strategy is no longer executed. The time-sharing modulation strategy allows for flexible scheduling that conforms to user behavior, reduces static current loss, and improves battery life without affecting the user's vehicle control experience. This improves the adaptability of different vehicle types to achieve the optimal vehicle control optimization solution under the hardware conditions of different vehicle categories.

下面以一个实施例介绍在采用分时调整策略时,车辆端还需要执行的步骤:The following is an example of an example of steps that the vehicle needs to perform when adopting the time-sharing adjustment strategy:

若车辆属于纯电类型,则通过通信模组与服务器保持MQTT连接,并且将SOC置于休眠状态。If the vehicle is a pure electric type, the MQTT connection with the server is maintained through the communication module, and the SOC is put into sleep mode.

其中,纯电类型车辆预设连接时间段设置为全天,即通过通信模组与服务器保持MQTT连接,心跳保持,但是为了节省电量需要将车辆中其他组件置于休眠状态。具体的,车辆通信模组启动后发送身份验证信息,服务器验证身份信息后与车辆通信模组建立MQTT连接。通信模组订阅与目标车辆相关的主题,以便能够接收来自服务器的指令。SOC(主控芯片)进行准备工作,例如保存当前状态,关闭不必要的模块或外设,以便进入休眠状态;通信模组发送命令或信号通知SOC进入休眠状态;SOC根据通信模组的指示,关闭主要处理器和其他不必要的电源消耗模块。通信模组在SOC休眠的同时,继续保持MQTT连接,设备和服务器之间通过心跳机制以确保连接保持活跃。服务器侧显示车辆在线,当服务器有指令需要发送给目标车辆时,通过MQTT消息发送给通信模组。通信模组接收到服务器的指令后,需要检测SOC是否处于休眠状态,因此在SCO休眠后会定时唤醒一次并保持预设时长,例如每隔10分钟唤醒一次,保持一分钟。当SOC处于休眠状态时通信模组发送唤醒信号给SOC,以便SOC从休眠状态中唤醒。SOC被唤醒后,处理接收到的指令,将指令转发给对应的执行模块。当SOC不处于休眠状态时,将控制指令发送给SOC。SOC执行完指令后,通信模组通过MQTT向服务器发送指令执行结果,包括执行状态和相关信息。SOC完成指令处理后,保持预设时间,在没有其他指令下发情况下继续保持休眠状态。Among them, the preset connection time period for pure electric vehicles is set to all day, that is, the MQTT connection is maintained with the server through the communication module, and the heartbeat is maintained, but in order to save power, other components in the vehicle need to be put into sleep mode. Specifically, after the vehicle communication module is started, it sends authentication information, and the server establishes an MQTT connection with the vehicle communication module after verifying the identity information. The communication module subscribes to topics related to the target vehicle so that it can receive instructions from the server. The SOC (main control chip) performs preparatory work, such as saving the current state and shutting down unnecessary modules or peripherals in order to enter the sleep state; the communication module sends a command or signal to notify the SOC to enter the sleep state; the SOC shuts down the main processor and other unnecessary power-consuming modules according to the instructions of the communication module. While the SOC is in sleep mode, the communication module continues to maintain the MQTT connection, and the heartbeat mechanism is used between the device and the server to ensure that the connection remains active. The server side shows that the vehicle is online. When the server has instructions to send to the target vehicle, it is sent to the communication module via MQTT messages. After the communication module receives the instruction from the server, it needs to detect whether the SOC is in a dormant state. Therefore, it will wake up once at a fixed time after the SCO goes into dormancy and maintain the preset duration, for example, waking up once every 10 minutes and maintaining it for one minute. When the SOC is in a dormant state, the communication module sends a wake-up signal to the SOC so that the SOC wakes up from the dormant state. After the SOC is awakened, it processes the received instruction and forwards the instruction to the corresponding execution module. When the SOC is not in a dormant state, the control instruction is sent to the SOC. After the SOC executes the instruction, the communication module sends the instruction execution result to the server through MQTT, including the execution status and related information. After the SOC completes instruction processing, it maintains the preset time and continues to remain in the dormant state if no other instructions are issued.

通过本方式可以确保在SOC休眠的同时,通过通信模组与服务器保持MQTT连接,实现远程指令的下发和执行结果的返回。This method can ensure that while the SOC is in sleep mode, the MQTT connection with the server is maintained through the communication module, so that remote commands can be issued and execution results can be returned.

若车辆属于非纯电类型,则在预设连接时间段内通过通信模组与服务器保持MQTT连接,并且将SOC置于休眠状态,在预设连接时间段之外的时间,将通信模组与服务器之间的MQTT连接断开。If the vehicle is not a pure electric type, the MQTT connection with the server is maintained through the communication module during the preset connection time period, and the SOC is put into a dormant state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected.

其中,若车辆属于非纯电类型,在预设连接时间段内和纯电类型的过程是一样的,但是在预设连接时间段之外时,车辆的与服务器之间MQTT也会断开,通信模组进入休眠状态,进一步降低电量消耗。Among them, if the vehicle is not a pure electric type, the process is the same as that of the pure electric type within the preset connection time period, but outside the preset connection time period, the MQTT between the vehicle and the server will also be disconnected, and the communication module will enter a dormant state, further reducing power consumption.

图5为本申请提供的车辆远程控制的方法的实施例四的流程示意图,如图5所示,车辆侧还包括如下步骤:FIG5 is a flow chart of a fourth embodiment of the method for remotely controlling a vehicle provided by the present application. As shown in FIG5 , the vehicle side further includes the following steps:

S301、获取车辆的温度和剩余电池电量。S301: Obtain the vehicle's temperature and remaining battery power.

在本步骤中,车辆根据一定的触发条件,例如定时、事件触发或请求,发起获取车辆信息的操作,车辆信息包括当前车辆的温度和剩余电池电量。车辆内部的温度传感器和电池管理模块等获取车辆周围的环境温度和剩余电池电量。In this step, the vehicle initiates an operation to obtain vehicle information based on certain trigger conditions, such as timing, event triggering, or request. Vehicle information includes the current vehicle temperature and remaining battery power. The vehicle's internal temperature sensors and battery management module obtain the vehicle's ambient temperature and remaining battery power.

S302、若温度低于预设温度值或者剩余电池电量低于预设电量值时,断开与服务器之间的MQTT连接。S302: If the temperature is lower than a preset temperature value or the remaining battery power is lower than a preset power value, disconnect the MQTT connection with the server.

在本步骤,当车辆周围的温度低于预设温度值时,表示车辆处于低温状态,低温下的静态电流的消耗会影响电池使用寿命,因此需要与服务器之间的MQTT连接断开,并且将主控芯片,处理器等设备都置于休眠状态。In this step, when the temperature around the vehicle is lower than the preset temperature value, it means that the vehicle is in a low-temperature state. The consumption of static current at low temperatures will affect the battery life. Therefore, it is necessary to disconnect the MQTT connection with the server and put the main control chip, processor and other devices into sleep mode.

在电量低于预设值时,也需要将与服务器之间的MQTT连接断开,并且将主控芯片,处理器等设备都置于休眠状态。When the battery level is lower than the preset value, the MQTT connection with the server needs to be disconnected, and the main control chip, processor and other devices need to be put into sleep mode.

其中,预设温度值和预设电量值可以根据需要设置,示例性的,非纯电类型车辆中设置为,当气温低于零下18°或者当动力电池SOC低于20%时,将与服务器之间的MQTT连接断开;纯电类型车辆设置为,当气温低于零下18°或者当动力电池SOC低于10%时,将与服务器之间的MQTT连接断开。应理解,不同车辆的预设温度值和预设电量值可以根据车辆情况设置,不同的电池类型的衰减周期不同,因此预设电量值可以设置为不同的电量。The preset temperature value and the preset power value can be set as needed. For example, in non-pure electric vehicles, it is set that when the temperature is below -18°C or when the power battery SOC is below 20%, the MQTT connection with the server will be disconnected; in pure electric vehicles, it is set that when the temperature is below -18°C or when the power battery SOC is below 10%, the MQTT connection with the server will be disconnected. It should be understood that the preset temperature value and preset power value of different vehicles can be set according to the vehicle conditions. Different battery types have different decay cycles, so the preset power value can be set to different power levels.

发生上述两种情况任一种情况下,车辆侧主动断开MQTT连接,服务器端仍可以通过SMS的方式唤醒车辆建立连接,建立连接后在没有通信数据时仍然需要断开连接。In either of the above two situations, the vehicle side actively disconnects the MQTT connection. The server side can still wake up the vehicle through SMS to establish a connection. After the connection is established, it still needs to be disconnected when there is no communication data.

下面以一个实例对在保持MQTT长连接情况下指令下发进行说明。The following example illustrates how to issue commands while maintaining a long MQTT connection.

以车辆解锁为例,在实际的场景之中,车端TCAM与云端TSP之间通过MQTT协议保持长连接,当时用户通过APP发出解锁指令时,TSP收到解锁指令后通过MQTT消息转发至TCAM,TCAM(注意此时TCAM无需驻网),唤醒SOC之后,通过车内数据交互网关BGM寻址ECU,将指令通过整车网络转发至车身域控制器ECU从而完成车门解锁,车身域控制器执行成功之后将直接结果通过BGM返回至TCAM,TCAM返回至TSP,TSP返回指令执行的结果代码至APP,APP依据返回结果代码提示APP侧车辆已经解锁,同时车模状态变为解锁状态,解锁开关从关闭变为解锁状态。Taking vehicle unlocking as an example, in actual scenarios, the vehicle-side TCAM and the cloud-side TSP maintain a long connection through the MQTT protocol. When the user sends an unlock command through the APP, the TSP forwards the unlock command to the TCAM through an MQTT message after receiving the unlock command. After waking up the SOC, the TCAM addresses the ECU through the in-vehicle data interaction gateway BGM, and forwards the command to the body domain controller ECU through the vehicle network to complete the door unlocking. After the body domain controller executes successfully, the direct result is returned to the TCAM through the BGM, and the TCAM returns it to the TSP. The TSP returns the result code of the command execution to the APP. The APP prompts the APP side that the vehicle has been unlocked based on the returned result code. At the same time, the car model status changes to unlocked, and the unlock switch changes from closed to unlocked.

在上述任一实施例基础上,可以采用拨号方式代替SMS,将拨号方式与MQTT技术结合,即在车辆离线时,通过拨号方式唤醒车辆,车辆唤醒后与服务器建立MQTT的连接。通过这种方式消息传递更加迅速,在网络条件不稳定的情况下连接更加稳定。Based on any of the above embodiments, dial-up can be used instead of SMS, combining dial-up with MQTT technology. That is, when the vehicle is offline, dial-up can be used to wake up the vehicle, and after waking up, the vehicle establishes an MQTT connection with the server. This method allows for faster message delivery and more stable connections even under unstable network conditions.

在上述任一实施例基础上,可以采用私有的TCP协议与SMS方案融合构建面对百万车机海量的消息通信,私有TCP协议可以提供更精细的控制和更高效的通信。具体的,服务器通过私有TCP协议与车辆模组建立连接,车辆的通信模组通过私有TCP协议接收到服务器发送的指令。在车辆离线时仍通过SMS的方式唤醒车辆,唤醒车辆后,车辆与服务器建立TCP协议的连接。Based on any of the above embodiments, a private TCP protocol can be integrated with an SMS solution to facilitate massive message communication across millions of vehicle computers. The private TCP protocol provides more refined control and more efficient communication. Specifically, the server establishes a connection with the vehicle module via the private TCP protocol, and the vehicle's communication module receives instructions from the server via the private TCP protocol. Even when the vehicle is offline, SMS can still be used to wake it up. After waking up, the vehicle establishes a TCP connection with the server.

图6为本申请提供的车辆远程控制的装置的实施例一的结构示意图,如图6所示,该装置600包括:FIG6 is a schematic structural diagram of a first embodiment of a vehicle remote control device provided by the present application. As shown in FIG6 , the device 600 includes:

接收模块611,用于接收用户终端设备发送的控制车辆请求,所述控制车辆请求中包括目标车辆标识和控制指令;A receiving module 611 is configured to receive a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction;

判断模块612,用于根据与所述目标车辆标识对应的目标车辆之间的消息队列遥测传输协议MQTT连接的状态,确定所述目标车辆的连接状态,其中,所述MQTT连接的状态为连接时确定所述目标车辆在线,所述MQTT连接的状态为断开时确定所述目标车辆离线;a determination module 612 for determining a connection status of the target vehicle based on a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle and the target vehicle identifier, wherein the target vehicle is determined to be online when the MQTT connection status is connected, and is determined to be offline when the MQTT connection status is disconnected;

第一发送模块613,用于若所述目标车辆离线,发送短信消息SMS唤醒目标车辆;The first sending module 613 is used to send a text message SMS to wake up the target vehicle if the target vehicle is offline;

第二发送模块614,用于在所述目标车辆被唤醒之后,通过MQTT将所述控制指令发送到所述目标车辆。The second sending module 614 is configured to send the control instruction to the target vehicle via MQTT after the target vehicle is awakened.

可选的,所述装置还包括获取模块和控制模块:Optionally, the device further includes an acquisition module and a control module:

所述获取模块,用于实时获取当前时刻,并确定所述当前时刻是否处于所述目标车辆标识对应的预设连接时间段内;The acquisition module is used to acquire the current time in real time and determine whether the current time is within the preset connection time period corresponding to the target vehicle identifier;

所述控制模块用于:The control module is used for:

若当前时刻不处于所述预设连接时间段内,则断开与所述目标车辆的MQTT连接;If the current time is not within the preset connection time period, disconnect the MQTT connection with the target vehicle;

若当前时刻处于所述预设连接时间段内,则建立与所述目标车辆的MQTT连接。If the current time is within the preset connection time period, an MQTT connection is established with the target vehicle.

可选的,所述控制模块还用于:Optionally, the control module is further configured to:

若检测到所述目标车辆的熄火时间超过预设时长,断开与所述目标车辆的MQTT连接。If it is detected that the target vehicle is turned off for longer than a preset time, the MQTT connection with the target vehicle is disconnected.

可选的,不同能源类型的车辆对应的所述连接时间段不同,所述能源类型包括纯电类型和非纯电类型。Optionally, the connection time periods corresponding to vehicles of different energy types are different, and the energy types include pure electric type and non-pure electric type.

本申请实施例提供的车辆远程控制的装置,用于实现前述方法实施例中服务器侧任一项所述的车辆远程控制的方法,其实现原理和技术效果类似,在此不做赘述。The vehicle remote control device provided in the embodiment of the present application is used to implement the vehicle remote control method described in any one of the server side embodiments of the aforementioned method. Its implementation principle and technical effects are similar and will not be described in detail here.

在服务器侧,服务器被划分成三大模块,云端服务模块处理与终端设备的交互,策略引擎模块负责管理车辆的分时调度策略,MQTT服务商(Broker)负责与车辆端保持通信。On the server side, the server is divided into three modules: the cloud service module handles the interaction with the terminal device, the policy engine module is responsible for managing the vehicle's time-sharing scheduling strategy, and the MQTT service provider (Broker) is responsible for maintaining communication with the vehicle end.

图7为本申请提供的车辆远程控制的装置的实施例二的结构示意图,如图7所示,该装置包括:FIG7 is a schematic diagram of the structure of a second embodiment of a vehicle remote control device provided by the present application. As shown in FIG7 , the device includes:

接收模块711,接收服务器发送的短信消息SMS,所述SMS用于唤醒车辆;Receiving module 711, receiving SMS messages sent by the server, the SMS being used to wake up the vehicle;

唤醒模块712,用于唤醒主控芯片SOC以及通信模组,并通过所述通信模组建立与所述服务器之间的消息队列遥测传输协议MQTT连接;A wake-up module 712 is used to wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module;

执行模块713,用于接收所述服务器通过MQTT发送的控制指令,并执行所述控制指令。The execution module 713 is configured to receive the control instruction sent by the server via MQTT and execute the control instruction.

可选的,所述车辆的能源类型包括纯电类型和非纯电类型;Optionally, the energy type of the vehicle includes a pure electric type and a non-pure electric type;

相应的,所述装置还包括控制模块714,所述控制模块714用于:Accordingly, the apparatus further includes a control module 714, and the control module 714 is configured to:

若所述车辆属于纯电类型,则通过所述通信模组与所述服务器保持MQTT连接,并且将所述SOC置于休眠状态;If the vehicle is a pure electric vehicle, the MQTT connection is maintained with the server through the communication module, and the SOC is placed in a dormant state;

若所述车辆属于非纯电类型,则在预设连接时间段内通过所述通信模组与所述服务器保持MQTT连接,并且将所述SOC置于休眠状态,在所述预设连接时间段之外的时间,将所述通信模组与所述服务器之间的MQTT连接断开。If the vehicle is not a pure electric type, the MQTT connection with the server is maintained through the communication module within a preset connection time period, and the SOC is placed in a sleep state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected.

所述控制模块714还用于;The control module 714 is further configured to:

若在所述车辆与所述服务器保持MQTT连接时,接收到云端服务器下发的控制指令,则判断所述SOC是否处于休眠状态;If a control instruction sent by a cloud server is received while the vehicle maintains an MQTT connection with the server, determining whether the SOC is in a dormant state;

若所述SOC处于休眠状态,唤醒所述SOC,并将所述控制指令发送至所述SOC进行执行。If the SOC is in a dormant state, the SOC is awakened, and the control instruction is sent to the SOC for execution.

可选的,所述装置还包括获取模块,所述获取模块用于获取所述车辆的温度和剩余电池电量;Optionally, the device further includes an acquisition module, the acquisition module being configured to acquire the temperature and remaining battery power of the vehicle;

所述控制模块714还用于:若所述温度低于预设温度值或者所述剩余电池电量低于预设电量值时,断开与所述服务器之间的MQTT连接。The control module 714 is further configured to disconnect the MQTT connection with the server if the temperature is lower than a preset temperature value or the remaining battery power is lower than a preset power value.

本申请实施例提供的车辆远程控制的装置,用于实现前述方法实施例中车辆侧任一项车辆远程控制的方法,其实现原理和技术效果类似,在此不做赘述。The vehicle remote control device provided in the embodiment of the present application is used to implement any vehicle remote control method on the vehicle side in the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.

图8为本申请提供的一种服务器的结构示意图,如图8所示,该服务器800包括:FIG8 is a schematic diagram of the structure of a server provided by the present application. As shown in FIG8 , the server 800 includes:

处理器811,与所述处理器通信连接的存储器812,以及与其他设备交互的通信接口813;A processor 811, a memory 812 in communication with the processor, and a communication interface 813 for interacting with other devices;

所述存储器812存储计算机执行指令;The memory 812 stores computer-executable instructions;

所述处理器811执行所述存储器存储的计算机执行指令,以实现上述服务器侧任一项方法实施例所述的车辆远程控制的方法。The processor 811 executes the computer-executable instructions stored in the memory to implement the vehicle remote control method described in any one of the above-mentioned server-side method embodiments.

可选的,该服务器800的上述各个器件之间可以通过系统总线连接。Optionally, the above-mentioned components of the server 800 may be connected via a system bus.

存储器812可以是单独的存储单元,也可以是集成在处理器811中的存储单元。处理器811的数量为一个或者多个。The memory 812 may be a separate storage unit or a storage unit integrated in the processor 811. The number of the processor 811 may be one or more.

应理解,处理器811可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that the processor 811 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this application can be directly implemented as being executed by a hardware processor, or by a combination of hardware and software modules in the processor.

系统总线可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。系统总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。存储器可能包括随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory,NVM),例如至少一个磁盘存储器。The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. System buses can be divided into address buses, data buses, and control buses. For ease of illustration, the diagram uses a single thick line, but this does not imply a single bus or type of bus. Memory may include random access memory (RAM) and non-volatile memory (NVM), such as at least one disk drive.

实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(read-only memory,ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(magnetic tape)、软盘(floppy disk)、光盘(optical disc)及其任意组合。All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.

本申请实施例提供的服务器,用于实现前述方法实施例中任一项所述的车辆远程控制的方法,其实现原理和技术效果类似,在此不做赘述。The server provided in the embodiment of the present application is used to implement the vehicle remote control method described in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be described in detail here.

本申请实施例还提供一种车辆,车辆包括车辆主体和控制器;An embodiment of the present application further provides a vehicle, the vehicle comprising a vehicle body and a controller;

其中控制器包括:处理器,与所述处理器通信连接的存储器,以及通信模组;The controller includes: a processor, a memory connected to the processor, and a communication module;

所述处理器执行所述存储器存储的计算机执行指令,以实现上述车辆侧任一项方法实施例所述的车辆远程控制的方法。The processor executes the computer-executable instructions stored in the memory to implement the vehicle remote control method described in any of the above-mentioned vehicle-side method embodiments.

该车辆还包括温度传感器,温度传感器感知车辆周围环境温度通过车辆网络传输到处理器。The vehicle also includes a temperature sensor that senses the ambient temperature of the vehicle and transmits the sensed temperature to the processor via the vehicle network.

本申请实施例提供的车辆,用于实现前述方法实施例中车辆侧任一项所述的车辆远程控制的方法,其实现原理和技术效果类似,在此不做赘述。The vehicle provided in the embodiment of the present application is used to implement the method of vehicle remote control described in any one of the vehicle side embodiments of the aforementioned method. Its implementation principle and technical effects are similar and will not be described in detail here.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如前述方法实施例中任一项所述的权益数据的处理方法。The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the equity data processing method as described in any one of the aforementioned method embodiments.

本申请还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如第一方面或第二方面任一项所述的车辆远程控制的方法。The present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the vehicle remote control method as described in any one of the first aspect or the second aspect.

可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(doubledata rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,上述涉及的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct RAMbus RAM (DR RAM). It should be noted that references to memory above are intended to include, but are not limited to, these and any other suitable types of memory.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims (14)

一种车辆远程控制的方法,其特征在于,应用于服务器,所述方法包括:A vehicle remote control method, characterized in that it is applied to a server and comprises: 接收用户终端设备发送的控制车辆请求,所述控制车辆请求中包括目标车辆标识和控制指令;Receiving a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction; 根据与所述目标车辆标识对应的目标车辆之间的消息队列遥测传输协议MQTT连接的状态,确定所述目标车辆的连接状态,其中,所述MQTT连接的状态为连接时确定所述目标车辆在线,所述MQTT连接的状态为断开时确定所述目标车辆离线;Determining a connection status of the target vehicle according to a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle corresponding to the target vehicle identifier, wherein the target vehicle is determined to be online when the status of the MQTT connection is connected, and the target vehicle is determined to be offline when the status of the MQTT connection is disconnected; 若所述目标车辆离线,发送短信消息SMS唤醒目标车辆;If the target vehicle is offline, sending a text message SMS to wake up the target vehicle; 在所述目标车辆被唤醒之后,通过MQTT将所述控制指令发送到所述目标车辆。After the target vehicle is awakened, the control instruction is sent to the target vehicle via MQTT. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising: 实时获取当前时刻,并确定所述当前时刻是否处于所述目标车辆标识对应的预设连接时间段内;Acquire the current time in real time, and determine whether the current time is within a preset connection time period corresponding to the target vehicle identifier; 若当前时刻不处于所述预设连接时间段内,则断开与所述目标车辆的MQTT连接;If the current time is not within the preset connection time period, disconnect the MQTT connection with the target vehicle; 若当前时刻处于所述预设连接时间段内,则建立与所述目标车辆的MQTT连接。If the current time is within the preset connection time period, an MQTT connection is established with the target vehicle. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that the method further comprises: 若检测到所述目标车辆的熄火时间超过预设时长,断开与所述目标车辆的MQTT连接。If it is detected that the target vehicle is turned off for longer than a preset time, the MQTT connection with the target vehicle is disconnected. 根据权利要求2所述的方法,其特征在于,不同能源类型的车辆对应的所述预设连接时间段不同,所述能源类型包括纯电类型和非纯电类型。The method according to claim 2 is characterized in that the preset connection time periods corresponding to vehicles of different energy types are different, and the energy types include pure electric types and non-pure electric types. 一种车辆远程控制的方法,其特征在于,应用于车辆,所述方法包括:A vehicle remote control method, characterized in that it is applied to a vehicle, the method comprising: 接收服务器发送的短信消息SMS,所述SMS用于唤醒车辆;Receive a text message SMS sent by a server, where the SMS is used to wake up the vehicle; 唤醒主控芯片SOC以及通信模组,并通过所述通信模组建立与所述服务器之间的消息队列遥测传输协议MQTT连接;Wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module; 接收所述服务器通过MQTT发送的控制指令,并执行所述控制指令。Receive the control instruction sent by the server via MQTT and execute the control instruction. 根据权利要求5所述的方法,其特征在于,所述车辆的能源类型包括纯电类型和非纯电类型;The method according to claim 5, wherein the energy type of the vehicle includes a pure electric type and a non-pure electric type; 相应的,所述方法还包括:Accordingly, the method further includes: 若所述车辆属于纯电类型,则通过所述通信模组与所述服务器保持MQTT连接,并且将所述SOC置于休眠状态;If the vehicle is a pure electric vehicle, the MQTT connection is maintained with the server through the communication module, and the SOC is placed in a dormant state; 若所述车辆属于非纯电类型,则在预设连接时间段内通过所述通信模组与所述服务器保持MQTT连接,并且将所述SOC置于休眠状态,在所述预设连接时间段之外的时间,将所述通信模组与所述服务器之间的MQTT连接断开。If the vehicle is not a pure electric type, the MQTT connection with the server is maintained through the communication module within a preset connection time period, and the SOC is placed in a sleep state. Outside the preset connection time period, the MQTT connection between the communication module and the server is disconnected. 根据权利要求6所述的方法,其特征在于,所述方法还包括;The method according to claim 6, characterized in that the method further comprises: 若在所述车辆与所述服务器保持MQTT连接时,接收到云端服务器下发的控制指令,则判断所述SOC是否处于休眠状态;If a control instruction sent by a cloud server is received while the vehicle maintains an MQTT connection with the server, determining whether the SOC is in a dormant state; 若所述SOC处于休眠状态,唤醒所述SOC,并将所述控制指令发送至所述SOC进行执行。If the SOC is in a dormant state, the SOC is awakened, and the control instruction is sent to the SOC for execution. 根据权利要求5至7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 5 to 7, further comprising: 获取所述车辆的温度和剩余电池电量;obtaining the temperature and remaining battery power of the vehicle; 若所述温度低于预设温度值或者所述剩余电池电量低于预设电量值时,断开与所述服务器之间的MQTT连接。If the temperature is lower than a preset temperature value or the remaining battery power is lower than a preset power value, the MQTT connection with the server is disconnected. 一种车辆远程控制的装置,其特征在于,所述装置包括:A vehicle remote control device, characterized in that the device comprises: 接收模块,用于接收用户终端设备发送的控制车辆请求,所述控制车辆请求中包括目标车辆标识和控制指令;A receiving module, configured to receive a vehicle control request sent by a user terminal device, wherein the vehicle control request includes a target vehicle identifier and a control instruction; 判断模块,用于根据与所述目标车辆标识对应的目标车辆之间的消息队列遥测传输协议MQTT连接的状态,确定所述目标车辆的连接状态,其中,所述MQTT连接的状态为连接时确定所述目标车辆在线,所述MQTT连接的状态为断开时确定所述目标车辆离线;a judgment module, configured to determine a connection status of the target vehicle according to a status of a message queue telemetry transmission protocol MQTT connection between the target vehicle corresponding to the target vehicle identifier, wherein the target vehicle is determined to be online when the status of the MQTT connection is connected, and the target vehicle is determined to be offline when the status of the MQTT connection is disconnected; 第一发送模块,用于若所述目标车辆离线,发送短信消息SMS唤醒目标车辆;A first sending module is used to send a text message SMS to wake up the target vehicle if the target vehicle is offline; 第二发送模块,用于在所述目标车辆被唤醒之后,通过MQTT将所述控制指令发送到所述目标车辆。The second sending module is used to send the control instruction to the target vehicle through MQTT after the target vehicle is awakened. 一种车辆远程控制的装置,其特征在于,所述装置包括:A vehicle remote control device, characterized in that the device comprises: 接收模块,接收服务器发送的短信消息SMS,所述SMS用于唤醒车辆;A receiving module receives a short message SMS sent by a server, wherein the SMS is used to wake up the vehicle; 唤醒模块,用于唤醒主控芯片SOC以及通信模组,并通过所述通信模组建立与所述服务器之间的消息队列遥测传输协议MQTT连接;A wake-up module is used to wake up the main control chip SOC and the communication module, and establish a message queue telemetry transmission protocol MQTT connection with the server through the communication module; 执行模块,用于接收所述服务器通过MQTT发送的控制指令,并执行所述控制指令。The execution module is used to receive the control instruction sent by the server through MQTT and execute the control instruction. 一种服务器,其特征在于,所述服务器包括:A server, characterized in that the server comprises: 处理器,与所述处理器连接的存储器,以及与其他设备交互的通信接口,所述处理器用于执行如权利要求1-4任一项所述的车辆远程控制的方法。A processor, a memory connected to the processor, and a communication interface for interacting with other devices, wherein the processor is used to execute the vehicle remote control method according to any one of claims 1 to 4. 一种车辆,其特征在于,所述车辆包括车辆主体和控制器;A vehicle, characterized in that the vehicle comprises a vehicle body and a controller; 所述控制器用于执行如权利要求5-8任一项所述的车辆远程控制的方法。The controller is used to execute the vehicle remote control method according to any one of claims 5 to 8. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1-8任一项所述的车辆远程控制的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the vehicle remote control method according to any one of claims 1 to 8. 一种计算机程序产品,其特征在于,包括计算机程序,该计算机程序被处理器执行时实现如权利要求1-8任一项所述的车辆远程控制的方法。A computer program product, characterized in that it comprises a computer program, which, when executed by a processor, implements the vehicle remote control method according to any one of claims 1 to 8.
PCT/CN2024/139381 2024-01-29 2024-12-13 Vehicle remote control method and apparatus, server, vehicle, and storage medium Pending WO2025161731A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410122783.4 2024-01-29
CN202410122783.4A CN118139017A (en) 2024-01-29 2024-01-29 Vehicle remote control method and device

Publications (1)

Publication Number Publication Date
WO2025161731A1 true WO2025161731A1 (en) 2025-08-07

Family

ID=91241339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/139381 Pending WO2025161731A1 (en) 2024-01-29 2024-12-13 Vehicle remote control method and apparatus, server, vehicle, and storage medium

Country Status (2)

Country Link
CN (1) CN118139017A (en)
WO (1) WO2025161731A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118139017A (en) * 2024-01-29 2024-06-04 浙江吉利控股集团有限公司 Vehicle remote control method and device
CN119148691B (en) * 2024-08-23 2025-11-14 中国第一汽车股份有限公司 A method, device, electronic device and storage medium for remote vehicle control

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638704A (en) * 2020-06-03 2020-09-08 上海蔚来汽车有限公司 Method, system and device for remotely waking up a vehicle
WO2022227883A1 (en) * 2021-04-25 2022-11-03 华为技术有限公司 Method and apparatus for remote control
CN115525016A (en) * 2022-10-11 2022-12-27 重庆长安汽车股份有限公司 Vehicle remote control method and device, vehicle terminal and system
CN118139017A (en) * 2024-01-29 2024-06-04 浙江吉利控股集团有限公司 Vehicle remote control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638704A (en) * 2020-06-03 2020-09-08 上海蔚来汽车有限公司 Method, system and device for remotely waking up a vehicle
WO2022227883A1 (en) * 2021-04-25 2022-11-03 华为技术有限公司 Method and apparatus for remote control
CN115525016A (en) * 2022-10-11 2022-12-27 重庆长安汽车股份有限公司 Vehicle remote control method and device, vehicle terminal and system
CN118139017A (en) * 2024-01-29 2024-06-04 浙江吉利控股集团有限公司 Vehicle remote control method and device

Also Published As

Publication number Publication date
CN118139017A (en) 2024-06-04

Similar Documents

Publication Publication Date Title
WO2025161731A1 (en) Vehicle remote control method and apparatus, server, vehicle, and storage medium
US8244861B2 (en) Network event notification and delivery
CN112148538B (en) A vehicle fault identification method, device, system, vehicle and computer-readable storage medium
CN107295025A (en) Wake-up system, method, car-mounted terminal, vehicle and the server of car-mounted terminal
CN112165697B (en) Tbox sleep wake-up control method and device and terminal equipment
CN112165698A (en) Method, system, server and computer-readable storage medium for controlling vehicle
CN105577443A (en) Multi-vehicle automatic upgrade system and method for vehicle-mounted OBD terminal equipment
US10536828B1 (en) Keeping radio resource control activity after SMS wakeup
US7209490B2 (en) Rapid vehicle bus network activity
CN113064403A (en) Controller state monitoring method based on OSEK network management
CN112540798B (en) Method, device and system for waking up vehicle operating system
CN113873448A (en) Method for remotely waking up vehicle-mounted intelligent terminal after sleeping
CN113393595A (en) Vehicle monitoring method, vehicle-mounted terminal and computer-readable storage medium
CN114116028A (en) Wake-up method, device, vehicle and storage medium for trip computer ECU
CN114114993B (en) Vehicle control method, server, vehicle and vehicle system
CN116867670A (en) Method for assessing battery state of charge of electrified vehicles for remote monitoring systems
CN119211314A (en) Remote control method, vehicle and storage medium
CN119094564A (en) Vehicle control method, device, vehicle and server
CN113721946A (en) OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle
CN119766594A (en) Network management method, vehicle network system, electronic device, computer readable storage medium and computer program product
CN114666196A (en) Network distribution method and device of low-power-consumption equipment, proxy equipment and storage medium
CN116886739A (en) Remote control method, vehicle-mounted device, remote control device and vehicle
CN117656832B (en) Intelligent power distribution awakening system, method and device and storage medium
KR102371990B1 (en) Controller for vehicle and method for controlling power of controller for vehicle
EP4604492A1 (en) Remote control method, domain controller, and vehicle

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24921753

Country of ref document: EP

Kind code of ref document: A1