Hot plug method and device based on vehicle display screen, equipment and storage medium
By actively polling multiple connection mode sequences using a serializer after a power outage or unplugging of the vehicle display screen, the problem of the vehicle display screen's inability to quickly restore connection was solved, enabling rapid reconnection and fault recovery, and improving R&D and production efficiency.
Patent Information
- Application Number
- CN202211709283.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The in-vehicle display screen cannot quickly restore normal connection after power failure or plugging and unplugging, which affects research and development and production efficiency.
By reading the status register data in the serializer, it is determined whether the serializer and deserializer are disconnected. If disconnected, it attempts to re-establish the connection by continuously polling a preset connection mode sequence, including connection modes with various combinations of channel numbers and rates, until communication is successfully established.
It enables rapid re-establishment of connections without power outages or restarts of the vehicle's infotainment system and display screen, shortening connection time and improving fault recovery capabilities and production efficiency.
Smart Images

Figure CN116225754B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive display technology, and in particular to a hot-swappable method, apparatus, device, and storage medium based on an automotive display. Background Technology
[0002] The vehicle infotainment system and the vehicle display screen are two independent hardware modules, each powered by its own power supply and independent of each other. They are connected by a pluggable wiring harness. However, during the research and development and production of vehicle display screens, there are often scenarios where power outages and restarts occur or the display screen needs to be plugged and unplugged. This often results in inconsistencies between the vehicle infotainment system and the vehicle display screen, leading to connection failures and the vehicle display screen being unable to display properly. Usually, both the display screen and the vehicle infotainment system need to be powered off and restarted to restore the default synchronization mode before a successful reconnection can be achieved. This slow recovery of the normal connection status affects research and development and production efficiency.
[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this invention is to provide a hot-swappable method, apparatus, device, and storage medium for vehicle-mounted displays, aiming to solve the technical problem in the prior art where vehicle-mounted displays cannot quickly restore normal connection after power failure or plugging / unplugging, thus affecting research and development and production efficiency.
[0005] To achieve the above objectives, the present invention provides a hot-swappable method based on an in-vehicle display screen. This method is applied to a hot-swappable system based on an in-vehicle display screen, which includes a vehicle-mounted infotainment system and an in-vehicle display screen. The vehicle-mounted infotainment system and the in-vehicle display screen are connected via a pluggable wiring harness. The vehicle-mounted infotainment system includes a serializer, and the in-vehicle display screen includes a deserializer. The method includes the following steps:
[0006] Read the status register data in the serializer, and determine whether the serializer is disconnected from the deserializer based on the status register data;
[0007] When the serializer and the deserializer disconnect, the current connection flag is updated according to a preset disconnection flag.
[0008] The serializer traverses a preset connection mode sequence so that it attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. The preset connection mode sequence includes multiple connection modes composed of a preset channel number sequence and a preset connection rate sequence.
[0009] Read the new status register data in the serializer, and when the new status register data matches the preset connection data, determine that the serializer and the deserializer re-establish a connection;
[0010] The current connection flag is updated according to the preset connection flag, the serializer and the deserializer are initialized, and a video signal is sent to the vehicle display screen.
[0011] Optionally, reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data includes:
[0012] Read the status register data in the serializer;
[0013] When the status register data matches the preset disconnection data, it is determined that the serializer and the deserializer are disconnected.
[0014] Optionally, after reading the status register data in the serializer, the method further includes:
[0015] When the status register data matches the preset connection data, it is determined that the serializer and the deserializer are not disconnected.
[0016] The current connection flag is read. If the current connection flag matches the preset connection flag, it is determined that the serializer and the deserializer are connected normally. After a preset sleep time, the process returns to read the status register data in the serializer and determines whether the serializer is disconnected from the deserializer based on the status register data.
[0017] Optionally, after reading the new status register data in the serializer, the method further includes:
[0018] When the new status register data matches the preset connection disconnection data, it is determined that the serializer and the deserializer have not re-established a connection. After the preset sleep time, the process returns to the step of traversing the preset connection mode sequence in the serializer, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence.
[0019] Optionally, after updating the current connection flag according to the preset connection flag, initializing the serializer and the deserializer, and sending the video signal to the vehicle display screen, the method further includes:
[0020] After the preset sleep time, the process returns to the step of reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data.
[0021] Optionally, the preset channel quantity sequence includes single channel and dual channel, and the preset connection rate sequence includes 3G, 6G and 12G.
[0022] Optionally, before reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data, the method further includes:
[0023] The serializer is driven to run, and the current connection flag is initialized according to the preset unconnected flag.
[0024] Furthermore, to achieve the above objectives, the present invention also proposes a hot-swap device based on an in-vehicle display screen, the hot-swap device based on the in-vehicle display screen comprising:
[0025] The judgment module is used to read the status register data in the serializer and determine whether the serializer is disconnected from the deserializer based on the status register data.
[0026] The connection module is used to update the current connection flag according to a preset disconnection flag when the serializer and the deserializer are disconnected;
[0027] The connection module is also used to traverse a preset connection mode sequence in the serializer, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. The preset connection mode sequence includes multiple connection modes composed of a preset channel number sequence and a preset connection rate sequence.
[0028] The judgment module is also used to read new status register data in the serializer, and when the new status register data matches the preset connection data, determine that the serializer and the deserializer re-establish a connection.
[0029] The connection module is also used to update the current connection flag according to the preset connection flag, initialize the serializer and the deserializer, and send video signals to the vehicle display screen.
[0030] Furthermore, to achieve the above objectives, the present invention also proposes a hot-swappable device based on an in-vehicle display screen, the hot-swappable device based on an in-vehicle display screen comprising: a memory, a processor, and a hot-swappable program based on an in-vehicle display screen stored in the memory and executable on the processor, the hot-swappable program based on an in-vehicle display screen being configured to implement the steps of the hot-swappable method based on an in-vehicle display screen as described above.
[0031] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a hot-plug program based on an in-vehicle display screen, wherein when the hot-plug program based on the in-vehicle display screen is executed by a processor, the steps of the hot-plug method based on the in-vehicle display screen described above are implemented.
[0032] In this invention, by reading the status register data in the serializer, it is determined whether the serializer has disconnected from the deserializer. When the serializer and deserializer are disconnected, the current connection flag is updated according to a preset disconnection flag. A preset connection mode sequence is traversed in the serializer so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. New status register data is read in the serializer. When the new status register data matches the preset connection data, it is determined that the serializer and deserializer have re-established a connection. The current connection flag is updated according to the preset connection flag, the serializer and the deserializer are initialized, and a video signal is sent to the vehicle display screen. Compared to restarting both the screen and the vehicle's infotainment system to the default synchronization mode and reconnecting after a power outage or unplugging of the in-vehicle display, this invention reconnects to the screen by actively polling multiple preset connection modes on the vehicle's infotainment system. This allows the screen to be lit up again without powering off or restarting either the screen or the vehicle's infotainment system, greatly reducing the reconnection time between the two systems and significantly shortening the screen-on time. Furthermore, if the screen disconnects due to a malfunction, it can be quickly restored to normal operation, greatly improving fault recovery capabilities and enhancing R&D and production efficiency. Attached Figure Description
[0033] Figure 1 This is a schematic diagram of the structure of a hot-swappable device based on an in-vehicle display screen in the hardware operating environment of the embodiment of the present invention;
[0034] Figure 2 This is a flowchart illustrating the first embodiment of the hot-swappable method for an in-vehicle display screen according to the present invention.
[0035] Figure 3 This is a schematic diagram of the overall process of an embodiment of the hot-swappable method for vehicle-mounted displays of the present invention;
[0036] Figure 4 This is a structural block diagram of the first embodiment of the hot-swappable device based on an in-vehicle display screen of the present invention.
[0037] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0038] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0039] Reference Figure 1, Figure 1 This is a schematic diagram of the structure of a hot-swappable device based on an in-vehicle display screen, which is part of the hardware operating environment of the embodiment of the present invention.
[0040] like Figure 1 As shown, the hot-swappable device based on the vehicle-mounted display screen may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0041] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on hot-swappable devices based on in-vehicle displays and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0042] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a hot-swappable program based on the vehicle display screen.
[0043] exist Figure 1 In the hot-swappable device based on the vehicle display screen shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the hot-swappable device based on the vehicle display screen of the present invention can be set in the hot-swappable device based on the vehicle display screen. The hot-swappable device based on the vehicle display screen calls the hot-swappable program based on the vehicle display screen stored in the memory 1005 through the processor 1001 and executes the hot-swappable method based on the vehicle display screen provided in the embodiment of the present invention.
[0044] This invention provides a hot-plugging method based on an in-vehicle display screen, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of a hot-swappable method based on an in-vehicle display screen according to the present invention.
[0045] In this embodiment, the hot-swap method based on the vehicle display screen includes the following steps:
[0046] Step S10: Read the status register data in the serializer, and determine whether the serializer is disconnected from the deserializer based on the status register data.
[0047] It should be noted that the hot-swappable method based on the vehicle-mounted display screen is applied to a hot-swappable system based on the vehicle-mounted display screen. This system includes a vehicle-mounted infotainment system and a vehicle-mounted display screen, which are connected via a pluggable wiring harness. The vehicle-mounted infotainment system includes a serializer, and the vehicle-mounted display screen includes a deserializer. Hot-swapping of the vehicle-mounted display screen is achieved through hot-swapping between the serializer and the deserializer. Since the vehicle-mounted infotainment system and the vehicle-mounted display screen are two independent hardware modules, each uses its own...
[0048] Powered by independent power supplies, they do not affect each other. After the vehicle display screen is powered off or plugged in / out, it will revert to the default connection mode 5, while the host end will still be in the previously configured mode. The inconsistency between the modes of the two ends causes the vehicle display screen to fail to display properly. Often, both the vehicle host and the vehicle display screen need to be powered off and restarted to restore the default synchronization mode before the connection can be successfully established, which takes a long time. Therefore, this embodiment proposes a hot-swapping method that can quickly re-establish the connection without powering off or restarting.
[0049] It is understood that the execution subject of this embodiment is the vehicle system, which runs a hot-swap program based on the vehicle display screen 0 to monitor the connection status between the serializer and the deserializer in real time and quickly re-establish the connection when the connection is lost.
[0050] Further, step S10 includes: reading the status register data in the serializer, and determining that the serializer is disconnected from the deserializer when the status register data matches the preset disconnection data.
[0051] 5. It should be understood that the status register data is the value of bit 3 of the connection status register in the serializer, and the preset disconnection data is a value representing disconnection. In this embodiment, the preset disconnection data is set to 0, that is, when bit 3 of the connection status register is 0, it indicates that the serializer and the deserializer are disconnected.
[0052] It should be noted that the vehicle's infotainment system includes a central processing unit (CPU). The CPU and the serializer are connected via an I2C (Inter-Integrated Circuit) bus. The CPU can communicate...
[0053] Access the status register in the serializer via the I2C bus and read the corresponding status register value.
[0054] In the specific implementation, the vehicle system reads the value of the serializer's connection status register through the CPU to determine the connection status between the serializer and the deserializer. When bit 3 of the connection status register is 0, it is determined that the serializer and the deserializer are disconnected.
[0055] 5. Further, after reading the status register data in the serializer, if the status register data matches the preset connection data, it is determined that the serializer and the deserializer are not disconnected. The current connection flag is read, and if the current connection flag matches the preset connection flag, it is determined that the serializer and the deserializer are connected normally. After a preset sleep time, the process returns to reading the status register data in the serializer.
[0056] The step of determining whether the serializer is disconnected from the deserializer based on the status register data.
[0057] It is understood that the preset connection data represents a numerical value indicating the establishment of a connection. In this embodiment, the preset connection data is set to 1, meaning that when bit 3 of the connection status register is 1, it indicates that a connection has been established between the serializer and the deserializer. The current connection flag is the current connection status flag bit. The connection status flag bit (state) can record changes in the connection status. In this embodiment, it mainly records the state changes from disconnection to re-establishment of the connection. The preset connection flag is a connection flag bit, which is represented by "link" in this embodiment. Other forms of representation can also be used, and this embodiment does not limit this. The preset sleep time is the sleep time during the execution of the hot-plugging procedure based on the vehicle display screen, such as 200ms, 500ms, etc., which usually does not exceed 1 second. This embodiment does not limit this and can be flexibly adjusted according to the actual situation.
[0058] It should be noted that during the preset sleep period, the vehicle's infotainment system will not continue to execute the hot-plug procedure based on the in-vehicle display screen, and can perform other tasks.
[0059] In the specific implementation, when bit3 of the connection status register is 1, the connection between the serializer and the deserializer is determined. It is further determined whether the current connection status flag matches the connection flag. When the current connection status flag is "link", it is considered that the connection status has not changed and the serializer and the deserializer are still connected normally. After a preset sleep time, the connection status between the serializer and the deserializer is monitored.
[0060] Further, before step S10, the process includes: driving the serializer to run and initializing the current connection flag according to the preset unconnected flag.
[0061] It is understood that the preset connection flag is a disconnection flag, which is represented by "unlink" in this embodiment, but other forms of representation can also be used, and this embodiment does not limit this.
[0062] In the actual implementation, after the vehicle's infotainment system is started, the hot-plug program based on the vehicle's display screen will start running immediately. This requires first driving the serializer to run and initializing the current connection status flag, setting it to unlink.
[0063] Step S20: When the serializer and the deserializer are disconnected, update the current connection flag according to the preset disconnection flag.
[0064] In the specific implementation, when bit 3 of the connection status register is 0, it is considered that the serializer and deserializer are disconnected, and the current connection status flag is updated to unlink.
[0065] Step S30: Traverse the preset connection mode sequence in the serializer so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. The preset connection mode sequence includes multiple connection modes composed of a preset channel number sequence and a preset connection rate sequence.
[0066] It should be understood that the preset connection mode sequence is a plurality of different preset connection modes, the preset channel number sequence is a plurality of different preset channel numbers, such as single channel and dual channel, and the preset connection rate sequence is a plurality of different preset connection rates, such as 3G, 6G and 12G. The preset connection mode sequence includes a plurality of connection modes formed by combining the preset channel number sequence and the preset connection rate sequence. In this embodiment, the preset connection mode sequence includes the following 6 sets of connection mode sequences, namely: single channel, 3G mode; single channel, 6G mode; single channel, 12G mode; dual channel, 3G mode; dual channel, 6G mode; dual channel, 12G mode.
[0067] It should be noted that the serializer and deserializer need to have the same number of channels and connection speed to establish a connection. Therefore, this embodiment sets up multiple connection modes for polling, which can quickly find a suitable connection mode.
[0068] In the actual implementation, after the vehicle system detects that the serializer and deserializer have lost connection, it cannot determine what connection mode the deserializer is currently in. Therefore, the serializer uses the above 6 sets of connection mode sequences to continuously poll and try to re-establish the connection with the deserializer.
[0069] Step S40: Read the new status register data in the serializer. When the new status register data matches the preset connection data, determine that the serializer and the deserializer re-establish a connection.
[0070] In the specific implementation, after the serializer continuously polls and attempts to re-establish a connection with the deserializer using 6 sets of connection mode sequences, in order to determine whether the connection has been re-established, the value of the connection status register in the serializer is read again. If the updated connection status register bit3 is 1, it is considered that the serializer has matched the connection mode of the deserializer, and the vehicle unit and the vehicle display have re-established a communication connection.
[0071] Furthermore, when the new status register data matches the preset connection disconnection data, it is determined that the serializer and the deserializer have not re-established a connection. After the preset sleep time, the process returns to the step of traversing the preset connection mode sequence in the serializer, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence.
[0072] Understandably, if the updated connection status register bit 3 is 0, it is assumed that the serializer has not matched the deserializer's connection mode. The serializer and deserializer remain disconnected, and the vehicle infotainment system and the vehicle display screen have not yet established a communication connection. The serializer needs to continue polling the six sets of connection mode sequences to try to re-establish a connection with the deserializer.
[0073] It should be understood that if multiple iterations of the 6 connection pattern sequences still fail to establish a connection, it means that the vehicle display screen has not been inserted. Continue to iterate through the 6 connection pattern sequences until a pattern sequence of the serializer matches the deserializer and a new connection is established.
[0074] It should be noted that during continuous polling, the shorter the sleep time, the faster the connection will be re-established.
[0075] Step S50: Update the current connection flag according to the preset connection flag, initialize the serializer and the deserializer, and send a video signal to the vehicle display screen.
[0076] In the specific implementation, by polling the 6 sets of connection mode sequences, the serializer and deserializer have re-established the connection. After the vehicle monitor detects the communication reconnection, it stops polling. At this time, the current connection status flag is still unlink, which needs to be updated to link. The serializer and deserializer are then initialized. The vehicle monitor sends video data to the screen endpoint to turn on the screen, realizing fast hot-swapping of the screen.
[0077] It is understandable that if the vehicle display screen experiences a power outage and restart or is plugged in and unplugged, the deserializer will also restart. After restarting, the deserializer will return to its default state. After re-establishing the connection, the video parameters of the serializer and deserializer need to be set to be consistent before the screen can be lit up again. In this embodiment, the video parameters of the serializer and deserializer are consistent through initialization.
[0078] It should be understood that the connection status flag can record changes in the connection status. Only when a state change occurs from disconnected to connected (i.e., from unlink to link) is the serializer and deserializer reinitialized. Other states do not require reinitialization.
[0079] Furthermore, such as Figure 3 The overall process diagram shown illustrates that after the vehicle's infotainment system starts up, it begins running a hot-plug program based on the vehicle's display screen. This drives the serializer to run and initializes the connection status bit (state). It reads the value of the connection status register in the serializer and monitors the connection status between the serializer and deserializer in real time through the status register. If the serializer and deserializer are disconnected, the connection status flag is updated to "unlink". The serializer uses six sets of connection mode sequences to continuously poll and attempt to connect to the deserializer. After reconnection, it stops polling, updates the connection status flag to "link", initializes the serializer and deserializer, and the vehicle's infotainment system immediately sends video data to the screen endpoint to illuminate the screen, enabling rapid hot-plugging at the screen end. After a 200ms sleep period, it continues to monitor the connection status between the serializer and deserializer. If the connection between the serializer and deserializer is normal and the connection status flag is "link", the communication connection between the vehicle's infotainment system and the vehicle's display screen is considered normal. Similarly, after a 200ms sleep period, it continues to monitor the connection status between the serializer and deserializer.
[0080] In this embodiment, by reading the status register data in the serializer, it is determined whether the serializer has disconnected from the deserializer. When the serializer and deserializer are disconnected, the current connection flag is updated according to a preset disconnection flag. A preset connection mode sequence is traversed in the serializer so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. New status register data is read in the serializer. When the new status register data matches the preset connection data, it is determined that the serializer and deserializer have re-established a connection. The current connection flag is updated according to the preset connection flag, the serializer and the deserializer are initialized, and a video signal is sent to the vehicle display screen. Compared to restarting both the screen and the vehicle's infotainment system to the default synchronization mode and reconnecting after a power outage or unplugging of the in-vehicle display, this embodiment reconnects to the screen by actively polling multiple preset connection modes on the vehicle's infotainment system. This allows the screen to be lit up again without powering down or restarting either the screen or the vehicle's infotainment system, greatly reducing the reconnection time between the vehicle and the in-vehicle display and significantly shortening the screen lighting time. In addition, if the screen disconnects due to a fault, it can be quickly restored to normal, greatly improving fault recovery capability.
[0081] Furthermore, this embodiment of the invention also proposes a storage medium storing a hot-plug program based on an in-vehicle display screen. When the hot-plug program based on the in-vehicle display screen is executed by a processor, it implements the steps of the hot-plug method based on the in-vehicle display screen described above.
[0082] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the hot-swappable device based on an in-vehicle display screen of the present invention.
[0083] like Figure 4 As shown, the hot-swappable device based on an in-vehicle display screen proposed in this embodiment of the invention includes:
[0084] The judgment module 10 is used to read the status register data in the serializer and determine whether the serializer is disconnected from the deserializer based on the status register data.
[0085] The connection module 20 is used to update the current connection flag according to a preset disconnection flag when the serializer and the deserializer are disconnected.
[0086] The connection module 20 is further configured to traverse a preset connection mode sequence in the serializer, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. The preset connection mode sequence includes multiple connection modes composed of a preset channel number sequence and a preset connection rate sequence. The preset channel number sequence includes single channel and dual channel, and the preset connection rate sequence includes 3G, 6G and 12G.
[0087] The judgment module 10 is also used to read new status register data in the serializer, and when the new status register data matches the preset connection data, determine that the serializer and the deserializer re-establish a connection.
[0088] The connection module 20 is also used to update the current connection flag according to the preset connection flag, initialize the serializer and the deserializer, and send video signals to the vehicle display screen.
[0089] In this embodiment, by reading the status register data in the serializer, it is determined whether the serializer has disconnected from the deserializer. When the serializer and deserializer are disconnected, the current connection flag is updated according to a preset disconnection flag. A preset connection mode sequence is traversed in the serializer so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. New status register data is read in the serializer. When the new status register data matches the preset connection data, it is determined that the serializer and deserializer have re-established a connection. The current connection flag is updated according to the preset connection flag, the serializer and the deserializer are initialized, and a video signal is sent to the vehicle display screen. Compared to restarting both the screen and the vehicle's infotainment system to the default synchronization mode and reconnecting after a power outage or unplugging of the in-vehicle display, this embodiment reconnects to the screen by actively polling multiple preset connection modes on the vehicle's infotainment system. This allows the screen to be lit up again without powering down or restarting either the screen or the vehicle's infotainment system, greatly reducing the reconnection time between the vehicle and the in-vehicle display and significantly shortening the screen lighting time. In addition, if the screen disconnects due to a fault, it can be quickly restored to normal, greatly improving fault recovery capability.
[0090] In one embodiment, the judgment module 10 is further configured to read status register data in the serializer;
[0091] When the status register data matches the preset disconnection data, it is determined that the serializer and the deserializer are disconnected.
[0092] In one embodiment, the judgment module 10 is further configured to determine that the serializer and the deserializer are not disconnected when the status register data matches the preset connection data;
[0093] The current connection flag is read. If the current connection flag matches the preset connection flag, it is determined that the serializer and the deserializer are connected normally. After a preset sleep time, the process returns to read the status register data in the serializer and determines whether the serializer is disconnected from the deserializer based on the status register data.
[0094] In one embodiment, the judgment module 10 is further configured to determine that the serializer and the deserializer have not re-established a connection when the new status register data matches the preset connection disconnection data, and after the preset sleep time, return to the step of traversing the preset connection mode sequence in the serializer so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence.
[0095] In one embodiment, the judgment module 10 is further configured to, after the preset sleep time, return to the step of reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data.
[0096] In one embodiment, the judgment module 10 is further configured to drive the serializer to run and initialize the current connection flag according to the preset unconnected flag.
[0097] It should be understood that the above are merely illustrative examples and do not constitute any limitation on the technical solutions of the present invention. In specific applications, those skilled in the art can make settings as needed, and the present invention does not impose any restrictions on this.
[0098] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this invention. In practical applications, those skilled in the art can select some or all of the workflow to achieve the purpose of this embodiment according to actual needs, and no restrictions are imposed here.
[0099] In addition, for technical details not described in detail in this embodiment, please refer to the hot-swap method based on vehicle display screen provided in any embodiment of the present invention, which will not be repeated here.
[0100] Furthermore, it should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0101] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0102] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0103] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A hot-swappable method based on an in-vehicle display screen, characterized in that, The hot-swappable method based on an in-vehicle display screen is applied to an in-vehicle display screen-based hot-swappable system. The in-vehicle display screen-based hot-swappable system includes a vehicle-mounted infotainment system and an in-vehicle display screen, which are connected via a pluggable wiring harness. The vehicle-mounted infotainment system includes a serializer, and the in-vehicle display screen includes a deserializer. The hot-swappable method based on the in-vehicle display screen includes: Read the status register data in the serializer, and determine whether the serializer is disconnected from the deserializer based on the status register data; When the serializer and the deserializer disconnect, the current connection flag is updated according to a preset disconnection flag. The serializer traverses a preset connection mode sequence, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. The preset connection mode sequence includes multiple connection modes composed of a preset channel number sequence and a preset connection rate sequence. The preset channel number sequence includes single channel and dual channel. The preset connection rate sequence includes 3G, 6G and 12G. The preset connection mode sequence includes single channel 3G mode, single channel 6G mode, single channel 12G mode, dual channel 3G mode, dual channel 6G mode and dual channel 12G mode. Read the new status register data in the serializer, and when the new status register data matches the preset connection data, determine that the serializer and the deserializer re-establish a connection; The current connection flag is updated according to the preset connection flag, the serializer and the deserializer are initialized, and a video signal is sent to the vehicle display screen. The step of reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data includes: Read the status register data in the serializer; When the status register data matches the preset disconnection data, it is determined that the serializer and the deserializer are disconnected. When the status register data matches the preset connection data, it is determined that the serializer and the deserializer are not disconnected. The current connection flag is read. When the current connection flag matches the preset connection flag, it is determined that the serializer and the deserializer are connected normally. After a preset sleep time, the process returns to the step of reading the status register data in the serializer and determining whether the serializer and the deserializer are disconnected based on the status register data. After reading the new status register data in the serializer, the method further includes: when the new status register data matches the preset disconnection data, determining that the serializer and the deserializer have not re-established a connection; after the preset sleep time, returning to the step of traversing the preset connection mode sequence in the serializer, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence, wherein, during the continuous polling process, the shorter the sleep time, the faster the connection is re-established.
2. The method as described in claim 1, characterized in that, After updating the current connection flag according to the preset connection flag, initializing the serializer and the deserializer, and sending the video signal to the vehicle display screen, the method further includes: After the preset sleep time, the process returns to the step of reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data.
3. The method according to any one of claims 1 to 2, characterized in that, Before reading the status register data in the serializer and determining whether the serializer is disconnected from the deserializer based on the status register data, the method further includes: The serializer is driven to run, and the current connection flag is initialized according to the preset unconnected flag.
4. A hot-swappable device based on an in-vehicle display screen, characterized in that, The hot-swap device based on the vehicle display screen includes: The judgment module is used to read the status register data in the serializer and determine whether the serializer is disconnected from the deserializer based on the status register data. The connection module is used to update the current connection flag according to a preset disconnection flag when the serializer and the deserializer are disconnected; The connection module is further configured to traverse a preset connection mode sequence in the serializer, so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. The preset connection mode sequence includes multiple connection modes composed of a preset channel number sequence and a preset connection rate sequence. The preset channel number sequence includes single channel and dual channel. The preset connection rate sequence includes 3G, 6G and 12G. The preset connection mode sequence includes single channel 3G mode, single channel 6G mode, single channel 12G mode, dual channel 3G mode, dual channel 6G mode and dual channel 12G mode. The judgment module is also used to read new status register data in the serializer, and when the new status register data matches the preset connection data, determine that the serializer and the deserializer re-establish a connection. The connection module is also used to update the current connection flag according to the preset connection flag, initialize the serializer and the deserializer, and send video signals to the vehicle display screen; The judgment module is also used to read the status register data in the serializer; When the status register data matches the preset disconnection data, it is determined that the serializer and the deserializer are disconnected. The judgment module is further configured to determine that the serializer and the deserializer are not disconnected when the status register data matches the preset connection data, read the current connection flag, determine that the serializer and the deserializer are connected normally when the current connection flag matches the preset connection flag, and after a preset sleep time, return to execute the step of reading the status register data in the serializer and determining whether the serializer and the deserializer are disconnected based on the status register data; The judgment module is further configured to determine that the serializer and the deserializer have not re-established a connection when the new status register data matches the preset disconnection data, and after the preset sleep time, return to the step of traversing the preset connection mode sequence in the serializer so that the serializer attempts to re-establish a connection with the deserializer by continuously polling the preset connection mode sequence. In the continuous polling process, the shorter the sleep time, the faster the re-establishment of the connection.
5. A hot-swappable device based on an in-vehicle display screen, characterized in that, The device includes: a memory, a processor, and a hot-swap program based on an in-vehicle display stored on the memory and executable on the processor, the hot-swap program being configured to implement the steps of the hot-swap method based on an in-vehicle display as described in any one of claims 1 to 3.
6. A storage medium, characterized in that, The storage medium stores a hot-swap program based on an in-vehicle display screen, which, when executed by a processor, implements the steps of the hot-swap method based on an in-vehicle display screen as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Self-recovery system and method for vehicle-mounted remote display screen
CN111505970A
Hot plug processing method, storage medium, electronic equipment and processing system
CN114840460A
Data transmission rate configuration negotiation method and system of serializer and deserializer, terminal and medium
CN115499100A
