CN105117363B - A kind of method and system of lifting USB OTG compatibility - Google Patents
A kind of method and system of lifting USB OTG compatibility Download PDFInfo
- Publication number
- CN105117363B CN105117363B CN201510485586.XA CN201510485586A CN105117363B CN 105117363 B CN105117363 B CN 105117363B CN 201510485586 A CN201510485586 A CN 201510485586A CN 105117363 B CN105117363 B CN 105117363B
- Authority
- CN
- China
- Prior art keywords
- parameter
- usb
- equipment
- slave unit
- otg
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
Abstract
The invention discloses a kind of method and system of lifting USB OTG compatibility, applied to mobile terminal, methods described comprises the following steps:Whether the USB port of step 1. detection mobile terminal has equipment access;Step 2. determines whether OTG equipment when there is equipment access;Step 3. access is OTG equipment, then calls main equipment parameter, regard mobile terminal as OTG master transmissions data;Otherwise slave unit parameter is called, data are transmitted using mobile terminal as slave unit.Methods described also includes:USB eye pattern parameters are pre-seted in mobile terminal, the USB eye patterns parameter includes main equipment parameter and slave unit parameter.The present invention controls eye diagram quality during different conditions by two sets of parameters of main equipment parameter and slave unit parameter, it is ensured that have preferable compatibility when mobile device is as master and slave equipment, and transmission reliability is high, and signal quality is good, lifts Consumer's Experience.
Description
Technical field
Compatible technique is connected the present invention relates to one kind, compatible a kind of more particularly to lifting USB OTG method and is
System.
Background technology
USB OTG are the abbreviations of USB On-The-Go (in progress), are the technology that developed recently gets up, 2001
December 18 was announced by USB Implementers Forum, was mainly used in the connection between a variety of equipment or mobile device
Connect, carry out data exchange.Particularly PAD, mobile phone, consumer devices.
With the popularization of the consumer products such as PAD, mobile phone, digital camera, printer, for these equipment and electricity
Highspeed Data Transmission Technology between brain, or equipment and equipment is increasingly paid close attention to by people, and IEEE1394 and USB are to be used for
Two main standards of such transmission.The two standards all provide plug and play and warm connection function, can be provided out electricity
Source, also all supports the connection of multiple equipment.Wherein IEE1394 supports higher data transmission bauds, but relatively complicated, valency
Lattice are higher, are mainly used in needing the AV products of high-speed communication;And initial USB standard is mainly directed towards answering for slow data transmission
With wherein USB1.1 supports 1.5Mbps and 12Mbps transmission rate, is widely used in outside the not high PC of transmission rate request
If, such as:Keyboard, mouse etc..The release of USB2.0 standards makes USB transmission speed reach 480Mbps.And USB OTG technologies
Data transfer during without main frame between equipment and equipment then can be achieved in release.For example:Digital camera can directly and printer
Connect and photograph print, so as to expand the application of USB technologies.
Increasing mobile terminal all supports OTG functions at present, but in practical application, mobile device and apparatus such as computer
As slave unit during connection, so to ensure USB transmission reliability in debugging, equipment can be caused by adjusting eye pattern parameter
Signal quality is optimal when connecting computer.But mobile device as OTG master when, this set eye pattern parameter at this time is not necessarily
It is the eye pattern parameter of best OTG compatibility.
The content of the invention
It is an object of the invention to overcome the deficiencies of the prior art and provide a kind of lifting USB OTG compatibility method and
System, can effectively compatible master-slave equipment, lifting Consumer's Experience.
In order to achieve the above object, the technical solution adopted by the present invention is:
A kind of method of lifting USB OTG compatibility, applied to mobile terminal, comprises the following steps:
Whether the USB port of step 1. detection mobile terminal has equipment access;
Step 2. determines whether OTG equipment when there is equipment access;
Step 3. access is OTG equipment, then calls main equipment parameter, regard mobile terminal as OTG master transmissions data;
Otherwise slave unit parameter is called, data are transmitted using mobile terminal as slave unit.
Further, methods described also includes:USB eye pattern parameters, the USB eye patterns parameter bag are pre-seted in mobile terminal
Include main equipment parameter and slave unit parameter.
Further, it is described to pre-set USB eye pattern parameters in mobile terminal and specifically include:
Step 101. sets main equipment and the USB parameter registers of slave unit in mobile terminal, and main equipment and slave unit are common
With same USB parameter registers;
Step 102. pre-sets the parameter of multigroup main equipment and the USB parameter registers adjustment eye pattern of slave unit respectively;
The parameter that step 103. adjusts eye pattern according to multigroup USB parameter registers of preset value carries out actual eye pattern and tested,
Screen two groups of USB eye pattern parameters;
Step 104. according to one group of USB eye patterns parameter setting be main device parameter, another group of USB eye pattern parameter be set to from
Device parameter.
Further, the USB eye patterns parameter includes USB DC levels, preemphasis time, rise and fall are along the time and connect
Enter impedance-compensated.
Further, the step 3 is specifically included:
The device type of step 301. analysis access, carries out match parameter;
Step 302. then calls main equipment parameter, main equipment parameter is matched with OTG equipment when access as OTG equipment, shifting
Dynamic terminal is used as OTG master transmissions data;
When access is slave unit, then slave unit parameter is called, slave unit parameter is matched with slave unit, mobile terminal conduct
Slave unit transmits data.
The invention also discloses a kind of system of lifting USB OTG compatibility, applied to mobile terminal, including:
Detection unit, for detecting whether the USB port of mobile terminal has equipment access;
Judging unit, for when there is equipment access, determining whether OTG equipment;
Call unit, is OTG equipment for accessing, then calls main equipment parameter, is passed mobile terminal as OTG main equipments
Transmission of data;Otherwise slave unit parameter is called, data are transmitted using mobile terminal as slave unit.
Further, the system also includes:Parameter set unit, for pre-seting USB eye pattern parameters in mobile terminal,
The USB eye patterns parameter includes main equipment parameter and slave unit parameter.
Further, the parameter set unit is specifically included:
Register setting unit, for setting main equipment and the USB parameter registers of slave unit, main equipment in mobile terminal
And slave unit shares same USB parameter registers;
Eye pattern parameter presets unit, the USB parameter registers for pre-seting multigroup main equipment and slave unit respectively are adjusted
The parameter of whole eye pattern;
Test cell, the parameter for adjusting eye pattern according to multigroup USB parameter registers of preset value carries out actual eye pattern
Test, screens two groups of USB eye pattern parameters;
Setting unit, for being main device parameter according to one group of USB eye patterns parameter setting, another group of USB eye pattern parameter is set
It is set to slave unit parameter.
Further, the call unit includes:
Type analysis unit, the device type for analyzing access, carries out match parameter;
Matching unit, for when access as OTG equipment, then main equipment parameter being called, by main equipment parameter and OTG equipment
Match somebody with somebody, mobile terminal is used as OTG master transmissions data;
When access is slave unit, then slave unit parameter is called, slave unit parameter is matched with slave unit, mobile terminal conduct
Slave unit transmits data.
Compared with prior art, the beneficial effects of the invention are as follows:Pass through two sets of parameters of main equipment parameter and slave unit parameter
To control eye diagram quality during different conditions, it is ensured that there is preferable compatibility when mobile device is as master and slave equipment, transmission can
High by property, signal quality is good, lifts Consumer's Experience.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention.
Embodiment
Idea of the invention is that overcoming the deficiencies in the prior art to control different conditions by two sets of parameters there is provided one kind
When eye diagram quality, it is ensured that have preferable compatibility when mobile device is as master and slave equipment.With reference to embodiment with reference to attached
Figure is described in detail, so that technical characteristic and advantage to the present invention are interpretated more in-depth.
Flow chart of the method for the present invention is as shown in figure 1, a kind of method of lifting USB OTG compatibility, whole applied to movement
End, comprises the following steps:
Whether the USB port of step 1. detection mobile terminal has equipment access;
Step 2. determines whether OTG equipment when there is equipment access;
Step 3. access is OTG equipment, then calls main equipment parameter, regard mobile terminal as OTG master transmissions data;
Otherwise slave unit parameter is called, data are transmitted using mobile terminal as slave unit.
As presently preferred embodiments of the present invention, the method for the invention also includes:USB eye patterns ginseng is pre-seted in mobile terminal
Number, the USB eye patterns parameter includes main equipment parameter and slave unit parameter.
In actual mobile terminal system, it is very difficult that intersymbol interference, which is completely eliminated, and intersymbol interference is to the bit error rate
Influence at present there is no method find mathematically be easy to processing statistical law, can't accurately be calculated.In order to weigh base band
The performance of Transmission system is good and bad, in the lab, and logical macrooscillograph observation receives the method for signal waveform to analyze intersymbol string
The influence to systematic function with noise is disturbed, here it is eye Diagram Analysis method.Eye pattern is that a series of data signals are accumulated on oscillograph
And the figure shown, it contains abundant information, it can be observed how intersymbol interference and the influence of noise, are embodied from eye pattern
The overall feature of data signal, so that estimating system quality degree, thus eye Diagram Analysis is high speed interconnection system signal integrity
The core of analysis.The characteristic of receiving filter can also be adjusted with this figure in addition, to reduce intersymbol interference, improve system
The transmission performance of system.Thus, the present invention is by setting USB eye pattern parameters, so as to be controlled by two sets of parameters during different conditions
Eye diagram quality, it is ensured that have preferable compatibility when mobile device is as master and slave equipment.
It is described to pre-set USB eye pattern parameters in mobile terminal and specifically include as presently preferred embodiments of the present invention:
Step 101. sets main equipment and the USB parameter registers of slave unit in mobile terminal, and main equipment and slave unit are common
With same USB parameter registers;Many set parameters can be set in USB parameter registers, respectively for main equipment and from setting
It is standby;
Step 102. pre-sets the parameter of multigroup main equipment and the USB parameter registers adjustment eye pattern of slave unit respectively;
Set before main equipment parameter and slave unit parameter, preset multigroup main equipment and the USB parameter registers of slave unit, test is multiple,
Select one group of more stable parameter;Parameter include USB DC levels, the preemphasis time, rise and fall along the time, access impedance
The parameters such as compensation;
The parameter that step 103. adjusts eye pattern according to multigroup USB parameter registers of preset value carries out actual eye pattern and tested,
Screen two groups of USB eye pattern parameters;The USB eye patterns parameter includes USB DC levels, preemphasis time, rise and fall along the time
And access impedance-compensated;
Step 104. according to one group of USB eye patterns parameter setting be main device parameter, another group of USB eye pattern parameter be set to from
Device parameter.
By setting the USB parameter registers of master/slave arrangement, (master-slave equipment is all same set of register to this method, is being moved
Dynamic terminal sets main equipment and the USB parameter registers of slave unit) adjust the effect that eye pattern is final, adjustable data
Have:USB DC levels, preemphasis time, rise and fall along the time, access the parameter such as impedance-compensated.Pre-set multigroup main equipment
And the USB parameter registers of slave unit adjust the parameter of eye pattern, these register parameters are set by after the test of actual eye pattern
Select two groups to come out, one group of satisfaction is as the eye pattern parameter of master transmissions, the parameter called when another set is as slave unit.
When connecting outside OTG equipment when equipment is as main equipment, main equipment parameter is called;When equipment connection computer etc., as from
During equipment, the USB eye pattern parameters of slave unit are called.The differentiation of master-slave equipment is by whether connecting OTG to judge, connection OTG
As main equipment, connection is not OTG i.e. as slave unit.
As presently preferred embodiments of the present invention, the step 3 is specifically included:
The device type of step 301. analysis access, carries out match parameter, and the differentiation of master-slave equipment is by whether connection
OTG judges, connection OTG is main equipment, and connection is not OTG i.e. as slave unit;
Step 302. then calls main equipment parameter, main equipment parameter is matched with OTG equipment when access as OTG equipment, shifting
Dynamic terminal is used as OTG master transmissions data;When access be slave unit, then call slave unit parameter, by slave unit parameter with from
Equipment is matched, and mobile terminal transmits data as slave unit.When connecting outside OTG equipment when equipment is as main equipment, adjust
Use main equipment parameter;When equipment connection computer etc., during as slave unit, the USB eye pattern parameters of slave unit are called.
The invention also discloses a kind of system of lifting USB OTG compatibility, applied to mobile terminal, including:
Detection unit, for detecting whether the USB port of mobile terminal has equipment access;
Judging unit, for when there is equipment access, determining whether OTG equipment;
Call unit, is OTG equipment for accessing, then calls main equipment parameter, is passed mobile terminal as OTG main equipments
Transmission of data;Otherwise slave unit parameter is called, data are transmitted using mobile terminal as slave unit.
As presently preferred embodiments of the present invention, the system also includes:Parameter set unit, for default in mobile terminal
USB eye pattern parameters are put, the USB eye patterns parameter includes main equipment parameter and slave unit parameter.
As presently preferred embodiments of the present invention, the parameter set unit is specifically included:
Register setting unit, for setting main equipment and the USB parameter registers of slave unit, main equipment in mobile terminal
And slave unit shares same USB parameter registers;
Eye pattern parameter presets unit, the USB parameter registers for pre-seting multigroup main equipment and slave unit respectively are adjusted
The parameter of whole eye pattern;
Test cell, the parameter for adjusting eye pattern according to multigroup USB parameter registers of preset value carries out actual eye pattern
Test, screens two groups of USB eye pattern parameters;
Setting unit, for being main device parameter according to one group of USB eye patterns parameter setting, another group of USB eye pattern parameter is set
It is set to slave unit parameter.
As presently preferred embodiments of the present invention, the call unit includes:
Type analysis unit, the device type for analyzing access, carries out match parameter;
Matching unit, for when access as OTG equipment, then main equipment parameter being called, by main equipment parameter and OTG equipment
Match somebody with somebody, mobile terminal is used as OTG master transmissions data;
When access is slave unit, then slave unit parameter is called, slave unit parameter is matched with slave unit, mobile terminal conduct
Slave unit transmits data.
Clear, complete description is carried out to the present invention by the technical scheme in above example, it is clear that described reality
Apply embodiment of the example for a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, this area is general
The every other embodiment that logical technical staff is obtained under the premise of creative work is not made, belongs to what the present invention was protected
Scope.
Claims (5)
1. a kind of method of lifting USB OTG compatibility, applied to mobile terminal, comprises the following steps:
Whether the USB port of step 1. detection mobile terminal has equipment access;
Step 2. determines whether OTG equipment when there is equipment access;
Step 3. access is OTG equipment, then calls main equipment parameter, regard mobile terminal as OTG master transmissions data;Otherwise
Slave unit parameter is called, data are transmitted using mobile terminal as slave unit;
USB eye pattern parameters are pre-seted in mobile terminal, the USB eye patterns parameter includes main equipment parameter and slave unit parameter, its
In, pre-set USB eye pattern parameters in mobile terminal and specifically include:
Step 101. sets main equipment and the USB parameter registers of slave unit in mobile terminal, and main equipment and slave unit share same
One USB parameter registers;
Step 102. pre-sets the parameter of multigroup main equipment and the USB parameter registers adjustment eye pattern of slave unit respectively:
The parameter that step 103. adjusts eye pattern according to multigroup USB parameter registers of preset value carries out actual eye pattern and tested, screening
Two groups of USB eye pattern parameters;
Step 104. is main device parameter according to one group of USB eye patterns parameter setting, and another group of USB eye pattern parameter is set to slave unit
Parameter.
2. the method for lifting USB OTG compatibility according to claim 1, it is characterised in that the USB eye patterns parameter bag
USB DC levels, preemphasis time, rise and fall are included along the time and are accessed impedance-compensated.
3. the method for lifting USB OTG compatibility according to claim 2, it is characterised in that the step 3 is specifically wrapped
Include:
The device type of step 301. analysis access, carries out match parameter;
Step 302. then calls main equipment parameter, main equipment parameter match with OTG equipment when access as OTG equipment, moves end
End is used as OTG master transmissions data;
When access is slave unit, then slave unit parameter is called, slave unit parameter is matched with slave unit, mobile terminal is as from setting
Standby transmission data.
4. a kind of system of lifting USB OTG compatibility, applied to mobile terminal, including:
Detection unit, for detecting whether the USB port of mobile terminal has equipment access;
Judging unit, for when there is equipment access, determining whether OTG equipment;
Call unit, is OTG equipment for accessing, then calls main equipment parameter, regard mobile terminal as OTG master transmissions numbers
According to;Otherwise slave unit parameter is called, data are transmitted using mobile terminal as slave unit;
Parameter set unit, for pre-seting USB eye pattern parameters in mobile terminal, the USB eye patterns parameter is joined including main equipment
Number and slave unit parameter, wherein, the parameter set unit is specifically included:
Register setting unit, the USB parameter registers for setting main equipment and slave unit in mobile terminal, main equipment and from
Equipment shares same USB parameter registers;
Eye pattern parameter presets unit, the USB parameter registers for pre-seting multigroup main equipment and slave unit respectively adjust eye
The parameter of figure;
Test cell, actual eye pattern test is carried out for adjusting the parameter of eye pattern according to multigroup USB parameter registers of preset value,
Screen two groups of USB eye pattern parameters;
Setting unit, for being main device parameter according to one group of USB eye patterns parameter setting, another group of USB eye pattern parameter is set to
Slave unit parameter.
5. the system of lifting USB OTG compatibility according to claim 4, it is characterised in that the call unit includes:
Type analysis unit, the device type for analyzing access, carries out match parameter;
Matching unit, for when access as OTG equipment, then calling main equipment parameter, main equipment parameter being matched with OTG equipment,
Mobile terminal is used as OTG master transmissions data;
When access is slave unit, then slave unit parameter is called, slave unit parameter is matched with slave unit, mobile terminal is as from setting
Standby transmission data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510485586.XA CN105117363B (en) | 2015-08-10 | 2015-08-10 | A kind of method and system of lifting USB OTG compatibility |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510485586.XA CN105117363B (en) | 2015-08-10 | 2015-08-10 | A kind of method and system of lifting USB OTG compatibility |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105117363A CN105117363A (en) | 2015-12-02 |
CN105117363B true CN105117363B (en) | 2017-08-29 |
Family
ID=54665359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510485586.XA Active CN105117363B (en) | 2015-08-10 | 2015-08-10 | A kind of method and system of lifting USB OTG compatibility |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105117363B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808395A (en) * | 2016-03-03 | 2016-07-27 | 北京小米移动软件有限公司 | Intelligent device USB eye pattern improvement method |
CN109921959A (en) * | 2019-03-22 | 2019-06-21 | 维沃移动通信有限公司 | A kind of parameter regulation means and communication equipment |
CN111858430A (en) * | 2020-07-07 | 2020-10-30 | 上海龙旗科技股份有限公司 | OTG optimization method and system of mobile terminal |
CN117312086A (en) * | 2023-10-10 | 2023-12-29 | 上海合芯数字科技有限公司 | Method, device, equipment and medium for adjusting USB interface of server |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101944074B (en) * | 2010-07-05 | 2014-12-10 | 中兴通讯股份有限公司 | Method and device for realizing OTG based on USB socket |
CN101901201B (en) * | 2010-08-06 | 2014-07-16 | 中兴通讯股份有限公司 | Method and device for realizing USB OTG function on electronic equipment |
CN102662897B (en) * | 2012-03-31 | 2015-04-29 | 北京壹人壹本信息科技有限公司 | Mobile terminal and data interaction method between mobile terminals |
-
2015
- 2015-08-10 CN CN201510485586.XA patent/CN105117363B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105117363A (en) | 2015-12-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105117363B (en) | A kind of method and system of lifting USB OTG compatibility | |
CN104184617B (en) | InterWorking Equipment pre-add method for reconfiguration, device, system and the network equipment | |
CN106155950B (en) | Parameter processing method and device | |
CN106339346A (en) | Universal Serial Bus (USB) port signal interference inhibition method and device | |
CN106789402A (en) | A kind of Multi-netmouth based on automation platform maps multimachine test system and method | |
CN113014339B (en) | Quality test method, device and equipment for PCIe external plug-in card receiving channel | |
CN103514127A (en) | Implementation method for achieving self-adaption of baud rate | |
CN107360584A (en) | A kind of RRU test systems and method | |
CN103248527A (en) | Testing tool device, testing system and testing method for Ethernet consistency | |
CN106330594A (en) | Pre-emphasis parameter configuration method and apparatus | |
CN209120175U (en) | A kind of broadband HPLC communication module anti-decay property test macro | |
CN101355777A (en) | Remote mobile phone test system and method base on bus interception and video acquisition | |
EP2638474A1 (en) | Method for matching the signal transmission between two electronic appliances, and arrangement having a computer system and a peripheral device | |
CN109739698A (en) | A kind of parameter regulation means and system for SATA signal quality | |
CN104243246B (en) | A kind of FlexRay bus tests and optimization method and device based on ZigBee technology | |
CN205454102U (en) | Many networks signal switch device | |
CN209120178U (en) | A kind of broadband HPLC communication unit anti-decay property test macro | |
CN103701660B (en) | A kind of ethernet device attachment means and its test system and method for application | |
CN106443086A (en) | Test base plate | |
CN104182317B (en) | A kind of DMI bus signals Integrity Testing | |
CN207718361U (en) | PCM signal harvester and system | |
Pandey et al. | Signal Integrity and Compliance Test of DSI and CSI2 Serial Interface over MIPI D-PHY | |
CN109542710A (en) | A kind of signal testing jig and signal testing method | |
CN203950030U (en) | A kind of parallel communication test circuit for electric energy meter calibrating apparatus | |
CN207304572U (en) | A kind of signal supervisory instrument |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |