USB wire harness adaptation method and device and electronic equipment

By setting a signal enhancement chip in the navigation entertainment system and adjusting the signal strength level and pin connection strategy of the USB wire harness according to the vehicle model information, the adaptation problem of USB wire harness signal quality in the navigation entertainment system is solved, and efficient adaptation of multiple models and USB wire harness lengths is achieved, which shortens development time.

CN120044858APending Publication Date: 2025-05-27BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510185824.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The prior art in the vehicle navigation entertainment system has caused signal quality problems due to the differences in the length of different models and USB cable harnesses, which cannot be effectively adapted to various models and USB cable harnesses, which increases the development time and complexity.

Method used

By setting up a signal enhancement chip in the navigation entertainment system, using the MCU controller to obtain vehicle model information, determine the length of the USB wire harness, and determine the signal strength level and pin connection strategy of the signal enhancement chip based on the length of the wire harness, thereby achieving enhanced adjustment of the USB wire harness signal.

Benefits of technology

It realizes the adaptation of USB cable harnesses of various models and lengths in the same type of vehicle navigation entertainment system, ensuring the requirements for signal amplitude and shortening the development time of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120044858A_ABST
    Figure CN120044858A_ABST
Patent Text Reader

Abstract

The invention provides a USB wire harness adaptation method and device and electronic equipment, and relates to the field of vehicle-mounted equipment adaptation, a signal enhancement chip is arranged in a navigation and entertainment system, one end of the chip is connected with an MCU controller of the navigation and entertainment system, and the other end of the chip is connected with a USB wire harness; in the process of adapting the USB wire harness, firstly, an MCU controller is controlled to obtain vehicle type information of a vehicle, and the wire harness length of the USB wire harness is determined based on the vehicle type information; then determining a signal strength grade of the signal enhancement chip based on the wire harness length, and determining a pin connection strategy of the signal enhancement chip based on the signal strength grade; and finally, controlling the MCU controller to be connected with the USB wire harness according to the pin connection strategy. According to the method, the signal of the USB wire harness is enhanced and adjusted by using the signal enhancement chip, so that the signal meets the requirement of signal amplitude, and the USB wire harness of various vehicle types and various lengths can be adapted in the same type of vehicle-mounted navigation entertainment system, so that the development time of the vehicle is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of in-vehicle device adaptation, and more particularly to a USB cable harness adaptation method, apparatus, and electronic device. Background Art

[0002] With the development of vehicles towards the intelligent direction, automotive consumers have put forward higher requirements for the appearance and interior, such as: convenient, intelligent, networked, electronic, personalized interiors, and differentiated appearances. To meet the above needs, vehicles need to shorten the product update cycle. For the vehicle navigation and entertainment system, it is necessary to adapt to the installation structures of different vehicles, and different installation structures have different length requirements for USB cable harnesses. Specifically, the length of the USB cable harness has a crucial impact on the signal quality. When the same in-vehicle navigation and entertainment system uses a shorter USB cable harness, it may cause the signal amplitude at the USB port to be too strong to recognize the USB device; while if the USB cable harness is too long, the signal will attenuate too much in the cable harness, resulting in too low a signal amplitude to recognize the USB device either.

[0003] In the prior art, to solve the above problems, the length of the USB cable harness is mainly specifically adapted according to the installation position of the in-vehicle computer in the vehicle model. However, this increases the complexity of the USB cable harness accessories in the context of frequent vehicle replacements, and requires a complex adaptation process for each vehicle model, additionally increasing the development time. Summary of the Invention

[0004] In view of this, an object of the present invention is to provide a USB cable harness adaptation method, apparatus, and electronic device. This method uses a signal enhancement chip set in the navigation and entertainment system to enhance and adjust the signal of the USB cable harness so that it meets the requirements of the signal amplitude, can adapt to various vehicle models and various lengths of USB cable harnesses in the same type of in-vehicle navigation and entertainment system, thereby shortening the vehicle development time and solving the above problems existing in the prior art.

[0005] In a first aspect, an embodiment of the present invention provides a USB cable harness adaptation method, which is applied to the navigation and entertainment system of a vehicle; wherein, a signal enhancement chip is set in the navigation and entertainment system, one end of the signal enhancement chip is connected to the MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to the USB cable harness;

[0006] The method includes:

[0007] Control the MCU controller to obtain the vehicle model information of the vehicle, and determine the cable harness length of the USB cable harness based on the vehicle model information;

[0008] Determine the signal strength level of the signal enhancement chip based on the harness length, and determine the pin connection strategy of the signal enhancement chip based on the signal strength level;

[0009] Control the MCU controller to connect to the USB harness according to the pin connection strategy.

[0010] Optionally, control the MCU controller to obtain the vehicle model information of the vehicle, and determine the harness length of the USB harness based on the vehicle model information, including:

[0011] Control the MCU controller to send a data request instruction to the vehicle's on-board computer processor;

[0012] Control the MCU controller to receive the vehicle attribute data sent by the on-board computer processor after responding to the data request instruction, and determine the vehicle model information corresponding to the vehicle according to the vehicle attribute data;

[0013] Based on the harness length correspondence data table pre-stored in the MCU controller, determine the harness length corresponding to the vehicle model information.

[0014] Optionally, control the MCU controller to receive the vehicle attribute data sent by the on-board computer processor after responding to the data request instruction, and determine the vehicle model information corresponding to the vehicle, including:

[0015] Use the CAN bus set in the vehicle to control the MCU controller to receive the vehicle attribute data, and save the vehicle attribute data to the memory of the MCU controller;

[0016] Control the MCU controller to read the vehicle attribute data in the memory, and use the vehicle model ID corresponding to the vehicle to parse the vehicle attribute data to obtain the vehicle model information.

[0017] Optionally, determine the signal strength level of the signal enhancement chip based on the harness length, and determine the pin connection strategy of the signal enhancement chip based on the signal strength level, including:

[0018] Obtain the differential signal relationship curve corresponding to the USB harness;

[0019] Use the differential signal relationship curve to determine the signal strength level corresponding to the harness length;

[0020] Based on the signal strength level, determine the first pin corresponding to the MCU controller, and use the signal strength level to determine the second pin corresponding to the signal enhancement chip;

[0021] Determine the pin connection strategy according to the first pin and the second pin.

[0022] Optionally, use the differential signal relationship curve to determine the signal strength level corresponding to the harness length, including:

[0023] When the harness length is greater than 50 cm and less than 60 cm, determine the first signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0024] When the harness length is not less than 60 cm and less than 80 cm, determine the second signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0025] When the harness length is not less than 80 cm and less than 100 cm, determine the third signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0026] When the harness length is not less than 100 cm and less than 130 cm, determine the fourth signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0027] When the harness length is not less than 130 cm and less than 180 cm, determine the fifth signal strength level corresponding to the harness length based on the differential signal relationship curve.

[0028] Optionally, determine the first pin corresponding to the MCU controller based on the signal strength level, and use the signal strength level to determine the second pin corresponding to the signal enhancement chip, including:

[0029] When the signal strength level is the first signal strength level, determine the disabled pin corresponding to the MCU controller as the first pin, and determine the off pin corresponding to the signal enhancement chip as the second pin;

[0030] When the signal strength level is the second signal strength level, determine the GPIO0 pin corresponding to the MCU controller as the first pin, and determine the level zero pin corresponding to the signal enhancement chip as the second pin;

[0031] When the signal strength level is the third signal strength level, determine the GPIO1 pin corresponding to the MCU controller as the first pin, and determine the level one pin corresponding to the signal enhancement chip as the second pin;

[0032] When the signal strength level is the fourth signal strength level, determine the GPIO2 pin corresponding to the MCU controller as the first pin, and determine the level two pin corresponding to the signal enhancement chip as the second pin;

[0033] When the signal strength level is the fifth signal strength level, determine the GPIO3 pin corresponding to the MCU controller as the first pin, and determine the level three pin corresponding to the signal enhancement chip as the second pin.

[0034] Optionally, control the connection between the MCU controller and the USB harness according to the pin connection strategy, including:

[0035] Control the connection between the first pin in the MCU controller and the corresponding second pin in the signal enhancement chip based on the pin connection strategy;

[0036] Control the connection between the signal enhancement chip and the USB harness.

[0037] Optionally, after controlling the connection between the first pin in the MCU controller and the corresponding second pin in the signal enhancement chip based on the pin connection strategy, the method further includes:

[0038] Control the disconnection of the connection between other first pins in the MCU controller and the corresponding other second pins in the signal enhancement chip based on the pin connection strategy.

[0039] In a second aspect, the present invention provides a USB harness adaptation device, which is applied to the navigation and entertainment system of a vehicle; wherein, a signal enhancement chip is provided in the navigation and entertainment system, one end of the signal enhancement chip is connected to the MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to the USB harness;

[0040] The device includes:

[0041] A harness length determination module, configured to control the MCU controller to obtain the vehicle model information of the vehicle and determine the harness length of the USB harness based on the vehicle model information;

[0042] A pin connection strategy determination module, configured to determine the signal strength level of the signal enhancement chip based on the harness length and determine the pin connection strategy of the signal enhancement chip based on the signal strength level;

[0043] A harness connection control module, configured to control the connection between the MCU controller and the USB harness according to the pin connection strategy.

[0044] In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the steps of the USB harness adaptation method provided in the first aspect.

[0045] In a fourth aspect, an embodiment of the present invention further provides a storage medium, which stores computer executable instructions, and when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to implement the steps of the USB harness adaptation method provided in the first aspect.

[0046] A USB cable harness adaptation method, device and electronic device provided by an embodiment of the present invention are applied to the USB cable harness adaptation of a vehicle navigation and entertainment system. A signal enhancement chip is provided in the involved navigation and entertainment system. One end of the signal enhancement chip is connected to the MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to the USB cable harness; in the process of adapting the USB cable harness of the navigation and entertainment system, first control the MCU controller to obtain the vehicle model information of the vehicle, and determine the cable harness length of the USB cable harness based on the vehicle model information; then determine the signal strength level of the signal enhancement chip based on the cable harness length, and determine the pin connection strategy of the signal enhancement chip based on the signal strength level; finally, control the MCU controller to be connected to the USB cable harness according to the pin connection strategy. This method uses the signal enhancement chip provided in the navigation and entertainment system to enhance and adjust the signal of the USB cable harness so that it meets the requirements of the signal amplitude, and can adapt various vehicle models and various lengths of USB cable harnesses in the same type of vehicle navigation and entertainment system, thereby shortening the vehicle development time.

[0047] Other features and advantages of the present invention will be described in the following specification, and, in part, will be obvious from the specification, or will be understood by implementing the present invention. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the specification, claims and drawings.

[0048] To make the above objectives, features and advantages of the present invention more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, is described in detail as follows. Brief Description of the Drawings

[0049] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0050] Figure 1 It is a flowchart of a USB cable harness adaptation method provided by an embodiment of the present invention;

[0051] Figure 2 It is a flowchart of step S101 in a USB cable harness adaptation method provided by an embodiment of the present invention;

[0052] Figure 3 It is a flowchart of step S202 in a USB cable harness adaptation method provided by an embodiment of the present invention;

[0053] Figure 4Flow chart of step S102 in a USB cable harness adaptation method provided by an embodiment of the present invention;

[0054] Figure 5 Flow chart of step S402 in a USB cable harness adaptation method provided by an embodiment of the present invention;

[0055] Figure 6 Flow chart of step S403 in a USB cable harness adaptation method provided by an embodiment of the present invention;

[0056] Figure 7 Flow chart of step S103 in a USB cable harness adaptation method provided by an embodiment of the present invention;

[0057] Figure 8 Schematic diagram of the structure of a navigation and entertainment system provided by an embodiment of the present invention;

[0058] Figure 9 Schematic diagram of the differential signal relationship curve provided by an embodiment of the present invention;

[0059] Figure 10 Schematic diagram of a USB cable harness adaptation device provided by an embodiment of the present invention;

[0060] Figure 11 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0061] Icons:

[0062] 1010 - Harness length determination module; 1020 - Pin connection strategy determination module; 1030 - Harness connection control module;

[0063] 101 - Processor; 102 - Memory; 103 - Bus; 104 - Communication interface. Detailed implementation manners

[0064] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0065] With the development of vehicles towards the intelligent direction, automotive consumers have put forward higher requirements for the appearance and interior, such as: convenient, intelligent, networked, electronic, personalized interiors, and differentiated appearances. To meet the above needs, it is necessary for vehicles to shorten the product update cycle. For the vehicle's navigation and entertainment system, it is necessary to adapt to the installation structures of different vehicles, and different installation structures have different requirements for the length of the USB harness. Specifically, the length of the USB harness has a crucial impact on the signal quality. When the same in-vehicle navigation and entertainment system uses a shorter USB harness, it may cause the signal amplitude at the USB port to be too strong to recognize the USB device; while if the USB harness is too long, the signal will attenuate too much in the harness, resulting in too low a signal amplitude to also recognize the USB device.

[0066] In the prior art, to solve the above problems, the length of the USB harness is specifically adapted according to the installation position of the in-vehicle computer in the vehicle model. However, this increases the complexity of the USB harness accessories in the context of frequent vehicle replacements, and requires a complex adaptation process for each vehicle model, additionally increasing the development time. Based on this, the embodiments of the present invention provide a USB harness adaptation method, device, and electronic device. This method uses a signal enhancement chip set in the navigation and entertainment system to enhance and adjust the signal of the USB harness, so that it meets the requirements of the signal amplitude, and can adapt to various vehicle models and various lengths of USB harnesses in the same type of in-vehicle navigation and entertainment system, thereby shortening the development time of the vehicle.

[0067] To facilitate the understanding of this embodiment, first, a USB harness adaptation method disclosed in the embodiments of the present invention will be introduced in detail. This method is applied to the navigation and entertainment system of the vehicle; among them, a signal enhancement chip is set in the navigation and entertainment system, one end of the signal enhancement chip is connected to the MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to the USB harness.

[0068] On this basis, the method is as Figure 1 shown and includes:

[0069] Step S101, control the MCU controller to obtain the vehicle model information of the vehicle, and determine the harness length of the USB harness based on the vehicle model information;

[0070] Step S102, determine the signal strength level of the signal enhancement chip based on the harness length, and determine the pin connection strategy of the signal enhancement chip based on the signal strength level;

[0071] Step S103, control the MCU controller to be connected to the USB harness according to the pin connection strategy.

[0072] Specifically, when this method adapts the USB wire harness lengths of the same type or the same in-vehicle navigation and entertainment system to different vehicle models, it controls the MCU controller to obtain and identify the vehicle model information of the vehicle to determine the specific vehicle model, and then determines the wire harness length of the corresponding USB wire harness based on this vehicle model. Then, according to the USB wire harnesses of different lengths, it determines the signal strength level of the signal enhancement chip, and further determines the pin connection strategy corresponding to the signal enhancement chip based on the signal strength level, and finally controls the MCU controller to complete the adaptation with the USB wire harness.

[0073] Optionally, step S101 of controlling the MCU controller to obtain the vehicle model information of the vehicle and determine the wire harness length of the USB wire harness based on the vehicle model information is as Figure 2 shown and includes:

[0074] Step S201, controlling the MCU controller to send a data request instruction to the vehicle's on-board computer processor;

[0075] Step S202, controlling the MCU controller to receive the vehicle attribute data sent by the on-board computer processor after responding to the data request instruction, and determining the vehicle model information corresponding to the vehicle according to the vehicle attribute data;

[0076] Step S203, based on the wire harness length corresponding data table pre-stored in the MCU controller, determining the wire harness length corresponding to the vehicle model information.

[0077] In the process of determining the wire harness length, it is first necessary to identify the vehicle model. After controlling the MCU controller to send a data request instruction to the vehicle's on-board computer processor, it obtains the vehicle attribute data when the on-board computer processor responds to the data request instruction, and then parses the vehicle attribute data to obtain the specific vehicle model information.

[0078] After obtaining the vehicle model information, the wire harness length corresponding to this vehicle model information is obtained by using the wire harness length corresponding data table pre-stored in the MCU controller. The specific data table is as follows:

[0079]

[0080] Optionally, step S202 of controlling the MCU controller to receive the vehicle attribute data sent by the on-board computer processor after responding to the data request instruction, and determining the vehicle model information corresponding to the vehicle according to the vehicle attribute data is as Figure 3 shown and includes:

[0081] Step S301, using the CAN bus set in the vehicle to control the MCU controller to receive the vehicle attribute data, and saving the vehicle attribute data to the memory of the MCU controller;

[0082] Step S302: Control the MCU controller to read the vehicle attribute data in the memory, and after parsing the vehicle attribute data using the vehicle model ID corresponding to the vehicle, obtain the vehicle model information.

[0083] The vehicle attribute data is obtained based on the CAN bus preset in the vehicle, and the obtained vehicle attribute data is stored in the relevant memory of the MCU controller. During subsequent adaptation, the vehicle attribute data can be directly read from this memory. In a specific scenario, the vehicle model information in the vehicle attribute data corresponds to the vehicle model ID. Therefore, after controlling the MCU controller to read the vehicle attribute data in the memory, parsing the vehicle attribute data using the vehicle model ID corresponding to the vehicle can obtain the corresponding vehicle model information.

[0084] Optionally, step S102 of determining the signal strength level of the signal enhancement chip based on the harness length and determining the pin connection strategy of the signal enhancement chip based on the signal strength level, as Figure 4 shown, includes:

[0085] Step S401: Obtain the differential signal relationship curve corresponding to the USB harness;

[0086] Step S402: Use the differential signal relationship curve to determine the signal strength level corresponding to the harness length;

[0087] Step S403: Based on the signal strength level, determine the first pin corresponding to the MCU controller, and use the signal strength level to determine the second pin corresponding to the signal enhancement chip;

[0088] Step S404: Determine the pin connection strategy according to the first pin and the second pin.

[0089] The determination process of the signal strength level is mainly based on the differential signal relationship curve corresponding to the USB harness to determine, specifically referring to the Figure 9 shown differential signal relationship curve. The differential signal relationship curve is the correspondence between the differential signal corresponding to the USB harness and time. Therefore, the differential signal relationship curve can characterize the signal strength value corresponding to the USB harness, and then obtain its corresponding signal strength level.

[0090] Optionally, step S402 of using the differential signal relationship curve to determine the signal strength level corresponding to the harness length, as Figure 5 shown, includes:

[0091] Step S501: When the harness length is greater than 50 cm and less than 60 cm, based on the differential signal relationship curve, determine the first signal strength level corresponding to the harness length;

[0092] In step S502, when the harness length is not less than 60 cm and less than 80 cm, determine the second signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0093] In step S503, when the harness length is not less than 80 cm and less than 100 cm, determine the third signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0094] In step S504, when the harness length is not less than 100 cm and less than 130 cm, determine the fourth signal strength level corresponding to the harness length based on the differential signal relationship curve;

[0095] In step S505, when the harness length is not less than 130 cm and less than 180 cm, determine the fifth signal strength level corresponding to the harness length based on the differential signal relationship curve.

[0096] The above five signal strength levels respectively correspond to five types of harness lengths, which respectively correspond to five types of pin connection strategies. Optionally, step S403 of determining the first pin corresponding to the MCU controller based on the signal strength level and using the signal strength level to determine the second pin corresponding to the signal enhancement chip, as Figure 6 shown, includes:

[0097] In step S601, when the signal strength level is the first signal strength level, determine the disabled pin corresponding to the MCU controller as the first pin, and determine the off pin corresponding to the signal enhancement chip as the second pin;

[0098] In step S602, when the signal strength level is the second signal strength level, determine the GPIO0 pin corresponding to the MCU controller as the first pin, and determine the level zero pin corresponding to the signal enhancement chip as the second pin;

[0099] In step S603, when the signal strength level is the third signal strength level, determine the GPIO1 pin corresponding to the MCU controller as the first pin, and determine the level one pin corresponding to the signal enhancement chip as the second pin;

[0100] In step S604, when the signal strength level is the fourth signal strength level, determine the GPIO2 pin corresponding to the MCU controller as the first pin, and determine the level two pin corresponding to the signal enhancement chip as the second pin;

[0101] In step S605, when the signal strength level is the fifth signal strength level, determine the GPIO3 pin corresponding to the MCU controller as the first pin, and determine the level three pin corresponding to the signal enhancement chip as the second pin.

[0102] The above process determines the first pin and the second pin corresponding to the MCU controller based on different signal strength levels. Furthermore, based on the specific relationship between the first pin and the second pin, the pin connection strategy can be obtained. Different pin connection strategies correspond to different signal enhancement levels of the signal enhancement chip, thereby realizing the enhancement adjustment of the signal of the USB cable harness.

[0103] Optionally, the step S103 of controlling the connection between the MCU controller and the USB cable harness according to the pin connection strategy is as Figure 7 shown, and includes:

[0104] Step S701, controlling the connection between the first pin in the MCU controller and the corresponding second pin in the signal enhancement chip based on the pin connection strategy;

[0105] Step S702, controlling the connection between the signal enhancement chip and the USB cable harness.

[0106] During the process of controlling the connection between the signal enhancement chip and the USB cable harness, the disabled pin of the MCU controller can be connected to the shutdown pin of the signal enhancement chip to adapt to a USB cable harness with a length of 50CM - 60CM (excluding);

[0107] The GPIO0 pin of the MCU controller can also be connected to the level zero pin of the signal enhancement chip to adapt to a USB cable harness with a length of 60CM - 80CM (excluding);

[0108] The GPIO1 pin of the MCU controller can also be connected to the level one pin of the signal enhancement chip to adapt to a USB cable harness with a length of 80CM - 100CM (excluding);

[0109] The GPIO2 pin of the MCU controller can also be connected to the level two pin of the signal enhancement chip to adapt to a USB cable harness with a length of 100CM - 130CM (excluding);

[0110] The GPIO3 pin of the MCU controller can also be connected to the level three pin of the signal enhancement chip to adapt to a USB cable harness with a length of 130CM - 180CM (excluding).

[0111] After the connection between the first pin in the MCU controller and the second pin in the signal enhancement chip is completed based on the pin connection strategy, the method further includes: controlling the disconnection of the connection between the other first pins in the MCU controller and the corresponding other second pins in the signal enhancement chip based on the pin connection strategy. Specifically, the above connection relationship is a single - line connection. After one of the first pins of the MCU controller is connected to the signal enhancement chip, the connection between the other first pins and the signal enhancement chip needs to be disconnected.

[0112] AsFigure 8 Schematic diagram of the structure of the navigation and entertainment system shown. At this time, the USB harness adaptation method needs to adapt the USB harness for the same type or the same navigation and entertainment system for different vehicle models. First, use the MCU controller to obtain the vehicle model information through CAN messages, and save the vehicle model information in the relevant memory of the MCU controller. By reading the vehicle model information in the memory and combining with the pre-stored data table of corresponding harness lengths, the USB harness length corresponding to the vehicle model information is obtained. Subsequently, based on the determined harness length, the signal strength level corresponding to the signal enhancement chip is determined, and the pin connection strategy of the signal enhancement chip is determined based on the signal strength level. Finally, according to the pin connection strategy, the corresponding GPIO pins of the MCU controller are connected to the relevant level pins in the corresponding signal enhancement chip, so as to achieve signal strength enhancement adaptation of the USB harness on the basis of the signal enhancement chip.

[0113] As can be seen from the USB harness adaptation method mentioned in the above embodiments, this method uses the signal enhancement chip set in the navigation and entertainment system to enhance and adjust the signal of the USB harness, so that it meets the requirements of the signal amplitude, and can adapt various vehicle models and various lengths of USB harnesses in the same type of in-vehicle navigation and entertainment system, thereby shortening the vehicle development time.

[0114] Corresponding to the USB harness adaptation method provided in the foregoing embodiments, an embodiment of the present invention provides a USB harness adaptation device, which is applied to the navigation and entertainment system of a vehicle; wherein, a signal enhancement chip is provided in the navigation and entertainment system, one end of the signal enhancement chip is connected to the MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to the USB harness;

[0115] As Figure 10 shown, the device includes:

[0116] A harness length determination module 1010, configured to control the MCU controller to obtain the vehicle model information and determine the harness length of the USB harness based on the vehicle model information;

[0117] A pin connection strategy determination module 1020, configured to determine the signal strength level of the signal enhancement chip based on the harness length and determine the pin connection strategy of the signal enhancement chip based on the signal strength level;

[0118] A harness connection control module 1030, configured to control the connection between the MCU controller and the USB harness according to the pin connection strategy.

[0119] As can be seen from the USB cable harness adaptation device mentioned in the above embodiments, the device uses a signal enhancement chip set in the navigation and entertainment system to enhance and adjust the signal of the USB cable harness, so as to meet the requirements of the signal amplitude, and can adapt various vehicle models and various lengths of USB cable harnesses in the same type of in-vehicle navigation and entertainment system, thereby shortening the vehicle development time.

[0120] The USB cable harness adaptation device provided in the embodiment of the present invention has the same implementation principle and technical effects as those in the foregoing embodiment of the USB cable harness adaptation method. For a brief description, for the parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing embodiment of the USB cable harness adaptation method.

[0121] This embodiment also provides an electronic device, and the structural schematic diagram of the electronic device is as Figure 11 shown. The device includes a processor 101 and a memory 102; wherein, the memory 102 is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the steps of the above USB cable harness adaptation method.

[0122] Figure 11 The shown electronic device further includes a bus 103 and a communication interface 104, and the processor 101, the communication interface 104 and the memory 102 are connected through the bus 103.

[0123] Among them, the memory 102 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. The bus 103 may be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 11 only a bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0124] The communication interface 104 is used to connect to at least one user terminal and other network units through a network interface, and send the encapsulated IPv4 packet or IPv4 packet to the user terminal through the network interface.

[0125] The processor 101 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 101 or the instructions in the form of software. The above-mentioned processor 101 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present disclosure. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 102, and the processor 101 reads the information in the memory 102 and combines its hardware to complete the steps of the method in the foregoing embodiments.

[0126] An embodiment of the present invention also provides a storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the USB harness adaptation method in the foregoing embodiments.

[0127] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, equipment, and methods can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other may be through some communication interfaces, and the indirect coupling or communication connection of devices or units may be in an electrical, mechanical, or other form.

[0128] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0129] In addition, each functional unit in various embodiments of the present invention may be integrated in a processing unit, may exist separately as individual physical units, or two or more units may be integrated in one unit.

[0130] If the described function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0131] Finally, it should be noted that: the above-described embodiments are only specific implementation manners of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting it. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions recorded in the foregoing embodiments or can easily think of changes, or perform equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A USB harness adaptation method, characterized in that: The method is applied to a vehicle navigation and entertainment system; wherein the navigation and entertainment system is provided with a signal enhancement chip, one end of the signal enhancement chip is connected to an MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to a USB harness; The method comprises: Controlling the MCU controller to obtain the vehicle model information of the vehicle, and determining the harness length of the USB harness based on the vehicle model information; Determining a signal strength level of the signal enhancement chip based on the length of the wiring harness, and determining a pin connection strategy of the signal enhancement chip based on the signal strength level; The MCU controller is controlled to be connected to the USB harness according to the pin connection strategy.

2. The USB harness adaptation method according to claim 1, characterized in that: Controlling the MCU controller to obtain the vehicle model information of the vehicle, and determining the harness length of the USB harness based on the vehicle model information, including: Controlling the MCU controller to send a data request instruction to the vehicle's on-board computer processor; Controlling the MCU controller to receive the vehicle attribute data sent by the vehicle computer processor in response to the data request instruction, and determining the vehicle model information corresponding to the vehicle according to the vehicle attribute data; Based on the wire harness length corresponding data table pre-stored in the MCU controller, the wire harness length corresponding to the vehicle model information is determined.

3. The USB harness adaptation method according to claim 2, characterized in that: Controlling the MCU controller to receive the vehicle attribute data sent by the vehicle computer processor in response to the data request instruction, and determining the vehicle model information corresponding to the vehicle according to the vehicle attribute data, including: Using the CAN bus provided in the vehicle to control the MCU controller to receive the vehicle attribute data, and save the vehicle attribute data into the memory of the MCU controller; The MCU controller is controlled to read the vehicle attribute data in the memory, and the vehicle attribute data is parsed using the vehicle model ID corresponding to the vehicle to obtain the vehicle model information.

4. The USB harness adaptation method according to claim 1, characterized in that: Determining a signal strength level of the signal enhancement chip based on the length of the wiring harness, and determining a pin connection strategy of the signal enhancement chip based on the signal strength level, including: Obtaining a differential signal relationship curve corresponding to the USB harness; Determining the signal strength level corresponding to the wiring harness length using the differential signal relationship curve; Determine a first pin corresponding to the MCU controller based on the signal strength level, and determine a second pin corresponding to the signal enhancement chip using the signal strength level; The pin connection strategy is determined according to the first pin and the second pin.

5. The USB harness adaptation method according to claim 4, characterized in that: Determining the signal strength level corresponding to the harness length using the differential signal relationship curve includes: When the length of the wiring harness is greater than 50 cm and less than 60 cm, determining a first signal strength level corresponding to the length of the wiring harness based on the differential signal relationship curve; When the length of the wiring harness is not less than 60 cm and less than 80 cm, determining a second signal strength level corresponding to the length of the wiring harness based on the differential signal relationship curve; When the length of the wiring harness is not less than 80 cm and less than 100 cm, determining a third signal strength level corresponding to the length of the wiring harness based on the differential signal relationship curve; When the length of the wiring harness is not less than 100 cm and less than 130 cm, determining a fourth signal strength level corresponding to the length of the wiring harness based on the differential signal relationship curve; When the length of the wiring harness is not less than 130 cm and less than 180 cm, a fifth signal strength level corresponding to the length of the wiring harness is determined based on the differential signal relationship curve.

6. The USB harness adaptation method according to claim 5, characterized in that: Determining a first pin corresponding to the MCU controller based on the signal strength level, and determining a second pin corresponding to the signal enhancement chip using the signal strength level, including: When the signal strength level is the first signal strength level, the disabled pin corresponding to the MCU controller is determined as the first pin, and the shutdown pin corresponding to the signal enhancement chip is determined as the second pin; When the signal strength level is the second signal strength level, the GPIO0 pin corresponding to the MCU controller is determined as the first pin, and the level zero pin corresponding to the signal enhancement chip is determined as the second pin; When the signal strength level is the third signal strength level, the GPIO1 pin corresponding to the MCU controller is determined as the first pin, and the level 1 pin corresponding to the signal enhancement chip is determined as the second pin; When the signal strength level is the fourth signal strength level, the GPIO2 pin corresponding to the MCU controller is determined as the first pin, and the level 2 pin corresponding to the signal enhancement chip is determined as the second pin; When the signal strength level is the fifth signal strength level, the GPIO3 pin corresponding to the MCU controller is determined as the first pin, and the level three pin corresponding to the signal enhancement chip is determined as the second pin.

7. The USB harness adaptation method according to claim 1, characterized in that: Controlling the MCU controller to connect to the USB harness according to the pin connection strategy includes: Controlling the first pin in the MCU controller to be connected to the corresponding second pin in the signal enhancement chip based on the pin connection strategy; The signal enhancement chip is controlled to be connected to the USB harness.

8. The USB harness adaptation method according to claim 7, characterized in that: After controlling the first pin in the MCU controller to be connected to the corresponding second pin in the signal enhancement chip based on the pin connection strategy, the method further includes: Based on the pin connection strategy, the other first pins in the MCU controller are controlled to be disconnected from the other corresponding second pins in the signal enhancement chip.

9. A USB harness adapter, characterized in that: The device is applied to a vehicle's navigation and entertainment system; wherein the navigation and entertainment system is provided with a signal enhancement chip, one end of the signal enhancement chip is connected to an MCU controller of the navigation and entertainment system, and the other end of the signal enhancement chip is connected to a USB harness; The device comprises: A harness length determination module, used to control the MCU controller to obtain the vehicle model information of the vehicle, and determine the harness length of the USB harness based on the vehicle model information; a pin connection strategy determination module, configured to determine a signal strength level of the signal enhancement chip based on the length of the wiring harness, and determine a pin connection strategy of the signal enhancement chip based on the signal strength level; A harness connection control module is used to control the connection between the MCU controller and the USB harness according to the pin connection strategy.

10. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the steps of the USB harness adaptation method according to any one of claims 1 to 8.