Interface module, terminal, signal adjustment method, storage medium and program product
By using the detection and adjustment mechanism of the interface module, the problem of terminal USB communication signal integrity was solved, and the signal parameters were effectively adjusted and the communication efficiency was improved.
Patent Information
- Application Number
- CN202410702810.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2025-12-02
AI Technical Summary
In existing technologies, the integrity of the USB communication signal of the terminal is difficult to obtain and adjust effectively, resulting in low communication efficiency.
Design an interface module comprising a storage module, a transceiver, a detection module, and a control module. The detection module detects communication signal parameters, and the control module adjusts the configuration parameters when the parameters exceed a preset range, so that the signal parameters transmitted by the transceiver conform to the preset range.
It improves the integrity and efficiency of communication signals, ensures that communication signals are within the preset parameter range, and enhances the communication performance of the terminal.
Smart Images

Figure CN121056321A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communications, and in particular to interface modules, terminals, signal adjustment methods, storage media, and program products. Background Technology
[0002] With societal development, terminals have become an integral part of people's lives, and their storage capacity is increasing, often used as external hard drives for communication with other terminals. However, as terminals become more complex, the requirements for signal integrity in transmission are also rising. Universal Serial Bus (USB) is currently a commonly used data communication method for terminals. The integrity of USB communication signals is affected by many factors, such as control module configuration, signal line settings, and circuit loop configuration. Furthermore, the complex design of internal terminal components makes it difficult to effectively obtain communication parameters. Therefore, obtaining and adjusting communication parameters is a current challenge in terminal design. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides an interface module that can adjust the communication parameters of communication signals and improve communication efficiency.
[0004] According to a first aspect of the present disclosure, an interface module is provided, comprising:
[0005] The storage module is used to store configuration parameters;
[0006] A transceiver, connected to the storage module, is used to transmit communication signals based on the configuration parameters;
[0007] A detection module, connected to the transceiver, is used to detect the communication signal;
[0008] The control module, connected to the storage module and the detection module, is used to adjust the configuration parameters when the communication parameters of the communication signal are detected to be outside the preset parameter range, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted configuration parameters are within the preset parameter range.
[0009] In some embodiments, the detection module includes:
[0010] Multiple detection circuits are connected in parallel on the connection line between the control module and the transceiver.
[0011] The communication parameters of the communication signal detected by different detection circuits are different.
[0012] In some embodiments, the plurality of detection circuits include:
[0013] A voltage detection circuit is used to detect the voltage of the communication signal to obtain a voltage value;
[0014] A rising edge detection circuit is used to detect the rise in level of the communication signal to obtain a first level value;
[0015] A falling edge detection circuit is used to detect the amount of level drop of the communication signal to obtain a second level value.
[0016] In some embodiments, the interface module further includes:
[0017] The first signal line and the second signal line are respectively connected to the transceiver;
[0018] A differential converter has an output terminal and two input terminals;
[0019] The two input terminals are respectively connected to the first signal line and the second signal line;
[0020] The output terminal is connected to the detection module;
[0021] The differential is used to perform differential processing on the communication signals transmitted by the first signal line and the second signal line to obtain a differential signal;
[0022] The detection module is used to detect the differential signal.
[0023] In some embodiments, the storage module includes a plurality of registers;
[0024] The control module is connected to multiple registers and is used to determine a target register from the multiple registers based on the communication parameters of the detected communication signal, and to adjust the configuration parameters stored in the target register.
[0025] In some embodiments, the interface module further includes:
[0026] A comparator, connected to the detection module and the control module, is used to compare the communication parameters of the communication signal with the preset parameter range to obtain a comparison result.
[0027] According to a second aspect of the present disclosure, a terminal is provided, comprising:
[0028] The outer casing has an opening;
[0029] The interface module as described in the first aspect above;
[0030] The interface module is installed at the opening.
[0031] According to a third aspect of the present disclosure, a signal adjustment method is provided, comprising:
[0032] The communication signals transmitted by the transceiver are detected by the detection module of the interface module in the terminal; wherein the transmitted communication signals are obtained based on the current configuration parameters stored in the storage module of the interface module.
[0033] If the communication parameters of the communication signal are detected to be outside the preset parameter range, the current configuration parameters are adjusted so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
[0034] In some embodiments, the method further includes:
[0035] If the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, the adjustment of the next configuration parameter shall be stopped.
[0036] If it is detected that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are outside the preset parameter range, the next configuration parameter shall continue to be adjusted until the communication parameters of the communication signal transmitted by the transceiver are within the preset parameter range.
[0037] In some embodiments, the step of continuing to adjust the next configuration parameter when it is detected that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are outside the preset parameter range includes:
[0038] If the next configuration parameter does not meet the target configuration parameter, and the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be outside the preset parameter range, the next configuration parameter shall continue to be adjusted.
[0039] In some embodiments, stopping the adjustment of the next configuration parameter when the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be within the preset parameter range includes:
[0040] If the next configuration parameter does not reach the target configuration parameter, and the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be within the preset parameter range, the adjustment of the next configuration parameter shall be stopped.
[0041] In some embodiments, the method further includes:
[0042] When the next configuration parameter reaches the target configuration parameter, the communication signal is transmitted based on the target configuration parameter.
[0043] In some embodiments, adjusting the current configuration parameters when the communication parameters of the detected communication signal are outside a preset parameter range includes:
[0044] If the communication parameters of the communication signal are detected to be outside the preset parameter range, and if the communication parameters of the communication signal are detected to be less than a first preset threshold, the current configuration parameter is increased to obtain the next configuration parameter.
[0045] If the communication parameters of the communication signal are detected to be greater than the second preset threshold, the current configuration parameters are reduced to obtain the next configuration parameters; the second preset threshold is greater than the first preset threshold.
[0046] In some embodiments, adjusting the current configuration parameters when the communication parameters of the detected communication signal are outside a preset parameter range includes:
[0047] If the communication parameters of the communication signal are detected to be outside the preset parameter range, a target register is determined from multiple registers of the storage module based on the detected communication parameters of the communication signal, and the current configuration parameters stored in the target register are adjusted.
[0048] In some embodiments, the method further includes:
[0049] If the communication parameters of the communication signal are detected to be within the preset parameter range, the adjustment of the current configuration parameters shall be stopped.
[0050] In some embodiments, the detection of communication signals transmitted by the transceiver through the detection module of the interface module in the terminal includes:
[0051] The differential signal is obtained by differential processing of the communication signals transmitted through the first signal line and the second signal line connected to the transceiver through the differential converter of the interface module.
[0052] The differential signal is detected by the detection module.
[0053] According to a fourth aspect of the present disclosure, a terminal is provided, comprising:
[0054] The detection unit detects the communication signals transmitted by the transceiver through the detection module of the interface module in the terminal; wherein the transmitted communication signals are obtained based on the current configuration parameters stored in the storage module of the interface module;
[0055] The first adjustment unit adjusts the current configuration parameters when it detects that the communication parameters of the communication signal are outside the preset parameter range, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
[0056] According to a fifth aspect of the present disclosure, a terminal is provided, comprising:
[0057] processor;
[0058] Memory used to store computer programs or instructions;
[0059] The processor executes the computer program or instructions to implement the steps of the signal adjustment method described in any one of the third aspects above.
[0060] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when a computer program or instructions in the storage medium are executed by a processor, implements the steps of the signal adjustment method described in any one of the third aspects.
[0061] According to a seventh aspect of the present disclosure, a computer program product is provided, wherein when the computer program or instructions are executed by a processor, the steps of the signal adjustment method described in any one of the third aspects are implemented.
[0062] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0063] In this embodiment, the detection module of the interface module is connected to the transceiver and can detect the communication signals transmitted by the transceiver based on the configuration parameters stored in the storage module. The control module is connected to the storage module and the detection module. When the communication parameters of the detected communication signal are outside the preset parameter range, the control module adjusts the configuration parameters so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted configuration parameters are within the preset parameter range. In other words, this embodiment, through the newly added detection module, can detect the communication signals transmitted by the transceiver and adjust the configuration parameters in a timely manner based on the detection results, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted configuration parameters meet the requirements, thereby improving communication efficiency.
[0064] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0065] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0066] Figure 1 This is a structure of an interface module according to an exemplary embodiment. Figure 1 .
[0067] Figure 2 This is a structure of an interface module according to an exemplary embodiment. Figure 2 .
[0068] Figure 3 This is a structure of an interface module according to an exemplary embodiment. Figure 3 .
[0069] Figure 4 This is a structure of an interface module according to an exemplary embodiment. Figure 4 .
[0070] Figure 5 This is a schematic diagram of a terminal according to an exemplary embodiment.
[0071] Figure 6a This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 1 .
[0072] Figure 6b This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 2 .
[0073] Figure 7a This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 3 .
[0074] Figure 7b This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 4 .
[0075] Figure 8 This is a terminal frame illustrated according to an exemplary embodiment. Figure 1 .
[0076] Figure 9 This is a terminal frame illustrated according to an exemplary embodiment. Figure 2 . Detailed Implementation
[0077] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of interface modules, terminals, signal conditioning methods, storage media, and program products consistent with some aspects of this disclosure as detailed in the appended claims.
[0078] This disclosure provides an interface module that can adjust the communication parameters of communication signals and improve communication efficiency. Figure 1 This is a structural diagram of an interface module according to an exemplary embodiment. For example... Figure 1 As shown, the interface module 100 includes:
[0079] Storage module 10 is used to store configuration parameters;
[0080] Transceiver 20 is connected to storage module 10 and is used to transmit communication signals based on configuration parameters;
[0081] The detection module 30 is connected to the transceiver 20 and is used to detect communication signals;
[0082] The control module 40, connected to the storage module 10 and the detection module 30, is used to adjust the configuration parameters when the communication parameters of the detected communication signal are outside the preset parameter range, so that the communication parameters of the communication signal transmitted by the transceiver 20 based on the adjusted configuration parameters are within the preset parameter range.
[0083] In this embodiment, the interface module is applied to a scenario where the terminal communicates. When the terminal needs to communicate, the transceiver transmits communication signals based on the configuration parameters stored in the storage module. Simultaneously, the detection module continuously detects the communication signals. After receiving the communication signals detected by the detection module, the control module determines whether the current communication parameters are outside the preset parameter range. If so, the control module adjusts the configuration parameters in the storage module. This forms a loop of transmitting communication signals, detecting communication signals, adjusting configuration parameters, and transmitting communication signals based on the adjusted configuration parameters. For example, if the signal parameter is signal strength, the control module may increase the transmission power of the communication signal; if the signal parameter is bit error rate, the control module may adjust the modulation method or transmission frequency of the communication signal to improve the integrity of the communication signal, etc.
[0084] Understandably, the memory will send the adjusted configuration parameters to the transceiver, and the transceiver will transmit the communication signal again based on the adjusted configuration parameters until the communication parameters of the communication signal are within the preset range, thereby improving the efficiency of the terminal communicating through the interface module.
[0085] The aforementioned interface modules include USB, High-Definition Multimedia Interface (HDMI), or DisplayPort (DP), etc., and this disclosure does not limit them.
[0086] The aforementioned storage module is used to store the terminal's configuration parameters, which are used by the transceiver to send communication signals. The storage module can also store data such as status information or firmware version.
[0087] The storage module includes flash memory, electrically erasable programmable read-only memory (EEPROM), or other non-volatile memory, etc., and the embodiments disclosed herein do not limit this.
[0088] It should be noted that the configuration parameters stored in the storage module include: frequency configuration parameters, modulation method parameters, or transmission power parameters, etc. Among them, the frequency configuration parameters include center frequency, bandwidth, or channel spacing; the modulation method parameters include amplitude modulation, frequency modulation, or phase modulation; and the transmission power parameters include signal strength. The embodiments of this disclosure do not impose any limitations on these parameters.
[0089] The transceiver described above may include a receiver and a transmitter. The receiver is used to receive communication signals, and the transmitter is used to send communication signals. The transceiver is also capable of processing the received communication signals, converting them into a recognizable format, and transmitting them to the control module for processing to complete the communication.
[0090] The transceiver can be connected to the storage via an interface, or the transceiver and storage module can be integrated and connected via memory mapping.
[0091] It should be noted that the transceiver's transmission of communication signals based on configuration parameters includes: the transceiver reading the stored configuration parameters; modulating the transmitted communication signal according to the configuration parameters; and the transceiver transmitting the modulated communication signal. If the configuration parameters are adjusted, the transceiver needs to reread the adjusted configuration parameters and transmit the communication signal based on the adjusted configuration parameters.
[0092] The aforementioned detection module is used to detect communication signals. It can detect communication parameters of the communication signal, such as voltage, phase, or frequency, or it can detect data transmitted by the communication signal, such as identifiers in data packets.
[0093] The detection module can be connected to the transceiver via an interface and a transmission line, and is used to receive and detect the communication signals transmitted by the transceiver.
[0094] It should be noted that the detection module may include one or more detection circuits. One detection circuit is used to detect a communication parameter or a communication data of the communication signal. The detection module transmits the detected communication signal to the control module for subsequent adjustment of configuration parameters.
[0095] The aforementioned control module can control the detection module to start detection and can also modify the configuration parameters stored in the storage module. In other words, the control module can perform tasks such as storage, forwarding, protocol conversion, or error detection.
[0096] The control module includes a microprocessor, a microcontroller unit (MCU), a digital signal processor (DSP), or an application-specific integrated circuit (ASIC), etc., and this disclosure does not limit the scope of the embodiments.
[0097] It should be noted that the control module compares the communication parameters of the communication signal with the preset parameter range, which is usually set based on communication standards, terminal communication requirements, or communication performance optimization considerations.
[0098] For example, communication standards include USB 2.0 and USB 3.0. USB 2.0 defines three signal rates: a low-speed 3.3V voltage and 1.5Mbps transmission frequency, a full-speed 3.3V voltage and 12Mbps transmission frequency, and a high-speed 400mV voltage and 480Mbps transmission rate. USB 3.0 defines a maximum transmission rate of 5.0Gbps.
[0099] It is understandable that if the communication parameters of the communication signal are outside the preset parameter range, it means that the communication signal has not met the communication standard or communication requirements. At this time, adjusting the configuration parameters so that the communication parameters of the communication signal are within the preset parameter range means adjusting the transmission rate of the transceiver to send the communication signal, thereby increasing the transmission rate of the transceiver to send the communication signal and thus improving the communication efficiency.
[0100] It should be noted that when the control module determines that the communication parameters are outside the preset parameter range, adjusting the configuration parameters may include: reading the currently stored configuration parameters in the storage module; determining the adjustment amount of the configuration parameters; and adjusting the configuration parameters based on the adjustment amount to obtain the adjusted configuration parameters.
[0101] In this embodiment, the detection module of the interface module is connected to the transceiver and can detect the communication signals transmitted by the transceiver based on the configuration parameters stored in the storage module. The control module is connected to the storage module and the detection module. When the communication parameters of the detected communication signal are outside the preset parameter range, the control module adjusts the configuration parameters so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted configuration parameters are within the preset parameter range. In other words, this embodiment, through the newly added detection module, can detect the communication signals transmitted by the transceiver and adjust the configuration parameters in a timely manner based on the detection results, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted configuration parameters meet the requirements, thereby improving communication efficiency.
[0102] In some embodiments, Figure 2 This is a structure of an interface module according to an exemplary embodiment. Figure 2 .like Figure 2 As shown, the detection module includes:
[0103] Multiple detection circuits are connected in parallel on the connection line between the control module 40 and the transceiver 20;
[0104] Different detection circuits detect different communication parameters of the communication signals.
[0105] In this embodiment of the disclosure, multiple detection circuits are connected to the connection line between the control module and the transceiver. That is, the detection circuit receives the communication signal transmitted by the transceiver and sends the communication parameters of the detected communication signal to the control module, so that the control module can adjust the configuration parameters based on the communication parameters of the detected communication signal.
[0106] Furthermore, multiple detection circuits are connected in parallel, meaning that each detection circuit can perform detection independently. If one detection circuit fails, the other detection circuits can still continue to detect, thus maintaining the overall stability and reliability of the detection circuit.
[0107] Different detection circuits detect different communication parameters of the communication signal. For example, a current detection circuit is used to measure the current value of the communication signal passing through the circuit; a bit error detection circuit is used to detect whether the data contained in the received communication signal is incorrect; and a power detection circuit is used to measure the power or intensity of the communication signal, etc. The embodiments disclosed herein do not limit these.
[0108] In this embodiment, multiple detection circuits are connected in parallel on the connection line between the control module and the transceiver, enabling the detection module to simultaneously detect multiple different communication parameters of the communication signal, thereby improving detection efficiency and providing different reference bases for the subsequent adjustment of configuration parameters by the control module.
[0109] In some embodiments, such as Figure 2 As shown, the multiple detection circuits include:
[0110] The voltage detection circuit 301 is used to detect the voltage of the communication signal and obtain the voltage value.
[0111] The rising edge detection circuit 302 is used to detect the rise in the communication signal level to obtain a first level value;
[0112] The falling edge detection circuit 303 is used to detect the amount of level drop of the communication signal to obtain a second level value.
[0113] In this embodiment of the present disclosure, the voltage detection circuit can compare the voltage with a preset reference voltage to obtain a comparison result. The voltage detection circuit can output the detection result to the control module, and can also output the voltage value of the communication signal monitored in real time to the control module.
[0114] The aforementioned rising edge detection circuit may include a first flip-flop (e.g., a Schmitt trigger) and a first counter. When the communication signal level changes from low to high, the first flip-flop stores the level value of the previous state of the communication signal and compares it with the level value of the current state to obtain a first level value. Based on the first level value, a pulse signal representing a rising edge is output, and the first counter is used to record the number of pulse signals. In this way, the control module can obtain the number or frequency of rising edges of the communication signal.
[0115] The aforementioned falling edge detection circuit can also include a second flip-flop and a second counter. When the communication signal level changes from high to low, the second flip-flop stores the level value of the previous state of the communication signal and compares it with the level value of the current state to obtain a second level value, outputting a falling pulse signal. The second counter is then used to record the number of pulse signals. In this way, the control module can obtain the number or frequency of falling edges of the communication signal.
[0116] The first and second level values may be equal or unequal, and this embodiment does not impose any restrictions on this.
[0117] In this embodiment, by combining voltage detection circuit, rising edge detection circuit, and falling edge detection circuit, the interface module can achieve multi-dimensional monitoring of communication signals. This not only helps ensure the stability and reliability of communication, but also lays a data foundation for subsequent control module adjustments to configuration parameters.
[0118] In some embodiments, Figure 3 This is a structure of an interface module according to an exemplary embodiment. Figure 3 .like Figure 3 The interface module shown also includes:
[0119] The first signal line 201 and the second signal line 202 are respectively connected to the transceiver 20;
[0120] Differential converter 304 has an output terminal and two input terminals;
[0121] The two input terminals are respectively connected to the first signal line 201 and the second signal line 202;
[0122] The output terminal is connected to the detection module 30;
[0123] Differential converter 304 is used to perform differential processing on the communication signals transmitted by the first signal line 201 and the second signal line 202 to obtain differential signals;
[0124] The detection module 30 is used to detect differential signals.
[0125] In this embodiment of the disclosure, the first signal line can be a positive data transmission line (DP) and the second signal line can be a negative data transmission line (DM); or the first signal line can be DM and the second signal line can be DP. This embodiment of the disclosure does not limit either of these.
[0126] It should be noted that the first signal line and the second signal line are the channels of the interface module. They use differential transmission to transmit communication signals, which can improve the anti-interference capability of the communication signals and reduce the attenuation and distortion of the communication signals.
[0127] In this embodiment of the disclosure, the control module controls the physical properties of the first signal line and the second signal line for transmitting communication signals by adjusting the configuration parameters stored in the storage module, such as the driving capability of transmitting and receiving signals, level value, rising edge, falling edge, etc.
[0128] The aforementioned differential converter can perform differential processing on the communication signals transmitted by the first signal line and the second signal line, that is, subtract the communication signals transmitted by the two signal lines to obtain a differential signal, and then transmit the differential signal to the detection module.
[0129] After receiving the differential signal, the detection module can detect the voltage value, rising edge, and falling edge of the differential signal, thereby obtaining the communication parameters of the communication signal. Based on the communication parameters, it can determine the status, quality, and whether there is a transmission fault in the communication signal.
[0130] In this embodiment of the disclosure, differential processing of communication signals by a differential converter can reduce common-mode noise and interference, further improving the reliability of communication signal transmission. Furthermore, the detection module can detect the differential signal, providing more accurate communication parameter support for fault diagnosis and subsequent adjustment of configuration parameters by the control module.
[0131] In some embodiments, Figure 4This is a structure of an interface module according to an exemplary embodiment. Figure 4 .like Figure 4 As shown, the storage module 10 includes multiple registers;
[0132] The control module 40 is connected to multiple registers and is used to determine the target register from the multiple registers based on the communication parameters of the detected communication signal, and to adjust the configuration parameters stored in the target register.
[0133] In this embodiment of the disclosure, the register is used to store configuration parameters. For example, the configuration parameters include baud rate, data bits, stop bits, or parity. These configuration parameters form the basis of the communication protocol for the interface module, enabling the interface module to determine the format and transmission method of the communication signals.
[0134] The control module connects to multiple registers, enabling it to read and modify the configuration parameters stored in these registers. For example... Figure 4 As shown, multiple registers can include register 1, register 2, register 3, up to register n, where n is a positive integer greater than 3.
[0135] The multiple registers may store the same or different configuration parameters, and this disclosure does not limit this. For example, registers 1 to n may all store frequency configuration parameters; some registers may store frequency configuration parameters and some registers may store modulation parameters; or registers 1 to 3 may store frequency configuration parameters, modulation parameters, or transmission power parameters respectively.
[0136] It should be noted that when the control module determines that the communication parameters of the communication signal are outside the preset parameter range, it can determine the target register based on the communication parameters and the preset mapping relationship between the communication parameters and the register identifier.
[0137] For example, when the communication parameter is a voltage value, the target register can be a register that stores the transmission voltage (e.g., a power management register); when the communication parameter is a transmission frequency, the target register can be a register that stores the frequency configuration parameters.
[0138] The control module can adjust configuration parameters based on user input or external commands, and this embodiment does not limit this.
[0139] In this embodiment of the disclosure, the storage module includes multiple registers, thus it can store a variety of different configuration parameters to enable the interface module to adapt to different communication needs. The control module can automatically determine the target register based on the detected communication parameters and adjust the configuration parameters stored in the target register, so that the interface module can not only adapt to different communication needs based on the automatically adjusted configuration parameters, but also transmit communication signals based on the adjusted configuration parameters, thereby improving communication efficiency.
[0140] In some embodiments, such as Figure 4 As shown, the interface module also includes:
[0141] Comparator 305, connected to detection module 30 and control module 40, is used to compare the communication parameters of the communication signal with a preset parameter range to obtain a comparison result.
[0142] In this embodiment, the comparator receives the communication signal input from the detection module, performs a numerical comparison or logical comparison between the communication parameters of the input communication signal and a preset parameter range, and outputs the comparison result to the control module. At this point, if the comparison result indicates that the communication parameters of the detected communication signal are outside the preset parameter range, the control module adjusts the configuration parameters.
[0143] For example, the comparator compares the communication parameters of the detected communication signal with a preset parameter range. If the communication parameters are within the preset parameter range, it outputs a comparison result indicating normality, such as the digital signal "1". If the communication parameters are outside the preset parameter range, it outputs a comparison result indicating abnormality, such as the digital signal "0".
[0144] In this embodiment of the disclosure, different comparators output different comparison results. For example, when the comparator is a window comparator, the comparison result is whether the communication parameters are within a preset parameter range; when the comparator is two separate voltage value comparators, the comparison result is whether the voltage value is greater than a first preset threshold or whether the voltage value is less than a second preset threshold. It can be understood that the accuracy of the comparison result output by two separate comparators is higher than the accuracy of the comparison result output by the window comparator.
[0145] It should be noted that if the output comparison result is abnormal, the control module will adjust the configuration parameters.
[0146] In this embodiment of the disclosure, the comparator interface module can automatically determine whether the communication parameters of the current communication are within the preset parameter range. If they are within the preset parameter range, no adjustment is required; if they are outside the preset parameter range, the control module can automatically adjust the configuration parameters.
[0147] This disclosure also provides a terminal. Figure 5 This is a schematic diagram of a terminal according to an exemplary embodiment. For example... Figure 5 As shown, terminal 200 includes:
[0148] The outer casing 50 has an opening 501;
[0149] Interface module 100 as described in any of the above embodiments;
[0150] Interface module 100 is installed at opening 501.
[0151] The outer casing of the aforementioned terminal is used to protect the internal components of the terminal, such as the interface module.
[0152] An opening is provided on the casing, usually located on the edge or side of the terminal, and the interface module is installed at the opening to facilitate connection to other terminals or cables.
[0153] The interface module can be fixed to the opening of the terminal by screws, bayonet, or other connection methods. The size of the opening is adapted to the physical interface in the interface module to improve the stability and reliability of the connection.
[0154] The aforementioned terminals may include mobile phones, computers, digital broadcasting terminals, messaging devices, game consoles, tablets, medical devices, fitness equipment, personal digital assistants, etc.
[0155] In this embodiment, the terminal can communicate with other terminals through an interface module. The interface module's detection module detects the communication signals transmitted by the transceiver. When the interface module's control module detects that the communication parameters of the communication signal are within a preset range, it adjusts the configuration parameters so that the communication signals transmitted by the transceiver based on the adjusted configuration parameters are within the preset parameter range. In other words, the terminal in this embodiment uses a newly added detection module to detect the communication signals transmitted by the transceiver and adjusts the configuration parameters in a timely manner based on the detection results, ensuring that the communication parameters of the communication signals transmitted by the transceiver based on the adjusted configuration parameters meet the requirements, thereby improving the terminal's communication efficiency.
[0156] This disclosure also provides a signal adjustment method, which can be applied to the terminal in the above embodiments. Figure 6a This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 1 .like Figure 6a As shown, the terminal execution signal adjustment method includes:
[0157] Step 1001: The communication signal transmitted by the transceiver is detected by the detection module of the interface module in the terminal; wherein, the transmitted communication signal is obtained based on the current configuration parameters stored in the storage module of the interface module.
[0158] Step 1002: If the communication parameters of the communication signal are detected to be outside the preset parameter range, the current configuration parameters are adjusted so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
[0159] In step 1001, the communication signal transmitted by the transceiver is detected by the detection module of the interface module in the terminal, including: detecting the communication parameters of the communication signal transmitted by the transceiver based on the current configuration parameters by the detection module in the terminal; or, detecting the communication data of the communication signal transmitted by the transceiver based on the current configuration parameters by the detection module in the terminal.
[0160] The communication parameters include voltage, phase, or frequency, and the communication data includes identifiers in the data packets.
[0161] In this embodiment of the disclosure, the current configuration parameter refers to the configuration parameter stored in the register during the current communication process. That is, the current configuration parameter can be the initial value of the configuration parameter in the first communication process, or it can be the configuration parameter after the previous configuration parameter was adjusted in one of the multiple communication processes.
[0162] It should be noted that the configuration parameters include: frequency configuration parameters, such as center frequency, bandwidth or channel spacing; modulation method parameters, such as amplitude modulation, frequency modulation or phase modulation; and transmission power parameters, which are used to determine the strength of the transceiver's transmitted signal. The embodiments disclosed herein do not impose any limitations on these parameters.
[0163] In step 1002, when the communication parameters of the detected communication signal are outside the preset parameter range, the current configuration parameters are adjusted, including: when the communication parameters of the detected communication signal are outside the preset parameter range, determining the target register from multiple registers of the storage module based on the detected communication parameters of the communication signal, and adjusting the current configuration parameters stored in the target register.
[0164] In this embodiment of the disclosure, the storage module includes multiple registers for storing current configuration parameters. Determining the target register from the multiple registers of the storage module based on the communication parameters of the detected communication signal includes: if it is determined that the communication parameters of the communication signal transmitted based on the current configuration parameters are outside a preset parameter range, the target register can be determined based on the communication parameters and a preset mapping relationship between the communication parameters and register identifiers.
[0165] The above-mentioned adjustment of the current configuration parameters stored in the target register may include: reading the current configuration parameters stored in the target register; determining the adjustment amount of the current configuration parameters; and adjusting the current configuration parameters based on the adjustment amount to obtain the next configuration parameter.
[0166] In this embodiment, the communication signal transmitted by the transceiver is detected by the detection module of the interface module in the terminal. If the communication parameters of the communication signal transmitted based on the current configuration parameters are outside the preset parameter range, the current configuration parameters are adjusted to obtain the next configuration parameter. This ensures that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range. In other words, if the communication parameters of the communication signal transmitted based on the current configuration parameters are outside the preset parameter range, this embodiment will promptly adjust the current configuration parameters so that the terminal can meet communication requirements when the communication parameters of the communication signal transmitted based on the next configuration parameter are within the preset parameter range, thereby improving communication efficiency.
[0167] In some embodiments, the terminal signal adjustment method further includes:
[0168] If the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, stop adjusting the next configuration parameter;
[0169] If the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be outside the preset parameter range, the next configuration parameter will continue to be adjusted until the communication parameters of the communication signal transmitted by the transceiver are within the preset parameter range.
[0170] In this embodiment, the terminal performs the next communication based on the next configuration parameter. If the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, it indicates that the communication based on the next configuration parameter meets the communication requirements. Therefore, stopping the adjustment of the next configuration parameter at this point ensures that the communication signal remains within the preset parameter range, improving communication efficiency.
[0171] In this embodiment, if the communication parameters of a communication signal transmitted based on the current configuration parameters are detected to be outside the preset parameter range, the current configuration parameters are adjusted to obtain the next configuration parameter. If the communication parameters of a communication signal transmitted based on the next configuration parameter are detected to be outside the parameter range, the adjustment of the next configuration parameter continues until the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range. Thus, through this cyclic detection and adjustment mechanism, the communication parameters of the communication signal are always ensured to be within the preset parameter range, improving the stability and reliability of communication. Furthermore, the terminal can adaptively adjust based on the communication parameters to meet different communication needs.
[0172] In some embodiments, if the communication parameters of a communication signal transmitted by the transceiver based on the next configuration parameter are detected to be within a preset parameter range, adjusting the next configuration parameter is stopped, including:
[0173] If the next configuration parameter does not meet the target configuration parameter, and the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, the adjustment of the next configuration parameter will stop.
[0174] In this embodiment of the disclosure, the target configuration parameter can be the upper limit threshold of the next configuration parameter, the lower limit threshold of the next configuration parameter, or the configuration parameter required by the user. This embodiment of the disclosure does not limit this.
[0175] If the next configuration parameter does not meet the target configuration parameter, and the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, it means that the next configuration parameter has not reached the threshold and the terminal's communication based on the next configuration parameter already meets the communication requirements. Therefore, stopping the adjustment of the next configuration parameter at this point ensures that the communication signal is within the preset parameter range, improving communication efficiency.
[0176] In this embodiment of the disclosure, by setting target configuration parameters and conditional restrictions on the preset parameter range, not only can the communication parameters of the communication signal be kept within the preset parameter range, but the threshold for the next configuration parameter adjustment is also taken into account, thereby improving the response speed and stability of the terminal when it stops adjusting.
[0177] In some embodiments, the terminal signal adjustment method further includes:
[0178] If the next configuration parameter reaches the target configuration parameter, a communication signal is transmitted based on the target configuration parameter.
[0179] In this embodiment of the disclosure, when the next configuration parameter reaches the target configuration parameter, it means that the next configuration parameter has reached the upper or lower threshold and can no longer be adjusted. At this time, even if it is detected that the communication parameter of the communication signal transmitted by the transceiver based on the next configuration parameter is outside the preset parameter range, it is necessary to stop adjusting the next configuration parameter.
[0180] Alternatively, if the next configuration parameter reaches the target configuration parameter, it means that the next configuration parameter has met the configuration parameters required by the user. At this time, regardless of whether the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, the terminal can transmit communication signals based on the target configuration parameter to meet the communication requirements.
[0181] In this embodiment of the disclosure, by setting a target configuration parameter, the terminal can accurately find and use the next required configuration parameter to transmit communication signals, thereby improving the stability and efficiency of communication. Furthermore, when the next configuration parameter reaches the target configuration parameter, the next configuration parameter is no longer adjusted, which can reduce the calculation and resource consumption of the next configuration parameter.
[0182] In some embodiments, if the communication parameters of a communication signal transmitted by the transceiver based on the next configuration parameter are detected to be outside the preset parameter range, the adjustment of the next configuration parameter continues, including:
[0183] If the next configuration parameter does not meet the target configuration parameter, and the communication parameter of the communication signal transmitted by the transceiver based on the next configuration parameter is detected to be outside the preset parameter range, the next configuration parameter will continue to be adjusted.
[0184] In this embodiment of the disclosure, if the next configuration parameter does not reach the target configuration parameter, and the communication parameter of the communication signal transmitted by the transceiver based on the next configuration parameter is detected to be outside the preset parameter range, it means that the next configuration parameter can be adjusted, and the communication signal transmitted based on the next configuration parameter does not meet the communication requirements. Therefore, it is necessary to continue to adjust the next configuration parameter to obtain the next next configuration parameter.
[0185] It should be noted that adjustments to the next configuration parameter can be stopped if the next configuration parameter reaches the target parameter, or if the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be outside the preset parameter range.
[0186] In this embodiment of the disclosure, the next configuration parameter is adjusted only if both conditions are not met, based on whether the next configuration parameter reaches the target configuration parameter and whether the communication parameter of the communication signal transmitted based on the next configuration parameter is within the preset parameter range. This improves the effectiveness and efficiency of the adjustment.
[0187] In some embodiments, when the communication parameters of a detected communication signal are outside a preset parameter range, the current configuration parameters are adjusted, including:
[0188] If the communication parameters of the detected communication signal are outside the preset parameter range, and if the communication parameters of the detected communication signal are less than the first preset threshold, the current configuration parameter is increased to obtain the next configuration parameter.
[0189] If the communication parameters of the detected communication signal are greater than the second preset threshold, the current configuration parameter is reduced to obtain the next configuration parameter; the second preset threshold is greater than the first preset threshold.
[0190] It should be noted that if the communication parameter of the communication signal transmitted based on the next configuration parameter is detected to be outside the preset parameter range, if the communication parameter of the communication signal transmitted based on the next configuration parameter is detected to be less than the first preset threshold, the next configuration parameter is increased to obtain the next next configuration parameter; if the communication parameter of the communication signal transmitted based on the next configuration parameter is detected to be greater than the second preset threshold, the next configuration parameter is decreased to obtain the next next configuration parameter.
[0191] In this embodiment of the disclosure, the first preset threshold and the second preset threshold can be determined according to a preset parameter range. When the preset parameter range includes the first boundary value and the second boundary value, and the second boundary value is greater than the first boundary value, the first preset threshold is greater than or equal to the first boundary value, and the second preset threshold is less than or equal to the second boundary value.
[0192] For example, when the communication parameter is a voltage value, and the first boundary value of the preset parameter range is 0.4V and the second boundary value is 3V, the first preset threshold can be set in the range of 0.4V to 1V, and the second preset threshold can be set in the range of 2V to 3V.
[0193] If the communication parameters of the communication signal transmitted based on the next configuration parameter are detected to be less than the first preset threshold, then the next configuration parameter is added to obtain the next-next configuration parameter, which can increase the communication parameters of the communication signal transmitted based on the next-next configuration parameter to be greater than or equal to the first preset threshold.
[0194] If the communication parameter of the communication signal transmitted based on the next configuration parameter is detected to be greater than the second preset threshold, then the next configuration parameter is reduced to obtain the next-next configuration parameter, which can reduce the communication parameter of the communication signal transmitted based on the next-next configuration parameter to less than or equal to the second preset threshold.
[0195] It should be noted that if the communication parameters transmitted based on the next next configuration parameter are greater than or equal to the first preset threshold and less than or equal to the second preset threshold, then the communication parameters of the communication signal transmitted based on the next next configuration parameter are within the preset parameter range, which can meet the communication requirements and thus improve communication efficiency.
[0196] In this embodiment of the disclosure, the adjustment strategy based on the size of the communication parameters enables more precise adjustment of the configuration parameters and improves the efficiency of adjusting the communication parameters to the preset parameter range.
[0197] In some embodiments, the terminal signal adjustment method further includes:
[0198] If the communication parameters of the detected communication signal are within the preset parameter range, stop adjusting the current configuration parameters.
[0199] In this embodiment of the disclosure, when it is detected that the communication parameters of the communication signal transmitted based on the current configuration parameters are within the preset parameter range, that is, the communication signal transmitted by the terminal based on the current configuration parameters can meet the communication requirements, the adjustment of the current configuration parameters is stopped. This can reduce the number of times the current configuration parameters are adjusted while ensuring the stability and reliability of communication, thereby reducing the calculation and resource consumption of the current configuration parameters.
[0200] In some embodiments, the communication signals transmitted by the transceiver are detected by the detection module of the interface module in the terminal, including:
[0201] The differential signal is obtained by differential processing of the communication signals transmitted on the first signal line and the second signal line connected to the transceiver through the differential converter of the interface module.
[0202] The differential signal is detected by the detection module.
[0203] In this embodiment of the present disclosure, the first signal line and the second signal line are the channels of the interface module, and the communication signal is transmitted in a differential manner, which can improve the anti-interference capability of the communication signal and reduce the attenuation and distortion of the communication signal.
[0204] In this embodiment, the first signal line can be DP and the second signal line can be DM; or the first signal line can be DM and the second signal line can be DP. This embodiment does not limit the specific signal line.
[0205] The differential processing of the communication signal by the differential converter in the interface module of the terminal includes subtracting the communication signals transmitted by the two signal lines to obtain the differential signal, and then transmitting the differential signal to the detection module.
[0206] The differential signal is detected by the detection module in the terminal, including the voltage value, rising edge and falling edge of the differential signal. This allows the terminal to obtain the communication parameters of the communication signal transmitted based on the current configuration parameters. Based on the communication parameters, the state, quality and transmission faults of the communication signal can be determined.
[0207] In this embodiment of the disclosure, differential processing of the communication signal improves the signal's anti-interference capability and transmission quality, enabling the detection module to more accurately determine whether the parameters of the communication signal transmitted by the terminal based on the current configuration parameters meet the requirements. Combined with the detection module, this method can adjust the current configuration parameters more quickly and accurately, thereby ensuring the stability and reliability of communication.
[0208] To better understand the above one or more embodiments, examples of embodiments of this disclosure are as follows:
[0209] For example, Figure 6b This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 2 .
[0210] like Figure 6b As shown, the steps for adjusting the communication signal may include the following:
[0211] S2001, Start communication;
[0212] S2002, Port Identification;
[0213] S2003. Determine whether to enter USB enumeration; if yes, proceed to step S2004; if no, proceed to step 2002.
[0214] S2004. The communication signal transmitted by the transceiver is detected by the detection module;
[0215] S2005. Determine whether the communication parameters of the detected communication signal transmitted based on the current configuration parameters are within the preset parameter range; if yes, proceed to step S2007; if no, proceed to step S2006.
[0216] S2006. Adjust the current configuration parameters;
[0217] S2007, End.
[0218] In this embodiment of the disclosure, the terminal initiates communication. USB enumeration is used to determine the terminal's attributes, such as power supply status, configuration, interface attributes, or port attributes. The terminal can only be identified and subsequently transmit communication signals after USB enumeration.
[0219] It should be noted that if the communication signal received by the terminal contains an End Of Packet (EOP) identifier before adjusting the current configuration parameters, it indicates that the data in the received data packet can begin to be processed or the next data packet can be received during USB communication. Then, the current configuration parameters are adjusted before the next communication signal transmission, so that the transceiver transmits the communication signal based on the next configuration parameters.
[0220] In this embodiment of the disclosure, "end" can mean stopping the modification of the current configuration parameters, or it can mean that the terminal's USB port is disconnected, ending the communication.
[0221] In some embodiments, Figure 7a This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 3 .like Figure 7a As shown, the steps for adjusting the communication signal may include the following:
[0222] S3001. The communication signal transmitted by the transceiver is detected by the detection module;
[0223] S3002. Determine whether the communication parameters of the detected communication signal transmitted based on the current configuration parameters are within the preset parameter range; if not, proceed to step S3003; if yes, proceed to step S3005.
[0224] S3003. Adjust the current configuration parameters to obtain the next configuration parameters;
[0225] S3004. Determine whether the next configuration parameter meets the target configuration parameter; if not, proceed to step S3001; if yes, proceed to step S3005.
[0226] S3005, End.
[0227] In this embodiment of the disclosure, after the detection module detects the communication signal transmitted by the transceiver, the terminal can read the current configuration parameters stored in the register and modify the current configuration parameters in the register to the initial value. Here, the initial value can be any value from 0 to ff (hexadecimal), and this embodiment of the disclosure does not limit it.
[0228] It should be noted that adjusting the current configuration parameter to obtain the next configuration parameter can be done by increasing or decreasing the initial value stored in the register. For example, when the initial value is 0, adjusting the current configuration parameter can be done by increasing the initial value by a first adjustment value; when the initial value is ff, adjusting the current configuration parameter can be done by decreasing the initial value by a second adjustment value.
[0229] Wherein, the first adjustment value and the second adjustment value are positive numbers, and the first adjustment value and the second adjustment value may be equal or unequal, and the present disclosure does not limit this.
[0230] In this embodiment of the disclosure, "end" can mean stopping the modification of the current configuration parameter, modifying the next configuration parameter, or ending the communication.
[0231] In some embodiments, Figure 7b This is a flowchart illustrating a signal adjustment method output according to an exemplary embodiment. Figure 3 .like Figure 7b As shown, the steps for adjusting the communication signal may include the following:
[0232] S4001. The communication signal transmitted by the transceiver is detected by the detection module;
[0233] S4002. Determine whether the communication parameters of the detected communication signal transmitted based on the current configuration parameters are within the preset parameter range; if not, proceed to steps S4003 and S4004; if yes, proceed to step S4005.
[0234] S4003. If the communication parameters of the detected communication signal are less than the first preset threshold, increase the current configuration parameters;
[0235] S4004. If the communication parameters of the detected communication signal are greater than the second preset threshold, decrease the current configuration parameters;
[0236] S4005, End.
[0237] In this embodiment of the disclosure, if the communication parameter of the communication signal is detected to be less than a first preset threshold, increasing the current configuration parameter may be done by increasing the current configuration parameter stored in the register by a third adjustment value; if the communication parameter of the communication signal is detected to be greater than a second preset threshold, decreasing the current configuration parameter may be done by decreasing the current configuration parameter stored in the register by a fourth adjustment value.
[0238] In this embodiment, the third and fourth adjustment values are positive numbers, and they may be equal or unequal; this disclosure does not impose any restrictions on this. For example, increasing the current configuration parameter may involve incrementing the current configuration parameter stored in the register by one, and decreasing the current configuration parameter may involve decrementing the current configuration parameter stored in the register by one.
[0239] In this embodiment of the disclosure, "end" can mean stopping the adjustment of the current configuration parameters, or it can mean ending communication.
[0240] This disclosure also provides a terminal. Figure 8 This is a terminal frame illustrated according to an exemplary embodiment. Figure 1 .like Figure 8 As shown, the terminal 5000 mainly includes:
[0241] The detection unit 5001 is configured to detect the communication signals transmitted by the transceiver through the detection module of the interface module in the terminal; wherein the transmitted communication signals are obtained based on the current configuration parameters stored in the storage module of the interface module.
[0242] The first adjustment unit 5002 is configured to adjust the current configuration parameters when the communication parameters of the detected communication signal are outside the preset parameter range, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
[0243] In some embodiments, the terminal further includes:
[0244] The first stopping unit is configured to stop adjusting the next configuration parameter when it detects that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within a preset parameter range;
[0245] The second adjustment unit is configured to continue adjusting the next configuration parameter when it is detected that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are outside the preset parameter range, until the communication parameters of the communication signal transmitted by the transceiver are within the preset parameter range.
[0246] In some embodiments, the second adjustment unit is further configured to continue adjusting the next configuration parameter if the next configuration parameter fails to reach the target configuration parameter and the communication parameter of the communication signal transmitted by the transceiver based on the next configuration parameter is detected to be outside the preset parameter range.
[0247] In some embodiments, the first stopping unit is further configured to stop adjusting the next configuration parameter if the next configuration parameter does not reach the target configuration parameter and the communication parameter of the communication signal transmitted by the transceiver based on the next configuration parameter is within the preset parameter range.
[0248] In some embodiments, the terminal further includes:
[0249] The transmission unit is configured to transmit communication signals based on the target configuration parameters when the next configuration parameter reaches the target configuration parameter.
[0250] In some embodiments, the adjustment unit is further configured to, when the communication parameters of the detected communication signal are outside the preset parameter range, if the detected communication parameters of the communication signal are less than a first preset threshold, increase the current configuration parameter to obtain the next configuration parameter; if the detected communication parameters of the detected communication signal are greater than a second preset threshold, decrease the current configuration parameter to obtain the next configuration parameter; the second preset threshold is greater than the first preset threshold.
[0251] In some embodiments, the adjustment unit is further configured to, when the communication parameters of the detected communication signal are outside the preset parameter range, determine a target register from multiple registers of the storage module based on the detected communication parameters of the communication signal, and adjust the current configuration parameters stored in the target register.
[0252] In some embodiments, the terminal further includes:
[0253] The second stop unit is configured to stop adjusting the current configuration parameters when the communication parameters of the detected communication signal are within the preset parameter range.
[0254] In some embodiments, the detection unit is further configured to perform differential processing on the communication signals transmitted through the first signal line and the second signal line connected to the transceiver via the differential converter of the interface module to obtain a differential signal; and to detect the differential signal via the detection module.
[0255] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0256] Figure 9 This is a terminal frame illustrated according to an exemplary embodiment. Figure 2 For example, terminal 900 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0257] Reference Figure 9 The terminal 900 may include one or more of the following components: processing component 902, memory 904, power supply component 906, multimedia component 908, audio component 910, input / output (I / O) interface 912, sensor component 914, and communication component 916.
[0258] Processing component 902 typically controls the overall operation of terminal 900, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.
[0259] Memory 904 is configured to store various types of data to support operation on terminal 900. Examples of such data include at least one of the following: instructions for any application or method operating on terminal 900, contact data, phonebook data, messages, pictures, and videos. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0260] Power supply component 906 provides power to various components of terminal 900. Power supply component 906 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 900.
[0261] Multimedia component 908 includes a screen that provides an output interface between terminal 900 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a Touch Panel, the screen may be implemented as a touchscreen to receive input signals from the user. The Touch Panel includes one or more touch sensors to sense touches, swipes, and gestures on the Touch Panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When terminal 900 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0262] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when terminal 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
[0263] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0264] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of terminal 900. For example, sensor assembly 914 may detect the on / off state of terminal 900, the relative positioning of components such as the display and keypad of terminal 900, changes in position of terminal 900 or one of its components, the presence or absence of user contact with terminal 900, orientation or acceleration / deceleration of terminal 900, and temperature changes of terminal 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.
[0265] Communication component 916 is configured to facilitate wired or wireless communication between terminal 900 and other devices. Terminal 900 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.
[0266] In an exemplary embodiment, terminal 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0267] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including executable instructions or a computer program, which can be executed by a processor 920 of a terminal 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0268] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by the processor of a terminal, enables the terminal to perform any of the signal adjustment methods described in the embodiments of this disclosure. For example, the method includes: detecting a communication signal transmitted by a transceiver through a detection module of an interface module in the terminal; wherein the transmitted communication signal is obtained based on current configuration parameters stored in a storage module of the interface module; and, if the communication parameters of the detected communication signal are outside a preset parameter range, adjusting the current configuration parameters so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
[0269] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the signal adjustment methods described in this disclosure.
[0270] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.
[0271] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. An interface module, characterized in that, include: The storage module is used to store configuration parameters; A transceiver, connected to the storage module, is used to transmit communication signals based on the configuration parameters; A detection module, connected to the transceiver, is used to detect the communication signal; The control module, connected to the storage module and the detection module, is used to adjust the configuration parameters when the communication parameters of the communication signal are detected to be outside the preset parameter range, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted configuration parameters are within the preset parameter range.
2. The interface module according to claim 1, characterized in that, The detection module includes: Multiple detection circuits are connected in parallel on the connection line between the control module and the transceiver. The communication parameters of the communication signal detected by different detection circuits are different.
3. The interface module according to claim 2, characterized in that, The plurality of the detection circuits include: A voltage detection circuit is used to detect the voltage of the communication signal to obtain a voltage value; A rising edge detection circuit is used to detect the rise in level of the communication signal to obtain a first level value; A falling edge detection circuit is used to detect the amount of level drop of the communication signal to obtain a second level value.
4. The interface module according to any one of claims 1 to 3, characterized in that, The interface module also includes: The first signal line and the second signal line are respectively connected to the transceiver; A differential converter has an output terminal and two input terminals; The two input terminals are respectively connected to the first signal line and the second signal line; The output terminal is connected to the detection module; The differential is used to perform differential processing on the communication signals transmitted by the first signal line and the second signal line to obtain a differential signal; The detection module is used to detect the differential signal.
5. The interface module according to any one of claims 1 to 3, characterized in that, The storage module includes multiple registers; The control module is connected to multiple registers and is used to determine a target register from the multiple registers based on the communication parameters of the detected communication signal, and to adjust the configuration parameters stored in the target register.
6. The interface module according to any one of claims 1 to 3, characterized in that, The interface module also includes: A comparator, connected to the detection module and the control module, is used to compare the communication parameters of the communication signal with the preset parameter range to obtain a comparison result.
7. A terminal, characterized in that, include: The outer casing has an opening; The interface module as described in any one of claims 1 to 6; The interface module is installed at the opening.
8. A signal adjustment method, characterized in that, include: The communication signals transmitted by the transceiver are detected by the detection module of the interface module in the terminal; wherein the transmitted communication signals are obtained based on the current configuration parameters stored in the storage module of the interface module. If the communication parameters of the communication signal are detected to be outside the preset parameter range, the current configuration parameters are adjusted so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
9. The signal adjustment method according to claim 8, characterized in that, The method further includes: If the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range, the adjustment of the next configuration parameter shall be stopped. If it is detected that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are outside the preset parameter range, the next configuration parameter shall continue to be adjusted until the communication parameters of the communication signal transmitted by the transceiver are within the preset parameter range.
10. The signal adjustment method according to claim 9, characterized in that, The step of adjusting the next configuration parameter when it is detected that the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are outside the preset parameter range includes: If the next configuration parameter does not meet the target configuration parameter, and the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be outside the preset parameter range, the next configuration parameter shall continue to be adjusted.
11. The signal adjustment method according to claim 9, characterized in that, The step of stopping the adjustment of the next configuration parameter when the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are within the preset parameter range includes: If the next configuration parameter does not reach the target configuration parameter, and the communication parameters of the communication signal transmitted by the transceiver based on the next configuration parameter are detected to be within the preset parameter range, the adjustment of the next configuration parameter shall be stopped.
12. The signal adjustment method according to claim 11, characterized in that, The method further includes: When the next configuration parameter reaches the target configuration parameter, the communication signal is transmitted based on the target configuration parameter.
13. The signal adjustment method according to any one of claims 8 to 12, characterized in that, The step of adjusting the current configuration parameters when the communication parameters of the detected communication signal are outside the preset parameter range includes: If the communication parameters of the communication signal are detected to be outside the preset parameter range, and if the communication parameters of the communication signal are detected to be less than a first preset threshold, the current configuration parameter is increased to obtain the next configuration parameter. If the communication parameters of the communication signal are detected to be greater than the second preset threshold, the current configuration parameters are reduced to obtain the next configuration parameters; the second preset threshold is greater than the first preset threshold.
14. The signal adjustment method according to any one of claims 8 to 12, characterized in that, The step of adjusting the current configuration parameters when the communication parameters of the detected communication signal are outside the preset parameter range includes: If the communication parameters of the communication signal are detected to be outside the preset parameter range, a target register is determined from multiple registers of the storage module based on the detected communication parameters of the communication signal, and the current configuration parameters stored in the target register are adjusted.
15. The signal adjustment method according to any one of claims 8 to 12, characterized in that, The method further includes: If the communication parameters of the communication signal are detected to be within the preset parameter range, the adjustment of the current configuration parameters shall be stopped.
16. The signal adjustment method according to any one of claims 8 to 12, characterized in that, The detection of communication signals transmitted by the transceiver through the detection module of the interface module in the terminal includes: The differential signal is obtained by differential processing of the communication signals transmitted through the first signal line and the second signal line connected to the transceiver through the differential converter of the interface module. The differential signal is detected by the detection module.
17. A terminal, characterized in that, include: The detection unit detects the communication signals transmitted by the transceiver through the detection module of the interface module in the terminal; wherein the transmitted communication signals are obtained based on the current configuration parameters stored in the storage module of the interface module; The first adjustment unit adjusts the current configuration parameters when it detects that the communication parameters of the communication signal are outside the preset parameter range, so that the communication parameters of the communication signal transmitted by the transceiver based on the adjusted next configuration parameters are within the preset parameter range.
18. A terminal, characterized in that, include: processor; Memory used to store computer programs or instructions; The processor executes the computer program or instructions to implement the steps of the signal adjustment method according to any one of claims 8 to 16.
19. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by a processor, the steps of the signal adjustment method according to any one of claims 8 to 16 are implemented.
20. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the processor, they implement the steps of the signal adjustment method according to any one of claims 8 to 16.
Citation Information
Patent Citations
Device and method for automatically configuring parameters of high-speed serial transceiver
CN108039961A
A data transmission adjusting method and terminal equipment
CN109743141A
A parameter adjustment method and communication equipment
CN109921959A
HDMI signal adjustment method and device, and storage medium
CN113132792A
Method for improving data transmission quality, USB device and storage medium
CN115114217A