Method and device for controlling USB (Universal Serial Bus) module in electronic equipment and controller

By reducing electromagnetic radiation energy and adjusting signal parameters when the USB module is in the first working mode, the signal interference problem of the USB module to the wireless communication module is solved, the data transmission rate is improved and the efficiency of the USB module is maintained.

CN119210610APending Publication Date: 2024-12-27ZHONGGUANCUN XINHAIZEYOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411535813.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

When the USB module is in the working state of the wireless communication module, signal interference causes the data transmission speed to slow down or the data cannot be transmitted.

Method used

By obtaining the signal strength of the wireless communication module when the USB module is in the first working mode, if the signal strength is lower than the preset value, the electromagnetic radiation energy of the USB module is reduced, and the swing, modulation frequency and frequency deviation of the differential signal are adjusted, so as to Reduce interference to wireless communication modules.

Benefits of technology

It effectively reduces the signal interference of the USB module to the wireless communication module, improves the data transmission rate, avoids the situation where the wireless communication module cannot transmit data, and maintains the data transmission efficiency of the USB module and improves the flexibility of interference reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119210610A_ABST
    Figure CN119210610A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device for a USB module in electronic equipment and a controller, and relates to the technical field of communication. The controller obtains the wireless signal strength of the wireless communication module under the condition that the wireless communication module receives the data, and if the wireless signal strength is smaller than the preset signal strength and the USB module is in the first working mode, the electromagnetic radiation energy of the USB module is reduced under the condition that the working mode of the USB module is kept unchanged, and the electromagnetic radiation energy of the USB module is reduced. The difference value between the working frequency of the wireless communication module and the working frequency of the USB module in the first working mode is smaller than or equal to a preset difference value. Therefore, the noise interference of the signal of the USB module on the signal of the wireless communication module can be reduced, the data transmission rate of the wireless communication module is further improved, and the situation that the wireless communication module cannot transmit data is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a control method and device for a USB module in an electronic device, and a controller. Background Art

[0002] The electronic device may include a universal serial bus (USB) module and a wireless communication module. When the USB module communicates with a USB external device based on the USB3.0 communication protocol, the operating frequency of each data line in the USB module may be based on 2.5 gigahertz (GHz) and vary within a smaller frequency range (for example, the frequency range is 2.1GHz to 2.5GHz). Since the operating frequency of each data line is relatively close to the operating frequency 2.4GHz of the wireless communication module, when the wireless communication module is in operation, the signal of the USB module may generate a large noise interference to the signal of the wireless communication module, resulting in a slow data transmission speed of the wireless communication module, or even failure to transmit data. Summary of the invention

[0003] The present invention provides a control method and device for a USB module in an electronic device, and a controller, which can solve the problem in the related art that when the wireless communication module is in working state and the USB module communicates with a USB external device based on the USB3.0 communication protocol, the signal of the USB module may generate large noise interference to the signal of the wireless communication module, resulting in a slow data transmission speed of the wireless communication module, or even making the wireless communication module unable to transmit data. The technical solution is as follows:

[0004] In one aspect, a control method for a USB module in an electronic device is provided, which is applied to a controller in the electronic device, wherein the electronic device further includes a wireless communication module and a USB module; the method includes:

[0005] When the wireless communication module receives data, obtaining the wireless signal strength of the wireless communication module;

[0006] If the wireless signal strength is less than the preset signal strength and the USB module is in the first working mode, then when the USB module is in the first working mode, the electromagnetic radiation energy of the USB module is reduced so that the wireless signal strength is greater than or equal to the preset signal strength;

[0007] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first operating mode is less than or equal to a preset difference.

[0008] Optionally, reduce the electromagnetic radiation energy of the USB module, including:

[0009] Obtaining a current swing amplitude of a differential signal when the USB module is in a first working mode;

[0010] When the current swing amplitude is greater than the preset swing amplitude, the current swing amplitude is adjusted down at least once.

[0011] Optionally, after the reduced current swing amplitude reaches the preset swing amplitude, if the wireless signal strength is less than the preset signal strength, reducing the electromagnetic radiation energy of the USB module, further comprising:

[0012] Get the current modulation frequency of the differential signal;

[0013] The current modulation frequency is adjusted at least once within a preset frequency range.

[0014] Optionally, each time after adjusting the current modulation frequency, the method further includes:

[0015] Within a preset frequency deviation range, the current frequency deviation of the differential signal is adjusted at least once.

[0016] Optionally, after reducing the electromagnetic radiation energy of the USB module, if the wireless signal strength is less than a preset signal strength, the method further includes:

[0017] Adjusting the working mode of the USB module from the first working mode to the second working mode;

[0018] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the second operating mode is greater than a preset difference.

[0019] Optionally, reduce the electromagnetic radiation energy of the USB module, including:

[0020] When receiving a differential signal transmitted by a USB external device, an adjustment instruction is sent to the USB external device so that the USB external device reduces the electromagnetic radiation energy of the USB module.

[0021] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the control method of the USB module in the electronic device is implemented.

[0022] On the other hand, a controller is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the control method of the USB module in the above-mentioned electronic device is implemented.

[0023] In another aspect, a control device for a USB module in an electronic device is provided, the device comprising:

[0024] An acquisition module, used to acquire the wireless signal strength of the wireless communication module when the wireless communication module receives data;

[0025] an adjustment module, configured to, if the wireless signal strength is less than a preset signal strength and the USB module is in a first working mode, reduce the electromagnetic radiation energy of the USB module when the USB module is in the first working mode, so that the wireless signal strength is greater than or equal to the preset signal strength;

[0026] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first operating mode is less than or equal to a preset difference.

[0027] Optionally, an adjustment module is used to obtain a current swing amplitude of a differential signal when the USB module is in a first working mode;

[0028] When the current swing amplitude is greater than the preset swing amplitude, the current swing amplitude is adjusted down at least once.

[0029] To summarize, an embodiment of the present invention provides a control method, device, and controller for a USB module in an electronic device. When the wireless communication module receives data, the controller obtains the wireless signal strength of the wireless communication module. If the wireless signal strength is less than a preset signal strength and the USB module is in a first operating mode, the electromagnetic radiation energy of the USB module is reduced while keeping the operating mode of the USB module unchanged, so that the wireless signal strength is greater than or equal to the preset signal strength.

[0030] Since the difference between the working frequency of the wireless communication module and the working frequency of the USB module in the first working mode is less than or equal to the preset difference, when the wireless signal strength of the wireless communication module is less than the preset signal strength and the USB module is in the first working mode, the controller can determine that the wireless signal strength is less than the preset signal strength because the USB module generates a large noise interference to the signal of the wireless communication module. Therefore, at this time, the electromagnetic radiation energy of the USB module is reduced to make the wireless signal strength greater than or equal to the preset signal strength, which can effectively reduce the noise interference of the USB module signal to the wireless communication module signal, thereby improving the data transmission rate of the wireless communication module and avoiding the wireless communication module from being unable to transmit data. In addition, since the controller can reduce the interference to the wireless communication module by adjusting the electromagnetic radiation energy of the USB module while the working mode of the USB module remains unchanged, the method of reducing the interference to the wireless communication module is enriched and the flexibility of reducing interference is improved. In addition, the data transmission efficiency of the USB module can be maintained to a large extent.

[0031] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a schematic diagram of the relationship between noise energy and operating frequency provided by an embodiment of the present invention;

[0033] Figure 2 is a flow chart of a method for controlling a USB module in an electronic device provided by an embodiment of the present invention;

[0034] Figure 3 is a flow chart of another method for controlling a USB module in an electronic device provided by an embodiment of the present invention;

[0035] Figure 4 It is a schematic diagram of communication between an electronic device and a USB external device provided by an embodiment of the present invention;

[0036] Figure 5 is a structural schematic diagram of a USB module provided by an embodiment of the present invention;

[0037] Figure 6 It is a schematic diagram of the relationship between the communication period and frequency deviation of a differential signal provided by an embodiment of the present invention;

[0038] Figure 7 is a schematic diagram of the structure of a controller provided by an embodiment of the present invention;

[0039] Figure 8 The present invention is a structural block diagram of a control device for a USB module in an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0041] The electronic device may include a USB module and a wireless communication module. When the USB module communicates with a USB external device based on the USB3.0 communication protocol, the operating frequency of each data line in the USB module can be based on 2.5 GHz and vary within a smaller frequency range (for example, the frequency range is 2.1 GHz to 2.5 GHz). Since the reference frequency of each data line is relatively close to the operating frequency 2.4 GHz of the wireless communication module, when the wireless communication module is in operation, the signal of the USB module may generate a large noise interference to the signal of the wireless communication module, resulting in a slow data transmission speed of the wireless communication module, or even failure to transmit data.

[0042] Figure 1 Schematic diagram of the relationship between noise energy and operating frequency provided by an embodiment of the present invention. Figure 1 , the vertical axis is noise energy, in decibel-milliwatts (dBm) / 100 kilohertz (KHz), and the horizontal axis is operating frequency, in GHz. The first curve 11 is a curve showing the relationship between noise energy and operating frequency when the USB module is working, wherein the USB module communicates based on the USB3.0 communication protocol. It can be seen from the first curve 11 that when the USB module is working, the noise energy generated is relatively high.

[0043] Figure 2 is a flowchart of a method for controlling a USB module in an electronic device provided by an embodiment of the present invention, which is applied to a controller in an electronic device, and is referred to as Figure 2 , the method comprising:

[0044] Step 201: When the wireless communication module receives data, obtain the wireless signal strength of the wireless communication module.

[0045] When the wireless communication module receives data, the controller obtains the wireless signal strength of the wireless communication module.

[0046] Step 202: If the wireless signal strength is less than the preset signal strength and the USB module is in the first working mode, then when the USB module is in the first working mode, the electromagnetic radiation energy of the USB module is reduced so that the wireless signal strength is greater than or equal to the preset signal strength.

[0047] Since reducing the electromagnetic radiation energy of the USB module can reduce the interference of the USB module to the wireless communication module, when the wireless communication module receives data, if the controller determines that the wireless signal strength of the wireless communication module is less than the preset signal strength and the USB module is in the first working mode, the electromagnetic radiation energy of the USB module can be reduced when the USB module is in the first working mode, so that the wireless signal strength is greater than or equal to the preset signal strength. That is, the electromagnetic radiation energy of the USB module can be reduced while keeping the working mode of the USB unchanged.

[0048] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first operating mode is less than or equal to the preset difference, that is, the operating frequency of the wireless communication module is relatively close to the operating frequency of the USB module in the first operating mode.

