Vehicle machine mode switching system and method and vehicle
By designing a car-machine mode switching system, using upper computer control signals and relays to achieve car-machine mode switching, the problems of cumbersome operation and safety risks of traditional car-machine mode switching methods are solved, and development and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202510226706.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-06-03
AI Technical Summary
The traditional car-machine mode switching method is cumbersome to operate, affecting development and maintenance efficiency and posing safety risks.
A vehicle-machine mode switching system is designed, and the control signal is sent through the upper computer, and the mode switching module and relay are used to realize the rapid switching between the vehicle-machine working mode, debugging preparation mode and debugging mode.
It realizes rapid switching between vehicle and machine modes, improves development and maintenance efficiency, simplifies operating procedures, and reduces safety risks.
Smart Images

Figure CN120085586A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent vehicle control, and particularly relates to a vehicle machine mode switching system, method and vehicle. Background Technique
[0002] With the rapid development of automotive intelligent technologies, the vehicle machine system has become an indispensable core component of modern vehicles, providing users with diversified functions such as navigation, entertainment, and communication. In the development and maintenance process of the vehicle machine system, system debugging is a key link to ensure stable function and performance optimization. However, traditional debugging methods are not only cumbersome to operate but also may interfere with the daily use experience of users. Therefore, how to efficiently and conveniently switch between the daily working mode and the debugging mode of the vehicle machine system has become a technical problem to be solved urgently.
[0003] The traditional way to enable vehicle machine ADB (Android Debug Bridge, which is a multi-functional command-line tool that allows developers to communicate with connected Android devices or emulators. ADB is part of the Android software development kit and is mainly used for developing and debugging Android applications) debugging usually requires developers to enter the factory settings interface through a series of complex system setting interface operations and activate the ADB debugging mode by entering a password. This process not only requires developers to obtain the password in advance but also involves multiple manual steps, greatly reducing the debugging efficiency. In addition, the storage and transmission of the password may also bring security risks.
[0004] In view of the above problems, the industry has been exploring more efficient and secure vehicle machine mode switching methods. Although existing technical solutions have tried to generate and verify passwords for ADB debugging through a cloud authentication background and RSA encryption algorithm, thus improving security to a certain extent, these solutions mainly focus on the ADB debugging authentication method and the control of storage media, and do not comprehensively involve the specific control method of vehicle machine mode switching.
[0005] Therefore, it is necessary to develop a new vehicle machine mode switching system, method and vehicle. Summary of the Invention
[0006] The purpose of the present invention is to provide a vehicle machine mode switching system, method and vehicle to achieve rapid switching of the vehicle machine among multiple modes.
[0007] In a first aspect, a vehicle machine mode switching system according to the present invention includes: A host computer configured to send different control signals; A vehicle machine, whose modes at least include a working mode, a debugging preparation mode and a debugging mode; A first storage device for storing files to be played or viewed in the working mode; A second storage device for storing the vehicle head unit debugging configuration file; A mode switching module, which is respectively connected to the host computer, the vehicle head unit, the first storage device and the second storage device. The mode switching module receives the control signal sent by the host computer to realize the switching of the vehicle head unit between different modes.
[0008] Optionally, the mode switching module includes a first relay, a second relay and a third relay, where: The first relay is connected between the host computer and the vehicle head unit, and is used to control the on / off of the communication connection between the vehicle head unit and the host computer; The second relay is connected between the vehicle head unit and the first storage device, and is used to control the on / off of the communication connection between the vehicle head unit and the first storage device; The third relay is connected between the vehicle head unit and the second storage device, and is used to control the on / off of the communication connection between the vehicle head unit and the second storage device. Through the design of the first relay, the second relay and the third relay, the system can accurately control the connection status between the vehicle head unit and the host computer, the first storage device and the second storage device. This hardware design not only simplifies the complexity of the system, but also improves the reliability and accuracy of switching the vehicle head unit mode. As an electrical switch, the relay can quickly respond to the control signal of the host computer, so as to realize the quick switching of the vehicle head unit working mode.
[0009] Optionally, when the second relay is closed and the first relay and the third relay are open, the vehicle head unit enters the working mode and can access the files in the first storage device. The host computer controls the second relay to be closed, and the first relay and the third relay to be open, so that the vehicle head unit switches from the debugging mode to the working mode.
[0010] Optionally, when the third relay is closed and the first relay and the second relay are open, the vehicle head unit enters the debugging preparation mode and can read the vehicle head unit debugging configuration file stored in the second storage device. The host computer controls the third relay to be closed, and the first relay and the second relay to be open, so that the vehicle head unit switches from the working mode to the debugging preparation mode.
[0011] Optionally, when the vehicle head unit has read the vehicle head unit debugging configuration file, and the first relay is closed, and the second relay and the third relay are open, the vehicle head unit enters the debugging mode and allows ADB debugging. The host computer controls the first relay to be closed, and the second relay and the third relay to be open, so that the vehicle head unit switches from the debugging preparation mode to the debugging mode.
[0012] Optionally, the ADB debugging includes at least one of executing ADB commands, viewing logs, and installing applications. These operations are crucial for the development and maintenance of in-vehicle units. By integrating the ADB debugging function, the system can support more comprehensive debugging requirements, thereby improving the efficiency and accuracy of development and maintenance.
[0013] Optionally, the host computer is a laptop or desktop computer loaded with Python programming, used to control the on / off states of the first relay, the second relay, and the third relay. This enables the system to flexibly control the on / off states of each relay and the working mode of the in-vehicle unit through Python scripts. This design not only improves the scalability and automation of the system but also allows debuggers and developers to customize the control logic and functions as needed. In addition, Python, as a widely used programming language, has rich resources and community support, which further improves the development and maintenance efficiency of the system.
[0014] In a second aspect, a method for switching the mode of an in-vehicle unit according to the present invention uses the in-vehicle unit mode switching system as described in the present invention. The method includes the following steps: Sending a control signal from the host computer to the mode switching module; The mode switching module switches the mode of the in-vehicle unit according to the received control signal; Among them, the in-vehicle unit can access and play or view files stored in the first storage device in the working mode, read the in-vehicle unit debugging configuration file stored in the second storage device in the debugging preparation mode, and allow ADB debugging in the debugging mode.
[0015] Optionally, after entering the debugging preparation mode, the in-vehicle unit debugging configuration file is automatically loaded by restarting the in-vehicle unit. By adding a debugging preparation mode between the debugging mode and the working mode and automatically loading the in-vehicle unit debugging configuration file by restarting the in-vehicle unit, the preparation work before debugging is simplified and the debugging efficiency is improved.
[0016] In a third aspect, a vehicle according to the present invention uses the in-vehicle unit mode switching system as described in the present invention.
[0017] Advantages of the present invention: The in-vehicle unit mode switching system, method, and vehicle according to the present invention achieve rapid switching of the in-vehicle unit among multiple modes (including the working mode, the debugging preparation mode, and the debugging mode) through simple hardware design and software control, which not only improves the development and maintenance efficiency but also maintains the normal user experience. Description of the Drawings
[0018] Figure 1 It is a schematic block diagram of the in-vehicle unit mode switching system in the embodiment of the present application; Figure 2It is the main flowchart of the vehicle-mounted device mode switching method described in the embodiments of this application; Figure 3 It is the specific flowchart of the vehicle-mounted device mode switching method described in the embodiments of this application; In the figure: 1. Host computer, 2. First relay, 3. Second relay, 4. Third relay, 5. First storage device, 6. Second storage device, 7. Vehicle-mounted device. Specific implementation manners
[0019] The following will describe the implementation manners of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for explaining the present invention and not for limiting the protection scope of the present invention.
[0020] As Figure 1 shown, in the embodiments of this application, a vehicle-mounted device mode switching system includes a host computer 1, a vehicle-mounted device 7, a first storage device 5, a second storage device 6, and a mode switching module. The host computer 1 is configured to send different control signals, at least including "enter debug mode signal", "return to working mode signal", and "enter debug preparation mode signal". The modes of the vehicle-mounted device 7 at least include a working mode, a debug preparation mode, and a debug mode. The first storage device 5 is used to store files played or viewed in the working mode. The second storage device 6 is used to store vehicle-mounted device debug configuration files. The mode switching module is respectively connected to the host computer 1, the vehicle-mounted device 7, the first storage device 5, and the second storage device 6. The mode switching module realizes the switching of the vehicle-mounted device 7 between different modes by receiving the control signals sent by the host computer 1. This system realizes the rapid switching of the vehicle-mounted device 7 between multiple modes (including the working mode, the debug preparation mode, and the debug mode) through simple hardware design and software control, which not only improves the development and maintenance efficiency but also maintains the normal use experience of users.
[0021] As Figure 1 shown, in a possible embodiment, the mode switching module includes a first relay 2, a second relay 3, and a third relay 4.
[0022] As Figure 1As shown, in a possible embodiment, the first relay 2 is connected between the host computer 1 and the vehicle computer 7 and is used to control the on / off of the communication connection between the vehicle computer 7 and the host computer 1. Among them, the first relay 2 includes a first coil and a first contact switch. The first contact switch is connected between the host computer 1 and the vehicle computer 7. The first end of the first coil is connected to the host computer 1, and the second end of the first coil is grounded to form a first control loop. When the control signal sent by the host computer 1 received by the first coil is an "enter debug mode signal", that is, the first coil is powered on. After the first coil is powered on, it controls the conduction of the first contact switch, so as to establish a communication connection between the vehicle computer 7 and the host computer 1, allowing ADB debugging.
[0023] As Figure 1 shown, in a possible embodiment, the second relay 3 is connected between the vehicle computer 7 and the first storage device 5 and is used to control the on / off of the communication connection between the vehicle computer 7 and the first storage device 5. Among them, the second relay 3 includes a second coil and a second contact switch. The second contact switch is connected between the vehicle computer 7 and the first storage device 5. The first end of the second coil is connected to the host computer 1, and the second end of the second coil is grounded to form a second control loop. When the control signal sent by the host computer 1 received by the second coil is a "return to working mode signal", that is, the second coil is powered on. After the second coil is powered on, it controls the conduction of the second contact switch, so as to establish a communication connection between the vehicle computer 7 and the first storage device 5 (that is, simulate the action of inserting the first storage device 5 into the vehicle computer 7), and the vehicle computer 7 can access the files stored in the first storage device 5. When controlling the second coil to be powered off, that is, the action of simulating the removal of the first storage device 5 is realized.
[0024] As Figure 1 shown, in a possible embodiment, the third relay 4 is connected between the vehicle computer 7 and the second storage device 6 and is used to control the on / off of the communication connection between the vehicle computer 7 and the second storage device 6. Among them, the third relay 4 includes a third coil and a third contact switch. The third contact switch is connected between the vehicle computer 7 and the second storage device 6. The first end of the third coil is connected to the host computer 1, and the second end of the third coil is grounded to form a third control loop. When the control signal sent by the host computer 1 received by the third coil is an "enter debug preparation mode signal", that is, the third coil is powered on. After the third coil is powered on, it controls the conduction of the third contact switch, so as to establish a communication connection between the vehicle computer 7 and the second storage device 6 (that is, simulate the action of inserting the second storage device 6 into the vehicle computer 7). During the process of restarting the vehicle computer 7, the vehicle computer 7 can read the vehicle computer debug configuration file stored in the second storage device 6. When controlling the third coil to be powered off, that is, the action of simulating the removal of the second storage device 6 is realized.
[0025] Through the design of the first relay 2, the second relay 3, and the third relay 4, this system can accurately control the communication connection status between the in-vehicle unit 7 and the host computer 1, the first storage device 5, and the second storage device 6. This hardware design not only simplifies the complexity of the system but also improves the reliability and accuracy of switching the mode of the in-vehicle unit 7. As an electrical switch, the relay can quickly respond to the control signal of the host computer 1, thus realizing the rapid switching of the working mode of the in-vehicle unit 7.
[0026] In a possible embodiment, when the second relay 3 is closed and the first relay 2 and the third relay 4 are open, the in-vehicle unit 7 enters the working mode and can access the files in the first storage device 5. That is, the host computer 1 controls the second relay 3 to close and the first relay 2 and the third relay 4 to open, so that the in-vehicle unit 7 switches back from the debugging mode to the working mode.
[0027] In a possible embodiment, when the third relay 4 is closed and the first relay 2 and the second relay 3 are open, the in-vehicle unit 7 enters the debugging preparation mode and can read the in-vehicle unit debugging configuration file in the second storage device 6. That is, the host computer 1 controls the third relay 4 to close and the first relay 2 and the second relay 3 to open, so that the in-vehicle unit 7 switches from the working mode to the debugging preparation mode.
[0028] In a possible embodiment, when the in-vehicle unit 7 has read the in-vehicle unit debugging configuration file, and the first relay 2 is closed while the second relay 3 and the third relay 4 are open, the in-vehicle unit 7 enters the debugging mode, allowing ADB debugging. That is, the host computer 1 controls the first relay 2 to close and the second relay 3 and the third relay 4 to open, so that the in-vehicle unit 7 switches from the debugging preparation mode to the debugging mode.
[0029] In a possible embodiment, ADB debugging includes at least one of the operations of executing ADB commands, viewing logs, and installing applications. These operations are crucial for the development and maintenance of the in-vehicle unit 7. By integrating the ADB debugging function, the system can support more comprehensive debugging requirements, thus improving the efficiency and accuracy of development and maintenance.
[0030] In a possible embodiment, the host computer 1 is a notebook computer or a desktop computer loaded with Python programming, which is used to control the on / off of the first relay 2, the second relay 3, and the third relay 4. This enables the system to flexibly control the on / off of each relay and the working mode of the in-vehicle unit 7 through Python scripts. This design not only improves the scalability and automation of the system but also allows debuggers and developers to customize the control logic and functions according to needs. In addition, as a widely used programming language, Python has rich resources and community support, which further improves the development and maintenance efficiency of the system.
[0031] In a possible embodiment, both the first storage device 5 and the second storage device 6 are any one of a USB flash drive, a solid-state drive, an embedded multimedia card, a universal flash storage, an SD card, a microSD card, and an external hard disk drive.
[0032] In an embodiment of the present application, a method for switching the car machine mode adopts the car machine mode switching system as described in the embodiment of the present application, and the method includes the following steps: Send a control signal from the host computer 1 to the mode switching module; The mode switching module switches the mode of the car machine 7 according to the received control signal; Among them, the car machine 7 can access and play or view the files stored in the first storage device 5 in the working mode, read the car machine debugging configuration file stored in the second storage device 6 in the debugging preparation mode, and allow ADB debugging in the debugging mode.
[0033] In a possible embodiment, after entering the debugging preparation mode, the car machine debugging configuration file is automatically loaded by restarting the car machine 7. By adding a debugging preparation mode between the debugging mode and the working mode and automatically loading the car machine debugging configuration file by restarting the car machine 7, the preparation work before debugging is simplified and the debugging efficiency is improved.
[0034] In a possible embodiment, a method for switching the car machine mode specifically includes the following steps: S1: When the car machine 7 is in the working mode, the user sends an "enter debugging preparation mode signal" from the host computer 1 to the mode switching module.
[0035] S2: After receiving the "enter debugging preparation mode signal", the mode switching module controls the first relay 2 and the second relay 3 to disconnect, and the third relay 4 to close, so as to establish a communication connection between the car machine 7 and the second storage device 6, and the car machine 7 enters the debugging preparation mode.
[0036] S3: Restart the car machine 7, and the car machine 7 automatically loads and verifies the car machine debugging configuration file during the restart process.
[0037] S4: After the car machine 7 restarts, the user sends an "enter debugging mode signal" from the host computer 1 to the mode switching module.
[0038] S5: After receiving the "enter debugging mode signal", the mode switching module controls the first relay 2 to close, and the second relay 3 and the third relay 4 to disconnect, so as to establish a communication connection between the car machine 7 and the host computer 1, and the car machine 7 enters the debugging mode.
[0039] S6: In the debugging mode, the user can perform ADB-related debugging.
[0040] S7: After debugging is completed, the user sends a "return to working mode signal" to the mode switching module through the host computer 1.
[0041] S8: After the mode switching module receives the "return to working mode signal", it controls the first relay 2 and the third relay 4 to disconnect, and the second relay 3 to close, so as to establish a communication connection between the vehicle head unit 7 and the first storage device 5, and the vehicle head unit 7 returns to the working mode.
[0042] S9: In the working mode, the user can play the music stored in the first storage device 5 through the vehicle head unit 7, and view the files stored in the first storage device 5, etc.
[0043] In the embodiment of the present application, a vehicle adopts the vehicle head unit mode switching system as in the embodiment of the present application.
[0044] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications made without departing from the spirit and principle of the present invention shall be equivalent replacement methods and are all included in the protection scope of the present invention.
Claims
1. A vehicle mode switching system, characterized in that: include: A host computer (1) configured to send different control signals; A vehicle computer (7), wherein the modes thereof include at least a working mode, a debugging preparation mode and a debugging mode; A first storage device (5) for storing files played or viewed in a working mode; A second storage device (6) is used to store a vehicle computer debugging configuration file; A mode switching module is respectively connected to the host computer (1), the vehicle computer (7), the first storage device (5) and the second storage device (6); the mode switching module receives a control signal sent by the host computer (1) to implement switching of the vehicle computer (7) between different modes.
2. The vehicle mode switching system according to claim 1, characterized in that: The mode switching module comprises a first relay (2), a second relay (3) and a third relay (4), wherein: The first relay (2) is connected between the host computer (1) and the vehicle computer (7) and is used to control the on / off of the communication connection between the vehicle computer (7) and the host computer (1); The second relay (3) is connected between the vehicle computer (7) and the first storage device (5), and is used to control the on / off of the communication connection between the vehicle computer (7) and the first storage device (5); The third relay (4) is connected between the vehicle computer (7) and the second storage device (6) and is used to control the on / off of the communication connection between the vehicle computer (7) and the second storage device (6).
3. The vehicle mode switching system according to claim 2, characterized in that: When the second relay (3) is closed and the first relay (2) and the third relay (4) are disconnected, the vehicle computer (7) enters a working mode and is able to access files in the first storage device (5).
4. The vehicle mode switching system according to claim 2, characterized in that: When the third relay (4) is closed and the first relay (2) and the second relay (3) are opened, the vehicle computer (7) enters a debugging preparation mode and is able to read a vehicle computer debugging configuration file in the second storage device (6).
5. The vehicle mode switching system according to claim 4, characterized in that: When the vehicle computer (7) has read the vehicle computer debugging configuration file, and the first relay (2) is closed, and the second relay (3) and the third relay (4) are disconnected, the vehicle computer (7) enters a debugging mode, allowing ADB debugging.
6. The vehicle mode switching system according to claim 5, characterized in that: The ADB debugging includes at least one operation of executing an ADB command, viewing a log, and installing an application.
7. The vehicle mode switching system according to claim 2, characterized in that: The host computer (1) is a notebook computer or a desktop computer loaded with Python programming, and is used to control the on and off of the first relay (2), the second relay (3) and the third relay (4).
8. A method for switching vehicle computer modes, characterized in that: The vehicle computer mode switching system according to any one of claims 1 to 7 is adopted, and the method comprises the following steps: Sending a control signal to the mode switching module via the host computer (1); The mode switching module switches the mode of the vehicle computer (7) according to the received control signal; The vehicle computer (7) can access and play or view files stored in the first storage device (5) in the working mode, can read the vehicle computer debugging configuration file stored in the second storage device (6) in the debugging preparation mode, and allows ADB debugging in the debugging mode.
9. The method for switching vehicle computer modes according to claim 8, characterized in that: After entering the debugging preparation mode, the vehicle computer debugging configuration file is automatically loaded by restarting the vehicle computer (7).
10. A vehicle, characterized in that: A vehicle machine mode switching system as described in any one of claims 1 to 7 is adopted.