Communication method and device, vehicle and storage medium

By sending target heartbeat packets through a modem and discarding feedback heartbeat packets, the problem of high vehicle power consumption during vehicle system hibernation is solved, thus achieving the effect of reducing overall vehicle power consumption.

CN120857230APending Publication Date: 2025-10-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410509557.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Maintaining a long connection during the sleep state of an in-vehicle system leads to higher power consumption for the entire vehicle. Existing technologies use a heartbeat mechanism to wake up the system processor and peripherals, which increases power consumption during sleep.

Method used

Sending target heartbeat packets via modem and discarding data packets upon receiving feedback heartbeat packets avoids waking up the system processor and peripherals, thus reducing overall vehicle power consumption.

Benefits of technology

In the vehicle system's sleep state, by discarding feedback heartbeat packets, the system processor and peripherals are not woken up, thus reducing the overall vehicle power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120857230A_ABST
    Figure CN120857230A_ABST
Patent Text Reader

Abstract

The invention provides a communication method and device, a vehicle and a storage medium, and the method comprises the steps: responding to the determination that a vehicle-mounted system of the vehicle enters a dormant state, sending a target heartbeat packet to a target server according to Socket information, receiving a data packet sent by the target server, and responding to the condition that the data packet is a feedback heartbeat packet corresponding to the target heartbeat packet. And when the vehicle-mounted system enters a dormant state, sending a target heartbeat packet through the modem, and when the modem determines that the received data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, discarding the data packet, thereby realizing non-wakeup of a system processor in the vehicle-mounted system. Therefore, peripheral equipment connected with the system processor is not awakened, and the power consumption of the whole vehicle during the dormancy period is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless communication technology, and more particularly to a communication method, apparatus, vehicle, and storage medium. Background Technology

[0002] When the vehicle system is in sleep mode, the vehicle system and the server will establish a long connection based on the transport layer protocol. The long connection is used to maintain communication with the server, so that the server knows that it is present. The server determines that the vehicle system is online and will not disconnect the long connection.

[0003] In related technologies, long connections can be maintained through a heartbeat mechanism. The system processor of the vehicle system sends a heartbeat packet to the server, and the server sends a response heartbeat packet to the system processor. The response heartbeat packet wakes up the system processor of the vehicle system, which in turn pulls up the peripherals and introduces a large current, resulting in higher power consumption of the whole vehicle during the sleep period. Summary of the Invention

[0004] The present application aims to solve one of the technical problems in the related art at least to a certain extent.

[0005] To this end, this application proposes a communication method, apparatus, vehicle, and storage medium that transmits a target heartbeat packet via a modem. When the modem determines that the received data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded, thereby preventing the system processor in the vehicle system from being woken up, and thus preventing the peripherals connected to the system processor from being woken up, reducing the power consumption of the entire vehicle during sleep.

[0006] One embodiment of this application proposes a communication method applied to a modem in a vehicle, comprising:

[0007] In response to determining that the vehicle's onboard system has entered a sleep state, a target heartbeat packet is sent to the target server based on the socket information;

[0008] Receive data packets sent by the target server;

[0009] If the data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded.

[0010] Another embodiment of this application provides a communication device, including:

[0011] The sending module is used to execute a response to determining that the vehicle's onboard system has entered a sleep state, and to send a target heartbeat packet to the target server based on the socket information;

[0012] A receiving module is used to receive data packets sent by the target server;

[0013] The processing module is configured to execute a feedback heartbeat in response to the data packet being a corresponding target heartbeat packet, and discard the data packet.

[0014] Another embodiment of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method described in the foregoing aspect.

[0015] Another embodiment of this application proposes a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the foregoing aspect.

[0016] Another embodiment of this application proposes a computer program product having a computer program stored thereon, which, when executed by a processor, implements the method described in the foregoing aspect.

[0017] The communication method, apparatus, vehicle, and storage medium proposed in this application, in response to determining that the vehicle's onboard system has entered a sleep state, send a target heartbeat packet to a target server based on socket information, receive a data packet sent by the target server, and discard the data packet if the data packet is a feedback heartbeat packet corresponding to the target heartbeat packet. When the onboard system is in a sleep state, the target heartbeat packet is sent via a modem. If the modem determines that the received data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded. This achieves the goal of not waking up the system processor in the onboard system, thereby not waking up peripherals connected to the system processor and reducing the power consumption of the entire vehicle during sleep.

[0018] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. Attached Figure Description

[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart illustrating a communication method provided in an embodiment of this application;

[0021] Figure 2 A flowchart illustrating another communication method provided in an embodiment of this application;

[0022] Figure 3 This is a schematic diagram of a system structure provided in an embodiment of this application;

[0023] Figure 4 This is a schematic diagram of another system structure provided in an embodiment of this application;

[0024] Figure 5 A flowchart illustrating another communication method provided in an embodiment of this application;

[0025] Figure 6 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;

[0026] Figure 7 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. Detailed Implementation

[0027] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar units or units having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0028] The communication method, apparatus, vehicle, and storage medium of embodiments of this application are described below with reference to the accompanying drawings.

[0029] Figure 1 This is a flowchart illustrating a communication method provided in an embodiment of this application.

[0030] This disclosure illustrates an example where the communication method is configured in a communication device, which can be applied to a modem in a vehicle to enable the modem to perform communication functions.

[0031] like Figure 1 As shown, the method may include the following steps:

[0032] Step 101: In response to determining that the vehicle's onboard system has entered a sleep state, a target heartbeat packet is sent to the target server based on the socket information.

[0033] The sleep state of the vehicle system is a low-power or no-power standby state.

[0034] The target heartbeat packet is used to maintain a persistent connection between the vehicle and the target server. The socket information includes data required for sending the target heartbeat packet between the vehicle and the target server, such as address information and transmission frequency information. The target server can be a Telematics Service Provider (TSP) server; or, the target server can be the server corresponding to any application in the in-vehicle system that requires a persistent connection. Applications include those requiring real-time push notifications, such as social media applications. In this embodiment, in response to determining that the in-vehicle system has entered a sleep state, the modem determines the corresponding target server based on the acquired socket information and sends a pre-defined target heartbeat packet to the target server to maintain the persistent connection between the vehicle and the target server, ensuring that the target server does not disconnect from the vehicle.

[0035] Step 102: Receive the data packet sent by the target server.

[0036] In one scenario, the data packet sent by the target server is a control command sent by the target server to the modem, i.e., the data packet is a non-heartbeat packet; in another scenario, the data packet is a feedback heartbeat packet generated in response to the target heartbeat packet.

[0037] Step 103: In response to the data packet being a feedback heartbeat packet corresponding to the target heartbeat packet, discard the data packet.

[0038] In this embodiment, the modem receives a data packet sent by the target server and parses it. If the parsing result is indeed a feedback heartbeat packet corresponding to the target heartbeat packet (meaning the feedback heartbeat packet is generated and sent to the vehicle by the server based on the target heartbeat packet), and since the target heartbeat packet is used to maintain a long connection between the vehicle and the target server, this target heartbeat packet is discarded to prevent the system processor in the vehicle system from being woken up. Because of system processing and peripheral connections, waking up the system processor will not further wake up the peripherals, reducing power consumption during sleep. The system processor can be, for example, an application processor (AP), CPU, or MCU.

[0039] In the communication method of this application embodiment, in response to determining that the vehicle's in-vehicle system has entered a sleep state, a target heartbeat packet is sent to the target server according to the socket information, and a data packet sent by the target server is received. In response that the data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded. When the in-vehicle system enters a sleep state, the target heartbeat packet is sent through the modem. When the modem determines that the received data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded. This achieves the goal of not waking up the system processor in the in-vehicle system, thereby not waking up the peripherals connected to the system processor and reducing the power consumption of the whole vehicle during the sleep period.

[0040] Based on the above embodiments, Figure 2 This is a flowchart illustrating another communication method provided in an embodiment of this application. In this embodiment, combined with Figure 3 This will be illustrated using the example of the application layer deployment of heartbeat-related services within a modem. Figure 2 As shown, the method includes the following steps:

[0041] Step 201: Obtain the source address of the vehicle, the destination address of the target server, and the sending period of the target heartbeat packet.

[0042] The sending interval of the target heartbeat packet can be set according to requirements, such as 20 seconds, 30 seconds, etc. As one implementation method, the source address of the vehicle and the destination address of the target server are assigned by the network when the vehicle and the server establish a data link.

[0043] In this embodiment, the application layer responding to heartbeat-related services is deployed on the modem, and Socket information is generated through the modem. As one implementation, the source address of the vehicle, the destination address of the target server, and the transmission period of the target heartbeat packet are obtained from a designated storage unit.

[0044] Step 202: Generate Socket information based on the vehicle's source address, the target server's destination address, and the target heartbeat packet's transmission period. Step 203: In response to determining that the vehicle system has entered a sleep state, send a target heartbeat packet to the target server based on the socket information.

[0045] In this embodiment, in response to determining that the vehicle system has entered a sleep state, the transmission time of each target heartbeat packet can be determined according to the transmission cycle. At this transmission time, the generated target heartbeat packet is sent to the target server at the target address. The target heartbeat packet carries the vehicle's source address. The target server sends the generated data packet to the vehicle corresponding to the source address, and the vehicle then sends the received data packet to the modem, thereby enabling interaction between the target server and the vehicle's modem.

[0046] Optionally, the target heartbeat packet can be encrypted using an encryption algorithm to improve the security of transmission.

[0047] Step 204: Receive the data packet sent by the target server. Steps 203 and 204 are explained in the foregoing embodiments, as the principle is the same, and will not be repeated here.

[0048] Step 205: Parse the data packet to obtain the parsing result.

[0049] Step 206: In response to the parsing result including the first setting message, the data packet is discarded.

[0050] In this embodiment of the application, the data packet sent by the target server is parsed to obtain the parsing result. If the parsing result includes a first setting message, wherein the first setting message is generated by the server based on a predefined second setting message in the received target heartbeat packet, that is, the data packet sent by the target server is a heartbeat type packet, then the data packet is discarded.

[0051] In one implementation, if the second setting message is an empty message, the target server will generate an empty feedback message, i.e., the first setting message, after receiving the empty message. Since the first setting message is also an empty message, the modem will discard the data packet corresponding to the target heartbeat packet to avoid waking up the main processor and peripherals connected to the main processor in the vehicle's onboard system, thereby reducing the power consumption of the whole vehicle in the sleep state.

[0052] In another implementation, the second setting message is not empty, but it contains a first setting character. This first setting character is only used to indicate that the second setting message is used to maintain a long connection between the vehicle and the target server. For example, the first setting character is 1. Therefore, the target server generates a first setting message corresponding to the target heartbeat packet based on the first setting character in the second setting message. This first setting message includes the second setting character, which can also be 1, meaning the first setting message and the second setting message are the same. Alternatively, the second setting character can be 0, corresponding to the first setting character 1. The correspondence between the first and second setting characters can be preset. The second setting character 0 is also only used to indicate that the first setting message is used to maintain a long connection between the vehicle and the target server. Therefore, although the first and second setting messages are different, they are both used to maintain a long connection between the vehicle and the target server. Consequently, the modem in the vehicle discards the data packet corresponding to the target heartbeat packet to avoid waking up the main processor and peripherals connected to the main processor in the vehicle's onboard system, reducing the power consumption of the entire vehicle in sleep mode.

[0053] Step 207: In response to the parsing results including the target control instructions, a wake-up message for the system processor is generated.

[0054] In real-world scenarios, even when the vehicle is in sleep mode, the target server can still receive target control commands sent by the user through the terminal device. These target control commands are one type of control instruction used to manage the vehicle. For example, if the user needs to turn on the vehicle's air conditioning in advance, the target server needs to send a target control command to the vehicle to turn on the air conditioning beforehand, ensuring the user enjoys a comfortable temperature when returning to the vehicle. When the modem receives a data packet from the target server and parses it to determine that it includes a target control command, it indicates that the vehicle's system processor needs to be woken up, and thus generates a system processor wake-up message.

[0055] Step 208: Send a wake-up message to the system processor.

[0056] The wake-up message is used by the system processor to execute target operations based on the target control instructions carried in the wake-up message. For example, if the target control instructions are control instructions for the target unit, the system processor will wake up the target unit and execute the operation corresponding to the control instructions, such as turning on the air conditioner or playing music.

[0057] In this embodiment, the modem in the vehicle sends a wake-up message to the system processor through a communication link with the system processor, so that the system processor executes a target operation according to the target control instruction carried in the wake-up message to wake up the corresponding target unit and make the target unit start running. For example, the target control instruction to turn on the air conditioner corresponds to the air conditioner device in the vehicle.

[0058] In the communication method of this application embodiment, the relevant application for sending the target heartbeat packet is set in the modem. When the vehicle system is in a sleep state, the modem sends the target heartbeat packet to maintain a long connection between the vehicle and the target server. After sending the target heartbeat packet, the modem receives the data packet sent by the target server. Based on the parsing result of the data packet, different processing methods are implemented for feedback heartbeat packets and non-feedback heartbeat packets. When the data packet is a feedback heartbeat packet, it is discarded to avoid waking up the processor and corresponding peripherals, thereby reducing power consumption. When the data packet is not a feedback heartbeat packet, the system processor is woken up so that the system processor can control the corresponding target unit according to the target control instructions in the data packet, thus meeting the control requirements in different scenarios.

[0059] Based on the above embodiments, this application provides another communication method. In this application embodiment, in order to reduce the processing pressure on the modem, without expanding the processing capacity and / or storage capacity of the modem, the processing data of the modem can be shared by low-power units in the vehicle, such as... Figure 4 As shown, the application layer of heartbeat-related services is ported to the low-power unit. The low-power unit generates Socket information and sends it to the modem based on the communication connection between the modem and the low-power unit. This communication connection is implemented based on the Qualcomm MSM Interface (QMI) protocol. When the vehicle system enters sleep mode, it sends a target heartbeat packet initiation message to the modem. The modem, based on the initiation message and the Socket information, begins sending the target heartbeat packet. The low-power unit can be, for example, a low-power AI sensor (LPAI). Figure 5 This is a flowchart illustrating another communication method provided in an embodiment of this application, as shown below. Figure 5 As shown, the method includes the following steps:

[0060] Step 501: Receive the Socket information sent by the low-power unit.

[0061] The Socket information is generated by the low-power unit based on the source address of the vehicle system corresponding to the vehicle system, the destination address of the target server, and the sending period of the target heartbeat packet. The explanation of the Socket information can be found in the previous embodiments, as the principle is the same, and will not be repeated here.

[0062] In this embodiment, Socket information is generated by a low-power unit and sent to the modem, which reduces the processing pressure on the modem. Even when the modem's computing power and / or storage space are limited, the target heartbeat packet can be sent through the modem without expanding the storage space or increasing costs.

[0063] Step 502: Receive the start message sent by the low-power unit in response to the vehicle system entering sleep mode.

[0064] The initiation message is used to instruct the modem to begin sending the target heartbeat packet.

[0065] Step 503: Based on the startup message and socket information, send a target heartbeat packet to the target server.

[0066] As one implementation, the modem can generate a target heartbeat packet upon receiving a startup message and send the generated target heartbeat packet to the target server based on the socket information. For a detailed explanation of the target heartbeat packet, please refer to the description in any of the foregoing embodiments; the principle is the same, and will not be repeated here.

[0067] As a second implementation, the target heartbeat packet in the modem can be pre-generated and stored in the modem's storage unit, and in response to receiving a start message, the target heartbeat packet is sent to the target server according to the socket information.

[0068] Step 504: Receive the data packet sent by the target server.

[0069] Step 505: Parse the data packet to obtain the parsing result.

[0070] Step 506: In response to the parsing result including the first setting message, the data packet is discarded.

[0071] Step 507: In response to the parsing results, including the target control command, generate a wake-up message for the system processor and generate a feedback message.

[0072] Steps 504 to 507 can be explained in any of the foregoing embodiments, and the principle is the same, so they will not be repeated here.

[0073] Step 508: Send a feedback message to the low-power unit and a wake-up message to the system processor.

[0074] In this embodiment of the application, if it is determined that the data packet sent by the target server includes a target control command, a wake-up message for the system processor needs to be generated to wake up the system processor. At the same time, a feedback message for the low-power unit needs to be generated to notify the low-power unit to exit target heartbeat packet hosting, that is, the modem stops sending target heartbeat packets.

[0075] In the communication method of this application embodiment, the application layer of heartbeat packet-related services is deployed in a low-power unit. Socket information is generated through the low-power unit and sent to the modem based on the communication connection between the modem and the low-power unit. When the vehicle system enters a sleep state, a target heartbeat packet initiation message is sent to the modem. The modem starts sending the target heartbeat packet based on the initiation message and the socket information. By implementing some functions through the low-power unit, the processing and memory pressure on the modem is reduced. The heartbeat packet service is implemented through the modem and the low-power unit without increasing costs. Furthermore, based on the parsing results of the data packets, different processing methods are implemented for feedback heartbeat packets and non-feedback heartbeat packets. When the data packet is a feedback heartbeat packet, it is discarded to avoid waking up the main system and reduce power consumption. When the data packet is not a feedback heartbeat packet, the system processor is woken up so that the system processor can control the corresponding target unit according to the target control instructions in the data packet, thus meeting the control requirements in different scenarios.

[0076] To implement the above embodiments, this application also proposes a communication device.

[0077] Figure 6 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application.

[0078] like Figure 6 As shown, the device may include:

[0079] The sending module 61 is used to send a target heartbeat packet to the target server in response to determining that the vehicle's onboard system has entered a sleep state, based on the socket information.

[0080] The receiving module 62 is used to receive data packets sent by the target server.

[0081] Processing module 63 is configured to execute a feedback heartbeat in response to the data packet being a corresponding target heartbeat packet, and discard the data packet.

[0082] Furthermore, in one implementation of this application embodiment, the processing module 63 is used to perform:

[0083] The data packet is parsed to obtain the parsing result;

[0084] In response to the parsing result including a first setting message, the data packet is discarded; wherein the first setting message is generated by the server based on the second setting message in the received target heartbeat packet.

[0085] In one implementation of this application, the apparatus further includes:

[0086] The generation module is used to obtain the source address of the vehicle, the destination address of the target server, and the sending period of the target heartbeat packet, and generate the Socket information based on the source address of the vehicle, the destination address of the target server, and the sending period of the target heartbeat packet.

[0087] In one implementation of this application, the apparatus further includes:

[0088] The second processing module is configured to parse the data packet to obtain a parsing result; in response to the parsing result including a target control instruction, generate a wake-up message for the system processor; and send the wake-up message to the system processor; wherein the wake-up message is used by the system processor to execute a target operation according to the target control instruction carried in the wake-up message.

[0089] In one implementation of this application, the vehicle includes a low-power unit, a receiving module 62, and is further configured to perform:

[0090] The Socket information is received by the low-power unit; wherein the Socket information is generated by the low-power unit based on the source address of the vehicle, the destination address of the target server, and the sending period of the target heartbeat packet.

[0091] In one implementation of this application embodiment, the receiving module 62 is further configured to perform:

[0092] The system receives a startup message sent by the low-power unit in response to the vehicle system entering a sleep state; wherein the startup message is used to instruct the modem to start sending the target heartbeat packet.

[0093] In one implementation of this application embodiment, the sending module 61 is further configured to perform:

[0094] In response to the parsing result of the data packet, including control commands, a feedback message is generated;

[0095] The feedback message is sent to the low-power unit; wherein the feedback message is used to notify the low-power unit that the modem stops sending the target heartbeat packet.

[0096] It should be noted that the foregoing explanation of the method embodiments also applies to the apparatus of this embodiment, and will not be repeated here.

[0097] In the communication device of this application embodiment, in response to determining that the vehicle's in-vehicle system has entered a sleep state, a target heartbeat packet is sent to a target server according to the socket information, and a data packet sent by the target server is received. In response that the data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded. When the in-vehicle system enters a sleep state, the target heartbeat packet is sent through a modem. When the modem determines that the received data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded. This achieves the goal of not waking up the system processor in the in-vehicle system, thereby not waking up the peripherals connected to the system processor and reducing the power consumption of the whole vehicle during the sleep period.

[0098] To implement the above embodiments, this application also proposes a vehicle, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the method described in the foregoing method embodiments.

[0099] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in the foregoing method embodiments.

[0100] To implement the above embodiments, this application also proposes a computer program product having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in the foregoing method embodiments.

[0101] Figure 7 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. For example, vehicle 600 can be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicles. Vehicle 600 can be an autonomous vehicle, a semi-autonomous vehicle, or a non-autonomous vehicle.

[0102] Reference Figure 7 The vehicle 600 may include various subsystems, such as an infotainment system 610, a perception system 620, a decision control system 630, a drive system 640, and a computing platform 650. The vehicle 600 may also include more or fewer subsystems, and each subsystem may include multiple components. Furthermore, each subsystem and each component of the vehicle 600 can be interconnected via wired or wireless means.

[0103] In some embodiments, the infotainment system 610 may include a communication system, an entertainment system, and a navigation system, etc.

[0104] The perception system 620 may include several sensors for sensing information about the environment surrounding the vehicle 600. For example, the perception system 620 may include a global positioning system (which may be GPS, BeiDou, or other positioning systems), an inertial measurement unit (IMU), lidar, millimeter-wave radar, ultrasonic radar, and a camera device.

[0105] The decision control system 630 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0106] The drive system 640 may include components that provide powered motion to the vehicle 600. In one embodiment, the drive system 640 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of internal combustion engines, electric motors, and compressed air engines. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0107] Some or all of the functions of vehicle 600 are controlled by computing platform 650. Computing platform 650 may include at least one processor 651 and memory 652, processor 651 can execute instructions 653 stored in memory 652.

[0108] Processor 651 can be any conventional processor, such as a commercially available CPU. The processor may also include, for example, a Graphics Processing Unit (GPU), a Field Programmable Gate Array (FPGA), a System on Chip (SOC), an Application Specific Integrated Circuit (ASIC), or a combination thereof.

[0109] The memory 652 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0110] In addition to instruction 653, memory 652 can also store data, such as road maps, route information, vehicle position, direction, speed, and other data. The data stored in memory 652 can be used by computing platform 650.

[0111] In this embodiment of the disclosure, processor 651 may execute instructions 653 to complete all or part of the steps of the above-described method embodiments.

[0112] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0113] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0114] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0115] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0116] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0117] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0118] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0119] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.

Claims

1. A communication method, characterized in that, Modems used in vehicles include: In response to determining that the vehicle's onboard system has entered a sleep state, a target heartbeat packet is sent to the target server based on the socket information; Receive data packets sent by the target server; If the data packet is a feedback heartbeat packet corresponding to the target heartbeat packet, the data packet is discarded.

2. The method as described in claim 1, characterized in that, The step of discarding the data packet in response to the data packet being a feedback heartbeat packet corresponding to the target heartbeat packet includes: The data packet is parsed to obtain the parsing result; In response to the parsing result including a first setting message, the data packet is discarded; wherein the first setting message is generated by the server based on the second setting message in the received target heartbeat packet.

3. The method as described in claim 1, characterized in that, The method further comprises: Obtain the source address of the vehicle, the destination address of the target server, and the sending period of the target heartbeat packet; The Socket information is generated based on the source address of the vehicle, the destination address of the target server, and the sending period of the target heartbeat packet.

4. The method according to any one of claims 1-3, characterized in that, The method further comprises: The data packet is parsed to obtain the parsing result; In response to the parsing result including the target control command, a wake-up message for the system processor is generated; The wake-up message is sent to the system processor; wherein the wake-up message is used by the system processor to execute a target operation according to the target control instruction carried in the wake-up message.

5. The method as described in claim 1, characterized in that, The vehicle includes a low-power unit, and the method further includes: The system receives the Socket information sent by the low-power unit; wherein the Socket information is generated by the low-power unit based on the source address of the vehicle, the destination address of the target server, and the sending cycle of the target heartbeat packet.

6. The method as described in claim 5, characterized in that, Before sending the target heartbeat packet to the target server based on the socket information, the process also includes: The system receives a startup message sent by the low-power unit in response to the vehicle system entering a sleep state; wherein the startup message is used to instruct the modem to start sending the target heartbeat packet.

7. The method as described in claim 5, characterized in that, The method further includes: In response to the parsing result of the data packet, including control commands, a feedback message is generated; The feedback message is sent to the low-power unit; wherein the feedback message is used to notify the low-power unit that the modem stops sending the target heartbeat packet.

8. A communication device, characterized in that, include: The sending module is used to execute the response to determining that the vehicle's onboard system has entered a sleep state, and to send a target heartbeat packet to the target server based on the socket information; A receiving module is used to receive data packets sent by the target server; The processing module is configured to execute a feedback heartbeat in response to the data packet being a corresponding target heartbeat packet, and discard the data packet.

9. A vehicle, characterized in that, include: Modem, the modem including a processor; Memory used to store processor-executable instructions; The processor is configured as follows: The steps of implementing the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the mobile terminal, the mobile terminal is able to perform the steps of the method according to any one of claims 1 to 7.

11. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, implements the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method for maintaining connection of terminal and network server, terminal and network server

    CN102036349A

  • Method of service agent, modem and terminal

    CN103843418A

  • Low-power-consumption processing method and device, terminal and storage medium

    CN117241352A