[0049] It is understandable that when the signal of the wireless communication module is not interfered by large noise, the wireless signal strength is greater than or equal to the preset signal strength. When the signal of the wireless communication module is interfered by large noise, the wireless signal strength is less than the preset signal strength.

[0050] If the wireless signal strength is less than the preset signal strength and the USB module is in the first working mode, the controller can determine that the wireless signal strength is less than the preset signal strength because the USB module generates greater noise interference to the signal of the wireless communication module, and thus the electromagnetic radiation energy of the USB module can be reduced to make the wireless signal strength greater than or equal to the preset signal strength. In this way, the noise interference of the signal of the USB module to the signal of the wireless communication module can be reduced, thereby increasing the data transmission rate of the wireless communication module and preventing the wireless communication module from being unable to transmit data.

[0051] To summarize, an embodiment of the present invention provides a control method for a USB module in an electronic device. When the wireless communication module receives data, the controller obtains the wireless signal strength of the wireless communication module. If the wireless signal strength is less than a preset signal strength and the USB module is in a first operating mode, the electromagnetic radiation energy of the USB module is reduced while keeping the operating mode of the USB module unchanged, so that the wireless signal strength is greater than or equal to the preset signal strength.

[0052] Since the difference between the working frequency of the wireless communication module and the working frequency of the USB module in the first working mode is less than or equal to the preset difference, when the wireless signal strength of the wireless communication module is less than the preset signal strength and the USB module is in the first working mode, the controller can determine that the wireless signal strength is less than the preset signal strength because the USB module generates a large noise interference to the signal of the wireless communication module. Therefore, at this time, the electromagnetic radiation energy of the USB module is reduced to make the wireless signal strength greater than or equal to the preset signal strength, which can effectively reduce the noise interference of the USB module signal to the wireless communication module signal, thereby improving the data transmission rate of the wireless communication module and avoiding the wireless communication module from being unable to transmit data. In addition, since the controller can reduce the interference to the wireless communication module by adjusting the electromagnetic radiation energy of the USB module while the working mode of the USB module remains unchanged, the method of reducing the interference to the wireless communication module is enriched and the flexibility of reducing interference is improved. In addition, the data transmission efficiency of the USB module can be maintained to a large extent.

[0053] Figure 3 is a flowchart of another method for controlling a USB module in an electronic device provided by an embodiment of the present invention, which is applied to Figure 4The controller 10 in the electronic device 100 shown in the figure may further include a wireless communication module 20 and a USB module 30, and the controller 10 is connected to the wireless communication module 20 and the USB module 30 respectively. Figure 3 , the method may include:

[0054] Step 301: When the wireless communication module receives data, obtain the wireless signal strength of the wireless communication module.

[0055] When the wireless communication module receives data, the controller may obtain the wireless signal strength of the wireless communication module.

[0056] Optionally, the controller can obtain the wireless signal strength from the wireless communication module, and the wireless signal strength can be a signal strength indicator (RSSI) value between the wireless communication module and the wireless device. The wireless device is a device that establishes a communication connection with the wireless communication module. The wireless communication module can be a wireless fidelity (Wi-Fi) communication module or a Bluetooth (BT) communication module.

[0057] Step 302: Determine whether the wireless signal strength is less than a preset signal strength.

[0058] After the controller obtains the wireless signal strength of the wireless communication module, it can determine whether the wireless signal strength is less than the preset signal strength. In the case where the wireless signal strength is less than the preset signal strength, the controller can determine that the signal of the wireless communication module is interfered by noise, and the data transmission rate of the wireless communication module is low at this time, so step 303 can be executed. In the case where the wireless signal strength is greater than or equal to the preset signal strength, it can be determined that the signal of the wireless communication module is not interfered by noise, and the data transmission rate of the wireless communication module is not affected at this time, so the process can be terminated. The controller can pre-store the preset signal strength.

[0059] Since the controller can reduce the electromagnetic radiation energy of the USB module only when it determines that the wireless signal strength of the wireless communication module is less than the preset signal strength, compared with the method of directly reducing the electromagnetic radiation energy of the USB module when the wireless communication module is working, on the one hand, it can save adjustment overhead; on the other hand, it can ensure that when the wireless signal strength of the wireless communication module is strong, the impact on the USB module is reduced to a great extent.

[0060] Step 303: Determine whether the USB module is in the first working mode.

[0061] When the wireless signal strength is less than the preset signal strength, the controller can determine whether the USB module is in the first working mode. When the USB module is in the first working mode, the controller can execute step 304, and when the USB module is not in the first working mode, the process can be terminated.

[0062] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first working mode is less than or equal to the preset difference, that is, the operating frequency of the wireless communication module is close to the operating frequency of the USB module in the first working mode. The controller can pre-store the preset difference. The operating frequency of the USB module in the first working mode refers to the operating frequency of each data line in the USB module when the USB module is in the first working mode.

[0063] In the embodiment of the present invention, reference Figure 4 , the USB module 30 is connected to the USB external device 200, and the USB module 30 can be in the first working mode during data transmission with the USB external device 200.

[0064] For example, the operating frequency of the wireless communication module can be 2.4 GHz. The USB module is in the first operating mode, which means that the USB module operates based on the USB3.0 communication protocol. When the USB module operates based on the USB3.0 communication protocol, the operating frequency of each data line in the USB module is based on 2.5 GHz and varies within a smaller frequency range, which can be 2.1 GHz to 2.5 GHz, and the preset difference can be 0.2.

[0065] It can be understood that, since the difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first working mode is less than or equal to the preset difference, when the wireless signal strength is less than the preset signal strength and the USB module is in the first working mode, the controller can determine that the wireless signal strength is less than the preset signal strength because the signal of the USB module generates greater noise interference on the signal of the wireless communication module. When the wireless signal strength is less than the preset signal strength and the USB module is not in the first working mode, it can be determined that the wireless signal strength is less than the preset signal strength and is not caused by the signal of the USB module, so the process can be terminated.

[0066] refer to Figure 5 The USB module 30 may include a USB control circuit 31, a USB interface 32, at least one first data line and at least one second data line. The USB interface 32 has at least one first signal terminal 321 ( Figure 5 Four first signal terminals 321) and at least one second signal terminal 322 ( Figure 51 and 2), at least one first signal terminal 321 corresponds to at least one first data line, and at least one second signal terminal 322 corresponds to at least one second data line. The at least one first data line may include a first data line SSTX+, a first data line SSTX-, a first data line SSRX+, and a first data line SSRX-.

[0067] The USB control circuit 31 is connected to the controller 10, one end of each first data line and one end of each second data line respectively. The other end of each first data line is connected to a corresponding first signal terminal 321, and the other end of each second data line is connected to a corresponding second signal terminal 322.

[0068] refer to Figure 4 and Figure 5 , the USB control circuit 31 transmits data with the USB external device 200 through at least one first data line, so that the USB module 30 is in the first working mode. Thus, the controller 10 can obtain the working mode of the USB module 30 from the USB control circuit 31. The working frequency of each data line in the USB module 30 refers to the working frequency of each data line in the at least one first data line and the at least one second data line.

[0069] Step 304: When the USB module is in the first working mode, reduce the electromagnetic radiation energy of the USB module so that the wireless signal strength is greater than or equal to the preset signal strength.

[0070] When the wireless signal strength is less than the preset signal strength and the USB module is in the first operating mode, the controller can reduce the electromagnetic radiation energy of the USB module when the USB module is in the first operating mode so that the wireless signal strength is greater than or equal to the preset signal strength.

[0071] In an embodiment of the present invention, reducing the electromagnetic radiation energy of the USB module may include: reducing the electromagnetic radiation energy of the USB module in the entire operating frequency range (such as 2.1 GHz to 2.5 GHz), and / or reducing the electromagnetic radiation energy of the USB module in a target frequency range. The target frequency range is a subset of the entire operating frequency range and is relatively close to the operating frequency of the wireless communication module. For example, the target frequency range may be 2.4 GHz to 2.438 GHz.

[0072] Optionally, when the USB module transmits a differential signal to the USB external device, the controller can directly reduce the electromagnetic radiation energy of the USB module. Alternatively, when the USB module receives a differential signal transmitted by the USB external device, the controller can send an adjustment instruction to the USB external device so that the USB external device reduces the electromagnetic radiation energy of the USB module. Figure 5 , the differential signal may include a signal transmitted through the first data line SSTX+ and a signal transmitted through the first data line SSTX-. Figure 4 , the controller 10 can send an adjustment instruction to the USB external device 200 through the USB module 30.

[0073] The following description is based on an example of the controller reducing the electromagnetic radiation energy of the USB module. The process of the controller reducing the electromagnetic radiation energy of the USB module may include the following steps A1 to A6:

[0074] Step A1: obtaining the current swing amplitude of the differential signal when the USB module is in the first working mode.

[0075] When the wireless signal strength is less than the preset signal strength and the USB module is in the first working mode, the controller may obtain the current swing amplitude of the differential signal when the USB module is in the first working mode.

[0076] refer to Figure 5 The controller can obtain the current swing amplitude of the differential signal of the USB module 30 in the first working mode through the USB control circuit 31.

[0077] Step A2: determine whether the current swing amplitude is greater than the preset swing amplitude.

[0078] After the controller obtains the current swing of the differential signal when the USB module is in the first working mode, it can determine whether the current swing is greater than the preset swing. If the current swing is greater than the preset swing, the controller can execute step A3. If the current swing is equal to the preset swing, the controller can execute step A4. The controller can store the preset swing in advance. The preset swing can be the lower limit value of the preset swing range, that is, the preset swing is the minimum swing in the preset swing range.

[0079] It is understandable that, in the process of the USB module communicating with the USB external device, based on the USB communication protocol standard, the swing of the differential signal is usually required to be within a preset swing range. For example, when the USB module is in the first working mode, based on the USB3.0 communication protocol standard, the lower limit value of the preset swing range of the differential signal may be 0.8 volts (V), and the upper limit value may be 1.2V, so the preset swing may be set to 0.8V.

[0080] Step A3: lower the current swing amplitude at least once.

[0081] When the current swing amplitude is greater than the preset swing amplitude, the controller may adjust the current swing amplitude downward at least once to reduce the current swing amplitude, thereby reducing the electromagnetic radiation of the USB module in the entire operating frequency range.

[0082] Optional, reference Figure 5 , the controller 10 can reduce the current swing amplitude at least once through the USB control circuit 31 to reduce the current swing amplitude.

[0083] It is understandable that the electromagnetic radiation energy of the USB module can be reduced as the swing of the differential signal decreases. Therefore, when the current swing is greater than the preset swing, the controller can reduce the current swing at least once to reduce the electromagnetic radiation energy of the USB module, thereby reducing the noise interference of the signal of the USB module on the signal of the wireless communication module and improving the strength of the wireless signal.

[0084] Optionally, the controller may reduce the current swing by a first step length to update the current swing. Afterwards, the controller may obtain the wireless signal strength of the wireless communication module again. If the updated current swing reaches the preset swing (i.e., the updated current swing is equal to the preset swing), and the wireless signal strength of the wireless communication module is less than the preset signal strength, step A4 may be executed. If the updated current swing is greater than the preset swing, and the wireless signal strength of the wireless communication module is greater than or equal to the preset signal strength, the updated current swing may be stored and the process may be terminated. If the updated current swing is greater than the preset swing, and the wireless signal strength of the wireless communication module is less than the preset signal strength, the updated current swing may be lowered again. Among them, the controller may store the first step length in advance, and for example, the first step length may be 0.1V.

[0085] Step A4: Obtain the current modulation frequency of the differential signal.

[0086] When the current swing amplitude is equal to the preset swing amplitude and the wireless signal strength of the wireless communication module is less than the preset signal strength, the controller can obtain the current modulation frequency of the differential signal. Figure 5 , the controller 10 can obtain the current modulation frequency of the differential signal through the USB control circuit 31.

[0087] In the embodiment of the present invention, the USB control circuit 31 adjusts the frequency of the differential signal based on the spread spectrum clocking (SSC) technology, so that the frequency of the differential signal can be changed within a reference frequency range based on the reference frequency. In this way, the electromagnetic energy of the differential signal in the entire operating frequency range can be dispersed. For example, the electromagnetic radiation energy of the differential signal in the target frequency range is reduced, thereby reducing interference to surrounding devices.

[0088] Furthermore, since the target frequency range within the entire operating frequency range of the USB module has a greater impact on the wireless communication module, and since the electromagnetic energy of the differential signal within the target frequency range can be adjusted by adjusting the frequency of the differential signal, when the current swing amplitude is equal to the preset swing amplitude and the wireless signal strength of the wireless communication module is less than the preset signal strength, the controller can obtain the current modulation frequency of the differential signal.

[0089] The modulation frequency of the differential signal can be the speed at which the frequency of the differential signal deviates from the reference frequency to reach the target frequency. The ratio of the frequency deviation to the reference frequency is the frequency deviation of the differential signal, and the frequency deviation is the difference between the target frequency and the reference frequency.

[0090] Step A5: Adjust the current modulation frequency at least once within a preset frequency range.

[0091] After the controller obtains the current modulation frequency of the differential signal, it can adjust the current modulation frequency at least once within a preset frequency range to reduce the electromagnetic radiation energy of the USB module within the target frequency range. The controller can store the preset frequency range in advance.

[0092] Optional, reference Figure 5 The controller 10 can adjust the current modulation frequency at least once within a preset frequency range through the USB control circuit 31.

[0093] It is understandable that, in the process of the USB module communicating with the USB external device, based on the USB communication protocol standard, the modulation frequency of the differential signal usually needs to be maintained within a preset frequency range, so the controller needs to adjust the current modulation frequency at least once within the preset frequency range. For example, when the USB module is in the first working mode, based on the USB3.0 communication protocol standard, the lower limit value of the preset frequency range corresponding to the modulation frequency of the differential signal can be 30KHz, and the upper limit value can be 33KHz.

[0094] Optionally, the controller may increase the current modulation frequency at least once within a preset frequency range. Each time, the first modulation frequency is increased by a second step until the adjusted first modulation frequency is equal to the upper limit of the preset frequency range. If the first modulation frequency is increased for the first time, the first modulation frequency is the current modulation frequency; if it is not the first time the first modulation frequency is increased, the first modulation frequency is the first modulation frequency after the previous adjustment. For example, the second step may be 0.5 KHz.

[0095] Afterwards, the current modulation frequency is lowered at least once. Each time, the second modulation frequency is lowered by a second step size until the adjusted second modulation frequency is equal to the lower limit of the preset frequency range. If the second modulation frequency is lowered for the first time, the second modulation frequency is the current modulation frequency; if it is not the first time the second modulation frequency is lowered, the second modulation frequency is the second modulation frequency after the previous adjustment.

[0096] After each adjustment of the current modulation frequency, the controller can obtain the wireless signal strength of the current wireless communication module. If the wireless signal strength of the wireless communication module is less than the preset signal strength, the current modulation frequency can be adjusted. If the wireless signal strength of the wireless communication module is greater than or equal to the preset signal strength, it means that the electromagnetic radiation energy of the differential signal in the target frequency range is reduced, so the process can be terminated.

[0097] In an embodiment of the present invention, after the current modulation frequency is increased at least once until the adjusted first modulation frequency is equal to the upper limit of the preset frequency range, and then the current modulation frequency is decreased at least once until the adjusted second modulation frequency is equal to the lower limit of the preset frequency range, if the wireless signal strength of the wireless communication module is still less than the preset signal strength, step 305 can be executed.

[0098] Optionally, after the controller adjusts the current modulation frequency once, if the wireless signal strength of the wireless communication module is still less than the preset signal strength, the current frequency deviation of the differential signal can be adjusted at least once within the preset frequency deviation range, thereby dispersing the electromagnetic energy of the differential signal, reducing the electromagnetic radiation energy of the differential signal in the target frequency range, and thus reducing interference to surrounding devices. Figure 5 The controller 10 can adjust the current frequency deviation of the differential signal at least once within a preset frequency deviation range through the USB control circuit 31.

[0099] It is understandable that, in the process of the USB module communicating with the USB external device, based on the USB communication protocol standard, the frequency deviation of the differential signal must be maintained within a preset frequency deviation range, so the controller needs to adjust the current frequency deviation at least once within the preset frequency deviation range. For example, when the USB module is in the first working mode, based on the USB3.0 communication protocol standard, the lower limit value of the preset frequency deviation range is 0, and the upper limit value is 0.5%.

[0100] After each adjustment of the current frequency deviation, the controller can obtain the wireless signal strength of the current wireless communication module. If the wireless signal strength of the wireless communication module is less than the preset signal strength, the current frequency deviation can be adjusted. If the wireless signal strength of the wireless communication module is greater than or equal to the preset signal strength, the process can be terminated.

[0101] Optionally, each time the controller adjusts the current modulation frequency, it can increase the current frequency deviation at least once within the preset frequency deviation range. The controller can increase the first frequency deviation by a third step each time until the adjusted first frequency deviation is equal to the upper limit of the preset deviation increase range. If the first frequency deviation is increased for the first time, the first frequency deviation is the current frequency deviation; if it is not the first time the first frequency deviation is increased, the first frequency deviation is the first frequency deviation after the previous adjustment. For example, the third step size can be 0.1%.

[0102] Afterwards, the current frequency deviation is adjusted downward at least once. The controller may reduce the second frequency deviation by a third step each time until the adjusted second frequency deviation is equal to the lower limit of the preset frequency deviation range. If the second frequency deviation is reduced for the first time, the second frequency deviation is the current frequency deviation; if the second frequency deviation is not increased for the first time, the second frequency deviation is the second frequency deviation after the previous adjustment.

[0103] In an embodiment of the present invention, the controller adjusts the current modulation frequency upward at least once until the adjusted first modulation frequency is equal to the upper limit of the preset frequency range, and then adjusts the current modulation frequency downward at least once until the adjusted second modulation frequency is equal to the lower limit of the preset frequency range, and the wireless signal strength of the wireless communication module is still less than the preset signal strength. And after each adjustment of the current modulation frequency, the current frequency deviation is adjusted upward at least once until the adjusted first frequency deviation is equal to the upper limit of the preset frequency deviation range, and then the current frequency deviation is adjusted downward at least once until the adjusted second frequency deviation is equal to the lower limit of the preset frequency deviation range, and the wireless signal strength of the wireless communication module is still less than the preset signal strength, then step 305 can be executed.

[0104] Assuming that the current modulation frequency is 30KHz, the modulation period of the differential signal is 33.33 microseconds (us), and half of the modulation period is 16.66us. The modulation period is the reciprocal of the current modulation frequency. Figure 6FIG. 1 is a schematic diagram of the relationship between the communication cycle and the frequency deviation of a differential signal provided by an embodiment of the present invention. Figure 6 It can be seen that when the frequency deviation is 0, the communication cycle UI of the differential signal is 200 picoseconds (ps), and when the frequency deviation is 0.5%, the communication cycle UI of the differential signal is 201ps. The frequency deviation of the differential signal fluctuates within the frequency deviation range (0 to 0.5%), so that the communication cycle UI of the differential signal varies between 200ps and 201ps, so that the actual frequency of the differential signal will not be maintained at a fixed frequency point, that is, the actual frequency of the differential signal continues to jitter, thereby effectively avoiding excessive concentration of electromagnetic radiation energy, dispersing the electromagnetic energy of the differential signal, and reducing the electromagnetic radiation energy of the differential signal in the target frequency range, that is, reducing the electromagnetic radiation energy of the USB module, thereby reducing the interference of the signal of the USB module to the signal of the wireless communication module.

[0105] Step 305: If the wireless signal strength is still less than the preset signal strength, the working mode of the USB module is adjusted from the first working mode to the second working mode.

[0106] When the USB module is in the first working mode, after reducing the electromagnetic radiation energy of the USB module, if the wireless signal strength is still less than the preset signal strength, the controller can determine that after adjusting the current swing amplitude, current modulation frequency and current frequency deviation of the differential signal at least once, although the electromagnetic radiation energy of the USB module can be reduced, the degree of reduction of the electromagnetic radiation energy is not ideal, and the wireless signal strength of the wireless communication module cannot be greater than or equal to the preset signal strength. At this time, the controller can adjust the working mode of the USB module from the first working mode to the second working mode.

[0107] Among them, reference Figure 5 The controller 10 can adjust the working mode of the USB module 30 from the first working mode to the second working mode through the USB control circuit 31. The USB control circuit 31 transmits data with the USB external device 200 through at least one second data line, so that the USB module 30 is in the second working mode.

[0108] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the second working mode is greater than the preset difference, that is, the operating frequency of the wireless communication module is not close to the operating frequency of the USB module in the second working mode. For example, the operating frequency of the wireless communication module can be 2.4 GHz, and the USB module in the second working mode can be a mode in which the USB module works based on the USB2.0 communication protocol, and the operating frequency of the USB module is 480 MHz.

[0109] refer to Figure 5 The USB module 30 may further include an enabling switch 33, an overcurrent protection circuit 34 and a relay 35, and the USB interface 32 may further include a power terminal VBUS.

[0110] The USB control circuit 31 is also connected to the power terminal VBUS via the enable switch 33 and the overcurrent protection circuit 34 in sequence.

[0111] The overcurrent protection circuit 34 is also connected to a power supply, and the voltage of the power supply may be 5 V. When the USB module 30 communicates with the USB external device 200, the USB control circuit 31 controls the enable switch 33 to be closed, and the overcurrent protection circuit 34 provides power to the USB external device 200. When the USB module 30 does not communicate with the USB external device 200, the USB control circuit 31 controls the enable switch 33 to be opened, and the overcurrent protection circuit 34 stops providing power to the USB external device 200.

[0112] When the USB module 30 is in the first operating mode, the USB control circuit 31 controls the relay 35 to close. At this time, the enable switch 33 and the relay 35 are both closed, and the USB control circuit 31 transmits data with the USB external device 200 through the first data line SSTX-, the first data line SSTX+, the relay 35 and the first signal terminal 321.

[0113] When the USB module 30 is in the second working mode, the USB control circuit 31 controls the relay 35 to be disconnected. At this time, the enable switch 33 is closed and the relay 35 is disconnected. The USB control circuit 31 transmits data with the USB external device 200 through the second data line and the second signal terminal 322.

[0114] The controller 10 may send a mode adjustment instruction to the USB control circuit 31 , and the USB control circuit 31 may adjust the working mode of the USB module from the first working mode to the second working mode in response to the mode adjustment instruction.

[0115] During this process, the USB control circuit 31 can control the enable switch 33 to be disconnected, so that the overcurrent protection circuit 34 stops providing power to the USB external device 200, and then control the relay 35 to be disconnected to disconnect the USB control circuit 31 from the first signal terminal 321. Then, the USB control circuit 31 can control the enable switch 33 to be closed, so that the overcurrent protection circuit 34 provides power to the USB external device 200. At this time, the USB control circuit 31 transmits data with the USB external device 200 through the second signal terminal 322.

[0116] The controller adjusts the working mode of the USB module from the first working mode to the second working mode. Since the difference between the working frequency of the wireless communication module and the working frequency of the USB module in the second working mode is greater than the preset difference, the interference of the signal of the USB module on the signal of the wireless communication module can be minimized, so that the wireless signal strength is greater than or equal to the preset signal strength, thereby improving the data transmission rate of the wireless communication module.

[0117] To summarize, an embodiment of the present invention provides a control method for a USB module in an electronic device. When the wireless communication module receives data, the controller obtains the wireless signal strength of the wireless communication module. If the wireless signal strength is less than a preset signal strength and the USB module is in a first operating mode, the electromagnetic radiation energy of the USB module is reduced while keeping the operating mode of the USB module unchanged, so that the wireless signal strength is greater than or equal to the preset signal strength.

[0118] Since the difference between the working frequency of the wireless communication module and the working frequency of the USB module in the first working mode is less than or equal to the preset difference, when the wireless signal strength of the wireless communication module is less than the preset signal strength and the USB module is in the first working mode, the controller can determine that the wireless signal strength is less than the preset signal strength because the USB module generates a large noise interference to the signal of the wireless communication module. Therefore, at this time, the electromagnetic radiation energy of the USB module is reduced to make the wireless signal strength greater than or equal to the preset signal strength, which can effectively reduce the noise interference of the USB module signal to the wireless communication module signal, thereby improving the data transmission rate of the wireless communication module and avoiding the wireless communication module from being unable to transmit data. In addition, since the controller can reduce the interference to the wireless communication module by adjusting the electromagnetic radiation energy of the USB module while the working mode of the USB module remains unchanged, the method of reducing the interference to the wireless communication module is enriched and the flexibility of reducing interference is improved. In addition, the data transmission efficiency of the USB module can be maintained to a large extent.

[0119] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the control method of the USB module in the electronic device described above is implemented. For example, Figure 2 or Figure 3 The control method of the USB module in the electronic device is shown.

[0120] Figure 7 is a schematic diagram of the structure of a controller provided by an embodiment of the present invention, such as Figure 7As shown, the controller 10 may include a memory 701, a processor 702, and a computer program stored in the memory 701 and executable on the processor 702. When the processor 702 executes the computer program, the control method of the USB module in the electronic device shown in the above embodiment is implemented. For example, Figure 2 or Figure 3 The control method of the USB module in the electronic device is shown.

[0121] Figure 8 is a structural block diagram of a control device for a USB module in an electronic device provided by an embodiment of the present invention, such as Figure 8 As shown, the device comprises:

[0122] The acquisition module 801 is used to acquire the wireless signal strength of the wireless communication module when the wireless communication module receives data;

[0123] A first adjustment module 802, configured to, if the wireless signal strength is less than a preset signal strength and the USB module is in a first working mode, reduce the electromagnetic radiation energy of the USB module when the USB module is in the first working mode, so that the wireless signal strength is greater than or equal to the preset signal strength;

[0124] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first operating mode is less than or equal to a preset difference.

[0125] Optionally, the first adjustment module 802 may be used to obtain a current swing amplitude of a differential signal when the USB module is in the first working mode;

[0126] When the current swing amplitude is greater than the preset swing amplitude, the current swing amplitude is adjusted down at least once.

[0127] Optionally, the first adjustment module 802 may also be configured to obtain a current modulation frequency of the differential signal if the wireless signal strength is less than a preset signal strength after the current swing amplitude after being reduced reaches a preset swing amplitude;

[0128] The current modulation frequency is adjusted at least once within a preset frequency range.

[0129] Optional, reference Figure 8 The device may further include a second adjustment module 803, which may be used to adjust the current frequency deviation of the differential signal at least once within a preset frequency deviation range after adjusting the current modulation frequency once.

[0130] Optional, reference Figure 8 , the device may further include a third adjustment module 804, which may be used to adjust the working mode of the USB module from the first working mode to the second working mode when the wireless signal strength is less than the preset signal strength;

[0131] The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the second operating mode is greater than a preset difference.

[0132] Optionally, the third adjustment module 804 is used to send an adjustment instruction to the USB external device when receiving a differential signal transmitted by the USB external device, so that the USB external device adjusts the electromagnetic radiation energy of the USB module.

[0133] To summarize, an embodiment of the present invention provides a control device for a USB module in an electronic device. When the wireless communication module receives data, the wireless signal strength of the wireless communication module is obtained. If the wireless signal strength is less than a preset signal strength and the USB module is in a first working mode, the electromagnetic radiation energy of the USB module is reduced while keeping the working mode of the USB module unchanged, so that the wireless signal strength is greater than or equal to the preset signal strength.

[0134] Since the difference between the working frequency of the wireless communication module and the working frequency of the USB module in the first working mode is less than or equal to the preset difference, when the wireless signal strength of the wireless communication module is less than the preset signal strength and the USB module is in the first working mode, it can be determined that the wireless signal strength is less than the preset signal strength because the USB module generates a large noise interference to the signal of the wireless communication module. Therefore, at this time, the electromagnetic radiation energy of the USB module is reduced to make the wireless signal strength greater than or equal to the preset signal strength, which can effectively reduce the noise interference of the USB module signal to the wireless communication module signal, thereby improving the data transmission rate of the wireless communication module and avoiding the wireless communication module from being unable to transmit data. In addition, since the controller can reduce the interference to the wireless communication module by adjusting the electromagnetic radiation energy of the USB module when the working mode of the USB module remains unchanged, the method of reducing the interference to the wireless communication module is enriched and the flexibility of reducing interference is improved. In addition, the data transmission efficiency of the USB module can be maintained to a large extent.

[0135] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0136] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0137] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0138] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0139] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.

[0140] In the present invention, unless otherwise clearly specified or limited in the embodiments, the terms "installed", "connected", "connected" and "fixed" etc. in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific implementation situation.

[0141] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0142] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for controlling a USB module in an electronic device, characterized in that: A controller applied to an electronic device, wherein the electronic device further comprises a wireless communication module and the USB module; the method comprises: When the wireless communication module receives data, obtaining the wireless signal strength of the wireless communication module; If the wireless signal strength is less than the preset signal strength and the USB module is in the first working mode, then when the USB module is in the first working mode, the electromagnetic radiation energy of the USB module is reduced so that the wireless signal strength is greater than or equal to the preset signal strength; The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first operating mode is less than or equal to a preset difference.

2. The method according to claim 1, characterized in that Reducing the electromagnetic radiation energy of the USB module, including: Acquire a current swing amplitude of a differential signal when the USB module is in the first working mode; When the current swing amplitude is greater than the preset swing amplitude, the current swing amplitude is reduced at least once.

3. The method according to claim 2, characterized in that After the reduced current swing amplitude reaches the preset swing amplitude, if the wireless signal strength is less than the preset signal strength, reducing the electromagnetic radiation energy of the USB module, further comprising: Obtaining a current modulation frequency of the differential signal; The current modulation frequency is adjusted at least once within a preset frequency range.

4. The method according to claim 3, characterized in that After adjusting the current modulation frequency each time, the method further includes: Within a preset frequency deviation range, the current frequency deviation of the differential signal is adjusted at least once.

5. The method according to any one of claims 1 to 4, characterized in that: When the wireless signal strength is less than the preset signal strength, the method further includes: Adjusting the working mode of the USB module from the first working mode to the second working mode; Wherein, a difference between an operating frequency of the wireless communication module and an operating frequency of the USB module in the second operating mode is greater than the preset difference.

6. The method according to any one of claims 1 to 4, characterized in that: Reducing the electromagnetic radiation energy of the USB module, including: In the case of receiving a differential signal transmitted by a USB external device, an adjustment instruction is sent to the USB external device so that the USB external device reduces the electromagnetic radiation energy of the USB module.

7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for controlling a USB module in an electronic device according to any one of claims 1 to 6 is implemented.

8. A controller, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the control method of the USB module in the electronic device according to any one of claims 1 to 6 is implemented.

9. A control device for a USB module in an electronic device, characterized in that: The device comprises: An acquisition module, used to acquire the wireless signal strength of the wireless communication module when the wireless communication module receives data; an adjustment module, configured to, if the wireless signal strength is less than a preset signal strength and the USB module is in a first working mode, reduce the electromagnetic radiation energy of the USB module when the USB module is in the first working mode, so that the wireless signal strength is greater than or equal to the preset signal strength; The difference between the operating frequency of the wireless communication module and the operating frequency of the USB module in the first operating mode is less than or equal to a preset difference.

10. The device according to claim 9, characterized in that The adjustment module is used to obtain the current swing amplitude of the differential signal when the USB module is in the first working mode; When the current swing amplitude is greater than the preset swing amplitude, the current swing amplitude is reduced at least once.