CN115571072A - Mode conversion method and device for head-up display, electronic equipment and storage medium - Google Patents

Mode conversion method and device for head-up display, electronic equipment and storage medium Download PDF

Info

Publication number
CN115571072A
CN115571072A CN202211305810.9A CN202211305810A CN115571072A CN 115571072 A CN115571072 A CN 115571072A CN 202211305810 A CN202211305810 A CN 202211305810A CN 115571072 A CN115571072 A CN 115571072A
Authority
CN
China
Prior art keywords
display
mode
head
mode conversion
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211305810.9A
Other languages
Chinese (zh)
Inventor
回姝
王淑琴
罗雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202211305810.9A priority Critical patent/CN115571072A/en
Publication of CN115571072A publication Critical patent/CN115571072A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B27/00Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
    • G02B27/01Head-up displays

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application discloses a mode conversion method and device of a head-up display, electronic equipment and a storage medium. The method comprises the following steps: monitoring a message sending state in a bus, and acquiring CAN standard parameters corresponding to a current vehicle under the condition that the message sending state is monitored to be that a message is sent; determining waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm; and sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time. Based on the method, more accurate waiting time is obtained by using the CAN standard parameters, and the problem that the mode conversion of the head-up display is unsuccessful due to the adoption of fixed waiting time is avoided.

Description

Mode conversion method and device for head-up display, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of automobile control, in particular to a mode conversion method and device of a head-up display, electronic equipment and a storage medium.
Background
When a vehicle is started, a CAN transceiver of an automobile head-up display system needs to perform mode conversion, and generally, the mode is converted from a stop mode to a reset mode first, and when a continuous preset number of recessive bits appear on a CAN bus, the mode CAN be converted from the reset mode to a final needed communication mode.
Generally, a fixed time span is set, and if a preset number of consecutive recessive bits cannot appear on the CAN bus within the time span, the CAN transceiver of the heads-up display system cannot be switched to the final communication mode, and instead, the CAN transceiver will switch back to the first stop mode, so that the frames cannot be effectively displayed.
Disclosure of Invention
The embodiment of the application provides a mode conversion method and device of a head-up display, an electronic device and a storage medium, so as to avoid unsuccessful mode conversion of the head-up display.
In a first aspect, an embodiment of the present application provides a method for mode conversion of a head-up display, where the method includes:
monitoring a message sending state in a bus, and acquiring CAN standard parameters corresponding to a current vehicle under the condition that the message sending state is monitored to be that a message is sent;
determining waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm;
and sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time.
In a second aspect, an embodiment of the present application further provides a device for converting a mode of a head-up display, where the device for converting a mode of a head-up display includes:
the monitoring and acquiring module is used for monitoring the message sending state in the bus and acquiring the CAN standard parameters corresponding to the current vehicle under the condition that the message sending state is monitored to be the message which is being sent;
the waiting time determining module is used for determining waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determining algorithm;
and the sending module is used for sending the waiting time to a mode conversion control module of the head-up display so as to control the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN specification parameters appear in the bus in the waiting time.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of heads-up display mode conversion as provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for switching between the head-up display mode as provided in any embodiment of the present application.
According to the technical scheme of the embodiment of the application, the CAN standard parameters corresponding to the current vehicle are obtained by monitoring the message sending state in the bus and under the condition that the message sending state is monitored to be the message which is being sent; then determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm; and sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time. Based on this, more accurate waiting time is obtained by using the CAN specification parameters, so that the mode conversion control module controls the mode of the head-up display to be converted into the target mode under the condition that the preset number of recessive bits specified by the CAN specification parameters appear in the bus in the waiting time, and the problem that the mode conversion of the head-up display is unsuccessful due to the adoption of fixed waiting time is avoided.
Drawings
Fig. 1 is a schematic flowchart illustrating a mode conversion method of a head-up display according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an architecture relationship between a CAN transceiver and a CAN bus of a vehicle body according to a first embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a mode conversion apparatus of a head-up display according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application. It should be further noted that, for the convenience of description, only some of the structures associated with the present application are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a method for mode conversion of a head-up display according to an embodiment of the present disclosure, where the method is applicable to a scenario of mode conversion of a head-up display, and the method can be executed by a device for mode conversion of a head-up display, where the device can be implemented in a hardware and/or software manner, and can be generally integrated in an electronic device such as a computer with data operation capability, and the method specifically includes the following steps:
step 101, monitoring a message sending state in a bus, and acquiring a CAN standard parameter corresponding to a current vehicle under the condition that the message sending state is monitored to be a message which is being sent.
It should be noted that, when the vehicle is started, referring to fig. 2, the structural relationship between the CAN transceiver and the vehicle body CAN bus in the head-up display system, and fig. 2 is a schematic diagram of the structural relationship between the CAN transceiver and the vehicle body CAN bus according to an embodiment of the present disclosure.
As shown in FIG. 2, when the vehicle is started, the CAN transceiver detects the operation of the CAN signal of the bus, at this time, the I/O pin of the CAN transceiver turns on the SOC power supply and transmits the CAN signal to the SOC, and the CAN Driver (CAN transceiver) of the SOC receives the CAN signal and then processes the signal and transmits the signal to the APP for HUD picture display.
During the starting process, the CAN Driver generally has a mode conversion process after receiving the signal. From Stop mode to reset mode and finally to communication mode; the whole process sets a waiting time, which is equivalent to setting the waiting time to 240 microseconds by defining the value of the configuration parameter CAN _ TIMEOUT _ DURATION to 20000 times.
However, the condition that the indication bit of Communication Mode is successfully set to 1 is that there are 11 consecutive recessive bits on the bus, and all devices on the CAN bus need to be idle after the execution is completed within the above latency (240 μ s) before the state transition is successful.
However, in the practical application process, when the load of the whole vehicle is high (which often occurs when the whole vehicle is started), the CAN Driver of the head-up display does not complete the mode conversion, and returns to the Stop mode from the Reset mode, thereby causing the HUD not to display the picture effectively.
Therefore, in this step, the message sending state in the bus is monitored, the message sending state indicates whether a message being sent exists in the bus, and the waiting time is determined again by using the method of this embodiment when the message sending state is monitored to be the message being sent.
Specifically, because the types of the CAN devices of different vehicles are different and the specific specification parameters are also different, when the CAN specification parameters corresponding to the current vehicle are obtained in the step, the CAN type identifier of the current vehicle CAN be obtained first, and the CAN specification corresponding to the CAN type identifier is retrieved based on the CAN type identifier; the required CAN specification parameters are then extracted from the CAN specification.
It should be noted that the CAN specification parameters include a preset number of recessive bits, a standard frame bit number, and a mode conversion bit number corresponding to the head-up display converting from the stop mode to the reset mode.
And 102, determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm.
In this step, the preset time determination algorithm includes a digit determination sub-algorithm and a time conversion sub-algorithm corresponding to the longest conversion time.
Specifically, the step may input the CAN specification parameter to the digit determination sub-algorithm to obtain a digit corresponding to the longest conversion time output by the digit determination sub-algorithm; then inputting the digit corresponding to the longest conversion time into a time conversion sub-algorithm, and acquiring the transmission time required by the transmission of the digit corresponding to the longest conversion time output by the time conversion sub-algorithm; and finally, determining the transmission time as the waiting time in the mode conversion process of the head-up display.
Wherein, the bit number determination sub-algorithm is as follows: the number of bits corresponding to the longest transition time = the preset number of recessive bits + the standard frame number of bits + the number of mode transition bits + (preset number of recessive bits-1).
In a specific example, the preset number of recessive bits is 11, the number of standard frame bits is 110, and the number of mode conversion bits corresponding to the conversion of the head-up display from the stop mode to the reset mode is 4. Then the bit number is 11+110+10+4=135.
In addition, the CAN specification parameters comprise CAN bus baud rate; the time conversion sub-algorithm is as follows: transmission time = bits (1/baud rate).
In a specific example, the CAN bus baud rate is 500K, 1/500=0.002 milliseconds =2us is required to transmit one bit, and then 135 bits is 270us.
And 103, sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time.
It should be noted that the purpose of this step is to change the waiting time according to the mode conversion control module to the waiting time determined in step 102 of this embodiment, and other control programs of the mode conversion control module are not changed.
In addition, in order to further avoid unsuccessful mode conversion of the head-up display, a mechanism for repeated execution may be set, and specifically, a function return value corresponding to the mode conversion may be obtained first, and the transmission time may be repeatedly sent to the mode conversion control module of the head-up display under the condition that the function return value is a first preset value, so that the mode conversion control module repeatedly controls the head-up display to perform the mode conversion.
The function corresponding to the function return value is cantcontrollermode (), the function is a common function in mode conversion in the prior art, and the embodiment only uses the function return value to determine whether mode conversion is successful.
Then accumulating the times of transmitting the transmission time, and prompting the failure of mode conversion when the times reach a preset threshold value; and stopping transmission of the transmission time under the condition that the function return value is a second preset value.
It should be noted that, for the mode conversion control module, a mechanism for executing mode conversion every time the waiting time is received needs to be set, and the mechanism can be implemented by using program codes, and since program codes executed repeatedly are frequently used, it is not described here again.
In the embodiment, the CAN standard parameters corresponding to the current vehicle are obtained by monitoring the message sending state in the bus and under the condition that the message sending state is monitored to be the message which is being sent; then determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm; and sending the waiting time to a mode conversion control module of the head-up display so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by CAN standard parameters appear in the bus in the waiting time. Based on the method, more accurate waiting time is obtained by using the CAN standard parameters, so that the mode conversion control module controls the mode of the head-up display to be converted into the target mode under the condition that the preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time, and the problem that the mode conversion of the head-up display is unsuccessful due to the adoption of fixed waiting time is avoided.
Example two
Referring to fig. 3, fig. 3 is a schematic structural diagram of a mode conversion device of a head-up display according to a second embodiment of the present application. The mode conversion device of the head-up display provided by the embodiment of the application can execute the mode conversion method of the head-up display provided by any embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method. The device can be implemented by software and/or hardware, and as shown in fig. 3, the mode conversion device for the head-up display specifically includes: a monitoring and acquiring module 301, a waiting time determining module 302 and a sending module 303.
The monitoring and acquiring module is used for monitoring the message sending state in the bus and acquiring the CAN standard parameters corresponding to the current vehicle under the condition that the message sending state is monitored to be the message which is being sent;
the waiting time determining module is used for determining waiting time in the mode conversion process of the head-up display based on CAN standard parameters and a preset time determining algorithm;
and the sending module is used for sending the waiting time to the mode conversion control module of the head-up display so as to control the mode conversion control module to convert the mode of the head-up display into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time.
In the embodiment, the CAN standard parameters corresponding to the current vehicle are obtained by monitoring the message sending state in the bus and under the condition that the message sending state is monitored to be the message which is being sent; then determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm; and then sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by CAN standard parameters appear in the bus in the waiting time. Based on this, the more accurate waiting time is obtained by using the CAN standard parameters, so that the mode conversion control module controls the mode of the head-up display to be converted into the target mode when monitoring that the preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time, and the problem that the mode conversion of the head-up display is unsuccessful due to the adoption of fixed waiting time is avoided.
Further, the CAN specification parameters include a preset number of recessive bits, a standard frame bit number, and a mode conversion bit number corresponding to the head-up display converting from the stop mode to the reset mode.
Further, the preset time determining algorithm comprises a digit determining sub-algorithm and a time conversion sub-algorithm corresponding to the longest conversion time;
the latency determination module includes:
the first determining unit is used for inputting the CAN standard parameters into the digit determining sub-algorithm and acquiring the digit corresponding to the longest conversion time output by the digit determining sub-algorithm;
the second determining unit is used for inputting the digit corresponding to the longest conversion time into the time conversion sub-algorithm and acquiring the transmission time required by the digit corresponding to the longest conversion time output by the time conversion sub-algorithm;
and a third determining unit for determining the transmission time as a waiting time in the mode conversion process of the head-up display.
Further, the bit number determination sub-algorithm is as follows:
the bit number corresponding to the longest conversion time = the preset number of recessive bits + the standard frame bit number + the mode conversion bit number + (preset number of recessive bits-1).
Further, the CAN specification parameters comprise CAN bus baud rate;
the time conversion sub-algorithm is as follows: transmission time = bits (1/baud rate).
Further, the apparatus further comprises:
a return value acquisition module for acquiring a function return value corresponding to the mode conversion, and repeatedly sending transmission time to a mode conversion control module of the head-up display under the condition that the function return value is a first preset value, so that the mode conversion control module repeatedly controls the head-up display to perform the mode conversion;
the accumulation module is used for accumulating the times of transmitting the transmission time and prompting the failure of mode conversion when the times reach a preset threshold value;
and the sending stopping module is used for stopping sending the transmission time under the condition that the function return value is a second preset value.
Further, the monitoring and acquisition module includes:
the acquiring unit is used for acquiring the CAN type identifier of the current vehicle and retrieving the CAN standard corresponding to the CAN type identifier based on the CAN type identifier;
and the extraction unit is used for extracting the required CAN standard parameters from the CAN standard.
EXAMPLE III
Fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present application, as shown in fig. 4, the electronic device includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the electronic device may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The memory 420 serves as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the head-up display mode conversion method in the embodiment of the present application (for example, the monitoring and acquiring module 301, the waiting time determining module 302, and the sending module 303 in the head-up display mode conversion apparatus). The processor 410 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 420, that is, implements the above-described head-up display mode conversion method.
Namely, monitoring the message sending state in the bus, and acquiring the CAN standard parameter corresponding to the current vehicle under the condition that the message sending state is monitored to be the message which is being sent;
determining waiting time in the mode conversion process of the head-up display based on CAN standard parameters and a preset time determination algorithm;
and sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by CAN standard parameters appear in the bus in the waiting time.
According to the technical scheme of the embodiment of the application, the CAN standard parameters corresponding to the current vehicle are obtained by monitoring the message sending state in the bus and under the condition that the message sending state is monitored to be the message which is being sent; then determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm; and sending the waiting time to a mode conversion control module of the head-up display so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by CAN standard parameters appear in the bus in the waiting time. Based on this, the more accurate waiting time is obtained by using the CAN standard parameters, so that the mode conversion control module controls the mode of the head-up display to be converted into the target mode when monitoring that the preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time, and the problem that the mode conversion of the head-up display is unsuccessful due to the adoption of fixed waiting time is avoided.
Further, the CAN specification parameters include a preset number of recessive bits, a standard frame bit number, and a mode conversion bit number corresponding to the head-up display converting from the stop mode to the reset mode.
Further, the preset time determination algorithm comprises a digit determination sub-algorithm and a time conversion sub-algorithm corresponding to the longest conversion time;
determining the waiting time in the mode conversion process of the head-up display based on CAN standard parameters and a preset time determination algorithm, wherein the waiting time comprises the following steps:
inputting the CAN standard parameter into a digit determining sub-algorithm, and acquiring a digit corresponding to the longest conversion time output by the digit determining sub-algorithm;
inputting the digit corresponding to the longest conversion time into a time conversion sub-algorithm, and acquiring the transmission time required by the transmission of the digit corresponding to the longest conversion time output by the time conversion sub-algorithm;
the transmission time is determined as a waiting time during the mode switching of the head-up display.
Further, the bit number determination sub-algorithm is as follows:
the bit number corresponding to the longest conversion time = the preset number of recessive bits + the standard frame bit number + the mode conversion bit number + (preset number of recessive bits-1).
Further, the CAN specification parameters comprise CAN bus baud rate;
the time conversion sub-algorithm is as follows: transmission time = bits (1/baud rate).
Further, the method further comprises:
acquiring a function return value corresponding to the mode conversion, and repeatedly sending transmission time to a mode conversion control module of the head-up display under the condition that the function return value is a first preset value so that the mode conversion control module repeatedly controls the head-up display to perform the mode conversion;
accumulating the transmission time times, and prompting that the mode conversion fails when the times reach a preset threshold value;
and stopping the transmission of the transmission time under the condition that the function return value is a second preset value.
Further, acquiring a CAN specification parameter corresponding to the current vehicle, including:
acquiring a CAN type identifier of a current vehicle, and retrieving a CAN standard corresponding to the CAN type identifier based on the CAN type identifier;
the required CAN specification parameters are extracted from the CAN specification.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 420 can further include memory located remotely from the processor 410, which can be connected to electronic devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive an input of a power construction drawing and generate key signal inputs related to user settings and function control of the electronic equipment. The output device 440 may include a display device such as a display screen.
Example four
A fourth embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for mode conversion of a heads-up display, the method including:
monitoring a message sending state in a bus, and acquiring CAN standard parameters corresponding to a current vehicle under the condition that the message sending state is monitored to be that a message which is being sent exists;
determining waiting time in the mode conversion process of the head-up display based on CAN standard parameters and a preset time determination algorithm;
and sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by CAN standard parameters appear in the bus in the waiting time.
According to the technical scheme of the embodiment of the application, the CAN standard parameters corresponding to the current vehicle are obtained by monitoring the message sending state in the bus and under the condition that the message sending state is monitored to be the message which is being sent; then determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm; and then sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by CAN standard parameters appear in the bus in the waiting time. Based on this, the more accurate waiting time is obtained by using the CAN standard parameters, so that the mode conversion control module controls the mode of the head-up display to be converted into the target mode when monitoring that the preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time, and the problem that the mode conversion of the head-up display is unsuccessful due to the adoption of fixed waiting time is avoided.
Further, the CAN specification parameters include a preset number of recessive bits, a standard frame bit number, and a mode conversion bit number corresponding to the conversion of the head-up display from the stop mode to the reset mode.
Further, the preset time determination algorithm comprises a digit determination sub-algorithm and a time conversion sub-algorithm corresponding to the longest conversion time;
determining the waiting time in the mode conversion process of the head-up display based on CAN standard parameters and a preset time determination algorithm, wherein the method comprises the following steps:
inputting the CAN standard parameters into a digit determination sub-algorithm to obtain digits corresponding to the longest conversion time output by the digit determination sub-algorithm;
inputting the digit corresponding to the longest conversion time into a time conversion sub-algorithm, and acquiring the transmission time required by the digit corresponding to the longest conversion time output by the time conversion sub-algorithm;
the transmission time is determined as a waiting time during the mode switching of the head-up display.
Further, the bit number determination sub-algorithm is as follows:
the number of bits corresponding to the longest transition time = the preset number of recessive bits + the standard frame number of bits + the number of mode transition bits + (preset number of recessive bits-1).
Further, the CAN specification parameters comprise CAN bus baud rate;
the time conversion sub-algorithm is as follows: transmission time = bits (1/baud rate).
Further, the method further comprises:
acquiring a function return value corresponding to the mode conversion, and repeatedly sending transmission time to a mode conversion control module of the head-up display under the condition that the function return value is a first preset value, so that the mode conversion control module repeatedly controls the head-up display to carry out the mode conversion;
accumulating the transmission time times, and prompting that the mode conversion fails when the times reach a preset threshold value;
and stopping the transmission of the transmission time under the condition that the function return value is a second preset value.
Further, acquiring a CAN specification parameter corresponding to the current vehicle, including:
acquiring a CAN type identifier of a current vehicle, and retrieving a CAN standard corresponding to the CAN type identifier based on the CAN type identifier;
the required CAN specification parameters are extracted from the CAN specification.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the method for converting the mode of the head-up display provided in any embodiment of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application or portions contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods of the embodiments of the present application.
It should be noted that, in the embodiment of the above search apparatus, each included unit and module are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application.
It is to be noted that the foregoing is only illustrative of the presently preferred embodiments and application of the principles of the present invention. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments illustrated herein, and that various obvious changes, rearrangements and substitutions may be made therein by those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A method for mode conversion of a head-up display, the method comprising:
monitoring a message sending state in a bus, and acquiring CAN (controller area network) standard parameters corresponding to a current vehicle under the condition that the message sending state is monitored to be the existence of a message being sent;
determining waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determination algorithm;
and sending the waiting time to a mode conversion control module of the head-up display, so that the mode conversion control module controls the mode of the head-up display to be converted into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN standard parameters appear in the bus in the waiting time.
2. The method of claim 1, wherein the CAN specification parameters comprise a preset number of recessive bits, a number of standard frame bits, and a number of mode transition bits corresponding to a transition of the heads-up display from a stop mode to a reset mode.
3. The method according to claim 2, wherein the predetermined time determination algorithm comprises a bit number determination sub-algorithm and a time conversion sub-algorithm corresponding to the longest conversion time;
the determining of the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and the preset time determination algorithm comprises the following steps:
inputting the CAN standard parameter into the digit determining sub-algorithm, and acquiring the digit corresponding to the longest conversion time output by the digit determining sub-algorithm;
inputting the digit corresponding to the longest conversion time into the time conversion sub-algorithm, and acquiring the transmission time output by the time conversion sub-algorithm and required for transmitting the digit corresponding to the longest conversion time;
and determining the transmission time as the waiting time in the process of switching the mode of the head-up display.
4. The method of claim 3, wherein the bit number determination sub-algorithm is:
the bit number corresponding to the longest conversion time = the preset number of recessive bits + the standard frame bit number + the mode conversion bit number + (preset number of recessive bits-1).
5. The method of claim 3 wherein the CAN specification parameters include a CAN bus baud rate;
the time conversion sub-algorithm is as follows: transmission time = bits (1/baud rate).
6. The method of claim 1, further comprising:
acquiring a function return value corresponding to mode conversion, and repeatedly sending the transmission time to a mode conversion control module of the head-up display under the condition that the function return value is a first preset value, so that the mode conversion control module repeatedly controls the head-up display to perform mode conversion;
accumulating the transmission time times, and prompting that the mode conversion fails when the times reach a preset threshold value;
and stopping the transmission of the transmission time under the condition that the function return value is a second preset value.
7. The method of claim 1, wherein the obtaining of the CAN specification parameters corresponding to the current vehicle comprises:
acquiring a CAN type identifier of a current vehicle, and retrieving a CAN standard corresponding to the CAN type identifier based on the CAN type identifier;
and extracting required CAN specification parameters from the CAN specification.
8. A mode conversion apparatus of a head-up display, the apparatus comprising:
the monitoring and acquiring module is used for monitoring the message sending state in the bus and acquiring the CAN standard parameters corresponding to the current vehicle under the condition that the message sending state is monitored to be the message which is being sent;
the waiting time determining module is used for determining the waiting time in the mode conversion process of the head-up display based on the CAN standard parameters and a preset time determining algorithm;
and the sending module is used for sending the waiting time to a mode conversion control module of the head-up display so as to control the mode conversion control module to convert the mode of the head-up display into a target mode under the condition that the mode conversion control module monitors that a preset number of recessive bits specified by the CAN specification parameters appear in the bus in the waiting time.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the heads-up display mode transition method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of mode conversion for a heads-up display according to any one of claims 1 to 7.
CN202211305810.9A 2022-10-24 2022-10-24 Mode conversion method and device for head-up display, electronic equipment and storage medium Pending CN115571072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211305810.9A CN115571072A (en) 2022-10-24 2022-10-24 Mode conversion method and device for head-up display, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211305810.9A CN115571072A (en) 2022-10-24 2022-10-24 Mode conversion method and device for head-up display, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115571072A true CN115571072A (en) 2023-01-06

Family

ID=84587522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211305810.9A Pending CN115571072A (en) 2022-10-24 2022-10-24 Mode conversion method and device for head-up display, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115571072A (en)

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015141047A (en) * 2014-01-27 2015-08-03 日本精機株式会社 Vehicle display device and onboard system
DE102017216808A1 (en) * 2017-09-22 2019-03-28 Volkswagen Aktiengesellschaft Method for monitoring communication on a communication bus and electronic device for connection to a communication bus
CN109634260A (en) * 2018-12-18 2019-04-16 安徽江淮汽车集团股份有限公司 Method and system are monitored online in vehicle control device
CN110134102A (en) * 2018-02-09 2019-08-16 湖南广大机电有限公司 CAN bus based special-purpose vehicle distributed control method and control system
WO2019227076A1 (en) * 2018-05-25 2019-11-28 Securethings U.S., Inc. Cybersecurity on a controller area network in a vehicle
WO2020040848A1 (en) * 2018-08-21 2020-02-27 Google Llc Extensible mapping for vehicle system buses
WO2020134554A1 (en) * 2018-12-26 2020-07-02 中兴通讯股份有限公司 Data transmission method and device, and computer readable storage medium
CN111917525A (en) * 2020-07-16 2020-11-10 南京领行科技股份有限公司 Data transmission method, device, equipment and readable storage medium
CN112073987A (en) * 2019-06-11 2020-12-11 阿里巴巴集团控股有限公司 State monitoring method, device, equipment and storage medium
WO2021023149A1 (en) * 2019-08-05 2021-02-11 中国建设银行股份有限公司 Method and apparatus for dynamically returning message
CN112637003A (en) * 2020-12-04 2021-04-09 重庆邮电大学 Message transmission time estimation method for automobile CAN network
CN112751738A (en) * 2020-12-29 2021-05-04 北京万集智能网联技术有限公司 Baud rate self-adaption method and device, computer equipment and readable storage medium
WO2021120783A1 (en) * 2019-12-20 2021-06-24 华为技术有限公司 Message processing method and apparatus
US20210266193A1 (en) * 2020-02-25 2021-08-26 Calamp Corp. Systems and Methods for Detection of Vehicle Bus Protocol Using Signal Analysis
EP3872796A1 (en) * 2020-02-28 2021-09-01 Beijing Xiaomi Mobile Software Co., Ltd. Display control method and apparatus, driving module and electronic device
WO2021168859A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Secure communication method for controller area network bus, and device
WO2021189826A1 (en) * 2020-09-02 2021-09-30 平安科技(深圳)有限公司 Message generation method and apparatus, electronic device, and computer-readable storage medium
CN113645097A (en) * 2021-08-11 2021-11-12 深圳市元征科技股份有限公司 Vehicle signal monitoring method, terminal equipment and electronic control unit
GB202114323D0 (en) * 2020-10-06 2021-11-17 Nvidia Corp Latency determinations for human interface devices
CN113900429A (en) * 2021-12-09 2022-01-07 北京航空航天大学 Gateway system design method for converting CAN bus into vehicle-mounted Ethernet bus
CN114095405A (en) * 2022-01-21 2022-02-25 国汽智控(北京)科技有限公司 Vehicle function unit testing method and device, electronic equipment and storage medium
CN114095271A (en) * 2021-11-30 2022-02-25 北京天融信网络安全技术有限公司 Communication bus detection method and device, electronic equipment and storage medium
CN114978898A (en) * 2022-05-12 2022-08-30 泽景(西安)汽车电子有限责任公司 Data transmission control method and device, head-up display and storage medium
WO2022184147A1 (en) * 2021-03-04 2022-09-09 长沙智能驾驶研究院有限公司 Monitoring component control method and apparatus, and vehicle, device and computer storage medium

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015141047A (en) * 2014-01-27 2015-08-03 日本精機株式会社 Vehicle display device and onboard system
DE102017216808A1 (en) * 2017-09-22 2019-03-28 Volkswagen Aktiengesellschaft Method for monitoring communication on a communication bus and electronic device for connection to a communication bus
CN110134102A (en) * 2018-02-09 2019-08-16 湖南广大机电有限公司 CAN bus based special-purpose vehicle distributed control method and control system
WO2019227076A1 (en) * 2018-05-25 2019-11-28 Securethings U.S., Inc. Cybersecurity on a controller area network in a vehicle
WO2020040848A1 (en) * 2018-08-21 2020-02-27 Google Llc Extensible mapping for vehicle system buses
CN109634260A (en) * 2018-12-18 2019-04-16 安徽江淮汽车集团股份有限公司 Method and system are monitored online in vehicle control device
WO2020134554A1 (en) * 2018-12-26 2020-07-02 中兴通讯股份有限公司 Data transmission method and device, and computer readable storage medium
CN112073987A (en) * 2019-06-11 2020-12-11 阿里巴巴集团控股有限公司 State monitoring method, device, equipment and storage medium
WO2021023149A1 (en) * 2019-08-05 2021-02-11 中国建设银行股份有限公司 Method and apparatus for dynamically returning message
WO2021120783A1 (en) * 2019-12-20 2021-06-24 华为技术有限公司 Message processing method and apparatus
US20210266193A1 (en) * 2020-02-25 2021-08-26 Calamp Corp. Systems and Methods for Detection of Vehicle Bus Protocol Using Signal Analysis
EP3872796A1 (en) * 2020-02-28 2021-09-01 Beijing Xiaomi Mobile Software Co., Ltd. Display control method and apparatus, driving module and electronic device
WO2021168859A1 (en) * 2020-02-29 2021-09-02 华为技术有限公司 Secure communication method for controller area network bus, and device
CN111917525A (en) * 2020-07-16 2020-11-10 南京领行科技股份有限公司 Data transmission method, device, equipment and readable storage medium
WO2021189826A1 (en) * 2020-09-02 2021-09-30 平安科技(深圳)有限公司 Message generation method and apparatus, electronic device, and computer-readable storage medium
GB202114323D0 (en) * 2020-10-06 2021-11-17 Nvidia Corp Latency determinations for human interface devices
CN112637003A (en) * 2020-12-04 2021-04-09 重庆邮电大学 Message transmission time estimation method for automobile CAN network
CN112751738A (en) * 2020-12-29 2021-05-04 北京万集智能网联技术有限公司 Baud rate self-adaption method and device, computer equipment and readable storage medium
WO2022184147A1 (en) * 2021-03-04 2022-09-09 长沙智能驾驶研究院有限公司 Monitoring component control method and apparatus, and vehicle, device and computer storage medium
CN113645097A (en) * 2021-08-11 2021-11-12 深圳市元征科技股份有限公司 Vehicle signal monitoring method, terminal equipment and electronic control unit
CN114095271A (en) * 2021-11-30 2022-02-25 北京天融信网络安全技术有限公司 Communication bus detection method and device, electronic equipment and storage medium
CN113900429A (en) * 2021-12-09 2022-01-07 北京航空航天大学 Gateway system design method for converting CAN bus into vehicle-mounted Ethernet bus
CN114095405A (en) * 2022-01-21 2022-02-25 国汽智控(北京)科技有限公司 Vehicle function unit testing method and device, electronic equipment and storage medium
CN114978898A (en) * 2022-05-12 2022-08-30 泽景(西安)汽车电子有限责任公司 Data transmission control method and device, head-up display and storage medium

