CN113709202A - Method and system for awakening system chip - Google Patents
Method and system for awakening system chip Download PDFInfo
- Publication number
- CN113709202A CN113709202A CN202010440947.XA CN202010440947A CN113709202A CN 113709202 A CN113709202 A CN 113709202A CN 202010440947 A CN202010440947 A CN 202010440947A CN 113709202 A CN113709202 A CN 113709202A
- Authority
- CN
- China
- Prior art keywords
- cloud server
- long connection
- system chip
- network access
- communication protocol
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000004891 communication Methods 0.000 claims abstract description 105
- 230000005059 dormancy Effects 0.000 claims abstract description 28
- 230000002618 waking effect Effects 0.000 claims description 27
- 238000012790 confirmation Methods 0.000 claims description 24
- 230000008569 process Effects 0.000 abstract description 6
- 230000007958 sleep Effects 0.000 description 27
- 238000004590 computer program Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004622 sleep time Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
- H04L67/145—Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Medical Informatics (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Cardiology (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a method and a system for awakening a system chip, relates to the technical field of automobile communication, and aims to improve the efficiency of establishing long connection between the awakening system chip and a cloud server. The method of the invention comprises the following steps: the system chip sends a dormancy notification to the network access equipment and enters a dormancy state; after receiving the dormancy notification, the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol; after receiving a wake-up message sent by the cloud server through the first long connection, the network access device wakes up the system chip; the system chip establishes a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server sends a vehicle control command to the system chip through the second long connection. The method and the system are suitable for the process of establishing long connection between the system chip and the cloud server.
Description
Technical Field
The invention relates to the technical field of automobile communication, in particular to a method and a system for waking up a system chip.
Background
In order to ensure that a vehicle control instruction sent by a cloud server can be received in time, a system chip in a vehicle-mounted central control system needs to establish long connection with the cloud server and maintain the long connection; however, the system chip always being in the wake-up state may increase the power consumption of the vehicle central control system. Therefore, how to reduce the power consumption of the vehicle-mounted central control system is particularly important on the basis of ensuring that the cloud server can issue the vehicle control command to the system chip in time.
At present, a long connection between a system chip and a server is usually disconnected, the system chip is in a dormant state, and a network access device is in an awakening state; when the cloud server needs to issue the vehicle control instruction, the cloud server sends a wake-up short message to the network access device, the network access device wakes up the system chip after receiving the wake-up short message, long connection is established between the system chip and the cloud server, and the cloud server issues the vehicle control instruction to the system chip through the long connection between the cloud server and the system chip. However, since it takes a long time to establish a long connection between the system chip and the cloud server by sending the wake-up short message from the cloud server to the network access device, it is inefficient to wake up the system chip and the cloud server by sending the wake-up short message to the network access device.
Disclosure of Invention
In view of this, the present invention provides a method and a system for waking up a system chip, and mainly aims to improve the efficiency of establishing a long connection between the system chip and a cloud server.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
in a first aspect, the present invention provides a method for waking up a system chip, where the method includes:
the system chip sends a dormancy notification to the network access equipment and enters a dormancy state;
after receiving the dormancy notification, the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol;
after receiving a wake-up message sent by the cloud server through the first long connection, the network access device wakes up the system chip;
the system chip establishes a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server sends a vehicle control command to the system chip through the second long connection.
Optionally, the network access device establishes a first long connection with the cloud server based on a first preset communication protocol, including:
the network access equipment sends an establishment message to the cloud server based on the first preset communication protocol;
and after receiving the confirmation message fed back by the cloud server, the network access equipment establishes the first long connection with the cloud server.
Optionally, after the network access device establishes a first long connection with a cloud server based on a first preset communication protocol, the method further includes:
the network access equipment sends a first heartbeat message to the cloud server through the first long connection according to a first preset time interval;
and the network access equipment receives a second heartbeat message fed back by the cloud server through the first long connection so as to maintain the first long connection.
Optionally, before the network access device wakes up the system chip, the method further includes:
the network access equipment sends a wakeup confirmation message to the cloud server through the first long connection;
the network access device disconnects the first long connection.
Optionally, the method further includes:
when the system chip is in an awakening state and data to be uploaded exist, the system chip establishes a second long connection with the cloud server based on the second preset communication protocol;
and the system chip uploads the data to be uploaded to the cloud server through the second long connection.
Optionally, the method further includes:
the system chip sends a third heartbeat message to the cloud server through the second long connection according to a second preset time interval;
and the system chip receives a fourth heartbeat message fed back by the cloud server through the second long connection so as to maintain the second long connection.
Optionally, the first preset communication protocol is as follows: a communication protocol for providing communication support for the cloud server and the network access equipment; the second preset communication protocol is as follows: message queue telemetry transport protocol.
In a second aspect, the present invention further provides a system for waking up a system chip, where the system includes: a system chip and a network access device;
the system chip is used for sending a dormancy notification to the network access equipment and entering a dormancy state;
the network access equipment is used for establishing a first long connection with a cloud server based on a first preset communication protocol after receiving the dormancy notification; awakening the system chip after receiving an awakening message sent by the cloud server through the first long connection;
the system chip is further used for establishing a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server can send the vehicle control command to the system chip through the second long connection.
Optionally, the network access device is specifically configured to send an establishment packet to the cloud server based on the first preset communication protocol; and after receiving a confirmation message fed back by the cloud server, establishing the first long connection with the cloud server.
Optionally, the network access device is further configured to send a first heartbeat packet to the cloud server through a first long connection according to a first preset time interval after establishing the first long connection with the cloud server based on a first preset communication protocol; and receiving a second heartbeat message fed back by the cloud server through the first long connection so as to maintain the first long connection.
Optionally, the network access device is further configured to send a wakeup confirm message to the cloud server through the first long connection before waking up the system chip; the first long connection is broken.
Optionally, the system chip is further configured to establish a second long connection with the cloud server based on the second preset communication protocol when the system chip is in an awake state and data to be uploaded exists; and uploading the data to be uploaded to the cloud server through the second long connection.
Optionally, the system chip is further configured to send a third heartbeat packet to the cloud server through the second long connection according to a second preset time interval; and receiving a fourth heartbeat message fed back by the cloud server through the second long connection so as to maintain the second long connection.
Optionally, the first preset communication protocol is as follows: a communication protocol for providing communication support for the cloud server and the network access equipment; the second preset communication protocol is as follows: message queue telemetry transport protocol.
In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the method for waking up a system chip according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides an apparatus for waking up a system chip, where the apparatus includes a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; the program instructions, when executed, perform the method for waking up a system chip of the first aspect.
By the technical scheme, the technical scheme provided by the invention at least has the following advantages:
compared with the prior art that the efficiency of a mode that a cloud server sends a wake-up short message to network access equipment to wake up the system chip and establish long connection with the cloud server is low, the method and the system for waking up the system chip send a sleep notification to the network access equipment by the system chip when a preset sleep moment is reached or a sleep instruction is received, and enter a sleep state; the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol after receiving a sleep notification sent by a system chip, and wakes up the system chip after receiving a wake-up message sent by the cloud server through the first long connection; after the system chip enters the awakening state, a second long connection is established with the cloud server based on a second preset communication protocol, so that the cloud server sends the vehicle control command to the system chip through the second long connection. Because the network access device can establish long connection with the cloud server after the system chip enters the dormant state, when the cloud server needs to issue a vehicle control instruction to the system chip, the cloud server can send a wake-up message to the network access device through the long connection with the network access device at the first time so as to wake up the system chip and establish the long connection with the cloud server, and therefore the efficiency of establishing the long connection between the wake-up system chip and the cloud server can be effectively improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of a method for waking up a system chip according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for waking up a system chip according to an embodiment of the present invention;
fig. 3 shows a block diagram of a system for waking up a system chip according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
An embodiment of the present invention provides a method for waking up a system chip, as shown in fig. 1, the method includes:
101. the system chip sends a dormancy notification to the network access equipment and enters a dormancy state.
In the embodiment of the present invention, when a preset sleep time is reached or a sleep command is received, a System on Chip (SoC) sends a sleep notification to a Network Access Device (NAD), and enters a sleep state. Specifically, in this step, the system chip may send the sleep notification to the network access device through its own virtual network card, but is not limited thereto.
It should be noted that, in the actual application process, when a long connection is established between the system chip and the cloud server, the long connection between the system chip and the cloud server needs to be disconnected before the system chip enters the sleep state.
102. After receiving the dormancy notification, the network access device establishes a first long connection with the cloud server based on a first preset communication protocol.
The first preset communication Protocol is a communication Protocol compiled based on a Transmission Control Protocol (TCP) and a Security Transport Layer Protocol (TLS), and belongs to an application Layer Protocol, and the first preset communication Protocol specifically comprises: the network access equipment can establish and maintain long connection with the cloud server based on a first preset communication protocol; the message compiled by the network access device and the cloud server based on the first preset communication protocol comprises a fixed head and a variable head, the fixed head of the message comprises five bytes, the first two bytes are used for determining whether the message is the message compiled based on the first preset communication protocol, the third byte is used for indicating the type of the message, and the fourth byte and the fifth byte are used for indicating the length of the variable head of the message.
In the embodiment of the present invention, after receiving the sleep notification sent by the system chip, the network access device establishes a long connection (i.e., a first long connection) with the cloud server based on the first preset communication protocol.
103. After receiving the wake-up message sent by the cloud server through the first long connection, the network access device wakes up the system chip.
The wake-up message is compiled by the cloud server based on a first preset communication protocol.
In the embodiment of the invention, when the cloud server needs to issue the vehicle control instruction to the system chip, the cloud server compiles the wake-up message based on the first preset communication protocol and sends the wake-up message to the network access equipment through the first long connection with the network access equipment; after receiving the wake-up message sent by the cloud server through the first long connection, the network access device can wake up the system chip, so that the system chip enters a wake-up state from a dormant state.
Specifically, in this step, the network access device may send a wake-up notification to the system chip through its own virtual network card to wake up the system chip, but is not limited thereto.
Further, in the embodiment of the present invention, when the cloud server compiles the wake-up packet based on the first preset communication protocol, the cloud server may further add a wake-up request identification code in a variable header of the wake-up packet; after receiving the wake-up packet, the network access device also needs to record the wake-up request identifier included in the wake-up packet into a local log, so as to query the wake-up record in the following.
104. The system chip establishes a second long connection with the cloud server based on a second preset communication protocol so that the cloud server sends the vehicle control command to the system chip through the second long connection.
The second preset communication protocol specifically comprises the following steps: message queue Telemetry Transport protocol (MQTT), the second long connection is specifically: MQTT long links.
In the embodiment of the present invention, after the system chip is awakened by the network access device, a long connection (i.e., a second long connection) may be established with the cloud server based on the second preset communication protocol, and at this time, the cloud server may issue the vehicle control command to the system chip through the second long connection with the system chip.
Specifically, in this step, the system chip may establish a second long connection with the cloud server through a preset program, where the preset program is specifically an IOT-Service program, but is not limited thereto.
Compared with the prior art that the efficiency of a mode that a cloud server sends a wake-up short message to a network access device to wake up the system chip and establish long connection with the cloud server is low, the method for waking up the system chip provided by the embodiment of the invention sends a sleep notification to the network access device by the system chip when a preset sleep moment is reached or a sleep instruction is received, and enters a sleep state; the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol after receiving a sleep notification sent by a system chip, and wakes up the system chip after receiving a wake-up message sent by the cloud server through the first long connection; after the system chip enters the awakening state, a second long connection is established with the cloud server based on a second preset communication protocol, so that the cloud server sends the vehicle control command to the system chip through the second long connection. Because the network access device can establish long connection with the cloud server after the system chip enters the dormant state, when the cloud server needs to issue a vehicle control instruction to the system chip, the cloud server can send a wake-up message to the network access device through the long connection with the network access device at the first time so as to wake up the system chip and establish the long connection with the cloud server, and therefore the efficiency of establishing the long connection between the wake-up system chip and the cloud server can be effectively improved.
To be described in more detail below, an embodiment of the present invention provides another method for waking up a system chip, specifically as shown in fig. 2, where the method includes:
201. the system chip sends a dormancy notification to the network access equipment and enters a dormancy state.
In step 201, the system chip sends the sleep notification to the network access device and enters the sleep state, reference may be made to the description of the corresponding part in fig. 1, and details of the embodiment of the present invention will not be described here.
202. After receiving the dormancy notification, the network access device establishes a first long connection with the cloud server based on a first preset communication protocol.
In the embodiment of the invention, after receiving the dormancy notification sent by the system chip, the network access equipment establishes a first long connection with the cloud server based on a first preset communication protocol. The following describes how the network access device establishes the first long connection with the cloud server based on the first preset communication protocol.
(1) The network access equipment sends an establishment message to the cloud server based on the first preset communication protocol.
The message is established by the network access equipment and compiled based on a first preset communication protocol.
In the embodiment of the invention, after receiving the sleep notification sent by the system chip, the network access device firstly needs to compile an establishment message based on a first preset communication protocol, and then sends the compiled establishment message to the cloud server.
Further, in the embodiment of the present invention, when the network access device writes the establishment packet based on the first preset communication protocol, the network access device further needs to perform signature processing on the identification code corresponding to the vehicle to which the network access device belongs by using a preset signature key to generate a digital signature, and add the generated digital signature to the variable header of the establishment packet, so that the cloud server verifies the identity of the network access device based on the digital signature included in the establishment packet to determine whether to establish a long connection with the network access device, where the identification code corresponding to the vehicle to which the network access device belongs may be, but is not limited to: a VIN code (Vehicle Identification Number) or an engine code corresponding to a Vehicle to which the network access device belongs.
(2) After receiving the confirmation message fed back by the cloud server, the network access device establishes a first long connection with the cloud server.
The confirmation message is compiled by the cloud server based on a first preset communication protocol.
In the embodiment of the present invention, after receiving the establishment message sent by the network access device, the cloud server compiles a confirmation message based on the first preset communication protocol and feeds back the compiled confirmation message to the network access device, and after receiving the confirmation message fed back by the cloud server, the network access device can successfully establish a long connection (i.e., a first long connection) with the cloud server.
Further, in the embodiment of the present invention, when the establishment message sent by the network access device to the cloud server includes the digital signature, after receiving the establishment message sent by the network access device, the cloud server further needs to verify the identity of the network access device based on the digital signature: decrypting the digital signature by using a preset signature key to obtain an identity code corresponding to a vehicle to which the network access equipment belongs, judging whether the identity code corresponding to the vehicle to which the network access equipment belongs is in a white list, if so, judging that the verification is successful, and at the moment, the cloud server needs to compile a confirmation message based on a first preset communication protocol and feed the compiled confirmation message back to the network access equipment; if not, the verification is judged to be failed, and at the moment, the cloud server needs to send error reporting information to the network access equipment.
Further, in the embodiment of the present invention, after the network access device establishes the first long connection with the cloud server based on the first preset communication protocol, the network access device further needs to compile a heartbeat message (i.e., a first heartbeat message) based on the first preset communication protocol according to a preset time interval (i.e., a first preset time interval), and send the first heartbeat message to the cloud server through the first long connection; after receiving a first heartbeat message sent by the network access device through the first long connection, the cloud server needs to compile a heartbeat message (i.e., a second heartbeat message) based on a first preset communication protocol, and send the second heartbeat message to the network access device through the first long connection, so as to maintain the first long connection.
203. After receiving the wake-up message sent by the cloud server through the first long connection, the network access device sends a wake-up confirmation message to the cloud server through the first long connection, and disconnects the first long connection.
And the awakening confirmation message is compiled by the network access equipment based on the first preset communication protocol.
In the embodiment of the invention, when the cloud server needs to issue the vehicle control instruction to the system chip, the cloud server compiles the wake-up message based on the first preset communication protocol and sends the wake-up message to the network access equipment through the first long connection with the network access equipment; after receiving the wake-up message sent by the cloud server through the first long connection, the network access device writes a wake-up confirmation message based on the first preset communication protocol, and sends the wake-up confirmation message to the cloud server through the first long connection so as to inform the cloud server that the system chip is about to be woken up, and disconnects the first long connection with the cloud server.
Further, in the embodiment of the present invention, when the wake-up message sent by the cloud server to the network access device includes the wake-up request identification code, and when the network access device compiles the wake-up confirmation message based on the first preset communication protocol, the cloud server needs to add the wake-up request identification code to the variable header of the wake-up confirmation message, so that the cloud server determines that the wake-up confirmation message fed back by the network access device corresponds to the wake-up message sent by the cloud server.
204. The network access device wakes up the system chip.
In the embodiment of the invention, the network access device sends the awakening confirmation message to the cloud server through the first long connection, and can awaken the system chip after the first long connection with the cloud server is disconnected, so that the system chip enters the awakening state from the dormant state.
205. The system chip establishes a second long connection with the cloud server based on a second preset communication protocol so that the cloud server sends the vehicle control command to the system chip through the second long connection.
In step 205, a second long connection is established between the system chip and the cloud server based on a second preset communication protocol, so that the cloud server issues the vehicle control command to the system chip through the second long connection, which may refer to the description of the corresponding part in fig. 1, and details of the embodiment of the present invention will not be repeated here.
Further, in the embodiment of the present invention, after the cloud server issues the vehicle control command to the system chip through the second long connection, the system chip may directly disconnect the second long connection; the second long connection can also be maintained to prevent the cloud server from issuing the vehicle control instruction to the system chip again in a short time. Specifically, the system chip and the cloud server may maintain the second long connection in the following manner: the system chip writes heartbeat messages (namely third heartbeat messages) based on a second preset communication protocol according to a preset time interval (namely a second preset time interval), and sends the third heartbeat messages to the cloud server through a second long connection; after receiving the third heartbeat message sent by the system chip through the second long connection, the cloud server needs to compile a heartbeat message (i.e., a fourth heartbeat message) based on a second preset communication protocol, and send the fourth heartbeat message to the system chip through the second long connection, so as to maintain the second long connection.
Further, in the embodiment of the present invention, when the system chip is in the wake-up state and there is data to be uploaded, the system chip needs to establish a long connection (i.e., a second long connection) with the cloud server based on the second preset communication protocol, and upload the data to be uploaded to the cloud server through the second long connection. Specifically, in this step, the system chip may establish a second long connection with the cloud server through a preset program, where the preset program is specifically an IOT-Service program, but is not limited thereto.
Further, as an implementation of the method shown in fig. 1 and fig. 2, another embodiment of the present invention further provides a system for waking up a system chip. The system embodiment corresponds to the method embodiment, and details in the method embodiment are not described in detail again in this system embodiment for easy reading, but it should be clear that the system in this embodiment can correspondingly implement all the contents in the method embodiment. This system is applied to improving and awakens up the efficiency that system chip and cloud server set up long connection, specifically as shown in fig. 3, this system includes: a system chip 31 and a network access device 32;
the system chip 31 is configured to send a sleep notification to the network access device 32, and enter a sleep state;
the network access device 32 is configured to establish a first long connection with the cloud server based on a first preset communication protocol after receiving the sleep notification; after receiving the wake-up message sent by the cloud server through the first long connection, waking up the system chip 31;
the system chip 31 is further configured to establish a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server sends the vehicle control command to the system chip 31 through the second long connection.
Further, the network access device 32 is specifically configured to send an establishment packet to the cloud server based on the first preset communication protocol; and after receiving a confirmation message fed back by the cloud server, establishing the first long connection with the cloud server.
Further, the network access device 32 is further configured to send a first heartbeat packet to the cloud server through the first long connection according to a first preset time interval after establishing the first long connection with the cloud server based on the first preset communication protocol; and receiving a second heartbeat message fed back by the cloud server through the first long connection so as to maintain the first long connection.
Further, the network access device 32 is further configured to send a wakeup confirm message to the cloud server through the first long connection before waking up the system chip 31; the first long connection is broken.
Further, the system chip 31 is further configured to establish a second long connection with the cloud server based on the second preset communication protocol when the system chip is in an awake state and data to be uploaded exists; and uploading the data to be uploaded to the cloud server through the second long connection.
Further, the system chip 31 is further configured to send a third heartbeat message to the cloud server through the second long connection according to a second preset time interval; and receiving a fourth heartbeat message fed back by the cloud server through the second long connection so as to maintain the second long connection.
Further, the first preset communication protocol is as follows: a communication protocol for providing communication support for the cloud server and the network access device 32; the second preset communication protocol is as follows: message queue Telemetry Transport protocol (MQTT, Message Queuing telemeasurement Transport).
Compared with the prior art that the efficiency of a mode that a cloud server sends a wake-up short message to a network access device to wake up the system chip and establish long connection with the cloud server is low, the method and the system for waking up the system chip provided by the embodiment of the invention send a sleep notification to the network access device by the system chip when a preset sleep moment is reached or a sleep instruction is received, and enter a sleep state; the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol after receiving a sleep notification sent by a system chip, and wakes up the system chip after receiving a wake-up message sent by the cloud server through the first long connection; after the system chip enters the awakening state, a second long connection is established with the cloud server based on a second preset communication protocol, so that the cloud server sends the vehicle control command to the system chip through the second long connection. Because the network access device can establish long connection with the cloud server after the system chip enters the dormant state, when the cloud server needs to issue a vehicle control instruction to the system chip, the cloud server can send a wake-up message to the network access device through the long connection with the network access device at the first time so as to wake up the system chip and establish the long connection with the cloud server, and therefore the efficiency of establishing the long connection between the wake-up system chip and the cloud server can be effectively improved.
The embodiment of the invention provides a storage medium, which comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the method for waking up the system chip.
The storage medium may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the invention also provides a device for waking up the system chip, which comprises a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; and when the program instruction runs, the method for waking up the system chip is executed.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
the system chip sends a dormancy notification to the network access equipment and enters a dormancy state;
after receiving the dormancy notification, the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol;
after receiving a wake-up message sent by the cloud server through the first long connection, the network access device wakes up the system chip;
the system chip establishes a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server sends a vehicle control command to the system chip through the second long connection.
Further, the network access device establishes a first long connection with the cloud server based on a first preset communication protocol, including:
the network access equipment sends an establishment message to the cloud server based on the first preset communication protocol;
and after receiving the confirmation message fed back by the cloud server, the network access equipment establishes the first long connection with the cloud server.
Further, after the network access device establishes a first long connection with a cloud server based on a first preset communication protocol, the method further includes:
the network access equipment sends a first heartbeat message to the cloud server through the first long connection according to a first preset time interval;
and the network access equipment receives a second heartbeat message fed back by the cloud server through the first long connection so as to maintain the first long connection.
Further, before the network access device wakes up the system chip, the method further includes:
the network access equipment sends a wakeup confirmation message to the cloud server through the first long connection;
the network access device disconnects the first long connection.
Further, the method further comprises:
when the system chip is in an awakening state and data to be uploaded exist, the system chip establishes a second long connection with the cloud server based on the second preset communication protocol;
and the system chip uploads the data to be uploaded to the cloud server through the second long connection.
Further, the method further comprises:
the system chip sends a third heartbeat message to the cloud server through the second long connection according to a second preset time interval;
and the system chip receives a fourth heartbeat message fed back by the cloud server through the second long connection so as to maintain the second long connection.
Further, the first preset communication protocol is as follows: a communication protocol for providing communication support for the cloud server and the network access equipment; the second preset communication protocol is as follows: message queue Telemetry Transport protocol (MQTT, Message Queuing telemeasurement Transport).
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: the system chip sends a dormancy notification to the network access equipment and enters a dormancy state; after receiving the dormancy notification, the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol; after receiving a wake-up message sent by the cloud server through the first long connection, the network access device wakes up the system chip; the system chip establishes a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server sends a vehicle control command to the system chip through the second long connection.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (16)
1. A method for waking up a system chip, comprising:
the system chip sends a dormancy notification to the network access equipment and enters a dormancy state;
after receiving the dormancy notification, the network access equipment establishes a first long connection with a cloud server based on a first preset communication protocol;
after receiving a wake-up message sent by the cloud server through the first long connection, the network access device wakes up the system chip;
the system chip establishes a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server sends a vehicle control command to the system chip through the second long connection.
2. The method of claim 1, wherein the network access device establishes a first long connection with a cloud server based on a first preset communication protocol, and the method comprises:
the network access equipment sends an establishment message to the cloud server based on the first preset communication protocol;
and after receiving the confirmation message fed back by the cloud server, the network access equipment establishes the first long connection with the cloud server.
3. The method of claim 1, wherein after the network access device establishes the first long connection with the cloud server based on the first preset communication protocol, the method further comprises:
the network access equipment sends a first heartbeat message to the cloud server through the first long connection according to a first preset time interval;
and the network access equipment receives a second heartbeat message fed back by the cloud server through the first long connection so as to maintain the first long connection.
4. The method of claim 1, wherein before the network access device wakes up the system chip, the method further comprises:
the network access equipment sends a wakeup confirmation message to the cloud server through the first long connection;
the network access device disconnects the first long connection.
5. The method of claim 1, further comprising:
when the system chip is in an awakening state and data to be uploaded exist, the system chip establishes a second long connection with the cloud server based on the second preset communication protocol;
and the system chip uploads the data to be uploaded to the cloud server through the second long connection.
6. The method of claim 1, further comprising:
the system chip sends a third heartbeat message to the cloud server through the second long connection according to a second preset time interval;
and the system chip receives a fourth heartbeat message fed back by the cloud server through the second long connection so as to maintain the second long connection.
7. The method according to any one of claims 1 to 6, wherein the first predetermined communication protocol is: a communication protocol for providing communication support for the cloud server and the network access equipment; the second preset communication protocol is as follows: message queue telemetry transport protocol.
8. A system for waking up a system chip, the system comprising: a system chip and a network access device;
the system chip is used for sending a dormancy notification to the network access equipment and entering a dormancy state;
the network access equipment is used for establishing a first long connection with a cloud server based on a first preset communication protocol after receiving the dormancy notification; awakening the system chip after receiving an awakening message sent by the cloud server through the first long connection;
the system chip is further used for establishing a second long connection with the cloud server based on a second preset communication protocol, so that the cloud server can send the vehicle control command to the system chip through the second long connection.
9. The system of claim 8,
the network access device is specifically configured to send an establishment message to the cloud server based on the first preset communication protocol; and after receiving a confirmation message fed back by the cloud server, establishing the first long connection with the cloud server.
10. The system of claim 8,
the network access equipment is further used for sending a first heartbeat message to the cloud server through the first long connection according to a first preset time interval after establishing a first long connection with the cloud server based on a first preset communication protocol; and receiving a second heartbeat message fed back by the cloud server through the first long connection so as to maintain the first long connection.
11. The system of claim 8,
the network access device is further configured to send a wakeup confirm message to the cloud server through the first long connection before waking up the system chip; the first long connection is broken.
12. The system of claim 8,
the system chip is also used for establishing a second long connection with the cloud server based on the second preset communication protocol when the system chip is in an awakening state and has data to be uploaded; and uploading the data to be uploaded to the cloud server through the second long connection.
13. The system of claim 8,
the system chip is further configured to send a third heartbeat message to the cloud server through the second long connection according to a second preset time interval; and receiving a fourth heartbeat message fed back by the cloud server through the second long connection so as to maintain the second long connection.
14. The system according to any one of claims 8-13, wherein the first predetermined communication protocol is: a communication protocol for providing communication support for the cloud server and the network access equipment; the second preset communication protocol is as follows: message queue telemetry transport protocol.
15. A storage medium comprising a stored program, wherein the program, when executed, controls a device in which the storage medium is located to perform the method of waking up a system chip according to any one of claims 1 to 7.
16. An apparatus to wake up a system chip, the apparatus comprising a storage medium; and one or more processors, the storage medium coupled with the processors, the processors configured to execute program instructions stored in the storage medium; the program instructions when executed perform a method of waking a system chip as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010440947.XA CN113709202B (en) | 2020-05-22 | 2020-05-22 | Method and system for waking up system chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010440947.XA CN113709202B (en) | 2020-05-22 | 2020-05-22 | Method and system for waking up system chip |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113709202A true CN113709202A (en) | 2021-11-26 |
CN113709202B CN113709202B (en) | 2023-09-19 |
Family
ID=78646196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010440947.XA Active CN113709202B (en) | 2020-05-22 | 2020-05-22 | Method and system for waking up system chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113709202B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115378989A (en) * | 2022-08-10 | 2022-11-22 | 上海黑眸智能科技有限责任公司 | MQTT topic subscription system, method, terminal and medium based on wake-up channel |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102209302A (en) * | 2011-07-07 | 2011-10-05 | 深圳市金立通信设备有限公司 | System and method for realizing information push of mobile terminal |
CN104486291A (en) * | 2014-11-24 | 2015-04-01 | 北京奇虎科技有限公司 | Method, device and system for building connection |
US20170108912A1 (en) * | 2015-10-14 | 2017-04-20 | Quanta Computer Inc. | Managing network wake-up commands |
CN106941713A (en) * | 2017-05-16 | 2017-07-11 | 努比亚技术有限公司 | It is a kind of to reduce the method and its device of mobile terminal power consumption |
CN106973092A (en) * | 2017-03-22 | 2017-07-21 | 广州汽车集团股份有限公司 | The system and method that mobile communications network is provided in the car |
CN107277130A (en) * | 2017-06-15 | 2017-10-20 | 成都优芯微电子技术有限公司 | It is a kind of to be used for the live-action map data-acquisition system and method for intelligent outdoor scene Spinning |
CN107465720A (en) * | 2017-06-23 | 2017-12-12 | 杭州云乐车辆技术有限公司 | It is a kind of based on wireless automobile mounted NMS and its power-economizing method |
CN109413762A (en) * | 2018-10-19 | 2019-03-01 | 北京经纬恒润科技有限公司 | A kind of awakening method and device of vehicle-mounted Tbox |
CN109606338A (en) * | 2018-12-05 | 2019-04-12 | 武汉科德斯汽车电子股份有限公司 | A kind of electronic brake system and the method for waking up the system under suspend mode |
CN110891328A (en) * | 2018-09-07 | 2020-03-17 | 华为技术有限公司 | Method and mobile device for aligning wake-up |
-
2020
- 2020-05-22 CN CN202010440947.XA patent/CN113709202B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102209302A (en) * | 2011-07-07 | 2011-10-05 | 深圳市金立通信设备有限公司 | System and method for realizing information push of mobile terminal |
CN104486291A (en) * | 2014-11-24 | 2015-04-01 | 北京奇虎科技有限公司 | Method, device and system for building connection |
US20170108912A1 (en) * | 2015-10-14 | 2017-04-20 | Quanta Computer Inc. | Managing network wake-up commands |
CN106973092A (en) * | 2017-03-22 | 2017-07-21 | 广州汽车集团股份有限公司 | The system and method that mobile communications network is provided in the car |
CN106941713A (en) * | 2017-05-16 | 2017-07-11 | 努比亚技术有限公司 | It is a kind of to reduce the method and its device of mobile terminal power consumption |
CN107277130A (en) * | 2017-06-15 | 2017-10-20 | 成都优芯微电子技术有限公司 | It is a kind of to be used for the live-action map data-acquisition system and method for intelligent outdoor scene Spinning |
CN107465720A (en) * | 2017-06-23 | 2017-12-12 | 杭州云乐车辆技术有限公司 | It is a kind of based on wireless automobile mounted NMS and its power-economizing method |
CN110891328A (en) * | 2018-09-07 | 2020-03-17 | 华为技术有限公司 | Method and mobile device for aligning wake-up |
CN109413762A (en) * | 2018-10-19 | 2019-03-01 | 北京经纬恒润科技有限公司 | A kind of awakening method and device of vehicle-mounted Tbox |
CN109606338A (en) * | 2018-12-05 | 2019-04-12 | 武汉科德斯汽车电子股份有限公司 | A kind of electronic brake system and the method for waking up the system under suspend mode |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115378989A (en) * | 2022-08-10 | 2022-11-22 | 上海黑眸智能科技有限责任公司 | MQTT topic subscription system, method, terminal and medium based on wake-up channel |
CN115378989B (en) * | 2022-08-10 | 2023-08-15 | 深圳华芯信息技术股份有限公司 | MQTT theme subscription system, method, terminal and medium based on wake-up channel |
Also Published As
Publication number | Publication date |
---|---|
CN113709202B (en) | 2023-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10187778B2 (en) | Waking network access devices based on requests for association | |
CN109275181B (en) | Data transmission method and communication system | |
KR101934348B1 (en) | Method and device for processing real-time vehicle traveling data | |
CN113253648A (en) | Vehicle and network management method thereof, domain controller, storage medium, and electronic device | |
CN112540798B (en) | Method, device and system for waking up vehicle operating system | |
CN114056134A (en) | Vehicle wake-up method, device and storage medium | |
WO2023000841A1 (en) | In-vehicle system upgrade method, vehicle, and readable storage medium | |
CN113709202B (en) | Method and system for waking up system chip | |
CN115328098A (en) | Method and device for collecting vehicle state information | |
CN114363832B (en) | Information sending method, radio frequency tag, radio frequency system and storage medium | |
CN111490918B (en) | Vehicle-mounted Ethernet network awakening system, method and device and computer equipment | |
US10945207B2 (en) | Beacon signal processing system and filtering method of reducing wake-up frequency | |
CN116853152A (en) | Timing management system and timing management method for electric automobile | |
CN112910954B (en) | Remote management method and system for electric power Internet of things equipment | |
CN110944064B (en) | Remote access control system, method, device and medium for embedded network | |
CN114116028B (en) | Method and device for waking up driving computer ECU, vehicle and storage medium | |
CN116318896A (en) | Electronic control unit, control method thereof, electronic device, and storage medium | |
WO2013139263A1 (en) | Information transmission method and system, and device with sleeping function | |
CN111327499A (en) | Method and device for sending message and automobile | |
CN114691177A (en) | Upgrading method and device for vehicle-mounted remote monitoring system | |
CN115685843A (en) | Local network management grouping method and device, electronic equipment and storage medium | |
CN112162785B (en) | BMS slave board sleep control method and BMS | |
CN114379483A (en) | CAN network management method for new energy automobile | |
CN114301857A (en) | Water meter communication method and device based on Internet of things | |
CN113721946A (en) | OTA (over the air) upgrading method, OTA upgrading system, readable storage medium and vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |