WO2017088308A1 - Universal serial bus interface mode controlling method, device and storage medium - Google Patents

Universal serial bus interface mode controlling method, device and storage medium Download PDF

Info

Publication number
WO2017088308A1
WO2017088308A1 PCT/CN2016/074281 CN2016074281W WO2017088308A1 WO 2017088308 A1 WO2017088308 A1 WO 2017088308A1 CN 2016074281 W CN2016074281 W CN 2016074281W WO 2017088308 A1 WO2017088308 A1 WO 2017088308A1
Authority
WO
WIPO (PCT)
Prior art keywords
usb interface
terminal device
mode
interface mode
signal
Prior art date
Application number
PCT/CN2016/074281
Other languages
French (fr)
Chinese (zh)
Inventor
郭春燕
赵雪亮
Original Assignee
西安中兴新软件有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2017088308A1 publication Critical patent/WO2017088308A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a universal serial bus interface mode control method and apparatus, and a storage medium.
  • USB Universal Serial Bus
  • USB is an external bus standard that regulates the connection and communication between computers and external devices.
  • the USB standard has evolved over the years and is now available in multiple versions, such as USB 1.0, USB 2.0 and USB 3.0.
  • USB3.0 is a new USB specification released by Intel and industry leaders.
  • USB3.0 provides ten times the transmission speed and higher energy efficiency of USB2.0, and can be widely used for high-speed transmission of various terminal devices; and while achieving lower power consumption, USB3.0 has a higher protocol.
  • Efficiency; USB3.0 also has backward compatibility, backward compatible with USB2.0/1.0 and other versions. Therefore, in the digital age, high-speed performance and reliable interconnection are required to achieve huge data volume transmission.
  • USB3.0 can well cope with this challenge, and USB3.0 can also improve the charging efficiency of terminal devices, thereby enhancing users.
  • the USB3.0 interface is mainly applied to terminal devices such as a personal computer (Personal Computer, PC), a mobile hard disk, a USB flash drive, and a card reader.
  • USB 3.0 brings the above advantages, there are also corresponding problems.
  • the OTA parameters embodying the OTA performance are mainly divided into two categories: receiving parameters and transmitting parameters.
  • the transmission parameters include Total Radiated Power (TRP), which is obtained by averaging and averaging the transmission power of the entire radiation sphere; Near Horizon Partial Radiated Power (NHPRP), which reflects The transmit power of the antenna near the H-plane of the device.
  • TRP Total Radiated Power
  • NHSP Near Horizon Partial Radiated Power
  • Receiving parameters including isotropic sensitivity (Total Isotropic Sensitivity, TIS), this parameter is reflected in the receiving sensitivity of the entire radiation spherical device; Near Horizon Partial Isotropic Sensitivity (NHPIS) This parameter reflects the receiving sensitivity of the antenna near the H-plane. Case.
  • FIG. 1A shows that in the case that the USB interface of the data card does not transmit data, the relevant standard specifies the TIS parameter standard value that the data card should reach for the wireless signals of different frequency bands (ie, FIG. 1A).
  • the TIS parameter standard value specified in the relevant standard the TIS parameter value of the data card obtained in the actual OTA test and working in the USB3.0 interface mode (ie, the USB3.0TIS parameter value in FIG. 1A), obtained by the actual OTA test.
  • the value of the TIS parameter of the data card operating in the USB 2.0 interface mode ie, the USB 2.0 TIS parameter value in FIG. 1A
  • the difference between the TIS parameter standard value and the TIS parameter value obtained by the test are also shown in FIG.
  • 1A is the first difference, that is, the difference between the TIS parameter standard value specified by the relevant standard and the USB 2.0 TIS parameter value; and the second difference, that is, the TIS parameter standard value specified by the relevant standard and The difference between the USB3.0TIS parameter values.
  • the data card refers to a terminal device applied to a computer and using a mobile communication technology to access the Internet.
  • the data card is provided with a Subscriber Identity Module (SIM), that is, a SIM card, and the data card is connected to the Internet through the SIM card.
  • SIM Subscriber Identity Module
  • the units of the TIS parameter standard value, the USB2.0 TIS parameter value, and the USB 3.0 TIS parameter value specified by the relevant standard shown in FIG. 1A are all decibels (dB).
  • the above OTA test tools are: a data card with a USB 2.0 interface + a notebook computer, a data card with a USB 3.0 interface + a notebook computer; the above OTA test dark room is: a 3D dark room for OTA testing. According to the TIS parameter value shown in FIG.
  • the TIS of the data card operating in the USB3.0 interface mode is compared to the USB 2.0 interface.
  • the TIS of the data card of the mode decreased by 4.5 to 9.7 dB, which did not meet the TIS standard stipulated by the relevant standards; and in the wireless signals of different frequency bands tested above, the TIS decreased in the Long Term Evolution Band 5 (LTE Band 5). Most notably, the LTE Band 5 bandwidth (BW) is 10 MHz.
  • the use of the USB3.0 interface mode affects the terminal design.
  • the performance of the receiving wireless signal is such that the OTA parameter value of the terminal device using the USB3.0 interface mode does not comply with the relevant standard.
  • USB3.0 causes its spectrum to cover from 0Hz to 5GHz.
  • the terminal device will Noise is added to the wireless signal in the 0 to 5 GHz band, and about 20 dB of noise is added to the wireless signal in the 2.4 GHz band, causing radio frequency interference to the wireless signal in the 2.4 GHz band, which reduces the receiving sensitivity of the terminal device, that is, Reduce the TIS of the terminal device, thereby reducing the receiving range of the terminal device, which is enough to affect the use of 2.4GHz wireless signals of the terminal device, such as the use of 2.4GHz WiFi function, the use of 2.4GHz Bluetooth function, etc.; but the interference power of USB3.0 It will decrease with the increase of the signal frequency.
  • the interference noise in the 2.4 GHz band is about 20 dB higher than the interference noise in the 5 GHz band.
  • the use of the USB 3.0 interface mode affects the performance of the terminal device receiving the 2.4 GHz wireless signal, and the terminal device using the USB 3.0 interface mode may not be able to use the 2.4 GHz wireless signal.
  • the prior art solution to the above problem is generally to increase the absolute distance between the antenna of the terminal device and the USB 3.0 interface, or to shield the USB 3.0 interface of the terminal device to reduce the interference.
  • the above method is only applicable to some terminal devices, such as PCs, which are relatively large in size, and is not applicable to terminal devices of relatively small size such as mobile phones.
  • USB 3.0 interface mode affects the OTA performance of the terminal device, and the prior art can only solve the above problems of some terminal devices and reduce the user experience.
  • Embodiments of the present invention are directed to a universal serial bus interface mode control method and apparatus for controlling the impact of the use of a high speed USB interface mode on the performance of a terminal device OTA.
  • the embodiment of the invention discloses a universal serial bus interface mode control method, and the method comprises:
  • the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  • the determining whether the wireless working state of the terminal device meets a preset condition is specifically:
  • the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold;
  • whether the working frequency of the wireless signal of the terminal device is a determination result of the preset frequency band is specifically:
  • the terminal device accesses the network by using the wireless fidelity signal, obtaining a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band;
  • the terminal device After the terminal device registers with the mobile network signal, obtain a determination result of whether the terminal device mobile network signal works in the second preset frequency band.
  • controlling the USB interface of the terminal device to work in the first USB interface mode or the second USB interface mode includes:
  • the operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
  • controlling the USB interface of the terminal device to work in the first USB interface mode or the second USB interface mode includes:
  • the working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
  • the embodiment of the invention further discloses a universal serial bus interface mode control device, the device comprising:
  • Obtaining a module configured to obtain a determination result that the wireless working state of the terminal device meets a preset condition
  • control module configured to control, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
  • the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  • the acquiring module is further configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or, when the terminal device uses the wireless signal, obtain Whether the wireless signal operating frequency of the terminal device is the judgment result of the preset frequency band.
  • the acquiring module is further configured to: when the terminal device accesses the network by using the wireless fidelity signal, obtain a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band; or, at the terminal After the device registers with the mobile network signal, obtains a determination result of whether the mobile device network signal of the terminal device works in the second preset frequency band.
  • control module is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device; or The operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
  • control module is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to a state in which the USB interface of the terminal device currently transmits data; or And switching the working mode of the USB interface of the terminal device from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
  • a storage medium storing a computer program configured to execute the universal serial bus interface mode control method.
  • the universal serial bus interface mode control method and device obtaineds the determination result of whether the wireless working state of the terminal device satisfies the preset condition; and controls the USB interface of the terminal device to work on the first USB interface according to the determination result.
  • the working mode of the terminal device USB interface is controlled, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA can be realized, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards.
  • the terminal device configured with the high-speed USB interface can use the 2.4 GHz wireless signal, thereby improving the user experience.
  • FIG. 1A is a related parameter value of an OTA test in the related art
  • FIG. 1B is a schematic flowchart of a method for controlling a universal serial bus interface mode according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a universal serial bus interface mode control apparatus according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a specific embodiment of a universal serial bus interface mode control apparatus according to the present invention.
  • FIG. 5 is a schematic flowchart of a second embodiment of a universal serial bus interface mode control method according to a second embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a third embodiment of a method for controlling a universal serial bus interface mode according to a third embodiment of the present invention.
  • the terminal device acquires whether the wireless working state of the terminal device meets the determination result of the preset condition; and the terminal device controls the USB interface of the terminal device to work in the first USB interface mode or the second USB interface mode according to the determination result;
  • the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  • FIG. 1B is a schematic flowchart of a method for controlling a universal serial bus interface mode according to an embodiment of the present invention. As shown in FIG. 1B, the method includes:
  • Step 101 Acquire a determination result of whether the wireless working state of the terminal device meets the preset condition.
  • the wireless working state of the terminal device refers to the working state of the terminal device when the terminal device uses the wireless signal.
  • the implementation manner of this step may be mode one, mode two, or mode three.
  • the step of the terminal device may be: when the terminal device uses the mobile network signal, the terminal device acquires a determination result that the signal receiving rate of the terminal device is greater than a preset threshold.
  • the wireless working state of the terminal device is specifically a rate state in which the terminal device currently receives the mobile network signal when the terminal device uses the mobile network signal.
  • the signal receiving rate of the terminal device refers to a rate at which the terminal device receives the mobile network signal.
  • the terminal device when the terminal device uses the mobile network signal, the terminal device obtains a step of determining whether the signal receiving rate of the terminal device is greater than a preset threshold, and the implementation process may be: When the terminal device uses the mobile network signal to perform the data service, the terminal device determines whether the signal receiving rate is greater than a preset threshold; the terminal device obtains the determination result, and the determination result is that the signal receiving rate of the terminal device is not greater than a preset threshold, or is a terminal.
  • the signal receiving rate of the device is greater than a preset threshold. That is, when the terminal device uses the mobile network signal, the terminal device directly determines whether the signal receiving rate is greater than a preset threshold.
  • the terminal device when the terminal device uses the mobile network signal, the terminal device obtains a determination result that the terminal device signal receiving rate is greater than a preset threshold, and the implementation process may be: when the terminal device uses the mobile network signal to perform data service, The terminal device periodically determines whether it operates in a carrier aggregation (CA) mode; when the terminal device does not work in the carrier aggregation mode, that is, when the terminal device works in the single carrier mode, the terminal device determines that the signal receiving rate is not greater than the pre- The threshold value is set; when the terminal device works in the carrier aggregation mode, the terminal device determines whether the signal receiving rate is greater than a preset threshold; the terminal device obtains the determination result, and the determination result is that the signal receiving rate of the terminal device is not greater than a preset threshold, or The signal receiving rate of the terminal device is greater than a preset threshold.
  • CA carrier aggregation
  • the terminal device does not directly determine whether the signal receiving rate is greater than a preset threshold, but first determines whether it works in the carrier aggregation mode, so that the terminal device needs to determine the signal receiving rate when the terminal device is not working in the carrier aggregation mode. Whether it is greater than the preset threshold.
  • the foregoing process may be: when the data card uses the mobile network signal to provide the user with the Internet service, the data card periodically determines whether it works in the carrier aggregation mode; when the data card does not work in the carrier aggregation mode, When the data card works in the single carrier mode, the data card determines that the signal receiving rate is not greater than a preset threshold; when the data card works in the carrier aggregation mode, the data card determines whether the signal receiving rate is greater than a preset threshold; the data card obtains the judgment result.
  • the judgment result is that the signal receiving rate of the data card is not greater than a preset threshold, or the signal receiving rate of the data card is greater than a preset threshold.
  • the terminal device can also be other devices, such as a mobile phone. The following process is specifically described by taking a data card as an example.
  • the terminal device can determine whether it works in the carrier aggregation mode by reading the carrier mode related parameters stored therein.
  • the terminal device can determine whether the signal receiving rate is greater than a preset threshold by reading a mobile network signal receiving rate related parameter stored therein.
  • the preset threshold may be set according to a maximum data transmission rate of the second USB interface mode.
  • the second USB interface mode may refer to an interface mode of USB2.0 and below, such as a USB2.0 interface mode or a USB1.0 interface mode. In this embodiment, it may specifically be a USB2.0 interface mode. If the USB interface of the terminal device works in the USB2.0 interface mode and the maximum data transmission rate of the USB interface is 320 Mbps, the preset threshold can be set to 320 Mbps. Therefore, the terminal device can know whether the current signal receiving rate is greater than the maximum data transmission rate of the USB2.0 interface mode.
  • the mobile network signal may be a mobile network signal using a second generation, a third generation, a fourth generation or more mobile communication technologies, that is, the mobile network signal may be a mobile network such as 2G (Generation), 3G or 4G. signal.
  • the terminal device acquires whether the working frequency of the wireless signal of the terminal device is the determination result of the preset frequency band.
  • the wireless working state of the terminal device is specifically a frequency state of a wireless signal currently received or transmitted by the terminal device when the terminal device uses the wireless signal.
  • the wireless signal operating frequency of the terminal device refers to the frequency of the wireless signal currently received or transmitted by the terminal device.
  • the terminal device when the terminal device uses the wireless signal, the terminal device obtains the step of determining whether the working frequency of the wireless signal of the terminal device is the preset frequency band, and the implementation manner may be the mode I or the mode II.
  • the terminal device when the terminal device uses the wireless signal, the terminal device acquires the terminal device. Whether the working frequency of the wireless signal is the judgment result of the preset frequency band, when the terminal device accesses the network by using the wireless fidelity (WiFi) signal, the terminal device acquires whether the WiFi signal works in the first preset frequency band. critical result.
  • WiFi wireless fidelity
  • the terminal device when the terminal device accesses the network by using the WiFi signal, the terminal device obtains a determination result that the WiFi signal works in the first preset frequency band, and may include: when the terminal device uses the wired network through the WiFi signal, the terminal device The terminal device determines whether the WiFi signal works in the first preset frequency band; the terminal device obtains the determination result, and the determination result is that the WiFi signal of the terminal device works in the first preset frequency band, or the WiFi signal of the terminal device does not work in the first preset Set the frequency band.
  • the mobile phone when the mobile phone uses the wired network through the WiFi signal, the mobile phone periodically determines whether the WiFi signal works at 2.4 GHz; the mobile phone obtains the judgment result, and the judgment result is that the WiFi signal of the mobile phone works at 2.4 GHz, or the WiFi signal of the mobile phone does not work. 2.4GHz.
  • the terminal device may determine whether the WiFi signal works in the first preset frequency band by reading a WiFi signal related parameter stored therein.
  • the first preset frequency band may be set according to a strongest interference frequency band of the first USB interface mode.
  • the first USB interface mode may refer to an interface mode of USB 3.0 and above, such as a USB 3.0 interface mode or a USB 3.1 interface mode. In this embodiment, it may specifically be a USB3.0 interface mode. If the first USB interface mode is USB3.0 interface mode, and the USB interface of the terminal device works in the USB3.0 interface mode through actual measurement, the wireless signal interference to the 2.4 GHz band is the strongest, thereby affecting the terminal device 2.4 GHz wireless. For the use of the signal, the first preset frequency band can be set to 2.4 GHz. Therefore, the terminal device can learn whether the WiFi signal works in the strongest interference frequency band of the first USB interface mode by using the step 101.
  • the terminal device when the terminal device uses the wireless signal, the terminal device obtains the determination result of whether the working frequency of the wireless signal of the terminal device is the preset frequency band, and may be, after the terminal device registers with the mobile network signal, the terminal device acquires the mobile terminal. Whether the network signal works in the second preset frequency band.
  • the terminal device obtains a determination result of whether the mobile network signal works in the second preset frequency band
  • the implementation process may be: after the terminal device registers with the mobile network signal, The terminal device determines whether the mobile network signal works in the second preset frequency band; the terminal device obtains the determination result, and the determination result is that the mobile network signal of the terminal device works in the second preset frequency band, or the mobile network signal of the terminal device does not work.
  • the terminal device directly determines whether the mobile network signal works in the second preset frequency band.
  • the terminal device obtains a determination result of whether the mobile network signal works in the second preset frequency band
  • the implementation process may be, after the terminal device registers with the mobile network signal, The terminal device periodically monitors whether the registered mobile network signal belongs to the mobile network signal of 3G or above; when the registered mobile network signal does not belong to the mobile network signal of 3G or above, the terminal device determines that the mobile network signal does not work in the second The preset frequency band; when the registered mobile network signal belongs to the mobile network signal of 3G or above, the terminal device determines whether the mobile network signal works in the second preset frequency band; the terminal device obtains the determination result, and the determination result is the movement of the terminal device
  • the network signal works in the second preset frequency band, or the mobile network signal of the terminal device does not work in the second preset frequency band.
  • the terminal device After the terminal device registers with the mobile network signal, the terminal device periodically monitors whether the registered mobile network signal belongs to the mobile network signal of 3G or above; when the registered mobile network signal does not belong to the mobile network signal of 3G or above, the terminal The device determines that its mobile network signal is not working in the 2.3 GHz to 2.5 GHz frequency band; when the registered mobile network signal belongs to the mobile network signal of 3G and above, the terminal device determines whether its mobile network signal operates in the 2.3 GHz to 2.5 GHz frequency band; The device obtains a judgment result, which is that the mobile network signal of the terminal device operates in the 2.3 GHz to 2.5 GHz frequency band, or the mobile network signal of the terminal device does not operate in the 2.3 GHz to 2.5 GHz frequency band.
  • the second preset frequency band may be according to a strongest interference frequency band of the first USB interface mode.
  • the mobile network signal working frequency band is set. If the first USB interface mode is USB3.0 interface mode, and the terminal device works in the USB3.0 interface mode through actual measurement, the wireless signal interference in the 2.4 GHz band is the strongest, thereby affecting the use of the 2.4 GHz wireless signal of the terminal device.
  • the working frequency band of the mobile network signal includes: 2.3GHz to 2.5GHz frequency band, the working frequency band covers 2.4GHz, then the second preset frequency band can be set to 2.3GHz to 2.5GHz. Therefore, the terminal device can know whether the working frequency band of the mobile network signal covers the strongest interference frequency band of the first USB interface mode.
  • the method for obtaining, by the terminal device, whether the working frequency of the wireless signal of the terminal device is the determination result of the preset frequency band in addition to the mode I or the mode II described above, or other manners, such as The terminal device obtains whether its Bluetooth signal operating frequency is 2.4 GHz.
  • the third method may include: when the terminal device uses the mobile network signal, the terminal device acquires a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; and when the determining result is that the signal receiving rate is greater than a preset threshold, the terminal device Obtaining a determination result of whether the mobile network signal of the terminal device works in the second preset frequency band.
  • the setting process of the preset threshold is the same as the setting process of the preset threshold in the mode 1.
  • the setting process of the second preset frequency band described herein is the same as the setting process of the second preset frequency band in the second mode. Therefore, the terminal device can learn whether the signal receiving rate is greater than the maximum data transmission rate of the second USB interface mode and whether the working frequency band of the mobile network signal covers the strongest interference frequency band of the first USB interface mode.
  • the terminal device obtains a result that the signal receiving rate of the terminal device is not greater than a preset threshold; or the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal does not work in the second preset.
  • Step 102 Control the USB interface of the terminal device to work on the first USB interface according to the determination result. Port mode or second USB interface mode.
  • the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  • the step may be that the terminal device controls the USB interface of the terminal device to operate in the first USB interface mode or the second USB interface mode according to the determination result obtained in step 101.
  • the terminal device controls the USB interface of the terminal device to operate in the first USB interface mode or the second USB interface mode according to the determination result obtained in step 101.
  • the working mode of the terminal device USB interface is controlled, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA can be realized, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards.
  • the terminal device configured with the high-speed USB interface can use the 2.4 GHz wireless signal, thereby improving the user experience.
  • the implementation manner of this step may be the first mode, the second mode, the third mode, or the fourth mode.
  • the step may include: when the judgment result is that the signal receiving rate of the terminal device is greater than a preset threshold, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; and the result of the determination is the signal receiving rate of the terminal device.
  • the threshold is not greater than the preset threshold, the terminal device controls the USB interface of the terminal device to work in the second USB interface mode. That is, when the maximum data transmission rate of the second USB interface mode does not satisfy the signal receiving rate of the terminal device, the terminal device controls its USB interface to operate in the first USB interface mode; the maximum data transmission rate in the second USB interface mode satisfies
  • the terminal device receives the signal, the terminal device controls its USB interface to operate in the second USB interface mode.
  • the terminal device can be in the high-speed USB interface mode in real time, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA is controlled, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards;
  • the use of the high-speed USB interface mode by the terminal device and the requirements of the relevant standard for the OTA parameters of the terminal device are controlled.
  • the maximum data transmission rate in the USB2.0 interface mode does not satisfy the number.
  • the data card can control its USB interface to work in the USB3.0 interface mode; when the maximum data transmission rate in the USB2.0 interface mode satisfies the signal receiving rate of the data card, the data card can be controlled. Its USB interface works in USB2.0 interface mode.
  • the data card can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the data card OTA is controlled, so that the OTA parameters of the data card configured with the USB3.0 interface comply with relevant standards; To a certain extent, the use of the data card to the USB3.0 interface mode and the requirements of the relevant standards for the OTA parameters of the terminal device are taken into account.
  • the step may include: when the judgment result is that the WiFi signal of the terminal device is not working in the first preset frequency band, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; When the WiFi signal works in the first preset frequency band, the terminal device controls the USB interface of the terminal device to work in the second USB interface mode. That is, when the WiFi signal of the terminal device does not work in the strongest interference band of the first USB interface mode, the terminal device controls its USB interface to work in the first USB interface mode; the WiFi signal of the terminal device works in the first USB interface mode. In the strongest interference band, the terminal device controls its USB interface to work in the second USB interface mode.
  • the terminal device can be in the high-speed USB interface mode in real time, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA is controlled, so that the terminal device configured with the high-speed USB interface can use the WiFi signal of the 2.4 GHz band;
  • the use of the terminal device for the high-speed USB interface mode and the WiFi signal for the 2.4 GHz band is taken into account.
  • the mobile phone when the WiFi signal of the mobile phone does not work in the 2.4 GHz band, the mobile phone can control its USB interface to work in the USB 3.0 interface mode; when the WiFi signal of the mobile phone works in the 2.4 GHz band, the mobile phone can be controlled. Its USB interface works in USB2.0 interface mode. Therefore, the mobile phone can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the mobile phone OTA is controlled, so that the mobile phone configured with the USB3.0 interface can use the WiFi signal of the 2.4 GHz band; Take care of the phone to USB3.0 interface mode and Use of WiFi signals in the 2.4 GHz band.
  • the step may include: when the mobile network signal of the terminal device is not working in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; When the mobile network signal works in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work in the second USB interface mode. That is, when the working frequency band of the mobile network signal of the terminal device does not cover the strongest interference frequency band of the first USB interface mode, the terminal device controls its USB interface to work in the first USB interface mode; the working frequency band of the mobile network signal of the terminal device When covering the strongest interference band of the first USB interface mode, the terminal device controls its USB interface to operate in the second USB interface mode.
  • the terminal device can be in the high-speed USB interface mode in real time, and control the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA, so that the terminal device configured with the high-speed USB interface can use the mobile network signal of the 2.4 GHz band; To a certain extent, the use of terminal equipment for high-speed USB interface mode and mobile network signals for the 2.4 GHz band is considered.
  • the mobile phone when the mobile network signal of the mobile phone does not cover the 2.4 GHz band, the mobile phone controls its USB interface to work in the USB 3.0 interface mode; in the working frequency band of the mobile network signal of the mobile phone, it covers 2.4 GHz. In the frequency band, the mobile phone controls its USB interface to work in the USB2.0 interface mode.
  • the mobile phone can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the mobile phone OTA is controlled, so that the mobile phone signal with the 2.4 GHz band can be used for the mobile phone configured with the USB 3.0 interface, thereby avoiding Due to the use of the USB3.0 interface mode, the mobile network signal is weakened or interrupted, which affects the communication quality of the mobile phone; to a certain extent, the use of the mobile phone to the USB3.0 interface mode and the mobile network signal of the 2.4 GHz band is taken into account.
  • the step may include: when the judgment result is that the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal does not work in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; the result of the judgment is the terminal device When the signal receiving rate is not greater than the preset threshold, or the result of the determination is that the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal operates in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work. Two USB interface modes.
  • the terminal device controls the USB.
  • the interface works in the first USB interface mode; the maximum data transmission rate in the second USB interface mode satisfies the signal receiving rate of the terminal device, or the maximum data transmission rate in the second USB interface mode does not satisfy the signal receiving of the terminal device.
  • the rate, and the working frequency band of the mobile network signal covers the strongest interference band of the first USB interface mode, and the terminal device controls its USB interface to work in the second USB interface mode.
  • the terminal device can be in the high-speed USB interface mode in real time, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA is controlled, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards, and the high-speed is configured.
  • the terminal device of the USB interface can use the mobile network signal of the 2.4 GHz band; to a certain extent, the terminal device uses the high-speed USB interface mode, the mobile network signal of the 2.4 GHz band, and the relevant standard for the OTA parameters of the terminal device. Claim.
  • the maximum data transmission rate in the USB2.0 interface mode does not satisfy the signal receiving rate of the mobile phone, and the working frequency band of the mobile network signal does not cover the 2.4 GHz band, and the mobile phone controls its USB interface to work on the USB3. .0 interface mode; the maximum data transmission rate in the USB2.0 interface mode, when the signal receiving rate of the mobile phone is satisfied, or the maximum data transmission rate in the USB2.0 interface mode does not satisfy the signal receiving rate of the mobile phone, and the mobile network
  • the working frequency band of the signal covers the 2.4GHz frequency band
  • the mobile phone controls its USB interface to work in the USB2.0 interface mode.
  • the mobile phone can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the mobile phone OTA is controlled, so that the OTA parameters of the mobile phone configured with the USB3.0 interface comply with relevant standards, and the USB3 is configured.
  • .0 interface mobile phone can use 2.4GHz frequency The mobile network signal of the segment; to a certain extent, the use of the mobile phone to the USB3.0 interface mode, the use of the mobile network signal in the 2.4 GHz band, and the requirements of the relevant standards for the OTA parameters of the mobile phone.
  • the USB interface of the control terminal device in the step 102 works in the first USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the second USB interface mode; and currently works on the USB interface. In the second USB interface mode, the terminal device switches the working mode of the USB interface from the second USB interface mode to the first USB interface mode; the USB interface does not currently work in the second USB interface mode, and operates on the first USB interface. In the mode, the terminal device does not perform the switch USB interface mode operation.
  • the USB interface of the control terminal device in the step 102 works in the second USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the first USB interface mode; and currently works on the USB interface. In the first USB interface mode, the terminal device switches the working mode of the USB interface from the first USB interface mode to the second USB interface mode; the USB interface does not currently work in the first USB interface mode, and works on the second USB interface. In the mode, the terminal device does not perform the switch USB interface mode operation.
  • the terminal device can determine whether the USB interface currently works in the first USB interface mode or the second USB interface mode by reading the reported USB related information.
  • the reported USB related information refers to information about the USB itself that the first terminal device actively reports to the second terminal device in order to perform data transmission with the second terminal device through the USB interface.
  • the USB related information includes at least selected USB interface mode information, and may also include identification information and model information of the USB interface.
  • the first terminal device stores the reported USB related information therein, and the USB interface of the first terminal device works in the selected USB interface mode of the USB related information.
  • the USB interface of the control terminal device in the step 102 works in the first USB interface mode or
  • the second USB interface mode may include: the terminal device switches the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the current state of the data transmitted by the USB interface of the terminal device; or, the terminal device The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
  • the USB interface of the control terminal device works in the first USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the second USB interface mode; and the USB interface does not currently work in the second USB interface mode.
  • the terminal device does not perform the switching USB interface mode operation; when the USB interface is currently working in the second USB interface mode, the terminal device determines whether the USB interface is currently transmitting data; the USB interface is currently not When transmitting data, the terminal device switches the working mode of the USB interface from the second USB interface mode to the first USB interface mode; when the USB interface is currently transmitting data, the terminal device returns to perform the determination to determine whether the USB interface is currently being transfer data.
  • the USB interface of the control terminal device works in the second USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the first USB interface mode; and the USB interface does not currently work in the first USB interface mode.
  • the terminal device does not perform the switching USB interface mode operation; when the USB interface is currently working in the first USB interface mode, the terminal device determines whether the USB interface is currently transmitting data; the USB interface is currently not When transmitting data, the terminal device switches the working mode of its USB interface from the first USB interface mode to the second USB interface mode; when the USB interface is currently transmitting data, the terminal device returns to perform the determination to determine whether the USB interface is currently being transfer data.
  • the USB interface of the control terminal device in the step 102 works in the first USB interface mode or the second USB interface mode, and may include, by re-enumerating the USB interface of the terminal device, the terminal device The working mode of the USB interface of the terminal device is switched from the second USB interface mode to the first USB interface mode; or the terminal device is re-enumerated by the end The USB interface of the terminal device switches the working mode of the USB interface of the terminal device from the first USB interface mode to the second USB interface mode.
  • the manner of re-enumerating the USB interface of the terminal device is a manner of re-reporting the selected USB interface mode information.
  • the USB interface of the terminal device can work in the reselected USB interface mode.
  • the terminal device may be a terminal device such as a data card or a mobile phone.
  • the present invention discloses a universal serial bus interface mode control device.
  • the universal serial bus interface mode control apparatus includes:
  • the obtaining module 201 is configured to obtain a determination result that the wireless working state of the terminal device meets a preset condition
  • the control module 202 is configured to control, according to the determination result, that the USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
  • the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  • the acquiring module 201 is further configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or, when the terminal device uses the wireless signal, acquire the terminal. Whether the wireless signal working frequency of the device is the judgment result of the preset frequency band.
  • the acquiring module 201 is further configured to: when the terminal device accesses the network by using the wireless fidelity signal, obtain a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band; or, in the terminal device After registering to the mobile network signal, obtaining a determination result of whether the mobile device network signal of the terminal device works in the second preset frequency band.
  • control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device; or The operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
  • control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the current state of the data transmitted by the USB interface of the terminal device; or The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
  • the acquiring module 201 and the control module 202 may each be a Central Processing Unit (CPU), a Micro Processor Unit (MPU), and a Digital Signal Processor (Digital Signal Processor) located in the terminal. , DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 3 is a schematic structural diagram of a specific embodiment of a universal serial bus interface mode control apparatus according to the present invention. As shown in FIG. 3, the method specifically includes: an obtaining module and a control module 202.
  • the acquiring module includes a mobile network signal monitoring module. 301 and WiFi signal monitoring module 302;
  • the mobile network signal monitoring module 301 is configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or configured to acquire the terminal after the terminal device registers with the mobile network signal Whether the device mobile network signal works in the second preset frequency band.
  • the WiFi signal monitoring module 302 is configured to obtain, when the terminal device accesses the network by using the wireless fidelity signal, whether the wireless fidelity signal of the terminal device works in the first preset frequency band.
  • the control module 202 is configured to control, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
  • the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  • control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device.
  • the operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
  • control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the current state of the data transmitted by the USB interface of the terminal device; or,
  • the working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
  • the mobile network signal monitoring module 301, the WiFi signal monitoring module 302, and the control module 202 may each be a Central Processing Unit (CPU) or a Micro Processor Unit (MPU) located in the terminal. , Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 4 is a schematic flowchart of a first embodiment of a universal serial bus interface mode control method according to the present invention. As shown in FIG. 4, the specific steps include:
  • Step 401 When the terminal device uses the mobile network signal to perform data service, periodically determine whether the terminal device operates in a carrier aggregation mode. When the terminal device works in the carrier aggregation mode, step 402 is performed; otherwise, step 403 is performed.
  • Step 402 Determine whether the signal receiving rate of the terminal device is greater than a preset threshold. When the signal receiving rate of the terminal device is greater than the preset threshold, step 404 is performed; otherwise, step 403 is performed.
  • the preset threshold may be based on a maximum data transmission rate of the USB2.0 interface mode. Line settings. If the USB interface of the terminal device works in the USB2.0 interface mode and the maximum data transmission rate of the USB interface is 320 Mbps, the preset threshold can be set to 320 Mbps.
  • Step 403 Determine whether the USB interface of the terminal device is currently working in the USB3.0 interface mode. When the USB interface currently works in the USB3.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB2.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
  • Step 404 Determine whether the USB interface of the terminal device currently works in the USB2.0 interface mode. When the USB interface currently works in the USB2.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB3.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
  • FIG. 5 is a schematic flowchart of a second embodiment of a universal serial bus interface mode control method according to the present invention. As shown in FIG. 5, the specific steps include:
  • Step 501 When the terminal device uses the wired network through the WiFi signal, periodically determine whether the WiFi signal operates at 2.4 GHz. When the WiFi signal operates at 2.4 GHz, step 502 is performed; otherwise, step 503 is performed.
  • Step 502 Determine whether the USB interface of the terminal device currently works in the USB3.0 interface mode. When the USB interface currently works in the USB3.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB2.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
  • Step 503 Determine whether the USB interface of the terminal device currently works in the USB2.0 interface mode. When the USB interface currently works in the USB2.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB3.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
  • FIG. 6 is a schematic flowchart of a third embodiment of a method for controlling a universal serial bus interface mode according to the present invention. As shown in FIG. 6, the specific steps include:
  • Step 601 After the terminal device registers with the mobile network signal, periodically monitor whether the mobile network signal registered by the terminal device belongs to a mobile network signal of 3G or higher. When the registered mobile network signal belongs to the mobile network signal of 3G or above, step 602 is performed; otherwise, step 604 is performed.
  • Step 602 Determine whether the mobile network signal registered by the terminal device works in the second preset frequency band. When the mobile network signal works in the second preset frequency band, step 603 is performed; otherwise, step 604 is performed.
  • the second preset frequency band may be set according to the strongest interference frequency band of the USB3.0 interface mode and the working frequency band of the mobile network signal. If the terminal device works in the USB3.0 interface mode through actual measurement, the wireless signal interference to the 2.4 GHz band is the strongest, thereby affecting the use of the 2.4 GHz wireless signal of the terminal device; and the working frequency band of the mobile network signal includes: 2.3 GHz to In the 2.5 GHz band, which covers 2.4 GHz, the second preset band can be set from 2.3 GHz to 2.5 GHz.
  • Step 603 Determine whether the USB interface of the terminal device currently works in the USB3.0 interface mode. When the USB interface currently works in the USB3.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB2.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
  • Step 604 Determine whether the USB interface of the terminal device currently works in the USB2.0 interface mode. When the USB interface currently works in the USB2.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB3.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
  • the embodiment of the invention further describes a storage medium in which a computer program is stored, the computer program being configured to execute the universal serial bus interface mode control method of the foregoing embodiments.
  • the invention controls the working mode of the terminal device USB interface according to the wireless working state of the terminal device, and can control the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards. And make A terminal device equipped with a high-speed USB interface can use a 2.4 GHz wireless signal to improve user experience.

Abstract

Disclosed in an embodiment of the present invention is a universal serial bus interface (USB) mode controlling method, the method comprises: acquiring a determination result as to whether a wireless operation state of a terminal device satisfies a preset condition; controlling a USB interface to operate in a first USB interface mode or a second USB interface mode according to the determination result; wherein, a transmission rate of the first USB interface mode is greater than a transmission rate of the second USB interface mode. The present invention further discloses a control device of USB interface mode, and a storage medium.

Description

一种通用串行总线接口模式控制方法及装置、存储介质Universal serial bus interface mode control method and device, and storage medium 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种通用串行总线接口模式控制方法及装置、存储介质。The present invention relates to the field of communications technologies, and in particular, to a universal serial bus interface mode control method and apparatus, and a storage medium.
背景技术Background technique
通用串行总线(Universal Serial Bus,USB)是外部总线标准,用于规范计算机与外部设备的连接和通讯。USB标准经历多年的发展,现已存在多种版本,如USB1.0、USB2.0及USB3.0等版本。其中,USB3.0是由英特尔公司(Intel)和业界领先公司一起携手发布的USB新规范。USB3.0提供了十倍于USB2.0的传输速度和更高的节能效率,可广泛用于各种终端设备的高速传输;且在实现更低能耗的同时,USB3.0拥有更高的协议效率;USB3.0还具有向下兼容特性,向下兼容USB2.0/1.0等版本。因此,在数字时代需高速的性能和可靠的互联实现庞大数据量传输的情况下,USB3.0可以很好地应对这一挑战,同时USB3.0还可以提升终端设备的充电效率,从而提升用户的体验度。目前USB3.0接口主要应用于个人计算机(Personal Computer,PC)、移动硬盘、USB闪存盘及读卡器等终端设备。The Universal Serial Bus (USB) is an external bus standard that regulates the connection and communication between computers and external devices. The USB standard has evolved over the years and is now available in multiple versions, such as USB 1.0, USB 2.0 and USB 3.0. Among them, USB3.0 is a new USB specification released by Intel and industry leaders. USB3.0 provides ten times the transmission speed and higher energy efficiency of USB2.0, and can be widely used for high-speed transmission of various terminal devices; and while achieving lower power consumption, USB3.0 has a higher protocol. Efficiency; USB3.0 also has backward compatibility, backward compatible with USB2.0/1.0 and other versions. Therefore, in the digital age, high-speed performance and reliable interconnection are required to achieve huge data volume transmission. USB3.0 can well cope with this challenge, and USB3.0 can also improve the charging efficiency of terminal devices, thereby enhancing users. The degree of experience. At present, the USB3.0 interface is mainly applied to terminal devices such as a personal computer (Personal Computer, PC), a mobile hard disk, a USB flash drive, and a card reader.
但USB3.0在带来上述优点的同时,也存在相应的问题,如USB3.0的使用会影响终端设备的空中下载(Over The Air,OTA)性能,即影响设备的整机辐射性能。体现该OTA性能的OTA参数主要分为两类:接收参数和发射参数。发射参数包括辐射总功率(Total Radiated Power,TRP),该参数通过对整个辐射球面的发射功率进行面积分并取平均得到;近地平线部分辐射功率(Near Horizon Partial Radiated Power,NHPRP),该参数反映在设备的H面附近天线的发射功率情况。接收参数包括各向同性灵敏度 (Total Isotropic Sensitivity,TIS),该参数反映在整个辐射球面设备接收灵敏度的情况;近水平局部各向同性敏感性(Near Horizon Partial Isotropic Sensitivity,NHPIS)该参数反映设备在H面附近天线的接收灵敏度的情况。However, while USB 3.0 brings the above advantages, there are also corresponding problems. For example, the use of USB 3.0 will affect the over-the-air (OTA) performance of the terminal device, that is, affect the overall radiation performance of the device. The OTA parameters embodying the OTA performance are mainly divided into two categories: receiving parameters and transmitting parameters. The transmission parameters include Total Radiated Power (TRP), which is obtained by averaging and averaging the transmission power of the entire radiation sphere; Near Horizon Partial Radiated Power (NHPRP), which reflects The transmit power of the antenna near the H-plane of the device. Receiving parameters including isotropic sensitivity (Total Isotropic Sensitivity, TIS), this parameter is reflected in the receiving sensitivity of the entire radiation spherical device; Near Horizon Partial Isotropic Sensitivity (NHPIS) This parameter reflects the receiving sensitivity of the antenna near the H-plane. Case.
具体地,如图1A所示,图1A示出了在数据卡的USB接口不传输数据的情况下,对于不同频段的无线信号,相关标准规定数据卡应该达到的TIS参数标准值(即图1A中的相关标准规定的TIS参数标准值),实际OTA测试获得的、工作在USB3.0接口模式的数据卡的TIS参数值(即图1A中的USB3.0TIS参数值),实际OTA测试获得的、工作在USB2.0接口模式的数据卡的TIS参数值(即图1A中的USB2.0TIS参数值),及该TIS参数标准值与该测试获得的TIS参数值之间的差值。图1A中还示出了第一差值,即相关标准规定的TIS参数标准值与USB2.0TIS参数值的差值;还示出了第二差值,即相关标准规定的TIS参数标准值与USB3.0TIS参数值的差值。Specifically, as shown in FIG. 1A, FIG. 1A shows that in the case that the USB interface of the data card does not transmit data, the relevant standard specifies the TIS parameter standard value that the data card should reach for the wireless signals of different frequency bands (ie, FIG. 1A). The TIS parameter standard value specified in the relevant standard), the TIS parameter value of the data card obtained in the actual OTA test and working in the USB3.0 interface mode (ie, the USB3.0TIS parameter value in FIG. 1A), obtained by the actual OTA test. The value of the TIS parameter of the data card operating in the USB 2.0 interface mode (ie, the USB 2.0 TIS parameter value in FIG. 1A), and the difference between the TIS parameter standard value and the TIS parameter value obtained by the test. Also shown in FIG. 1A is the first difference, that is, the difference between the TIS parameter standard value specified by the relevant standard and the USB 2.0 TIS parameter value; and the second difference, that is, the TIS parameter standard value specified by the relevant standard and The difference between the USB3.0TIS parameter values.
其中,数据卡是指应用于计算机并采用移动通信技术接入互联网的终端设备。具体地,数据卡内设有客户识别模块(Subscriber Identity Module,SIM),即SIM卡,数据卡是通过SIM卡接入互联网的。图1A所示出的相关标准规定的TIS参数标准值、USB2.0TIS参数值及USB3.0TIS参数值的单位均为分贝(decibel,dB)。上述OTA测试工具为:具有USB2.0接口的数据卡+笔记本电脑,具有USB3.0接口的数据卡+笔记本电脑;上述OTA测试暗室为:进行OTA测试的3D暗室。通过图1A所示的TIS参数值可知,在自由空间的3D暗室,且USB接口不传输数据的情况下,工作在USB3.0接口模式的数据卡的TIS,相比于工作在USB2.0接口模式的数据卡的TIS下降了4.5~9.7dB,不符合相关标准规定的TIS标准;且在上述测试的不同频段无线信号中,TIS在长期演进第五频段(Long Term Evolution Band5,LTE Band5)下降的最显著,该LTE Band5频带宽度(Band width,BW)为10MHz。由上述描述可知,USB3.0接口模式的使用影响了终端设 备接收无线信号的性能,导致使用USB3.0接口模式的终端设备的OTA参数值不符合相关标准。Among them, the data card refers to a terminal device applied to a computer and using a mobile communication technology to access the Internet. Specifically, the data card is provided with a Subscriber Identity Module (SIM), that is, a SIM card, and the data card is connected to the Internet through the SIM card. The units of the TIS parameter standard value, the USB2.0 TIS parameter value, and the USB 3.0 TIS parameter value specified by the relevant standard shown in FIG. 1A are all decibels (dB). The above OTA test tools are: a data card with a USB 2.0 interface + a notebook computer, a data card with a USB 3.0 interface + a notebook computer; the above OTA test dark room is: a 3D dark room for OTA testing. According to the TIS parameter value shown in FIG. 1A, in the free space 3D darkroom, and the USB interface does not transmit data, the TIS of the data card operating in the USB3.0 interface mode is compared to the USB 2.0 interface. The TIS of the data card of the mode decreased by 4.5 to 9.7 dB, which did not meet the TIS standard stipulated by the relevant standards; and in the wireless signals of different frequency bands tested above, the TIS decreased in the Long Term Evolution Band 5 (LTE Band 5). Most notably, the LTE Band 5 bandwidth (BW) is 10 MHz. As can be seen from the above description, the use of the USB3.0 interface mode affects the terminal design. The performance of the receiving wireless signal is such that the OTA parameter value of the terminal device using the USB3.0 interface mode does not comply with the relevant standard.
且根据Intel方面公布的信息可知,USB3.0的扩频处理导致其频谱从0Hz一直覆盖到5GHz;经测量,在终端设备的USB接口工作在USB3.0接口模式传输数据时,终端设备会在0~5GHz频段的无线信号上增加噪声,且在2.4GHz频段的无线信号上会增加约20dB的噪声,造成对2.4GHz频段无线信号的射频干扰,这种干扰会降低终端设备的接收灵敏度,即降低终端设备的TIS,进而缩减了终端设备的收讯范围,足以影响终端设备2.4GHz无线信号的使用,如2.4GHz WiFi功能的使用、2.4GHz蓝牙功能的使用等;但USB3.0的干扰功率会随信号频率的上升而下降,如在2.4GHz频段的干扰噪声比5GHz频段的干扰噪声高出约20dB左右。由上述描述可知,USB3.0接口模式的使用影响了终端设备接收2.4GHz无线信号的性能,导致使用USB3.0接口模式的终端设备可能无法使用2.4GHz无线信号。According to the information released by Intel, the spread spectrum processing of USB3.0 causes its spectrum to cover from 0Hz to 5GHz. After measurement, when the USB interface of the terminal device works in USB3.0 interface mode, the terminal device will Noise is added to the wireless signal in the 0 to 5 GHz band, and about 20 dB of noise is added to the wireless signal in the 2.4 GHz band, causing radio frequency interference to the wireless signal in the 2.4 GHz band, which reduces the receiving sensitivity of the terminal device, that is, Reduce the TIS of the terminal device, thereby reducing the receiving range of the terminal device, which is enough to affect the use of 2.4GHz wireless signals of the terminal device, such as the use of 2.4GHz WiFi function, the use of 2.4GHz Bluetooth function, etc.; but the interference power of USB3.0 It will decrease with the increase of the signal frequency. For example, the interference noise in the 2.4 GHz band is about 20 dB higher than the interference noise in the 5 GHz band. As can be seen from the above description, the use of the USB 3.0 interface mode affects the performance of the terminal device receiving the 2.4 GHz wireless signal, and the terminal device using the USB 3.0 interface mode may not be able to use the 2.4 GHz wireless signal.
现有技术解决上述问题的方式通常为,增加终端设备的天线与USB3.0接口的绝对距离,或对终端设备的USB3.0接口进行屏蔽处理来减轻上述干扰。但上述方式仅适用于部分终端设备,如PC机等尺寸比较大的终端设备,而对于手机等尺寸比较小的终端设备并不适用。The prior art solution to the above problem is generally to increase the absolute distance between the antenna of the terminal device and the USB 3.0 interface, or to shield the USB 3.0 interface of the terminal device to reduce the interference. However, the above method is only applicable to some terminal devices, such as PCs, which are relatively large in size, and is not applicable to terminal devices of relatively small size such as mobile phones.
综上所述,USB3.0接口模式的使用会影响终端设备的OTA性能,而现有技术只能解决部分终端设备存在的上述问题,降低用户的体验度。In summary, the use of the USB 3.0 interface mode affects the OTA performance of the terminal device, and the prior art can only solve the above problems of some terminal devices and reduce the user experience.
发明内容Summary of the invention
本发明实施例期望提供一种通用串行总线接口模式控制方法及装置,以控制高速USB接口模式的使用对终端设备OTA性能的影响。Embodiments of the present invention are directed to a universal serial bus interface mode control method and apparatus for controlling the impact of the use of a high speed USB interface mode on the performance of a terminal device OTA.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例公开了一种通用串行总线接口模式控制方法,所述方法包括: The embodiment of the invention discloses a universal serial bus interface mode control method, and the method comprises:
获取终端设备的无线工作状态是否满足预设条件的判断结果;Obtaining a determination result of whether the wireless working state of the terminal device meets a preset condition;
根据所述判断结果控制所述终端设备的通用串行总线USB接口工作在第一USB接口模式或第二USB接口模式;Controlling, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
其中,所述第一USB接口模式的传输速率大于所述第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
作为一种实现方式,所述获取终端设备的无线工作状态是否满足预设条件的判断结果,具体为:As an implementation manner, the determining whether the wireless working state of the terminal device meets a preset condition is specifically:
在终端设备使用移动网络信号时,获取终端设备的信号接收速率是否大于预设阈值的判断结果;或者,When the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or
在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果。When the terminal device uses the wireless signal, whether the working frequency of the wireless signal of the terminal device is the judgment result of the preset frequency band is obtained.
作为一种实现方式,所述在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果,具体为:As an implementation manner, when the terminal device uses the wireless signal, whether the working frequency of the wireless signal of the terminal device is a determination result of the preset frequency band is specifically:
在终端设备使用无线保真信号接入网络时,获取终端设备无线保真信号是否工作在第一预设频段的判断结果;或者,When the terminal device accesses the network by using the wireless fidelity signal, obtaining a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band; or
在终端设备注册到移动网络信号后,获取终端设备移动网络信号是否工作在第二预设频段的判断结果。After the terminal device registers with the mobile network signal, obtain a determination result of whether the terminal device mobile network signal works in the second preset frequency band.
作为一种实现方式,所述控制所述终端设备的USB接口工作在第一USB接口模式或第二USB接口模式,包括:As an implementation manner, the controlling the USB interface of the terminal device to work in the first USB interface mode or the second USB interface mode includes:
通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,Switching the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device; or
通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
作为一种实现方式,所述控制所述终端设备的USB接口工作在第一USB接口模式或第二USB接口模式,包括: As an implementation manner, the controlling the USB interface of the terminal device to work in the first USB interface mode or the second USB interface mode includes:
根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,Switching the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the state of the current data transmission of the USB interface of the terminal device; or
根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
本发明实施例还公开了一种通用串行总线接口模式控制装置,所述装置包括:The embodiment of the invention further discloses a universal serial bus interface mode control device, the device comprising:
获取模块,配置为获取终端设备的无线工作状态是否满足预设条件的判断结果;Obtaining a module, configured to obtain a determination result that the wireless working state of the terminal device meets a preset condition;
控制模块,配置为根据所述判断结果控制所述终端设备的通用串行总线USB接口工作在第一USB接口模式或第二USB接口模式;a control module, configured to control, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
其中,所述第一USB接口模式的传输速率大于所述第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
作为一种实现方式,所述获取模块,还配置为在终端设备使用移动网络信号时,获取终端设备的信号接收速率是否大于预设阈值的判断结果;或者,在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果。As an implementation manner, the acquiring module is further configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or, when the terminal device uses the wireless signal, obtain Whether the wireless signal operating frequency of the terminal device is the judgment result of the preset frequency band.
作为一种实现方式,所述获取模块,还配置为在终端设备使用无线保真信号接入网络时,获取终端设备无线保真信号是否工作在第一预设频段的判断结果;或者,在终端设备注册到移动网络信号后,获取终端设备移动网络信号是否工作在第二预设频段的判断结果。As an implementation manner, the acquiring module is further configured to: when the terminal device accesses the network by using the wireless fidelity signal, obtain a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band; or, at the terminal After the device registers with the mobile network signal, obtains a determination result of whether the mobile device network signal of the terminal device works in the second preset frequency band.
作为一种实现方式,所述控制模块,还配置为通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。 As an implementation manner, the control module is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device; or The operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
作为一种实现方式,所述控制模块,还配置为根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。As an implementation manner, the control module is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to a state in which the USB interface of the terminal device currently transmits data; or And switching the working mode of the USB interface of the terminal device from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行所述的通用串行总线接口模式控制方法。A storage medium storing a computer program configured to execute the universal serial bus interface mode control method.
本发明实施例提供的一种通用串行总线接口模式控制方法及装置,获取终端设备的无线工作状态是否满足预设条件的判断结果;根据判断结果控制终端设备的USB接口工作在第一USB接口模式或第二USB接口模式;其中,第一USB接口模式的传输速率大于第二USB接口模式的传输速率。如此,根据终端设备的无线工作状态控制终端设备USB接口的工作模式,能实现控制高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备的OTA参数符合相关标准,及使得配置了高速USB接口的终端设备可以使用2.4GHz无线信号,提升了用户的体验度。The universal serial bus interface mode control method and device provided by the embodiment of the invention obtains the determination result of whether the wireless working state of the terminal device satisfies the preset condition; and controls the USB interface of the terminal device to work on the first USB interface according to the determination result. The mode or the second USB interface mode; wherein the transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode. In this way, according to the wireless working state of the terminal device, the working mode of the terminal device USB interface is controlled, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA can be realized, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards. And the terminal device configured with the high-speed USB interface can use the 2.4 GHz wireless signal, thereby improving the user experience.
附图说明DRAWINGS
图1A为相关技术中OTA测试的相关参数值;FIG. 1A is a related parameter value of an OTA test in the related art; FIG.
图1B为本发明实施例提供的一种通用串行总线接口模式控制方法的流程示意图;1B is a schematic flowchart of a method for controlling a universal serial bus interface mode according to an embodiment of the present invention;
图2为本发明实施例提供的一种通用串行总线接口模式控制装置的结构示意图;2 is a schematic structural diagram of a universal serial bus interface mode control apparatus according to an embodiment of the present invention;
图3为本发明提供的一种通用串行总线接口模式控制装置具体实施例的结构示意图;3 is a schematic structural diagram of a specific embodiment of a universal serial bus interface mode control apparatus according to the present invention;
图4为本发明提供的一种通用串行总线接口模式控制方法具体实施例 一的流程示意图;4 is a specific embodiment of a universal serial bus interface mode control method provided by the present invention a schematic diagram of the process;
图5为本发明提供的一种通用串行总线接口模式控制方法具体实施例二的流程示意图;5 is a schematic flowchart of a second embodiment of a universal serial bus interface mode control method according to a second embodiment of the present invention;
图6为本发明提供的一种通用串行总线接口模式控制方法具体实施例三的流程示意图。FIG. 6 is a schematic flowchart of a third embodiment of a method for controlling a universal serial bus interface mode according to a third embodiment of the present invention.
具体实施方式detailed description
在本发明实施例中,终端设备获取终端设备的无线工作状态是否满足预设条件的判断结果;终端设备根据判断结果控制终端设备的USB接口工作在第一USB接口模式或第二USB接口模式;其中,第一USB接口模式的传输速率大于第二USB接口模式的传输速率。In the embodiment of the present invention, the terminal device acquires whether the wireless working state of the terminal device meets the determination result of the preset condition; and the terminal device controls the USB interface of the terminal device to work in the first USB interface mode or the second USB interface mode according to the determination result; The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
下面结合附图和具体实施例,对本发明进一步详细说明。The present invention will be further described in detail below with reference to the drawings and specific embodiments.
图1B为本发明实施例提供的一种通用串行总线接口模式控制方法的流程示意图,如图1B所示,该方法包括:FIG. 1B is a schematic flowchart of a method for controlling a universal serial bus interface mode according to an embodiment of the present invention. As shown in FIG. 1B, the method includes:
步骤101:获取终端设备的无线工作状态是否满足预设条件的判断结果。Step 101: Acquire a determination result of whether the wireless working state of the terminal device meets the preset condition.
需说明的是,所述终端设备的无线工作状态是指在终端设备使用无线信号时,终端设备的工作状态。It should be noted that the wireless working state of the terminal device refers to the working state of the terminal device when the terminal device uses the wireless signal.
具体地,本步骤的实现方式可以为方式一、方式二或方式三。Specifically, the implementation manner of this step may be mode one, mode two, or mode three.
方式一,本步骤可以为,在终端设备使用移动网络信号时,终端设备获取终端设备的信号接收速率是否大于预设阈值的判断结果。In the first step, the step of the terminal device may be: when the terminal device uses the mobile network signal, the terminal device acquires a determination result that the signal receiving rate of the terminal device is greater than a preset threshold.
需说明的是,在方式一中,所述终端设备的无线工作状态具体为在终端设备使用移动网络信号时,终端设备当前接收移动网络信号的速率状态。所述终端设备的信号接收速率是指终端设备接收移动网络信号的速率。It should be noted that, in the first method, the wireless working state of the terminal device is specifically a rate state in which the terminal device currently receives the mobile network signal when the terminal device uses the mobile network signal. The signal receiving rate of the terminal device refers to a rate at which the terminal device receives the mobile network signal.
具体地,所述在终端设备使用移动网络信号时,终端设备获取终端设备的信号接收速率是否大于预设阈值的判断结果步骤,实现过程可以为, 在终端设备使用移动网络信号进行数据业务时,终端设备判断其信号接收速率是否大于预设阈值;终端设备获得判断结果,该判断结果为终端设备的信号接收速率不大于预设阈值,或者为终端设备的信号接收速率大于预设阈值。即在终端设备使用移动网络信号时,终端设备直接判断其信号接收速率是否大于预设阈值。Specifically, when the terminal device uses the mobile network signal, the terminal device obtains a step of determining whether the signal receiving rate of the terminal device is greater than a preset threshold, and the implementation process may be: When the terminal device uses the mobile network signal to perform the data service, the terminal device determines whether the signal receiving rate is greater than a preset threshold; the terminal device obtains the determination result, and the determination result is that the signal receiving rate of the terminal device is not greater than a preset threshold, or is a terminal. The signal receiving rate of the device is greater than a preset threshold. That is, when the terminal device uses the mobile network signal, the terminal device directly determines whether the signal receiving rate is greater than a preset threshold.
具体地,所述在终端设备使用移动网络信号时,终端设备获取终端设备信号接收速率是否大于预设阈值的判断结果步骤,实现过程或者可以为,在终端设备使用移动网络信号进行数据业务时,终端设备定时判断其是否工作在载波聚合(Carrier Aggregation,CA)模式;在终端设备未工作在载波聚合模式时,即在终端设备工作在单载波模式时,终端设备判定其信号接收速率不大于预设阈值;在终端设备工作在载波聚合模式时,终端设备判断其信号接收速率是否大于预设阈值;终端设备获得判断结果,该判断结果为终端设备的信号接收速率不大于预设阈值,或者为终端设备的信号接收速率大于预设阈值。即终端设备不直接判断其信号接收速率是否大于预设阈值,而是首先判断其是否工作在载波聚合模式,从而避免在终端设备未工作在载波聚合模式时,终端设备还需判断其信号接收速率是否大于预设阈值。Specifically, when the terminal device uses the mobile network signal, the terminal device obtains a determination result that the terminal device signal receiving rate is greater than a preset threshold, and the implementation process may be: when the terminal device uses the mobile network signal to perform data service, The terminal device periodically determines whether it operates in a carrier aggregation (CA) mode; when the terminal device does not work in the carrier aggregation mode, that is, when the terminal device works in the single carrier mode, the terminal device determines that the signal receiving rate is not greater than the pre- The threshold value is set; when the terminal device works in the carrier aggregation mode, the terminal device determines whether the signal receiving rate is greater than a preset threshold; the terminal device obtains the determination result, and the determination result is that the signal receiving rate of the terminal device is not greater than a preset threshold, or The signal receiving rate of the terminal device is greater than a preset threshold. That is, the terminal device does not directly determine whether the signal receiving rate is greater than a preset threshold, but first determines whether it works in the carrier aggregation mode, so that the terminal device needs to determine the signal receiving rate when the terminal device is not working in the carrier aggregation mode. Whether it is greater than the preset threshold.
如若终端设备为数据卡,上述过程可以为,在数据卡使用移动网络信号为用户提供上网服务时,数据卡定时判断其是否工作在载波聚合模式;在数据卡未工作在载波聚合模式时,即数据卡工作在单载波模式时,数据卡判定其信号接收速率不大于预设阈值;在数据卡工作在载波聚合模式时,数据卡判断其信号接收速率是否大于预设阈值;数据卡获得判断结果,该判断结果为数据卡的信号接收速率不大于预设阈值,或者为数据卡的信号接收速率大于预设阈值。当然,所述终端设备还可以为其它设备,如手机,这里仅是以数据卡为例具体说明下上述过程。 If the terminal device is a data card, the foregoing process may be: when the data card uses the mobile network signal to provide the user with the Internet service, the data card periodically determines whether it works in the carrier aggregation mode; when the data card does not work in the carrier aggregation mode, When the data card works in the single carrier mode, the data card determines that the signal receiving rate is not greater than a preset threshold; when the data card works in the carrier aggregation mode, the data card determines whether the signal receiving rate is greater than a preset threshold; the data card obtains the judgment result. The judgment result is that the signal receiving rate of the data card is not greater than a preset threshold, or the signal receiving rate of the data card is greater than a preset threshold. Of course, the terminal device can also be other devices, such as a mobile phone. The following process is specifically described by taking a data card as an example.
需说明的是,所述终端设备可以通过读取其内存储的载波模式相关参数,来判断其是否工作在载波聚合模式。所述终端设备可以通过读取其内存储的移动网络信号接收速率相关参数,来判断其信号接收速率是否大于预设阈值。It should be noted that the terminal device can determine whether it works in the carrier aggregation mode by reading the carrier mode related parameters stored therein. The terminal device can determine whether the signal receiving rate is greater than a preset threshold by reading a mobile network signal receiving rate related parameter stored therein.
其中,所述预设阈值可以根据第二USB接口模式的最大数据传输速率进行设置。所述第二USB接口模式可以是指USB2.0及以下版本的接口模式,如USB2.0接口模式或USB1.0接口模式。在本实施例中具体可以为USB2.0接口模式。如若通过实际测量获得,终端设备的USB接口工作在USB2.0接口模式时,该USB接口的最大数据传输速率为320Mbps,则该预设阈值即可设置为320Mbps。从而使得终端设备可以通过本步骤101获知,其当前的信号接收速率是否大于USB2.0接口模式的最大数据传输速率。The preset threshold may be set according to a maximum data transmission rate of the second USB interface mode. The second USB interface mode may refer to an interface mode of USB2.0 and below, such as a USB2.0 interface mode or a USB1.0 interface mode. In this embodiment, it may specifically be a USB2.0 interface mode. If the USB interface of the terminal device works in the USB2.0 interface mode and the maximum data transmission rate of the USB interface is 320 Mbps, the preset threshold can be set to 320 Mbps. Therefore, the terminal device can know whether the current signal receiving rate is greater than the maximum data transmission rate of the USB2.0 interface mode.
其中,所述移动网络信号可以为,利用了第二代、第三代、第四代或以上移动通信技术的移动网络信号,即移动网络信号可以为2G(Generation)、3G或4G等移动网络信号。The mobile network signal may be a mobile network signal using a second generation, a third generation, a fourth generation or more mobile communication technologies, that is, the mobile network signal may be a mobile network such as 2G (Generation), 3G or 4G. signal.
方式二,本步骤可以为,在终端设备使用无线信号时,终端设备获取终端设备的无线信号工作频率是否为预设频段的判断结果。In the second manner, in this step, when the terminal device uses the wireless signal, the terminal device acquires whether the working frequency of the wireless signal of the terminal device is the determination result of the preset frequency band.
需说明的是,在方式二中,所述终端设备的无线工作状态具体为在终端设备使用无线信号时,终端设备当前接收或发射的无线信号的频率状态。所述终端设备的无线信号工作频率是指终端设备当前接收或发射的无线信号的频率。It should be noted that, in the second mode, the wireless working state of the terminal device is specifically a frequency state of a wireless signal currently received or transmitted by the terminal device when the terminal device uses the wireless signal. The wireless signal operating frequency of the terminal device refers to the frequency of the wireless signal currently received or transmitted by the terminal device.
具体地,所述在终端设备使用无线信号时,终端设备获取终端设备的无线信号工作频率是否为预设频段的判断结果步骤,实现方式可以为方式Ⅰ或方式Ⅱ。Specifically, when the terminal device uses the wireless signal, the terminal device obtains the step of determining whether the working frequency of the wireless signal of the terminal device is the preset frequency band, and the implementation manner may be the mode I or the mode II.
方式Ⅰ,所述在终端设备使用无线信号时,终端设备获取终端设备的 无线信号工作频率是否为预设频段的判断结果,可以为,在终端设备使用无线保真(Wireless Fidelity,WiFi)信号接入网络时,终端设备获取其WiFi信号是否工作在第一预设频段的判断结果。In the mode 1, when the terminal device uses the wireless signal, the terminal device acquires the terminal device. Whether the working frequency of the wireless signal is the judgment result of the preset frequency band, when the terminal device accesses the network by using the wireless fidelity (WiFi) signal, the terminal device acquires whether the WiFi signal works in the first preset frequency band. critical result.
具体地,所述在终端设备使用WiFi信号接入网络时,终端设备获取其WiFi信号是否工作在第一预设频段的判断结果,可以包括,在终端设备通过WiFi信号使用有线网络时,终端设备定时判断该WiFi信号是否工作在第一预设频段;终端设备获得判断结果,该判断结果为终端设备的WiFi信号工作在第一预设频段,或者为终端设备的WiFi信号未工作在第一预设频段。如在手机通过WiFi信号使用有线网络时,手机定时判断该WiFi信号是否工作在2.4GHz;手机获得判断结果,该判断结果为手机的WiFi信号工作在2.4GHz,或者为手机的WiFi信号未工作在2.4GHz。Specifically, when the terminal device accesses the network by using the WiFi signal, the terminal device obtains a determination result that the WiFi signal works in the first preset frequency band, and may include: when the terminal device uses the wired network through the WiFi signal, the terminal device The terminal device determines whether the WiFi signal works in the first preset frequency band; the terminal device obtains the determination result, and the determination result is that the WiFi signal of the terminal device works in the first preset frequency band, or the WiFi signal of the terminal device does not work in the first preset Set the frequency band. For example, when the mobile phone uses the wired network through the WiFi signal, the mobile phone periodically determines whether the WiFi signal works at 2.4 GHz; the mobile phone obtains the judgment result, and the judgment result is that the WiFi signal of the mobile phone works at 2.4 GHz, or the WiFi signal of the mobile phone does not work. 2.4GHz.
需说明的是,所述终端设备可以通过读取其内存储的WiFi信号相关参数,来判断该WiFi信号是否工作在第一预设频段。It should be noted that the terminal device may determine whether the WiFi signal works in the first preset frequency band by reading a WiFi signal related parameter stored therein.
其中,所述第一预设频段可以根据第一USB接口模式的最强干扰频段进行设置。所述第一USB接口模式可以是指USB3.0及以上版本的接口模式,如USB3.0接口模式或USB3.1接口模式。在本实施例中具体可以为USB3.0接口模式。如若第一USB接口模式为USB3.0接口模式,且通过实际测量获得终端设备的USB接口工作在USB3.0接口模式时,对2.4GHz频段的无线信号干扰最强,从而影响终端设备2.4GHz无线信号的使用,则该第一预设频段即可设置为2.4GHz。从而使得终端设备可以通过本步骤101获知,其WiFi信号是否工作在第一USB接口模式的最强干扰频段。The first preset frequency band may be set according to a strongest interference frequency band of the first USB interface mode. The first USB interface mode may refer to an interface mode of USB 3.0 and above, such as a USB 3.0 interface mode or a USB 3.1 interface mode. In this embodiment, it may specifically be a USB3.0 interface mode. If the first USB interface mode is USB3.0 interface mode, and the USB interface of the terminal device works in the USB3.0 interface mode through actual measurement, the wireless signal interference to the 2.4 GHz band is the strongest, thereby affecting the terminal device 2.4 GHz wireless. For the use of the signal, the first preset frequency band can be set to 2.4 GHz. Therefore, the terminal device can learn whether the WiFi signal works in the strongest interference frequency band of the first USB interface mode by using the step 101.
方式Ⅱ,所述在终端设备使用无线信号时,终端设备获取终端设备的无线信号工作频率是否为预设频段的判断结果,可以为,在终端设备注册到移动网络信号后,终端设备获取其移动网络信号是否工作在第二预设频段的判断结果。 In the mode II, when the terminal device uses the wireless signal, the terminal device obtains the determination result of whether the working frequency of the wireless signal of the terminal device is the preset frequency band, and may be, after the terminal device registers with the mobile network signal, the terminal device acquires the mobile terminal. Whether the network signal works in the second preset frequency band.
具体地,所述在终端设备注册到移动网络信号后,终端设备获取其移动网络信号是否工作在第二预设频段的判断结果步骤,实现过程可以为,在终端设备注册到移动网络信号后,终端设备判断其移动网络信号是否工作在第二预设频段;终端设备获得判断结果,该判断结果为终端设备的移动网络信号工作在第二预设频段,或者为终端设备的移动网络信号未工作在第二预设频段。即在终端设备注册到移动网络信号后,终端设备直接判断其移动网络信号是否工作在第二预设频段。Specifically, after the terminal device registers with the mobile network signal, the terminal device obtains a determination result of whether the mobile network signal works in the second preset frequency band, and the implementation process may be: after the terminal device registers with the mobile network signal, The terminal device determines whether the mobile network signal works in the second preset frequency band; the terminal device obtains the determination result, and the determination result is that the mobile network signal of the terminal device works in the second preset frequency band, or the mobile network signal of the terminal device does not work. In the second preset frequency band. That is, after the terminal device registers with the mobile network signal, the terminal device directly determines whether the mobile network signal works in the second preset frequency band.
具体地,所述在终端设备注册到移动网络信号后,终端设备获取其移动网络信号是否工作在第二预设频段的判断结果步骤,实现过程或者可以为,在终端设备注册到移动网络信号后,终端设备定时监测其注册的移动网络信号是否属于3G及以上的移动网络信号;在注册的移动网络信号不属于3G及以上的移动网络信号时,终端设备判定其移动网络信号未工作在第二预设频段;在注册的移动网络信号属于3G及以上的移动网络信号时,终端设备判断其移动网络信号是否工作在第二预设频段;终端设备获得判断结果,该判断结果为终端设备的移动网络信号工作在第二预设频段,或者为终端设备的移动网络信号未工作在第二预设频段。Specifically, after the terminal device registers with the mobile network signal, the terminal device obtains a determination result of whether the mobile network signal works in the second preset frequency band, and the implementation process may be, after the terminal device registers with the mobile network signal, The terminal device periodically monitors whether the registered mobile network signal belongs to the mobile network signal of 3G or above; when the registered mobile network signal does not belong to the mobile network signal of 3G or above, the terminal device determines that the mobile network signal does not work in the second The preset frequency band; when the registered mobile network signal belongs to the mobile network signal of 3G or above, the terminal device determines whether the mobile network signal works in the second preset frequency band; the terminal device obtains the determination result, and the determination result is the movement of the terminal device The network signal works in the second preset frequency band, or the mobile network signal of the terminal device does not work in the second preset frequency band.
如在终端设备注册到移动网络信号后,终端设备定时监测其注册的移动网络信号,是否属于3G及以上的移动网络信号;在注册的移动网络信号不属于3G及以上的移动网络信号时,终端设备判定其移动网络信号未工作在2.3GHz至2.5GHz频段;在注册的移动网络信号属于3G及以上的移动网络信号时,终端设备判断其移动网络信号是否工作在2.3GHz至2.5GHz频段;终端设备获得判断结果,该判断结果为终端设备的移动网络信号工作在2.3GHz至2.5GHz频段,或者为终端设备的移动网络信号未工作在2.3GHz至2.5GHz频段。For example, after the terminal device registers with the mobile network signal, the terminal device periodically monitors whether the registered mobile network signal belongs to the mobile network signal of 3G or above; when the registered mobile network signal does not belong to the mobile network signal of 3G or above, the terminal The device determines that its mobile network signal is not working in the 2.3 GHz to 2.5 GHz frequency band; when the registered mobile network signal belongs to the mobile network signal of 3G and above, the terminal device determines whether its mobile network signal operates in the 2.3 GHz to 2.5 GHz frequency band; The device obtains a judgment result, which is that the mobile network signal of the terminal device operates in the 2.3 GHz to 2.5 GHz frequency band, or the mobile network signal of the terminal device does not operate in the 2.3 GHz to 2.5 GHz frequency band.
其中,所述第二预设频段可以根据第一USB接口模式的最强干扰频段, 及移动网络信号工作频段进行设置。如若第一USB接口模式为USB3.0接口模式,且通过实际测量获得终端设备工作在USB3.0接口模式时,对2.4GHz频段的无线信号干扰最强,从而影响终端设备2.4GHz无线信号的使用;且移动网络信号的工作频段包括:2.3GHz至2.5GHz频段,该工作频段覆盖了2.4GHz,则该第二预设频段即可设置为2.3GHz至2.5GHz。从而使得终端设备可以通过本步骤101获知,其移动网络信号的工作频段是否覆盖第一USB接口模式的最强干扰频段。The second preset frequency band may be according to a strongest interference frequency band of the first USB interface mode. And the mobile network signal working frequency band is set. If the first USB interface mode is USB3.0 interface mode, and the terminal device works in the USB3.0 interface mode through actual measurement, the wireless signal interference in the 2.4 GHz band is the strongest, thereby affecting the use of the 2.4 GHz wireless signal of the terminal device. And the working frequency band of the mobile network signal includes: 2.3GHz to 2.5GHz frequency band, the working frequency band covers 2.4GHz, then the second preset frequency band can be set to 2.3GHz to 2.5GHz. Therefore, the terminal device can know whether the working frequency band of the mobile network signal covers the strongest interference frequency band of the first USB interface mode.
需说明的是,所述终端设备获取终端设备的无线信号工作频率是否为预设频段的判断结果步骤的实现方式,除了上述所述的方式Ⅰ或方式Ⅱ外,或者还可以为其它方式,如终端设备获取其蓝牙信号工作频率是否为2.4GHz。It should be noted that, the method for obtaining, by the terminal device, whether the working frequency of the wireless signal of the terminal device is the determination result of the preset frequency band, in addition to the mode I or the mode II described above, or other manners, such as The terminal device obtains whether its Bluetooth signal operating frequency is 2.4 GHz.
方式三,本步骤可以包括,在终端设备使用移动网络信号时,终端设备获取终端设备的信号接收速率是否大于预设阈值的判断结果;在判断结果为信号接收速率大于预设阈值时,终端设备获取终端设备的移动网络信号是否工作在第二预设频段的判断结果。The third method may include: when the terminal device uses the mobile network signal, the terminal device acquires a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; and when the determining result is that the signal receiving rate is greater than a preset threshold, the terminal device Obtaining a determination result of whether the mobile network signal of the terminal device works in the second preset frequency band.
其中,此处所述预设阈值的设置过程与方式一中预设阈值的设置过程相同。此处所述的第二预设频段的设置过程与方式二中第二预设频段的设置过程相同。从而使得终端设备可以通过本步骤101获知,其信号接收速率是否大于第二USB接口模式的最大数据传输速率,及其移动网络信号的工作频段是否覆盖第一USB接口模式的最强干扰频段。The setting process of the preset threshold is the same as the setting process of the preset threshold in the mode 1. The setting process of the second preset frequency band described herein is the same as the setting process of the second preset frequency band in the second mode. Therefore, the terminal device can learn whether the signal receiving rate is greater than the maximum data transmission rate of the second USB interface mode and whether the working frequency band of the mobile network signal covers the strongest interference frequency band of the first USB interface mode.
具体地,所述终端设备获得的判断结果为,终端设备的信号接收速率不大于预设阈值;或者,终端设备的信号接收速率大于预设阈值,且该移动网络信号未工作在第二预设频段;或者,终端设备的信号接收速率大于预设阈值,且该移动网络信号工作在第二预设频段。Specifically, the terminal device obtains a result that the signal receiving rate of the terminal device is not greater than a preset threshold; or the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal does not work in the second preset. The frequency band; or, the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal operates in the second preset frequency band.
步骤102:根据判断结果控制终端设备的USB接口工作在第一USB接 口模式或第二USB接口模式。Step 102: Control the USB interface of the terminal device to work on the first USB interface according to the determination result. Port mode or second USB interface mode.
其中,所述第一USB接口模式的传输速率大于第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
具体地,本步骤可以为,终端设备根据步骤101获得的判断结果控制终端设备的USB接口工作在第一USB接口模式或第二USB接口模式。如此,根据终端设备的无线工作状态控制终端设备USB接口的工作模式,能实现控制高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备的OTA参数符合相关标准,及使得配置了高速USB接口的终端设备可以使用2.4GHz无线信号,提升了用户的体验度。Specifically, the step may be that the terminal device controls the USB interface of the terminal device to operate in the first USB interface mode or the second USB interface mode according to the determination result obtained in step 101. In this way, according to the wireless working state of the terminal device, the working mode of the terminal device USB interface is controlled, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA can be realized, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards. And the terminal device configured with the high-speed USB interface can use the 2.4 GHz wireless signal, thereby improving the user experience.
具体地,本步骤的实现方式可以为,方式一、方式二、方式三或方式四。Specifically, the implementation manner of this step may be the first mode, the second mode, the third mode, or the fourth mode.
方式一,本步骤可以包括,在判断结果为终端设备的信号接收速率大于预设阈值时,终端设备控制终端设备的USB接口工作在第一USB接口模式;在判断结果为终端设备的信号接收速率不大于预设阈值时,终端设备控制终端设备的USB接口工作在第二USB接口模式。即在第二USB接口模式的最大数据传输速率,不满足终端设备的信号接收速率时,终端设备控制其USB接口工作在第一USB接口模式;在第二USB接口模式的最大数据传输速率,满足终端设备的信号接收速率时,终端设备控制其USB接口工作在第二USB接口模式。从而使得终端设备可以不实时处于高速USB接口模式,控制了高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备的OTA参数符合相关标准;在一定程度上兼顾了终端设备对高速USB接口模式的使用及相关标准对终端设备的OTA参数的要求。In the first step, the step may include: when the judgment result is that the signal receiving rate of the terminal device is greater than a preset threshold, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; and the result of the determination is the signal receiving rate of the terminal device. When the threshold is not greater than the preset threshold, the terminal device controls the USB interface of the terminal device to work in the second USB interface mode. That is, when the maximum data transmission rate of the second USB interface mode does not satisfy the signal receiving rate of the terminal device, the terminal device controls its USB interface to operate in the first USB interface mode; the maximum data transmission rate in the second USB interface mode satisfies When the terminal device receives the signal, the terminal device controls its USB interface to operate in the second USB interface mode. Therefore, the terminal device can be in the high-speed USB interface mode in real time, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA is controlled, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards; The use of the high-speed USB interface mode by the terminal device and the requirements of the relevant standard for the OTA parameters of the terminal device.
如以数据卡为例,在USB2.0接口模式的最大数据传输速率,不满足数 据卡的信号接收速率时,数据卡即可控制其USB接口工作在USB3.0接口模式;在USB2.0接口模式的最大数据传输速率,满足数据卡的信号接收速率时,数据卡即可控制其USB接口工作在USB2.0接口模式。从而使得数据卡可以不实时处于USB3.0接口模式,控制了USB3.0接口模式的使用对数据卡OTA性能的影响,使得配置了USB3.0接口的数据卡的OTA参数符合相关标准;在一定程度上兼顾了数据卡对USB3.0接口模式的使用及相关标准对终端设备的OTA参数的要求。For example, in the case of a data card, the maximum data transmission rate in the USB2.0 interface mode does not satisfy the number. According to the signal receiving rate of the card, the data card can control its USB interface to work in the USB3.0 interface mode; when the maximum data transmission rate in the USB2.0 interface mode satisfies the signal receiving rate of the data card, the data card can be controlled. Its USB interface works in USB2.0 interface mode. Therefore, the data card can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the data card OTA is controlled, so that the OTA parameters of the data card configured with the USB3.0 interface comply with relevant standards; To a certain extent, the use of the data card to the USB3.0 interface mode and the requirements of the relevant standards for the OTA parameters of the terminal device are taken into account.
方式二,本步骤可以包括,在判断结果为终端设备的WiFi信号未工作在第一预设频段时,终端设备控制终端设备的USB接口工作在第一USB接口模式;在判断结果为终端设备的WiFi信号工作在第一预设频段时,终端设备控制终端设备的USB接口工作在第二USB接口模式。即在终端设备的WiFi信号未工作在第一USB接口模式的最强干扰频段时,终端设备控制其USB接口工作在第一USB接口模式;在终端设备的WiFi信号工作在第一USB接口模式的最强干扰频段时,终端设备控制其USB接口工作在第二USB接口模式。从而使得终端设备可以不实时处于高速USB接口模式,控制了高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备可以使用2.4GHz频段的WiFi信号;在一定程度上兼顾了终端设备对高速USB接口模式及对2.4GHz频段的WiFi信号的使用。In the second method, the step may include: when the judgment result is that the WiFi signal of the terminal device is not working in the first preset frequency band, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; When the WiFi signal works in the first preset frequency band, the terminal device controls the USB interface of the terminal device to work in the second USB interface mode. That is, when the WiFi signal of the terminal device does not work in the strongest interference band of the first USB interface mode, the terminal device controls its USB interface to work in the first USB interface mode; the WiFi signal of the terminal device works in the first USB interface mode. In the strongest interference band, the terminal device controls its USB interface to work in the second USB interface mode. Therefore, the terminal device can be in the high-speed USB interface mode in real time, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA is controlled, so that the terminal device configured with the high-speed USB interface can use the WiFi signal of the 2.4 GHz band; The use of the terminal device for the high-speed USB interface mode and the WiFi signal for the 2.4 GHz band is taken into account.
如以手机为例,在手机的WiFi信号未工作在2.4GHz频段时,手机即可控制其USB接口工作在USB3.0接口模式;在手机的WiFi信号工作在2.4GHz频段时,手机即可控制其USB接口工作在USB2.0接口模式。从而使得手机可以不实时处于USB3.0接口模式,控制了USB3.0接口模式的使用对手机OTA性能的影响,使得配置了USB3.0接口的手机可以使用2.4GHz频段的WiFi信号;在一定程度上兼顾了手机对USB3.0接口模式及 对2.4GHz频段的WiFi信号的使用。For example, in the case of a mobile phone, when the WiFi signal of the mobile phone does not work in the 2.4 GHz band, the mobile phone can control its USB interface to work in the USB 3.0 interface mode; when the WiFi signal of the mobile phone works in the 2.4 GHz band, the mobile phone can be controlled. Its USB interface works in USB2.0 interface mode. Therefore, the mobile phone can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the mobile phone OTA is controlled, so that the mobile phone configured with the USB3.0 interface can use the WiFi signal of the 2.4 GHz band; Take care of the phone to USB3.0 interface mode and Use of WiFi signals in the 2.4 GHz band.
方式三,本步骤可以包括,在判断结果为终端设备的移动网络信号未工作在第二预设频段时,终端设备控制终端设备的USB接口工作在第一USB接口模式;在判断结果为终端设备的移动网络信号工作在第二预设频段时,终端设备控制终端设备的USB接口工作在第二USB接口模式。即在终端设备的移动网络信号的工作频段,未覆盖第一USB接口模式的最强干扰频段时,终端设备控制其USB接口工作在第一USB接口模式;在终端设备的移动网络信号的工作频段,覆盖了第一USB接口模式的最强干扰频段时,终端设备控制其USB接口工作在第二USB接口模式。从而使得终端设备可以不实时处于高速USB接口模式,控制了高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备可以使用2.4GHz频段的移动网络信号;在一定程度上兼顾了终端设备对高速USB接口模式及对2.4GHz频段的移动网络信号的使用。In the third method, the step may include: when the mobile network signal of the terminal device is not working in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; When the mobile network signal works in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work in the second USB interface mode. That is, when the working frequency band of the mobile network signal of the terminal device does not cover the strongest interference frequency band of the first USB interface mode, the terminal device controls its USB interface to work in the first USB interface mode; the working frequency band of the mobile network signal of the terminal device When covering the strongest interference band of the first USB interface mode, the terminal device controls its USB interface to operate in the second USB interface mode. Therefore, the terminal device can be in the high-speed USB interface mode in real time, and control the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA, so that the terminal device configured with the high-speed USB interface can use the mobile network signal of the 2.4 GHz band; To a certain extent, the use of terminal equipment for high-speed USB interface mode and mobile network signals for the 2.4 GHz band is considered.
如以手机为例,在手机的移动网络信号的工作频段,未覆盖2.4GHz频段时,手机控制其USB接口工作在USB3.0接口模式;在手机的移动网络信号的工作频段,覆盖了2.4GHz频段时,手机控制其USB接口工作在USB2.0接口模式。从而使得手机可以不实时处于USB3.0接口模式,控制了USB3.0接口模式的使用对手机OTA性能的影响,使得配置了USB3.0接口的手机可以使用2.4GHz频段的移动网络信号,避免了因USB3.0接口模式的使用导致该移动网络信号变弱或中断,影响手机通信质量;在一定程度上兼顾了手机对USB3.0接口模式及对2.4GHz频段的移动网络信号的使用。For example, in the case of a mobile phone, when the mobile network signal of the mobile phone does not cover the 2.4 GHz band, the mobile phone controls its USB interface to work in the USB 3.0 interface mode; in the working frequency band of the mobile network signal of the mobile phone, it covers 2.4 GHz. In the frequency band, the mobile phone controls its USB interface to work in the USB2.0 interface mode. Therefore, the mobile phone can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the mobile phone OTA is controlled, so that the mobile phone signal with the 2.4 GHz band can be used for the mobile phone configured with the USB 3.0 interface, thereby avoiding Due to the use of the USB3.0 interface mode, the mobile network signal is weakened or interrupted, which affects the communication quality of the mobile phone; to a certain extent, the use of the mobile phone to the USB3.0 interface mode and the mobile network signal of the 2.4 GHz band is taken into account.
方式四,本步骤可以包括,在判断结果为终端设备的信号接收速率大于预设阈值,且该移动网络信号未工作在第二预设频段时,终端设备控制终端设备的USB接口工作在第一USB接口模式;在判断结果为终端设备的 信号接收速率不大于预设阈值时,或判断结果为终端设备的信号接收速率大于预设阈值,且该移动网络信号工作在第二预设频段时,终端设备控制终端设备的USB接口工作在第二USB接口模式。即在第二USB接口模式的最大数据传输速率,不满足终端设备的信号接收速率,且该移动网络信号的工作频段,未覆盖第一USB接口模式的最强干扰频段时,终端设备控制其USB接口工作在第一USB接口模式;在第二USB接口模式的最大数据传输速率,满足终端设备的信号接收速率时,或者在第二USB接口模式的最大数据传输速率,不满足终端设备的信号接收速率,且该移动网络信号的工作频段,覆盖了第一USB接口模式的最强干扰频段时,终端设备控制其USB接口工作在第二USB接口模式。In the fourth method, the step may include: when the judgment result is that the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal does not work in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work in the first USB interface mode; the result of the judgment is the terminal device When the signal receiving rate is not greater than the preset threshold, or the result of the determination is that the signal receiving rate of the terminal device is greater than a preset threshold, and the mobile network signal operates in the second preset frequency band, the terminal device controls the USB interface of the terminal device to work. Two USB interface modes. That is, when the maximum data transmission rate in the second USB interface mode does not satisfy the signal receiving rate of the terminal device, and the working frequency band of the mobile network signal does not cover the strongest interference band of the first USB interface mode, the terminal device controls the USB. The interface works in the first USB interface mode; the maximum data transmission rate in the second USB interface mode satisfies the signal receiving rate of the terminal device, or the maximum data transmission rate in the second USB interface mode does not satisfy the signal receiving of the terminal device The rate, and the working frequency band of the mobile network signal covers the strongest interference band of the first USB interface mode, and the terminal device controls its USB interface to work in the second USB interface mode.
从而使得终端设备可以不实时处于高速USB接口模式,控制了高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备的OTA参数符合相关标准,及使得配置了高速USB接口的终端设备可以使用2.4GHz频段的移动网络信号;在一定程度上兼顾了终端设备对高速USB接口模式、对2.4GHz频段的移动网络信号的使用,及相关标准对终端设备的OTA参数的要求。Therefore, the terminal device can be in the high-speed USB interface mode in real time, and the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA is controlled, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards, and the high-speed is configured. The terminal device of the USB interface can use the mobile network signal of the 2.4 GHz band; to a certain extent, the terminal device uses the high-speed USB interface mode, the mobile network signal of the 2.4 GHz band, and the relevant standard for the OTA parameters of the terminal device. Claim.
如以手机为例,在USB2.0接口模式的最大数据传输速率,不满足手机的信号接收速率,且该移动网络信号的工作频段,未覆盖2.4GHz频段时,手机控制其USB接口工作在USB3.0接口模式;在USB2.0接口模式的最大数据传输速率,满足手机的信号接收速率时,或者在USB2.0接口模式的最大数据传输速率,不满足手机的信号接收速率,且该移动网络信号的工作频段,覆盖了2.4GHz频段时,手机控制其USB接口工作在USB2.0接口模式。从而使得手机可以不实时处于USB3.0接口模式,控制了USB3.0接口模式的使用对手机OTA性能的影响,使得配置了USB3.0接口的手机的OTA参数符合相关标准,及使得配置了USB3.0接口的手机可以使用2.4GHz频 段的移动网络信号;在一定程度上兼顾了手机对USB3.0接口模式、对2.4GHz频段的移动网络信号的使用,及相关标准对手机的OTA参数的要求。For example, in the case of a mobile phone, the maximum data transmission rate in the USB2.0 interface mode does not satisfy the signal receiving rate of the mobile phone, and the working frequency band of the mobile network signal does not cover the 2.4 GHz band, and the mobile phone controls its USB interface to work on the USB3. .0 interface mode; the maximum data transmission rate in the USB2.0 interface mode, when the signal receiving rate of the mobile phone is satisfied, or the maximum data transmission rate in the USB2.0 interface mode does not satisfy the signal receiving rate of the mobile phone, and the mobile network When the working frequency band of the signal covers the 2.4GHz frequency band, the mobile phone controls its USB interface to work in the USB2.0 interface mode. Therefore, the mobile phone can be in the USB3.0 interface mode in real time, and the influence of the use of the USB3.0 interface mode on the performance of the mobile phone OTA is controlled, so that the OTA parameters of the mobile phone configured with the USB3.0 interface comply with relevant standards, and the USB3 is configured. .0 interface mobile phone can use 2.4GHz frequency The mobile network signal of the segment; to a certain extent, the use of the mobile phone to the USB3.0 interface mode, the use of the mobile network signal in the 2.4 GHz band, and the requirements of the relevant standards for the OTA parameters of the mobile phone.
需说明的是,本步骤102中的所述控制终端设备的USB接口工作在第一USB接口模式,可以包括,终端设备判断其USB接口当前是否工作在第二USB接口模式;在USB接口当前工作在第二USB接口模式时,终端设备将其USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;在USB接口当前未工作在第二USB接口模式,工作在第一USB接口模式时,终端设备不执行切换USB接口模式操作。It should be noted that the USB interface of the control terminal device in the step 102 works in the first USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the second USB interface mode; and currently works on the USB interface. In the second USB interface mode, the terminal device switches the working mode of the USB interface from the second USB interface mode to the first USB interface mode; the USB interface does not currently work in the second USB interface mode, and operates on the first USB interface. In the mode, the terminal device does not perform the switch USB interface mode operation.
需说明的是,本步骤102中的所述控制终端设备的USB接口工作在第二USB接口模式,可以包括,终端设备判断其USB接口当前是否工作在第一USB接口模式;在USB接口当前工作在第一USB接口模式时,终端设备将其USB接口的工作模式从第一USB接口模式切换至第二USB接口模式;在USB接口当前未工作在第一USB接口模式,工作在第二USB接口模式时,终端设备不执行切换USB接口模式操作。It should be noted that the USB interface of the control terminal device in the step 102 works in the second USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the first USB interface mode; and currently works on the USB interface. In the first USB interface mode, the terminal device switches the working mode of the USB interface from the first USB interface mode to the second USB interface mode; the USB interface does not currently work in the first USB interface mode, and works on the second USB interface. In the mode, the terminal device does not perform the switch USB interface mode operation.
其中,所述终端设备可以通过读取已上报的USB相关信息,来判断其USB接口当前是否工作在第一USB接口模式或第二USB接口模式。所述已上报的USB相关信息是指,第一终端设备为了通过其USB接口与第二终端设备进行数据传输,主动向第二终端设备上报的自身USB的相关信息。该USB相关信息至少包括选定的USB接口模式信息,还可以包括USB接口的标识信息及型号信息等。上报后第一终端设备会在其内存储已上报的USB相关信息,第一终端设备的USB接口工作在该USB相关信息中选定的USB接口模式。The terminal device can determine whether the USB interface currently works in the first USB interface mode or the second USB interface mode by reading the reported USB related information. The reported USB related information refers to information about the USB itself that the first terminal device actively reports to the second terminal device in order to perform data transmission with the second terminal device through the USB interface. The USB related information includes at least selected USB interface mode information, and may also include identification information and model information of the USB interface. After the report, the first terminal device stores the reported USB related information therein, and the USB interface of the first terminal device works in the selected USB interface mode of the USB related information.
需说明的是,为了保障通过终端设备USB接口传输的数据的正确性,本步骤102中的所述控制终端设备的USB接口工作在第一USB接口模式或 第二USB接口模式,可以包括,终端设备根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,终端设备根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。It should be noted that, in order to ensure the correctness of the data transmitted through the USB interface of the terminal device, the USB interface of the control terminal device in the step 102 works in the first USB interface mode or The second USB interface mode may include: the terminal device switches the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the current state of the data transmitted by the USB interface of the terminal device; or, the terminal device The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
具体地,所述控制终端设备的USB接口工作在第一USB接口模式,可以包括,终端设备判断其USB接口当前是否工作在第二USB接口模式;在USB接口当前未工作在第二USB接口模式,工作在第一USB接口模式时,终端设备不执行切换USB接口模式操作;在USB接口当前工作在第二USB接口模式时,终端设备判断其USB接口当前是否正在传输数据;在USB接口当前未在传输数据时,终端设备将其USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;在USB接口当前正在传输数据时,终端设备返回执行所述判断其USB接口当前是否正在传输数据。Specifically, the USB interface of the control terminal device works in the first USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the second USB interface mode; and the USB interface does not currently work in the second USB interface mode. When working in the first USB interface mode, the terminal device does not perform the switching USB interface mode operation; when the USB interface is currently working in the second USB interface mode, the terminal device determines whether the USB interface is currently transmitting data; the USB interface is currently not When transmitting data, the terminal device switches the working mode of the USB interface from the second USB interface mode to the first USB interface mode; when the USB interface is currently transmitting data, the terminal device returns to perform the determination to determine whether the USB interface is currently being transfer data.
具体地,所述控制终端设备的USB接口工作在第二USB接口模式,可以包括,终端设备判断其USB接口当前是否工作在第一USB接口模式;在USB接口当前未工作在第一USB接口模式,工作在第二USB接口模式时,终端设备不执行切换USB接口模式操作;在USB接口当前工作在第一USB接口模式时,终端设备判断其USB接口当前是否正在传输数据;在USB接口当前未在传输数据时,终端设备将其USB接口的工作模式从第一USB接口模式切换至第二USB接口模式;在USB接口当前正在传输数据时,终端设备返回执行所述判断其USB接口当前是否正在传输数据。Specifically, the USB interface of the control terminal device works in the second USB interface mode, and may include: the terminal device determines whether the USB interface is currently working in the first USB interface mode; and the USB interface does not currently work in the first USB interface mode. When working in the second USB interface mode, the terminal device does not perform the switching USB interface mode operation; when the USB interface is currently working in the first USB interface mode, the terminal device determines whether the USB interface is currently transmitting data; the USB interface is currently not When transmitting data, the terminal device switches the working mode of its USB interface from the first USB interface mode to the second USB interface mode; when the USB interface is currently transmitting data, the terminal device returns to perform the determination to determine whether the USB interface is currently being transfer data.
需说明的是,本步骤102中的所述控制终端设备的USB接口工作在第一USB接口模式或第二USB接口模式,可以包括,终端设备通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,终端设备通过重新枚举终 端设备的USB接口的方式,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。具体地,所述重新枚举终端设备的USB接口的方式即为重新上报选定的USB接口模式信息的方式。从而使得终端设备的USB接口可以工作在重新选定的USB接口模式。需说明的是,本实施例仅是以上述方式为例,具体说明了USB接口工作模式切换的实现,当然,也可以采用现有技术中的其它方式实现该USB接口工作模式的切换。It should be noted that the USB interface of the control terminal device in the step 102 works in the first USB interface mode or the second USB interface mode, and may include, by re-enumerating the USB interface of the terminal device, the terminal device The working mode of the USB interface of the terminal device is switched from the second USB interface mode to the first USB interface mode; or the terminal device is re-enumerated by the end The USB interface of the terminal device switches the working mode of the USB interface of the terminal device from the first USB interface mode to the second USB interface mode. Specifically, the manner of re-enumerating the USB interface of the terminal device is a manner of re-reporting the selected USB interface mode information. Thereby the USB interface of the terminal device can work in the reselected USB interface mode. It should be noted that, in this embodiment, only the foregoing manner is taken as an example, and the implementation of the USB interface working mode switching is specifically described. Of course, the switching of the USB interface working mode may also be implemented by other methods in the prior art.
其中,所述终端设备可以为数据卡或者手机等终端设备。The terminal device may be a terminal device such as a data card or a mobile phone.
为了实现上述方法,本发明公开了一种通用串行总线接口模式控制装置。In order to implement the above method, the present invention discloses a universal serial bus interface mode control device.
图2为本发明实施例提供的一种通用串行总线接口模式控制装置的结构示意图,如图2所示,所述通用串行总线接口模式控制装置包括:2 is a schematic structural diagram of a universal serial bus interface mode control apparatus according to an embodiment of the present invention. As shown in FIG. 2, the universal serial bus interface mode control apparatus includes:
获取模块201,配置为获取终端设备的无线工作状态是否满足预设条件的判断结果;The obtaining module 201 is configured to obtain a determination result that the wireless working state of the terminal device meets a preset condition;
控制模块202,配置为根据所述判断结果控制所述终端设备的USB接口工作在第一USB接口模式或第二USB接口模式;The control module 202 is configured to control, according to the determination result, that the USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
其中,所述第一USB接口模式的传输速率大于所述第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
作为一种实现方式,获取模块201,还配置为在终端设备使用移动网络信号时,获取终端设备的信号接收速率是否大于预设阈值的判断结果;或者,在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果。As an implementation manner, the acquiring module 201 is further configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or, when the terminal device uses the wireless signal, acquire the terminal. Whether the wireless signal working frequency of the device is the judgment result of the preset frequency band.
作为一种实现方式,获取模块201,还配置为在终端设备使用无线保真信号接入网络时,获取终端设备无线保真信号是否工作在第一预设频段的判断结果;或者,在终端设备注册到移动网络信号后,获取终端设备移动网络信号是否工作在第二预设频段的判断结果。 As an implementation manner, the acquiring module 201 is further configured to: when the terminal device accesses the network by using the wireless fidelity signal, obtain a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band; or, in the terminal device After registering to the mobile network signal, obtaining a determination result of whether the mobile device network signal of the terminal device works in the second preset frequency band.
作为一种实现方式,控制模块202,还配置为通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。As an implementation manner, the control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device; or The operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
作为一种实现方式,控制模块202,还配置为根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。As an implementation manner, the control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the current state of the data transmitted by the USB interface of the terminal device; or The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
在实际应用中,所述获取模块201、控制模块202均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In an actual application, the acquiring module 201 and the control module 202 may each be a Central Processing Unit (CPU), a Micro Processor Unit (MPU), and a Digital Signal Processor (Digital Signal Processor) located in the terminal. , DSP), or Field Programmable Gate Array (FPGA) implementation.
图3为本发明提供的一种通用串行总线接口模式控制装置具体实施例的结构示意图,如图3所示,具体包括:获取模块和控制模块202;其中,获取模块包括移动网络信号监测模块301及WiFi信号监测模块302;FIG. 3 is a schematic structural diagram of a specific embodiment of a universal serial bus interface mode control apparatus according to the present invention. As shown in FIG. 3, the method specifically includes: an obtaining module and a control module 202. The acquiring module includes a mobile network signal monitoring module. 301 and WiFi signal monitoring module 302;
移动网络信号监测模块301,配置为在终端设备使用移动网络信号时,获取终端设备的信号接收速率是否大于预设阈值的判断结果;或者,配置为在终端设备注册到移动网络信号后,获取终端设备移动网络信号是否工作在第二预设频段的判断结果。The mobile network signal monitoring module 301 is configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or configured to acquire the terminal after the terminal device registers with the mobile network signal Whether the device mobile network signal works in the second preset frequency band.
WiFi信号监测模块302,配置为在终端设备使用无线保真信号接入网络时,获取终端设备无线保真信号是否工作在第一预设频段的判断结果。The WiFi signal monitoring module 302 is configured to obtain, when the terminal device accesses the network by using the wireless fidelity signal, whether the wireless fidelity signal of the terminal device works in the first preset frequency band.
控制模块202,配置为根据所述判断结果控制所述终端设备的通用串行总线USB接口工作在第一USB接口模式或第二USB接口模式; The control module 202 is configured to control, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
其中,所述第一USB接口模式的传输速率大于所述第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
作为一种实现方式,所述控制模块202,还配置为通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,As an implementation manner, the control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device. or,
通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The operating mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode by re-enumerating the USB interface of the terminal device.
作为一种实现方式,所述控制模块202,还配置为根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,As an implementation manner, the control module 202 is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the current state of the data transmitted by the USB interface of the terminal device; or,
根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
在实际应用中,所述移动网络信号监测模块301、WiFi信号监测模块302、控制模块202均可由位于终端中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In a practical application, the mobile network signal monitoring module 301, the WiFi signal monitoring module 302, and the control module 202 may each be a Central Processing Unit (CPU) or a Micro Processor Unit (MPU) located in the terminal. , Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
图4为本发明提供的一种通用串行总线接口模式控制方法具体实施例一的流程示意图,如图4所示,具体步骤包括:4 is a schematic flowchart of a first embodiment of a universal serial bus interface mode control method according to the present invention. As shown in FIG. 4, the specific steps include:
步骤401:在终端设备使用移动网络信号进行数据业务时,定时判断终端设备是否工作在载波聚合模式。在终端设备工作在载波聚合模式时,执行步骤402,否则,执行步骤403。Step 401: When the terminal device uses the mobile network signal to perform data service, periodically determine whether the terminal device operates in a carrier aggregation mode. When the terminal device works in the carrier aggregation mode, step 402 is performed; otherwise, step 403 is performed.
步骤402:判断终端设备的信号接收速率是否大于预设阈值。在终端设备的信号接收速率大于预设阈值时,执行步骤404,否则,执行步骤403。Step 402: Determine whether the signal receiving rate of the terminal device is greater than a preset threshold. When the signal receiving rate of the terminal device is greater than the preset threshold, step 404 is performed; otherwise, step 403 is performed.
其中,所述预设阈值可以根据USB2.0接口模式的最大数据传输速率进 行设置。如若通过实际测量获得,终端设备的USB接口工作在USB2.0接口模式时,该USB接口的最大数据传输速率为320Mbps,则该预设阈值即可设置为320Mbps。The preset threshold may be based on a maximum data transmission rate of the USB2.0 interface mode. Line settings. If the USB interface of the terminal device works in the USB2.0 interface mode and the maximum data transmission rate of the USB interface is 320 Mbps, the preset threshold can be set to 320 Mbps.
步骤403:判断终端设备的USB接口当前是否工作在USB3.0接口模式,在USB接口当前工作在USB3.0接口模式时,将终端设备的USB接口的工作模式切换至USB2.0接口模式;否则,不执行切换USB接口模式操作。Step 403: Determine whether the USB interface of the terminal device is currently working in the USB3.0 interface mode. When the USB interface currently works in the USB3.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB2.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
步骤404:判断终端设备的USB接口当前是否工作在USB2.0接口模式,在USB接口当前工作在USB2.0接口模式时,将终端设备的USB接口的工作模式切换至USB3.0接口模式;否则,不执行切换USB接口模式操作。Step 404: Determine whether the USB interface of the terminal device currently works in the USB2.0 interface mode. When the USB interface currently works in the USB2.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB3.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
图5为本发明提供的一种通用串行总线接口模式控制方法具体实施例二的流程示意图,如图5所示,具体步骤包括:FIG. 5 is a schematic flowchart of a second embodiment of a universal serial bus interface mode control method according to the present invention. As shown in FIG. 5, the specific steps include:
步骤501:在终端设备通过WiFi信号使用有线网络时,定时判断该WiFi信号是否工作在2.4GHz。在WiFi信号工作在2.4GHz时,执行步骤502,否则,执行步骤503。Step 501: When the terminal device uses the wired network through the WiFi signal, periodically determine whether the WiFi signal operates at 2.4 GHz. When the WiFi signal operates at 2.4 GHz, step 502 is performed; otherwise, step 503 is performed.
步骤502:判断终端设备的USB接口当前是否工作在USB3.0接口模式,在USB接口当前工作在USB3.0接口模式时,将终端设备的USB接口的工作模式切换至USB2.0接口模式;否则,不执行切换USB接口模式操作。Step 502: Determine whether the USB interface of the terminal device currently works in the USB3.0 interface mode. When the USB interface currently works in the USB3.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB2.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
步骤503:判断终端设备的USB接口当前是否工作在USB2.0接口模式,在USB接口当前工作在USB2.0接口模式时,将终端设备的USB接口的工作模式切换至USB3.0接口模式;否则,不执行切换USB接口模式操作。Step 503: Determine whether the USB interface of the terminal device currently works in the USB2.0 interface mode. When the USB interface currently works in the USB2.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB3.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
图6为本发明提供的一种通用串行总线接口模式控制方法具体实施例三的流程示意图,如图6所示,具体步骤包括:FIG. 6 is a schematic flowchart of a third embodiment of a method for controlling a universal serial bus interface mode according to the present invention. As shown in FIG. 6, the specific steps include:
步骤601:在终端设备注册到移动网络信号后,定时监测终端设备注册的移动网络信号是否属于3G及以上的移动网络信号。在注册的移动网络信号属于3G及以上的移动网络信号时,执行步骤602,否则,执行步骤604。 Step 601: After the terminal device registers with the mobile network signal, periodically monitor whether the mobile network signal registered by the terminal device belongs to a mobile network signal of 3G or higher. When the registered mobile network signal belongs to the mobile network signal of 3G or above, step 602 is performed; otherwise, step 604 is performed.
步骤602:判断终端设备注册的移动网络信号是否工作在第二预设频段。在移动网络信号工作在第二预设频段时,执行步骤603,否则,执行步骤604。Step 602: Determine whether the mobile network signal registered by the terminal device works in the second preset frequency band. When the mobile network signal works in the second preset frequency band, step 603 is performed; otherwise, step 604 is performed.
其中,所述第二预设频段可以根据USB3.0接口模式的最强干扰频段,及移动网络信号工作频段进行设置。如通过实际测量获得终端设备工作在USB3.0接口模式时,对2.4GHz频段的无线信号干扰最强,从而影响终端设备2.4GHz无线信号的使用;且移动网络信号的工作频段包括:2.3GHz至2.5GHz频段,该工作频段覆盖了2.4GHz,则该第二预设频段即可设置为2.3GHz至2.5GHz。The second preset frequency band may be set according to the strongest interference frequency band of the USB3.0 interface mode and the working frequency band of the mobile network signal. If the terminal device works in the USB3.0 interface mode through actual measurement, the wireless signal interference to the 2.4 GHz band is the strongest, thereby affecting the use of the 2.4 GHz wireless signal of the terminal device; and the working frequency band of the mobile network signal includes: 2.3 GHz to In the 2.5 GHz band, which covers 2.4 GHz, the second preset band can be set from 2.3 GHz to 2.5 GHz.
步骤603:判断终端设备的USB接口当前是否工作在USB3.0接口模式,在USB接口当前工作在USB3.0接口模式时,将终端设备的USB接口的工作模式切换至USB2.0接口模式;否则,不执行切换USB接口模式操作。Step 603: Determine whether the USB interface of the terminal device currently works in the USB3.0 interface mode. When the USB interface currently works in the USB3.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB2.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
步骤604:判断终端设备的USB接口当前是否工作在USB2.0接口模式,在USB接口当前工作在USB2.0接口模式时,将终端设备的USB接口的工作模式切换至USB3.0接口模式;否则,不执行切换USB接口模式操作。Step 604: Determine whether the USB interface of the terminal device currently works in the USB2.0 interface mode. When the USB interface currently works in the USB2.0 interface mode, switch the working mode of the USB interface of the terminal device to the USB3.0 interface mode; otherwise , does not perform the switch USB interface mode operation.
本发明实施例还记载了一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行前述各实施例的通用串行总线接口模式控制方法。The embodiment of the invention further describes a storage medium in which a computer program is stored, the computer program being configured to execute the universal serial bus interface mode control method of the foregoing embodiments.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化,本发明的保护范围以权利要求为准。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. The present invention may be variously modified and varied, and the scope of the present invention is defined by the claims.
工业实用性Industrial applicability
本发明根据终端设备的无线工作状态控制终端设备USB接口的工作模式,能实现控制高速USB接口模式的使用对终端设备OTA性能的影响,使得配置了高速USB接口的终端设备的OTA参数符合相关标准,及使得 配置了高速USB接口的终端设备可以使用2.4GHz无线信号,提升了用户的体验度。 The invention controls the working mode of the terminal device USB interface according to the wireless working state of the terminal device, and can control the influence of the use of the high-speed USB interface mode on the performance of the terminal device OTA, so that the OTA parameters of the terminal device configured with the high-speed USB interface comply with relevant standards. And make A terminal device equipped with a high-speed USB interface can use a 2.4 GHz wireless signal to improve user experience.

Claims (11)

  1. 一种通用串行总线接口模式控制方法,所述方法包括:A universal serial bus interface mode control method, the method comprising:
    获取终端设备的无线工作状态是否满足预设条件的判断结果;Obtaining a determination result of whether the wireless working state of the terminal device meets a preset condition;
    根据所述判断结果控制所述终端设备的通用串行总线USB接口工作在第一USB接口模式或第二USB接口模式;Controlling, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
    其中,所述第一USB接口模式的传输速率大于所述第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  2. 根据权利要求1所述的方法,其中,所述获取终端设备的无线工作状态是否满足预设条件的判断结果,具体为:The method according to claim 1, wherein the obtaining a determination result of whether the wireless working state of the terminal device meets a preset condition is specifically:
    在终端设备使用移动网络信号时,获取终端设备的信号接收速率是否大于预设阈值的判断结果;或者,When the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or
    在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果。When the terminal device uses the wireless signal, whether the working frequency of the wireless signal of the terminal device is the judgment result of the preset frequency band is obtained.
  3. 根据权利要求2所述的方法,其中,所述在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果,具体为:The method according to claim 2, wherein, when the terminal device uses the wireless signal, whether the working frequency of the wireless signal of the terminal device is a determination result of the preset frequency band, specifically:
    在终端设备使用无线保真信号接入网络时,获取终端设备无线保真信号是否工作在第一预设频段的判断结果;或者,When the terminal device accesses the network by using the wireless fidelity signal, obtaining a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band; or
    在终端设备注册到移动网络信号后,获取终端设备移动网络信号是否工作在第二预设频段的判断结果。After the terminal device registers with the mobile network signal, obtain a determination result of whether the terminal device mobile network signal works in the second preset frequency band.
  4. 根据权利要求1所述的方法,其中,所述控制所述终端设备的USB接口工作在第一USB接口模式或第二USB接口模式,包括:The method according to claim 1, wherein the controlling the USB interface of the terminal device to operate in the first USB interface mode or the second USB interface mode comprises:
    通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,Switching the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode by re-enumerating the USB interface of the terminal device; or
    通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的 工作模式从第一USB接口模式切换至第二USB接口模式。By re-enumerating the USB interface of the terminal device, the USB interface of the terminal device The working mode is switched from the first USB interface mode to the second USB interface mode.
  5. 根据权利要求1所述的方法,其中,所述控制所述终端设备的USB接口工作在第一USB接口模式或第二USB接口模式,包括:The method according to claim 1, wherein the controlling the USB interface of the terminal device to operate in the first USB interface mode or the second USB interface mode comprises:
    根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,Switching the working mode of the USB interface of the terminal device from the second USB interface mode to the first USB interface mode according to the state of the current data transmission of the USB interface of the terminal device; or
    根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode according to the state of the current data transmission of the USB interface of the terminal device.
  6. 一种通用串行总线接口模式控制装置,所述装置包括:A universal serial bus interface mode control device, the device comprising:
    获取模块,配置为获取终端设备的无线工作状态是否满足预设条件的判断结果;Obtaining a module, configured to obtain a determination result that the wireless working state of the terminal device meets a preset condition;
    控制模块,配置为根据所述判断结果控制所述终端设备的通用串行总线USB接口工作在第一USB接口模式或第二USB接口模式;a control module, configured to control, according to the determination result, that the universal serial bus USB interface of the terminal device operates in a first USB interface mode or a second USB interface mode;
    其中,所述第一USB接口模式的传输速率大于所述第二USB接口模式的传输速率。The transmission rate of the first USB interface mode is greater than the transmission rate of the second USB interface mode.
  7. 根据权利要求6所述的装置,其中,所述获取模块,还配置为在终端设备使用移动网络信号时,获取终端设备的信号接收速率是否大于预设阈值的判断结果;或者,在终端设备使用无线信号时,获取终端设备的无线信号工作频率是否为预设频段的判断结果。The device according to claim 6, wherein the obtaining module is further configured to: when the terminal device uses the mobile network signal, obtain a determination result that the signal receiving rate of the terminal device is greater than a preset threshold; or, use at the terminal device When the wireless signal is used, whether the working frequency of the wireless signal of the terminal device is the judgment result of the preset frequency band is obtained.
  8. 根据权利要求7所述的装置,其中,所述获取模块,还配置为在终端设备使用无线保真信号接入网络时,获取终端设备无线保真信号是否工作在第一预设频段的判断结果;或者,在终端设备注册到移动网络信号后,获取终端设备移动网络信号是否工作在第二预设频段的判断结果。The device according to claim 7, wherein the obtaining module is further configured to: when the terminal device accesses the network by using the wireless fidelity signal, obtain a determination result of whether the wireless fidelity signal of the terminal device works in the first preset frequency band. Or, after the terminal device registers with the mobile network signal, obtain a determination result of whether the terminal device mobile network signal works in the second preset frequency band.
  9. 根据权利要求6所述的装置,其中,所述控制模块,还配置为通过重新枚举终端设备的USB接口的方式,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,通过重新枚举终端 设备的USB接口的方式,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The device according to claim 6, wherein the control module is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first mode by re-enumerating the USB interface of the terminal device. USB interface mode; or, by re-enumerating the terminal The USB interface of the device switches the working mode of the USB interface of the terminal device from the first USB interface mode to the second USB interface mode.
  10. 根据权利要求6所述的装置,其中,所述控制模块,还配置为根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第二USB接口模式切换至第一USB接口模式;或者,根据终端设备的USB接口当前传输数据的状态,将终端设备的USB接口的工作模式从第一USB接口模式切换至第二USB接口模式。The device according to claim 6, wherein the control module is further configured to switch the working mode of the USB interface of the terminal device from the second USB interface mode to the first according to the state of the data currently transmitted by the USB interface of the terminal device. The USB interface mode; or, according to the state of the current data transmission of the USB interface of the terminal device, the working mode of the USB interface of the terminal device is switched from the first USB interface mode to the second USB interface mode.
  11. 一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行权利要求1至5任一项所述的通用串行总线接口模式控制方法。 A storage medium storing a computer program configured to execute the universal serial bus interface mode control method according to any one of claims 1 to 5.
PCT/CN2016/074281 2015-11-23 2016-02-22 Universal serial bus interface mode controlling method, device and storage medium WO2017088308A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510818310.9 2015-11-23
CN201510818310.9A CN106776417A (en) 2015-11-23 2015-11-23 A kind of USB mode control method and device

Publications (1)

Publication Number Publication Date
WO2017088308A1 true WO2017088308A1 (en) 2017-06-01

Family

ID=58763921

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/074281 WO2017088308A1 (en) 2015-11-23 2016-02-22 Universal serial bus interface mode controlling method, device and storage medium

Country Status (2)

Country Link
CN (1) CN106776417A (en)
WO (1) WO2017088308A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418714A (en) * 2018-02-24 2018-08-17 上海康斐信息技术有限公司 A kind of method and apparatus preventing USB3.0 interference wireless networks
WO2018225624A1 (en) * 2017-06-06 2018-12-13 キヤノン株式会社 Wireless communication device and control method therefor
JP2018207325A (en) * 2017-06-06 2018-12-27 キヤノン株式会社 Radio communication device and control method thereof

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7130366B2 (en) * 2017-11-30 2022-09-05 キヤノン株式会社 Communication device and its control method
CN109426644A (en) * 2017-08-31 2019-03-05 西安中兴新软件有限责任公司 A kind of rate adjusting method and device, equipment of USB data transmission
CN108092986B (en) * 2017-12-27 2021-06-08 深圳市泰衡诺科技有限公司 Data transmission method and device of mobile terminal
CN109257081B (en) * 2018-09-03 2020-06-30 珠海格力电器股份有限公司 Communication control method and device of terminal, storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101661445A (en) * 2009-09-04 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Connection switching method, device and system
CN101997956A (en) * 2009-08-17 2011-03-30 联想(北京)有限公司 Method for switching work mode of mobile terminal and mobile terminal
CN104079415A (en) * 2013-03-27 2014-10-01 瑞昱半导体股份有限公司 Network device and connection detection method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8255582B2 (en) * 2010-07-09 2012-08-28 Sae Magnetics (H.K.) Ltd. Optical communication module, universal serial bus cable with the same and processing method of data transfer thereof
CN102523634B (en) * 2011-12-14 2015-04-29 华为终端有限公司 Data card for wireless Internet access and method for improving wireless receiving sensitivity
US20140244852A1 (en) * 2013-02-27 2014-08-28 Ralink Technology Corp. Method of Reducing Mutual Interference between Universal Serial Bus (USB) data transmission and wireless data transmission
CN104102603B (en) * 2013-04-09 2017-03-29 瑞昱半导体股份有限公司 Universal serial bus networks interface controller and its operation mode switching method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997956A (en) * 2009-08-17 2011-03-30 联想(北京)有限公司 Method for switching work mode of mobile terminal and mobile terminal
CN101661445A (en) * 2009-09-04 2010-03-03 宇龙计算机通信科技(深圳)有限公司 Connection switching method, device and system
CN104079415A (en) * 2013-03-27 2014-10-01 瑞昱半导体股份有限公司 Network device and connection detection method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018225624A1 (en) * 2017-06-06 2018-12-13 キヤノン株式会社 Wireless communication device and control method therefor
JP2018207325A (en) * 2017-06-06 2018-12-27 キヤノン株式会社 Radio communication device and control method thereof
JP7140470B2 (en) 2017-06-06 2022-09-21 キヤノン株式会社 Wireless communication device and its control method
US11539391B2 (en) 2017-06-06 2022-12-27 Canon Kabushiki Kaisha Wireless communication apparatus and control method therefor
CN108418714A (en) * 2018-02-24 2018-08-17 上海康斐信息技术有限公司 A kind of method and apparatus preventing USB3.0 interference wireless networks

Also Published As

Publication number Publication date
CN106776417A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
WO2017088308A1 (en) Universal serial bus interface mode controlling method, device and storage medium
CN107396386B (en) Channel detection method and channel detection equipment
WO2017166609A1 (en) Wireless device-based frequency band switching method, wireless device, and electronic device
WO2018205829A1 (en) Radio frequency interference processing method and apparatus, storage medium, and electronic device
Ragona et al. Energy-efficient computation offloading for wearable devices and smartphones in mobile cloud computing
US20130116001A1 (en) Method, apparatus, and terminal for wireless network connection
EP2852216A1 (en) Method and device for reducing mutual interference between devices coexistent in network of neighboring frequency band
CN111770554B (en) Network access method and device
US8958799B2 (en) Wireless device based inter radio access technology handover initiation
WO2023024820A1 (en) Method and apparatus for adjusting specific absorption rate of electromagnetic wave, medium, and electronic device
CN106658566B (en) Cell determination method, related equipment and system
CN111277294B (en) Antenna selection method and related product
TWI556677B (en) Dynamically adapting wireless communication
WO2019024871A1 (en) Information transmission method under unlicensed band, network device, and terminal
WO2018129739A1 (en) Method for determining transmit power, and wireless communication device
US9713083B2 (en) LTE advanced service indicator
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN114096007A (en) Service transmission method, device, server and storage medium
TW202127937A (en) Transmit power of wireless communication
CN104618929B (en) System and device for realizing 4G LTE air interface monitoring
CN111355566B (en) Channel state information acquisition method and related equipment
KR101111753B1 (en) Wireless Access Point device connecting with mobile phone and Control method thereof
CN111049541A (en) Wireless signal enhancement method, mobile terminal and computer readable storage medium
US10187807B2 (en) Antenna array uplink sector selection and deselection based on coexistence with other in-device radios
TW201318356A (en) Wireless module and method of switching to preferred wireless network thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867537

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867537

Country of ref document: EP

Kind code of ref document: A1