Similar Documents

Publication Publication Date Title
US11246168B2 (en) Method for random access and terminal device
KR20150052262A (en) Service processing method and device
CN114553601B (en) Information verification method, device, equipment and medium
CN113489653A (en) Message sending method and device and computer equipment
CN110912805B (en) Message reading state synchronization method, terminal, server and system
US9781010B2 (en) Managing remote devices
CN113259874B (en) Message processing method, electronic device and storage medium
CN114064091A (en) OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle
CN104539493B (en) Based on the intelligent terminal that USB interface is realized to the managing and control system and its implementation of intelligent appliance
CN115571072A (en) Mode conversion method and device for head-up display, electronic equipment and storage medium
CN114978898B (en) Data transmission control method and device, head-up display and storage medium
CN108427044B (en) Method, device, equipment and storage medium for testing fault protection function
CN107171915B (en) Communication protocol changing method and device
US20220052902A1 (en) Method for managing remote device through management device
CN115150007A (en) Digital key system monitoring method, device, equipment and storage medium
CN108965378B (en) IO mode identification method, system, equipment and computer storage medium
CN112187937A (en) Method and device for removing pairing, terminal equipment and storage medium
CN108928213B (en) Parameter configuration method of control panel, control panel and controlled equipment
CN114740814A (en) Finished automobile control method based on cloud control system, cloud control system and electric framework
CN110824343A (en) Detection method, device, equipment and medium of communication chip
CN115525415B (en) Data processing method, device, equipment and medium
CN113886296B (en) Data transmission method, device, equipment and storage medium
CN113133010B (en) Wireless networking method, device, terminal equipment and storage medium
CN114666376B (en) Vehicle remote control method and device, storage medium and electronic equipment
CN115150271B (en) Gateway upgrading and data routing method, device, equipment and storage medium

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