Signal compensation circuit, method, device, electronic equipment and readable storage medium
By setting up signal compensation circuits in the vehicle's infotainment system and terminal equipment, and using amplitude acquisition and controller to compensate for the signal, the problem of signal disconnection caused by vehicle bumps is solved, and more stable data transmission is achieved.
Patent Information
- Application Number
- CN202310723325.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-19
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-06-19
AI Technical Summary
Vehicle vibrations can cause signal loss between the vehicle's infotainment system and terminal devices, affecting user experience.
Signal compensation circuits are installed in the vehicle's infotainment system and terminal equipment. The amplitude acquisition circuit and controller control the driver to compensate for the signal, keeping the voltage amplitude within a preset range and ensuring stable signal transmission.
It improves the stability of data transmission between the vehicle's infotainment system and terminal equipment, and reduces signal disconnection caused by vehicle vibration.
Smart Images

Figure CN116614148B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication connection, and in particular to a signal compensation circuit, method, device, electronic equipment and readable storage medium. BACKGROUND
[0002] With the development of technology, a car machine and a terminal device such as a mobile phone can be interconnected to realize the function of Internet of Vehicles, so that the terminal device can realize the functions of navigation, music playing, weather preview and the like of the vehicle.
[0003] In the related art, the car machine and the terminal device can be connected in a wired or wireless manner. In the wired connection mode, the terminal and the car machine can be connected at the beginning stage, and during use, the terminal or the car machine determines the transmission signal as an interference signal due to the user touching the connection line or the vehicle bumping, thereby causing the signal disconnection between the terminal and the car machine, affecting the user experience. SUMMARY
[0004] The purpose of the embodiments of the present application is to provide a signal compensation circuit, method, device, electronic equipment and readable storage medium, which can improve the stability of data transmission between the car machine and the terminal device and reduce the occurrence of signal disconnection due to vehicle bumping.
[0005] In a first aspect, the embodiments of the present application provide a signal compensation circuit applied to an electronic equipment, a signal receiving end of the signal compensation circuit being connected with a serial bus interface of the electronic equipment, and a signal output end of the signal compensation circuit being connected with a data transceiver module of the electronic equipment, the signal compensation circuit comprising: an amplitude acquisition circuit, a first end of the amplitude acquisition circuit being connected with the serial bus interface and configured to acquire a first voltage amplitude of a first signal, the first signal being a received signal of the serial bus interface; a controller, a receiving end of the controller being connected with a second end of the amplitude acquisition circuit; a driver, a first end of the driver being connected with an output end of the controller, the driver being configured to compensate the first signal, and a second end of the driver being the signal output end of the signal compensation circuit; and the controller being configured to control the driver to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a preset amplitude range, the preset amplitude range being a range determined according to the preset voltage amplitude.
[0006] In a second aspect, the embodiments of the present application provide an electronic equipment, comprising: the signal compensation circuit in the first aspect; a serial bus interface connected with the signal compensation circuit; and a data transceiver module connected with the signal compensation circuit.
[0007] In a third aspect, the embodiments of the present application provide a signal compensation method applied to the electronic device in the second aspect, and the signal compensation method comprises: acquiring a first voltage amplitude of a first signal; and controlling a driver to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a first amplitude range, the first amplitude range being a range determined according to the preset voltage amplitude.
[0008] In a fourth aspect, the embodiments of the present application provide a signal compensation device applied to the electronic device in the second aspect, and the signal compensation device comprises: an acquisition module configured to acquire a first voltage amplitude of a first signal; and a control module configured to control a driver to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a first amplitude range, the first amplitude range being a range determined according to the preset voltage amplitude.
[0009] In a fifth aspect, the embodiments of the present application provide an electronic device, which comprises: a processor and a memory, the memory storing a program or instructions executable on the processor, and the program or instructions are executed by the processor to implement the steps of the signal compensation method in the first aspect.
[0010] In a sixth aspect, the embodiments of the present application provide a readable storage medium, the readable storage medium storing a program or instructions, and the program or instructions are executed by a processor to implement the steps of the signal compensation method in the first aspect.
[0011] In a seventh aspect, the embodiments of the present application provide a chip, which comprises a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to run a program or instructions to implement the steps of the signal compensation method in the first aspect.
[0012] In an eighth aspect, the embodiments of the present application provide a computer program product stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the signal compensation method in the first aspect.
[0013] In the embodiments of the present application, by setting the signal compensation circuit in the electronic device, the current insertion loss value of the signal path can be determined according to the continuously acquired first voltage amplitude, and the received first signal is compensated based on the current insertion loss value, thereby improving the stability of the signal transmission between the two electronic devices.
[0014] In the embodiments of the present application, when the two electronic devices are a car machine and a terminal device respectively, the signal compensation circuit is arranged in the car machine and the terminal device, the signal compensation circuit can detect the current insertion loss value of the signal path under different driving states of the vehicle, and control the driver to compensate the signal received by the car machine and the terminal device, thereby improving the stability of data transmission between the car machine and the terminal device, and reducing the occurrence of signal disconnection caused by vehicle bumping. BRIEF DESCRIPTION OF DRAWINGS
[0015] Figure 1 A schematic diagram of a signal compensation circuit provided in some embodiments of the present application is shown;
[0016] Figure 2 A schematic diagram of an electronic device provided in some embodiments of the present application is shown;
[0017] Figure 3 One of the connection schematic diagrams of a car machine and a mobile phone provided in some embodiments of the present application is shown;
[0018] Figure 4 The second connection schematic diagram of a car machine and a mobile phone provided in some embodiments of the present application is shown;
[0019] Figure 5 A flowchart of a signal compensation method provided in some embodiments of the present application is shown;
[0020] Figure 6 A waveform diagram of a first signal before compensation provided in some embodiments of the present application is shown;
[0021] Figure 7 A waveform diagram of a first signal after compensation provided in some embodiments of the present application is shown;
[0022] Figure 8 A structural block diagram of a signal compensation device according to some embodiments of the present application is shown;
[0023] Figure 9 A structural block diagram of an electronic device according to some embodiments of the present application is shown;
[0024] Figure 10 A hardware structure schematic diagram of an electronic device implementing some embodiments of the present application is shown.
[0025] The reference signs are as follows:
[0026] 100 signal compensation circuit, 110 amplitude acquisition circuit, 112 amplification circuit, 114 analog-to-digital conversion circuit, 120 controller, 130 driver, 200 electronic device, 202 serial bus interface, 204 data transceiver module. DETAILED DESCRIPTION
[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0029] The following is in conjunction with the appendix Figures 1 to 10 The signal compensation circuit, signal compensation method, signal compensation device, electronic device, and readable storage medium provided in this application will be described in detail through specific embodiments and application scenarios.
[0030] In some embodiments of this application, a signal compensation circuit is provided. Figure 1 Schematic diagrams of signal compensation circuits provided in some embodiments of this application are shown. Figure 2 Schematic diagrams of electronic devices provided in some embodiments of this application are shown, such as... Figure 1 and Figure 2 As shown, the signal compensation circuit 100 is applied to the electronic device 200. The signal receiving end of the signal compensation circuit is connected to the serial bus interface 202 of the electronic device 200, and the signal output end of the signal compensation circuit is connected to the data transceiver module 204 of the electronic device 200.
[0031] The signal compensation circuit comprises: an amplitude acquisition circuit 110, a first end of the amplitude acquisition circuit 110 being connected with the serial bus interface 202, for acquiring a first voltage amplitude of a first signal, the first signal being a received signal of the serial bus interface 202; a controller 120, a receiving end of the controller 120 being connected with a second end of the amplitude acquisition circuit 110; a driver 130, a first end of the driver 130 being connected with an output end of the controller 120, and a second end of the driver 130 being connected with a data transceiver module 204 of the electronic device 200; the controller 120 is configured to control the driver 130 to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a preset amplitude range, the preset amplitude range being a range determined according to the preset voltage amplitude.
[0032] In the embodiments of the present application, the serial bus interface 202 can be different types of USB (Universal Serial Bus) interfaces, such as Type-A interface, Type-B interface, Type-C interface, etc.
[0033] In the embodiments of the present application, the current insertion loss value is the insertion loss value on the signal path when the serial bus interface 202 receives the first signal.
[0034] For example, the controller 120 can determine the corresponding current insertion loss value according to the first voltage amplitude by looking up a table.
[0035] In the embodiments of the present application, the amplitude acquisition circuit 110 can amplify the first voltage amplitude of the first signal, and can also convert the analog signal corresponding to the first voltage amplitude into a corresponding digital signal. The controller 120 can receive the first signal and the corresponding first voltage amplitude transmitted by the amplitude acquisition circuit 110, and control the driver 130 based on the first voltage amplitude and the preset voltage amplitude. The preset voltage amplitude is the voltage amplitude at which the electronic devices 200 can stably transmit signals. By comparing the first voltage amplitude with the preset voltage amplitude, it can be determined whether the current signal path has too large insertion loss, and accordingly the driver 130 is controlled to compensate the received first signal, so as to avoid the signal transmission between the two electronic devices 200 being disconnected.
[0036] In the embodiment of the present application, the amplitude acquisition circuit 110 can acquire the first voltage amplitude of the first signal received by the serial bus interface 202. The data line of the serial bus includes DP (positive) and DN (negative), and the amplitude acquisition circuit 110 can acquire the DP and DN amplitudes, i.e., the first voltage amplitude, and transmit the first voltage amplitude to the controller 120. The controller 120 controls the driver 130 according to the first voltage amplitude and the preset voltage amplitude, so that the received first signal is compensated by the driver 130. The compensated first signal can be stably received by the electronic device 200, thereby improving the signal transmission stability between the electronic devices 200.
[0037] In the embodiment of the present application, the first signal is a received signal, and the signal compensation circuit 100 can continuously acquire the first voltage amplitude of the first signal acquired by the serial bus interface 202 through the amplitude acquisition circuit 110. Since the first voltage amplitude is continuously acquired, comparison between the first voltage amplitude and the preset voltage amplitude can determine the insertion loss of the corresponding signal path, thereby ensuring the accuracy of the compensation of the first signal by the driver 130 controlled by the first voltage amplitude and the preset voltage amplitude, avoiding the false triggering of the driver 130, and further ensuring the stability of the signal transmission between the two electronic devices 200.
[0038] For example, the two electronic devices 200 are a mobile phone and a vehicle machine, and the serial bus interfaces 202 of the mobile phone and the vehicle machine are connected by a USB line. During vehicle driving, the signal compensation circuit 100 in the mobile phone continuously detects the first voltage amplitude of the first signal received by the mobile phone, and compensates the first signal received by the mobile phone based on the first voltage amplitude and the corresponding preset voltage amplitude, thereby avoiding the disconnection caused by the too low first voltage amplitude of the first signal received by the mobile phone. The signal compensation circuit 100 in the vehicle machine continuously detects the first voltage amplitude of the first signal received by the vehicle machine, and compensates the first signal received by the vehicle machine based on the first voltage amplitude and the corresponding preset voltage amplitude, thereby avoiding the disconnection caused by the too low first voltage amplitude of the first signal received by the vehicle machine.
[0039] In the embodiment of the present application, the signal compensation circuit 100 is arranged in the electronic device 200. The signal compensation circuit 100 can compensate the received first signal based on the continuously acquired first voltage amplitude and the preset voltage amplitude, thereby improving the stability of the signal transmission between the two electronic devices 200.
[0040] In the embodiments of the present application, when the two electronic devices 200 are a vehicle machine and a terminal device respectively, the signal compensation circuit 100 is arranged in the vehicle machine and the terminal device, the signal compensation circuit 100 can detect the first voltage amplitude of the signal path under different driving states of the vehicle, and control the driver 130 to compensate the signal received by the vehicle machine and the terminal device, thereby improving the stability of data transmission between the vehicle machine and the terminal device, and reducing the occurrence of signal disconnection caused by vehicle bumping.
[0041] In some embodiments of the present application, the amplitude acquisition circuit 110 includes an amplification circuit 112 and an analog-digital conversion circuit 114. The first end of the amplification circuit 112 is connected with the serial bus interface 202, and the first end of the analog-digital conversion circuit 114 is connected with the second end of the amplification circuit 112, and the second end of the analog-digital conversion circuit 114 is connected with the receiving end of the controller 120.
[0042] In the embodiments of the present application, the amplification circuit 112 is connected between the serial bus interface 202 and the analog-digital conversion circuit 114, and the amplification circuit 112 can amplify the detected first voltage amplitude and transmit the amplified first voltage amplitude to the analog-digital conversion circuit 114 for analog-digital conversion.
[0043] In the embodiments of the present application, the signal compensation circuit 100 amplifies the detected first voltage amplitude signal through the amplification circuit 112, and then converts the signal through the analog-digital conversion circuit 114 to obtain a corresponding digital signal. The processed digital signal is transmitted to the controller 120, so that the controller 120 can control the driver 130 according to the signal. By arranging the amplification circuit 112 and the analog-digital conversion circuit 114 in the amplitude acquisition circuit 110, the accuracy of the first voltage amplitude transmitted by the amplitude acquisition circuit 110 to the controller 120 can be ensured.
[0044] In some embodiments of the present application, the driver 130 includes a Schmitt trigger.
[0045] In the embodiments of the present application, the controller 120 controls the Schmitt trigger to shape the waveform of the first signal, so that the waveform of the compensated first signal meets the transmission condition, and the stability of signal transmission between the two electronic devices 200 is further ensured.
[0046] Specifically, in the Schmitt trigger, the two comparison voltages are respectively referred to as upper limit voltage (Vupper) and lower limit voltage (Vlower). When the input first signal is higher than the upper limit voltage, the output level becomes high, and when the input first signal is lower than the lower limit voltage, the output level becomes low. When the input signal is between the upper and lower limit voltages, the output level remains unchanged, thereby shaping the waveform of the first signal and improving the stability of signal transmission.
[0047] In some embodiments of the present application, an electronic device is provided, such as Figure 2 As shown, the electronic device 200 includes the signal compensation circuit 100 in any of the above embodiments, a data transceiver module 204, and a serial bus interface 202, the serial bus interface 202 is connected to the signal compensation circuit 100, the data transceiver module 204 is connected to the signal compensation circuit 100, and the signal compensation circuit 100 is arranged between the data transceiver module 204 and the serial bus interface 202.
[0048] For example, the electronic device 200 can be a car machine in a vehicle, and the electronic device 200 can also be a mobile terminal such as a mobile phone or a tablet computer.
[0049] Figure 3 A connection diagram of a car machine and a mobile phone is shown, which is provided in some embodiments of the present application, as shown in Figure 3 As shown, the mobile phone includes a first data transceiver module, a switch, the signal compensation circuit 100, and a first USB interface. The car machine includes a second data transceiver module, the signal compensation circuit 100, and a second USB interface, and the first USB interface and the second USB interface are connected through a data line.
[0050] For example, the data transceiver module can be any module supporting USB data transmission, such as an audio module, a data transmission module, a charging module, etc.
[0051] Figure 4 A connection diagram of a car machine and a mobile phone is shown, which is provided in some embodiments of the present application, as shown in Figure 4 As shown, the mobile phone includes a first data transceiver module, a switch, the signal compensation circuit 100, and a first USB interface. The car machine includes a second data transceiver module, the signal compensation circuit 100, and a second USB interface. The first data transceiver module and the second data transceiver module each include an audio module, a data transmission module, and a charging module. The first USB interface and the second USB interface are connected through a data line.
[0052] In the embodiments of the present application, by arranging the signal compensation circuit 100 in the electronic device 200, the signal compensation circuit 100 can compensate the received first signal according to the continuously collected first voltage amplitude and the preset voltage amplitude, thereby improving the stability of signal transmission between two electronic devices 200.
[0053] In the embodiments of the present application, when the two electronic devices 200 are a vehicle machine and a terminal device respectively, the signal compensation circuit 100 is arranged in the vehicle machine and the terminal device, the signal compensation circuit 100 can detect the first voltage amplitude of the signal path under different driving states of the vehicle, and control the driver 130 to compensate the signal received by the vehicle machine and the terminal device, thereby improving the stability of data transmission between the vehicle machine and the terminal device, and reducing the occurrence of signal disconnection caused by vehicle bumping.
[0054] In some embodiments of the present application, a signal compensation method is provided, Figure 5 The flowchart of the signal compensation method provided in some embodiments of the present application is shown in FIG. 5. Figure 5 As shown in FIG. 5, the signal compensation method comprises the following steps:
[0055] In the embodiments of the present application, the signal compensation method is applied to the signal compensation circuit in any of the above embodiments, and the signal compensation circuit comprises an amplitude acquisition circuit, a controller and a driver.
[0056] Step 502: acquiring a first voltage amplitude of a first signal;
[0057] In the embodiments of the present application, the first voltage amplitude is the voltage amplitude corresponding to the received first signal in the process of signal transmission between the two electronic devices.
[0058] Step 504: controlling the driver to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a first amplitude range, and the first amplitude range is a range determined according to the preset voltage amplitude.
[0059] In the embodiments of the present application, the preset voltage amplitude is the voltage amplitude at which the signal transmission between the electronic devices can be stable, by comparing the first voltage amplitude with the preset voltage amplitude, it can be determined whether the insertion loss of the signal path is too large, and the driver is controlled to compensate the received first signal accordingly, thereby avoiding the disconnection of signal transmission between the two electronic devices.
[0060] In the embodiments of the present application, the first signal is a received signal, the amplitude acquisition circuit of the signal compensation circuit can continuously acquire the first voltage amplitude of the first signal collected by the serial bus interface, so that the insertion loss of the signal path can be determined according to the first voltage amplitude of the first signal and the preset voltage amplitude, and the driver can compensate the first signal according to the continuously detected first voltage amplitude and the preset voltage amplitude, thereby further ensuring the stability of signal transmission between the two electronic devices.
[0061] In the embodiments of the present application, the signal compensation circuit is arranged in the electronic device, and the signal compensation circuit can compensate the received first signal according to the continuously collected first voltage amplitude and the preset voltage amplitude, thereby improving the stability of signal transmission between the two electronic devices.
[0062] Figure 6 A waveform diagram of the first signal before compensation provided in some embodiments of the present application is shown, Figure 7 A waveform diagram of the first signal after compensation provided in some embodiments of the present application is shown, Figure 6 and Figure 7 As shown in the figures, before compensation, the current insertion loss value changes, causing the first voltage amplitude to change, and causing the voltage amplitude of the first signal to be lower than the receiving threshold of the serial bus interface of the electronic device. After the first signal is compensated by the signal compensation circuit, the waveform of the first signal can be shaped, the first voltage amplitude of the first signal is compensated to a reasonable range, and the stability of signal transmission between the electronic devices is improved.
[0063] In the embodiments of the present application, when the two electronic devices are a car machine and a terminal device, the signal compensation circuit is arranged in the car machine and the terminal device, the signal compensation circuit can detect the first voltage amplitude of the signal path under different driving states of the vehicle, and control the driver to compensate the received signal of the car machine and the terminal device according to the first voltage amplitude and the corresponding preset voltage amplitude, thereby improving the stability of data transmission between the car machine and the terminal device and reducing the occurrence of signal disconnection caused by vehicle bumping.
[0064] In some embodiments of the present application, the driver compensates the first signal according to the first voltage amplitude and the preset voltage amplitude, including: determining the running scenario of the electronic device according to the first voltage amplitude and the preset voltage amplitude; and controlling the driver to compensate the first signal according to the running scenario of the electronic device.
[0065] In the embodiments of the present application, the first voltage amplitude and the preset voltage amplitude are compared, and the running scenario of the electronic device is determined based on the comparison, and the driver is selected to compensate the first signal based on the running scenario.
[0066] For example, when the two electronic devices are a car machine and a mobile phone of a vehicle, the connection environment of the car machine and the mobile phone can be determined according to the first voltage amplitude and the preset voltage amplitude, such as: the car machine device is in a vehicle stable driving scenario, the car machine device is in a vehicle bumping driving scenario, the car machine device is in a vehicle accelerating driving scenario, etc.
[0067] In the embodiments of the present application, different compensation strategies of the driver correspond to different running scenarios, and the running scenario of the electronic device can be determined according to the first voltage amplitude and the preset voltage amplitude, and the compensation strategy of the driver for the first signal is set accordingly.
[0068] In the embodiments of the present application, the electronic device can determine the running scenario of the electronic device based on the first voltage amplitude and the preset voltage amplitude, thereby determining the corresponding compensation strategy, improving the accuracy of the driver control, and avoiding the compensation failure of the driver for the first signal.
[0069] In some embodiments of the present application, the running scenario of the electronic device is determined according to the first voltage amplitude and the preset voltage amplitude, including: determining the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate of the first signal according to the first voltage amplitude and the preset voltage amplitude.
[0070] The vehicle machine device is determined to be in a vehicle smooth driving scenario based on the current insertion loss value being less than the minimum value of the preset insertion loss value range and the insertion loss value change rate being less than the preset change rate.
[0071] The vehicle machine device is determined to be in a vehicle bumpy driving scenario based on the current insertion loss value being within the preset insertion loss value range and the insertion loss value change rate being greater than or equal to the preset change rate.
[0072] The vehicle machine device is determined to be in a vehicle accelerating driving scenario based on the current insertion loss value being within the preset insertion loss value range and the insertion loss value change rate being less than the preset change rate.
[0073] The vehicle machine device is determined to be in an abnormal connection scenario based on the current insertion loss value being greater than the maximum value of the preset insertion loss value range.
[0074] In the embodiments of the present application, the electronic device can determine the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate of the first signal based on the first voltage amplitude and the preset voltage amplitude. The insertion loss value of the first signal is the insertion loss value of the transmission path of the first signal, the preset insertion loss value range is the insertion loss value range corresponding to the transmission path of the first signal, and the insertion loss value change rate is the change rate of the current insertion loss value over time. For example, the current insertion loss value can be determined according to the first voltage amplitude, and the preset insertion loss value range can be determined according to the preset voltage amplitude. The corresponding relationship between the voltage amplitude and the insertion loss value is stored in the electronic device, and the corresponding insertion loss value can be found by the voltage amplitude, i.e., the corresponding insertion loss value found according to the obtained first voltage amplitude is the current insertion loss value, and the insertion loss value change rate can be determined based on the continuously obtained current insertion loss value and time information. The preset insertion loss value can be found by the preset voltage amplitude, and the preset insertion loss value range can be determined based on the preset insertion loss value, for example, the preset insertion loss value is a, and the target insertion loss value range is 1.1a to 3a.
[0075] In the embodiment of the present application, the electronic device can determine the running scene of the electronic device based on the numerical relationship between the current insertion loss value and the preset insertion loss value range and the insertion loss value change rate, and control the driver to compensate the first signal according to the running scene, thereby improving the accuracy of the driver compensating the first signal.
[0076] In the embodiment of the present application, the electronic device includes a car machine device, which can be connected with a mobile terminal such as a mobile phone or a tablet computer. The following takes the connection between the car machine device and the mobile phone as an example for description.
[0077] For example, the current insertion loss value between the car machine device and the mobile phone is A, the preset insertion loss value range is 1.1a to 3a, and the preset change rate is 1Hz. In the case of detecting 0.9a
[0078] For example, the current insertion loss value between the car machine device and the mobile phone is A, the preset insertion loss value range is 1.1a to 3a, and the preset change rate is 100Hz. In the case of detecting 1.1a
[0079] For example, the current insertion loss value between the car machine device and the mobile phone is A, the preset insertion loss value range is 1.1a to 3a. In the case of detecting A>3a, it is determined that the car machine device is abnormally connected with the mobile phone, and at this time, it is not necessary to count the insertion loss value change rate.
[0080] In the embodiment of the present application, in the case that the electronic device includes a car machine device, the car machine device can determine the corresponding current insertion loss value and preset insertion loss value range through the first voltage amplitude and the preset voltage amplitude, and can determine the insertion loss value change rate according to the current insertion loss value. By analyzing the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate, the running scene of the car machine device can be determined, i.e., the running scene of the car machine device. The car machine device can control the internal driver to compensate the first signal according to the running scene, thereby improving the accuracy of the driver compensating the first signal.
[0081] In some embodiments of the present application, the driver is controlled to compensate for the first signal according to the running scenario of the electronic device, including: in the case that the car machine device is in a vehicle stable driving scenario, the driver is controlled to operate at a first working frequency to compensate for the first signal; in the case that the car machine device is in a vehicle bumpy driving scenario or in a vehicle accelerating driving scenario, the driver is controlled to operate at a second working frequency to compensate for the first signal; in the case that the car machine device is in an abnormal connection scenario, the driver is stopped from operating; wherein the first working frequency is less than the second working frequency.
[0082] In the embodiments of the present application, in the case of determining the running scenario of the car machine device, the driver can be controlled to operate at different working frequencies based on different running scenarios, ensuring that the driver can provide effective compensation for the first signal, and avoiding the waste of electric energy caused by the operation of the driver when the first signal does not need to be compensated.
[0083] Specifically, the car machine device stores a corresponding relationship between the running scenario and the working frequency of the driver. The corresponding working frequency of the driver is selected according to different running scenarios, so that the driver can compensate for the first signal at a suitable working frequency, improving the compensation effect of the driver on the first signal.
[0084] Exemplarily, the running mode of the driver includes a first mode and a second mode, wherein the first mode is a Low Power (low power consumption) mode, the driver operates at a first working frequency in the Low Power mode, and the second mode is a Performance (high performance) mode, the driver operates at a second working frequency in the Performance mode. In the case that the car machine device is in a vehicle bumpy driving scenario or the car machine device is in a vehicle accelerating driving scenario, the working frequency of the driver needs to be increased at this time, so the driver compensates for the first signal at a higher second working frequency in the Performance mode to improve the waveform of the first signal. In the case that the car machine is in a stable driving scenario, the working frequency of the driver needs to be reduced at this time, so the driver compensates for the first signal at a lower second working frequency in the Low Power mode to ensure the stability of the first signal transmission while reducing the power consumption. In the embodiments of the present application, the car machine device can control the driver to operate at a lower first working frequency or a higher second working frequency based on different running scenarios, achieving the effect of flexible adjustment of the running frequency of the driver by the car machine device, ensuring the stability of the connection between the car machine device and other electronic devices while reducing the power consumption caused by the driver.
[0085] In some embodiments of the present application, according to the first voltage amplitude and the preset voltage amplitude, before the driver compensates the first signal, the method further comprises: in a case that a second signal of the serial bus interface is received, determining the preset voltage amplitude according to a second voltage amplitude of the second signal.
[0086] In the embodiments of the present application, the second signal is a signal received by the serial bus interface before the first signal is received. For example, the second signal is a signal received when the serial bus interface of the electronic device establishes a connection with the serial bus interface of another electronic device.
[0087] Specifically, in a case that the two electronic devices establish a connection through the data line, the electronic device takes the signal after the signal is transmitted stably as the second signal, and takes the voltage amplitude of the second signal as the preset voltage amplitude.
[0088] In the embodiments of the present application, by taking the voltage amplitude of the second signal transmitted by the first stable connection of the two electronic devices as the preset voltage amplitude, the accuracy of the subsequent control of the driver based on the preset voltage amplitude and the first voltage amplitude can be improved. When the two electronic devices use different data lines, the current preset voltage amplitude can be determined after the first stable connection, and the accuracy of the compensation of the first signal is further improved.
[0089] The signal compensation method provided in the embodiments of the present application can be executed by a signal compensation device. In the embodiments of the present application, the signal compensation method is executed by a signal compensation device, and the power supply device provided in the embodiments of the present application is described.
[0090] In some embodiments of the present application, a signal compensation device is provided, which is applied to the electronic device in any of the above embodiments, Figure 8 The structure block diagram of the signal compensation device provided in some embodiments of the present application is shown in FIG. 8. Figure 8 As shown in FIG. 8, the signal compensation device 800 comprises:
[0091] The acquisition module 802 is configured to acquire a first voltage amplitude of a first signal.
[0092] The control module 804 is configured to control a driver to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a first amplitude range, and the first amplitude range is a range determined according to the preset voltage amplitude.
[0093] In the embodiments of the present application, when the two electronic devices are a vehicle machine and a terminal device respectively, the signal compensation circuit is arranged in both the vehicle machine and the terminal device. The signal compensation circuit can detect the first voltage amplitude of the signal path under different driving states of the vehicle, and control the driver to compensate the signal received by the vehicle machine and the terminal device according to the first voltage amplitude and the corresponding preset voltage amplitude, thereby improving the stability of data transmission between the vehicle machine and the terminal device and reducing the occurrence of signal disconnection caused by vehicle bumping.
[0094] In some embodiments of the present application, the signal compensation device 800 further comprises a determination module configured to determine the running scenario of the electronic device according to the first voltage amplitude and the preset voltage amplitude; and the control module 804 is configured to control the driver to compensate the first signal according to the running scenario of the electronic device.
[0095] In the embodiments of the present application, the electronic device can determine the running scenario of the electronic device based on the first voltage amplitude and the preset voltage amplitude, thereby determining the corresponding compensation strategy, improving the accuracy of the driver control, and avoiding the compensation failure of the driver to the first signal.
[0096] In some embodiments of the present application, the electronic device comprises a vehicle machine device;
[0097] The determination module is configured to determine the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate of the first signal according to the first voltage amplitude and the preset voltage amplitude;
[0098] The determination module is configured to determine that the vehicle machine device is in a vehicle stable driving scenario based on that the current insertion loss value is less than the minimum value of the preset insertion loss value range and the insertion loss value change rate is less than the preset change rate;
[0099] The determination module is configured to determine that the vehicle machine device is in a vehicle bumping driving scenario based on that the current insertion loss value is within the preset insertion loss value range and the insertion loss value change rate is greater than or equal to the preset change rate;
[0100] The determination module is configured to determine that the vehicle machine device is in a vehicle accelerating driving scenario based on that the current insertion loss value is within the preset insertion loss value range and the insertion loss value change rate is less than the preset change rate;
[0101] The determination module is configured to determine that the vehicle machine device is in an abnormal connection scenario based on that the current insertion loss value is greater than the maximum value of the preset insertion loss value range.
[0102] In the embodiments of the present application, when the electronic device comprises the car machine device, the car machine device can determine the corresponding current insertion loss value and the preset insertion loss value range through the first voltage amplitude and the preset voltage amplitude, and can determine the insertion loss value change rate according to the current insertion loss value. By analyzing the previous insertion loss value, the preset insertion loss value range, and the insertion loss value change rate, the running state of the vehicle in which the car machine device is located, that is, the operation scene of the car machine device, can be determined. The car machine device can control the internal driver to compensate the first signal according to the operation scene, thereby improving the accuracy of the compensation of the first signal by the driver.
[0103] In some embodiments of the present application, the control module 804 is configured to control the driver to operate at a first working frequency to compensate the first signal when the car machine device is in the vehicle stable driving scene.
[0104] The control module 804 is configured to control the driver to operate at a second working frequency to compensate the first signal when the car machine device is in the vehicle bumpy driving scene or in the vehicle accelerating driving scene.
[0105] The control module 804 is configured to control the driver to stop operating when the car machine device is in the abnormal connection scene.
[0106] The first working frequency is less than the second working frequency.
[0107] In the embodiments of the present application, the car machine device can control the driver to operate at a lower first working frequency or at a higher second working frequency based on different operation scenes, thereby achieving the effect of flexible adjustment of the operation frequency of the driver by the car machine device. While ensuring the connection stability of the car machine device and other electronic devices, the power consumption caused by the driver is reduced.
[0108] In some embodiments of the present application, the determination module is configured to determine the preset voltage amplitude according to the second voltage amplitude of the second signal of the serial bus interface when the second signal of the serial bus interface is received.
[0109] In the embodiments of the present application, by taking the voltage amplitude of the second signal transmitted by the first stable connection of the two electronic devices as the preset voltage amplitude, the accuracy of the control of the driver based on the preset voltage amplitude and the first voltage amplitude can be improved. When the two electronic devices use different data lines, the current preset voltage amplitude can be determined after the first stable connection, thereby further improving the accuracy of the compensation of the first signal.
[0110] The signal compensation apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like, and can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited in this regard.
[0111] The signal compensation apparatus in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating system, and the embodiments of the present application are not limited in this regard.
[0112] The signal compensation apparatus provided in the embodiments of the present application can implement the various processes implemented by the method embodiments, and thus repeated description is omitted herein.
[0113] Optionally, the embodiments of the present application further provide an electronic device, Figure 9 A structural block diagram of an electronic device according to some embodiments of the present application is shown in FIG. 9. Figure 9 As shown in FIG. 9, the electronic device 900 includes a processor 902, a memory 904, and a program or instruction stored in the memory 904 and executable on the processor 902. The program or instruction is executed by the processor 902 to implement the various processes of the above method embodiments and achieve the same technical effects, and thus repeated description is omitted herein.
[0114] It should be noted that the electronic device in the embodiments of the present application includes the above mobile electronic device and non-mobile electronic device.
[0115] Figure 10 A hardware structural diagram of an electronic device for implementing some embodiments of the present application.
[0116] The electronic device 1000 includes, but is not limited to, a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
[0117] Those skilled in the art can understand that the electronic device 1000 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so that the power management system can realize functions such as management of charging, discharging, and power consumption management. Figure 10 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which are not described here.
[0118] The processor 1010 is configured to acquire a first voltage amplitude of a first signal.
[0119] The processor 1010 is configured to control the driver to compensate the first signal according to the first voltage amplitude and a preset voltage amplitude, so that the first voltage amplitude is within a first amplitude range, and the first amplitude range is a range determined according to the preset voltage amplitude.
[0120] In the embodiments of the present application, when the two electronic devices are a vehicle machine and a terminal device respectively, the signal compensation circuit is arranged in the vehicle machine and the terminal device, the signal compensation circuit can detect the first voltage amplitude of the signal path under different driving states of the vehicle, and control the driver to compensate the signal received by the vehicle machine and the terminal device according to the first voltage amplitude and the corresponding preset voltage amplitude, thereby improving the stability of data transmission between the vehicle machine and the terminal device, and reducing the occurrence of signal disconnection due to vehicle bumping.
[0121] Further, the processor 1010 is configured to determine a running scenario of the electronic device according to the first voltage amplitude and the preset voltage amplitude.
[0122] The processor 1010 is configured to control the driver to compensate the first signal according to the running scenario of the electronic device.
[0123] In the embodiments of the present application, the electronic device can determine the running scenario of the electronic device based on the first voltage amplitude and the preset voltage amplitude, thereby determining the corresponding compensation strategy, improving the accuracy of the driver control, and avoiding the compensation failure of the driver to the first signal.
[0124] In some embodiments of the present application, the electronic device includes a vehicle machine device.
[0125] The processor 1010 is configured to determine, according to the first voltage amplitude and the preset voltage amplitude, a current insertion loss value of the first signal, a preset insertion loss value range, and an insertion loss value change rate.
[0126] The processor 1010 is configured to determine, based on that the current insertion loss value is less than a minimum value of the preset insertion loss value range and the insertion loss value change rate is less than a preset change rate, that the car machine device is in a vehicle stable driving scene.
[0127] The processor 1010 is configured to determine, based on that the current insertion loss value is in the preset insertion loss value range and the insertion loss value change rate is greater than or equal to the preset change rate, that the car machine device is in a vehicle bumpy driving scene.
[0128] The processor 1010 is configured to determine, based on that the current insertion loss value is in the preset insertion loss value range and the insertion loss value change rate is less than the preset change rate, that the car machine device is in a vehicle accelerating driving scene.
[0129] The processor 1010 is configured to determine, based on that the current insertion loss value is greater than a maximum value of the preset insertion loss value range, that the car machine device is in an abnormal connection scene.
[0130] In the embodiments of the present application, when the electronic device includes the car machine device, the car machine device can determine the corresponding current insertion loss value and preset insertion loss value range through the first voltage amplitude and the preset voltage amplitude, and can determine the insertion loss value change rate according to the current insertion loss value. By analyzing the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate, the driving state of the vehicle in which the car machine device is located, i.e., the operation scene of the car machine device, can be determined. The car machine device can control the internal driver to compensate for the first signal according to the operation scene, thereby improving the accuracy of the compensation of the first signal by the driver.
[0131] Further, the processor 1010 is configured to control the driver to operate at a first working frequency to compensate for the first signal when the car machine device is in the vehicle stable driving scene.
[0132] The processor 1010 is configured to control the driver to operate at a second working frequency to compensate for the first signal when the car machine device is in the vehicle bumpy driving scene or in the vehicle accelerating driving scene.
[0133] The processor 1010 is configured to control the driver to stop operating when the car machine device is in the abnormal connection scene.
[0134] The first working frequency is less than the second working frequency.
[0135] In the embodiment of the present application, the car machine device can control the driver to operate at a lower first operating frequency or a higher second operating frequency based on different operating scenarios, thereby achieving the effect of flexible adjustment of the operating frequency of the driver by the car machine device, while ensuring the stability of the connection between the car machine device and other electronic devices and reducing the power consumption caused by the driver.
[0136] Further, the processor 1010 is configured to determine the preset voltage amplitude according to a second voltage amplitude of the second signal in a case where the second signal of the serial bus interface is received.
[0137] In the embodiment of the present application, by taking the voltage amplitude of the second signal transmitted by the first stable connection of the two electronic devices as the preset voltage amplitude, the accuracy of the control of the driver based on the preset voltage amplitude and the first voltage amplitude can be improved. When the two electronic devices use different data lines, the preset voltage amplitude can be determined after the first stable connection, thereby further improving the accuracy of the compensation of the first signal.
[0138] It should be understood that, in the embodiment of the present application, the input unit 1004 can include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 can include a display panel 10061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 can include a touch detection device and a touch controller. The other input devices 10072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, an operating lever, and the like, which will not be described here.
[0139] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), etc. In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synchlink DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0140] The processor 1010 can include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1010.
[0141] The embodiments of the present application also provide a readable storage medium, and the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize various processes of the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, details are not described here.
[0142] The processor is a processor in the electronic device in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disc or an optical disc, and the like.
[0143] The embodiments of the present application further provide a chip, which includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is configured to execute programs or instructions, implement various processes of the above method embodiments, and achieve the same technical effects. To avoid repetition, details are not described herein.
[0144] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0145] The embodiments of the present application provide a computer program product stored in a storage medium. The program product is executed by at least one processor to implement various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.
[0146] It should be noted that, in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or include elements inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to the order of performing functions as shown or discussed, but can also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted or combined. In addition, the features described with reference to certain examples can be combined in other examples.
[0147] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present application.
[0148] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, but not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A signal compensation circuit, characterized in that, Applied to electronic devices, the signal compensation circuit has its signal receiving end connected to the serial bus interface of the electronic device, and its signal output end connected to the data transceiver module of the electronic device. The signal compensation circuit includes: An amplitude acquisition circuit is provided, wherein a first terminal of the amplitude acquisition circuit is connected to the serial bus interface and is used to acquire a first voltage amplitude of a first signal, wherein the first signal is the received signal of the serial bus interface. A controller, wherein the receiving end of the controller is connected to the second end of the amplitude acquisition circuit; The driver has a first end connected to the output end of the controller, the driver is used to compensate the first signal, and the second end of the driver is the signal output end of the signal compensation circuit. The controller is used to control the driver to compensate the first signal according to the first voltage amplitude and the preset voltage amplitude, so that the first voltage amplitude is within the preset amplitude range, wherein the preset amplitude range is a range determined according to the preset voltage amplitude. The driver is specifically used to shape the waveform of the first signal: the driver is provided with an upper limit voltage and a lower limit voltage. When the amplitude of the first voltage of the first signal is higher than the upper limit voltage, the output level of the driver becomes high. When the amplitude of the first voltage of the first signal is lower than the lower limit voltage, the output level of the driver becomes low. When the amplitude of the first voltage of the first signal is between the upper limit voltage and the lower limit voltage, the output level of the driver remains unchanged. The step of controlling the driver to compensate the first signal based on the first voltage amplitude and the preset voltage amplitude includes: determining the operating scenario of the electronic device based on the first voltage amplitude and the preset voltage amplitude; and controlling the driver to compensate the first signal based on the operating scenario of the electronic device.
2. The signal compensation circuit according to claim 1, characterized in that, The amplitude acquisition circuit includes: An amplifier circuit, wherein the first terminal of the amplifier circuit is connected to the serial bus interface; An analog-to-digital converter circuit is provided, wherein a first terminal of the analog-to-digital converter circuit is connected to a second terminal of the amplifier circuit, and the second terminal of the analog-to-digital converter circuit is connected to a receiving terminal of the controller.
3. The signal compensation circuit according to claim 1, characterized in that, The driver includes a Schmitt trigger.
4. An electronic device, characterized in that, include: The signal compensation circuit according to any one of claims 1 to 3; A serial bus interface is connected to the signal compensation circuit. The data transceiver module is connected to the signal compensation circuit.
5. A signal compensation method, characterized in that, The signal compensation method, applied to the electronic device of claim 4, comprises: Obtain the first voltage amplitude of the first signal; Based on the first voltage amplitude and the preset voltage amplitude, the driver is controlled to compensate the first signal so that the first voltage amplitude is within a first amplitude range, wherein the first amplitude range is a range determined based on the preset voltage amplitude. The driver is specifically used to shape the waveform of the first signal: the driver is provided with an upper limit voltage and a lower limit voltage. When the amplitude of the first voltage of the first signal is higher than the upper limit voltage, the output level of the driver becomes high. When the amplitude of the first voltage of the first signal is lower than the lower limit voltage, the output level of the driver becomes low. When the amplitude of the first voltage of the first signal is between the upper limit voltage and the lower limit voltage, the output level of the driver remains unchanged. The step of controlling the driver to compensate the first signal based on the first voltage amplitude and the preset voltage amplitude includes: The operating scenario of the electronic device is determined based on the first voltage amplitude and the preset voltage amplitude. The driver is controlled to compensate for the first signal according to the operating scenario of the electronic device.
6. The signal compensation method according to claim 5, characterized in that, The electronic equipment includes vehicle-mounted equipment; Determining the operating scenario of the electronic device based on the first voltage amplitude and the preset voltage amplitude includes: Based on the first voltage amplitude and the preset voltage amplitude, determine the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate of the first signal; Based on the fact that the current insertion loss value is less than the minimum value of the preset insertion loss value range, and the rate of change of the insertion loss value is less than the preset rate of change, it is determined that the vehicle-mounted equipment is in a stable vehicle driving scenario. Based on the fact that the current insertion loss value is within the preset insertion loss value range, and the rate of change of the insertion loss value is greater than or equal to the preset rate of change, it is determined that the vehicle-mounted equipment is in a vehicle bumpy driving scenario. Based on the fact that the current insertion loss value is within the preset insertion loss value range and the rate of change of the insertion loss value is less than the preset rate of change, it is determined that the vehicle-mounted device is in a vehicle acceleration driving scenario. If the current insertion loss value is greater than the maximum value of the preset insertion loss value range, the vehicle-mounted device is determined to be in an abnormal connection scenario.
7. The signal compensation method according to claim 6, characterized in that, The step of controlling the driver to compensate for the first signal according to the operating scenario of the electronic device includes: When the vehicle-mounted device is in a stable driving scenario, the driver is controlled to operate at a first operating frequency to compensate for the first signal; When the vehicle-mounted device is in a scenario where the vehicle is traveling in a bumpy or accelerating manner, the driver is controlled to operate at a second operating frequency to compensate for the first signal. In the event that the vehicle-mounted device is in the abnormal connection scenario, the driver is controlled to stop operating; Wherein, the first operating frequency is less than the second operating frequency.
8. The signal compensation method according to any one of claims 5 to 7, characterized in that, Before controlling the driver to compensate the first signal based on the first voltage amplitude and the preset voltage amplitude, the method further includes: Upon receiving a second signal from the serial bus interface, the preset voltage amplitude is determined based on the second voltage amplitude of the second signal.
9. A signal compensation device, characterized in that, The signal compensation device, applied to the electronic device of claim 4, comprises: The acquisition module is used to acquire the first voltage amplitude of the first signal; The control module is configured to control the driver to compensate the first signal according to the first voltage amplitude and the preset voltage amplitude, so that the first voltage amplitude is within a first amplitude range, wherein the first amplitude range is a range determined according to the preset voltage amplitude. The determination module is used to determine the operating scenario of the electronic device based on the first voltage amplitude and the preset voltage amplitude. The control module is used to control the driver to compensate for the first signal according to the operating scenario of the electronic device; The driver is specifically used to shape the waveform of the first signal: the driver is provided with an upper limit voltage and a lower limit voltage. When the amplitude of the first voltage of the first signal is higher than the upper limit voltage, the output level of the driver becomes high. When the amplitude of the first voltage of the first signal is lower than the lower limit voltage, the output level of the driver becomes low. When the amplitude of the first voltage of the first signal is between the upper limit voltage and the lower limit voltage, the output level of the driver remains unchanged.
10. The signal compensation device according to claim 9, characterized in that, The electronic equipment includes vehicle-mounted equipment; The determining module is used to determine the current insertion loss value, the preset insertion loss value range, and the insertion loss value change rate of the first signal based on the first voltage amplitude and the preset voltage amplitude. The determining module is used to determine that the vehicle-mounted device is in a stable driving scenario based on the fact that the current insertion loss value is less than the minimum value of the preset insertion loss value range and the rate of change of the insertion loss value is less than the preset rate of change. The determining module is used to determine that the vehicle-mounted device is in a vehicle bumpy driving scenario based on the fact that the current insertion loss value is within the preset insertion loss value range and the rate of change of the insertion loss value is greater than or equal to the preset rate of change. The determining module is used to determine that the vehicle-mounted device is in a vehicle acceleration scenario based on the fact that the current insertion loss value is within the preset insertion loss value range and the rate of change of the insertion loss value is less than the preset rate of change. The determining module is used to determine that the vehicle-mounted device is in an abnormal connection scenario when the current insertion loss value is greater than the maximum value of the preset insertion loss value range.
11. The signal compensation device according to claim 10, characterized in that, The control module is used to control the driver to operate at a first operating frequency and compensate for the first signal when the vehicle-mounted device is in a stable driving scenario. The control module is used to control the driver to operate at a second operating frequency to compensate for the first signal when the vehicle is in a bumpy driving scenario or when the vehicle is accelerating. The control module is used to control the driver to stop operating when the vehicle-mounted device is in the abnormal connection scenario; Wherein, the first operating frequency is less than the second operating frequency.
12. The signal compensation device according to any one of claims 9 to 11, characterized in that, The determining module is configured to determine the preset voltage amplitude based on the second voltage amplitude of the second signal when a second signal is received from the serial bus interface.
13. An electronic device, characterized in that, include: A processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the method as described in any one of claims 5 to 8.
14. A readable storage medium having a program or instructions stored thereon, characterized in that, When the program or instructions are executed by the processor, they implement the steps of the method as described in any one of claims 5 to 8.
Citation Information
Patent Citations
Signal transmission device
US20160336974A1