CN105760328A - USB master and slave switching method and system for VR device - Google Patents

USB master and slave switching method and system for VR device Download PDF

Info

Publication number
CN105760328A
CN105760328A CN201610076638.2A CN201610076638A CN105760328A CN 105760328 A CN105760328 A CN 105760328A CN 201610076638 A CN201610076638 A CN 201610076638A CN 105760328 A CN105760328 A CN 105760328A
Authority
CN
China
Prior art keywords
equipment
electronic equipment
usb
hnp
master
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.)
Granted
Application number
CN201610076638.2A
Other languages
Chinese (zh)
Other versions
CN105760328B (en
Inventor
李刚
张丰学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dlodlo Technologies Co Ltd
Original Assignee
Shenzhen Dlodlo Technologies Co Ltd
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 Shenzhen Dlodlo Technologies Co Ltd filed Critical Shenzhen Dlodlo Technologies Co Ltd
Priority to CN201610076638.2A priority Critical patent/CN105760328B/en
Publication of CN105760328A publication Critical patent/CN105760328A/en
Application granted granted Critical
Publication of CN105760328B publication Critical patent/CN105760328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other dc sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a USB master and slave switching method for a VR device. The VR device sends an HNP enable descriptor to an electronic device, it is indicated that the VR device supports an HNP, the electronic device replies ACK after receiving the HNP enable descriptor, and after the VR device receives the reply, a bus is hung; the electronic device is disconnected, the HNP is started, and bus discharge is in a low-level state; the VR device is pulled upwards, the level state is high level, the VR device is connected with the electronic device, and at the time, the VR device becomes a USB slave machine; when the electronic device detects to be connected with the VR device, the electronic device becomes a USB master machine, a bus reset signal is sent, the bus starts to be used, the electronic device starts to enumerate the VR device again, and the functions that the VR device communicates with the electronic device and is charged are achieved. A complete switching method is provided, and the functions of the VR device are expanded, so that the VR device can serve as the master machine and the slave machine.

Description

A kind of VR equipment USB master-slave switching method and system
Technical field
The present invention relates to VR field, particularly relate to a kind of VR equipment USB master-slave switching method and system.
Background technology
It is known that at present, when many electronic installations are attached exchanging data by USB interface and difference external electronic device, it is necessary to be operated in main equipment pattern or from equipment mode state according to the type selecting of the external electronic accessed.
In VR (VirtualReality, i.e. virtual reality are called for short VR) field, VR can pass through USB interface and mobile phone USB interface communication, and VR and mobile phone can charge mutually.But, when mobile phone is by VR equipment charge, mobile phone is as from machine, VR is as main frame, mobile phone requires there is specific usb agreement, just can make the function that mobile phone and VR had not only communicated but also can charge, and the master-slave equipment pattern realizing USB switches, the communication and the charging that so make mobile phone and VR receive significant limitation, also constrain using and promoting of VR.
Summary of the invention
In order to overcome above-mentioned deficiency of the prior art, it is an object of the invention to, it is provided that a kind of VR equipment USB master-slave switching method, including: VR equipment and electronic equipment;
When VR equipment determines the state self being charged to electronic equipment, VR equipment carries out master-slave swap as main frame by HNP agreement and electronic equipment;
After carrying out master-slave swap, when electronic equipment starts to enumerate external equipment, VR device report himself is the external equipment of standard man-machine interaction.
Preferably, when VR equipment determines the state self being charged to electronic equipment, VR equipment carries out master-slave swap as main frame by HNP agreement and electronic equipment and specifically includes:
According to the level that detection VR device id pin is different, it is judged that the level of VR device id pin and electronic equipment ID pin, determine power supply main body according to level;
According to the level that detection VR device A D mouth is different, it is judged that the potential difference size of VR device A D mouth and electronic equipment AD mouth, determine power supply main body according to potential difference size;
When VR equipment communicates as main frame and electronic equipment, VR equipment carries out master-slave swap by HNP agreement and electronic equipment.
Preferably, VR equipment determines that self is charged specifically including to described electronic equipment:
Power itself do not given by detection electronic equipment, and VR equipment opens power supply capacity;
When carrying out master-slave swap, VR equipment sends HNP and enables descriptor to electronic equipment, represents that VR equipment supports HNP agreement, after electronic equipment receives HNP enable descriptor, after ACK, the VR equipment of reply receives reply, and hanging up bus;
Electronic equipment detects bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;
VR equipment detects low level state in bus, and VR equipment pulls up, and level state is high level, and VR equipment is connected with electronic equipment, and VR equipment becomes USB from machine;
Electronic equipment detects when VR equipment connects, and electronic equipment becomes usb host, and sends bus reset signal use bus;
Electronic equipment re-enumeration VR equipment, VR equipment is as from machine, enumerating electronic equipment and support standard agreement, complete master-slave swap, and VR equipment is switched to from machine, and electronic equipment is switched to main frame and the agreement that employing electronic equipment is supported, makes VR equipment to power electronic equipment.
Preferably, before carrying out master-slave swap, electronic equipment is as main frame, VR equipment is as from machine, when carrying out master-slave swap, electronic equipment sends HNP and enables descriptor to VR equipment, represents that HNP agreement supported by electronic equipment, after VR equipment receives HNP enable descriptor, reply ACK, after reply received by electronic equipment, hanging up bus;
VR equipment Inspection is to bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;
Electronic equipment detects low level state in bus, and electronic equipment pulls up, and level state is high level, and electronic equipment is connected with VR equipment, and electronic equipment becomes USB from machine;
VR equipment Inspection to electronic equipment connect time, VR equipment becomes usb host, and sends bus reset signal and use bus;
VR equipment re-enumeration electronic equipment, electronic equipment is as from machine, enumerating VR equipment and support standard agreement, complete master-slave swap, and electronic equipment is switched to from machine, and VR equipment is switched to main frame and the agreement that employing VR equipment is supported, makes electronic equipment power to VR equipment.
Preferably, when VR equipment USB interface is not inserted into connecting line, VR equipment USB interface acquiescence is in pull-up state, and level state is high level, and when VR equipment hosted, USB interface can pull down to ground, and level state is 0;When VR equipment does from machine, USB interface can maintain pull-up, and level state is high level.
Preferably, when electronic equipment USB interface is not inserted into connecting line, electronic equipment USB interface acquiescence is in pull-up state, and level state is high level, and when electronic equipment hosted, USB interface can pull down to ground, and level state is 0;When electronic equipment does from machine, USB interface can maintain pull-up, and level state is high level.
Preferably, VR equipment is switched to from machine, electronic equipment is switched to main frame, adopt the agreement that electronic equipment is supported, when making VR equipment to power electronic equipment, if VR equipment USB interface and electronic equipment disconnect, then VR equipment USB interface recovers default conditions, being in pull-up state, level state is high level.
Preferably, electronic equipment is switched to from machine, VR equipment is switched to main frame, adopt the agreement that VR equipment is supported, when making electronic equipment power to VR equipment, if VR equipment USB interface and electronic equipment disconnect, then VR equipment USB interface recovers default conditions, being in pull-up state, level state is high level.
A kind of VR equipment USB master-slave swap system, including: VR equipment and electronic equipment;VR equipment includes: VR equipment USB interface, and electronic equipment includes: electronic equipment USB interface;
VR equipment also includes: USB main control module, USB are from controlling module, master-slave swap control module, instruction sending module, command reception module, detection module;
Described USB main control module is used for controlling VR equipment as main frame;
Described USB is used for controlling VR equipment as from machine from controlling module;
Described instruction sending module enables descriptor for sending HNP to electronic equipment;
Described command reception module is for receiving the data message that electronic equipment sends;
Described detection module is for detecting state and the detection low level state of bus of electronic equipment bus;
When described master-slave swap control module carries out master-slave swap for VR equipment as main frame, VR equipment sends HNP and enables descriptor to electronic equipment, represents VR equipment support HNP agreement, after electronic equipment receives HNP enable descriptor, after ACK, the VR equipment of reply receives reply, hanging up bus;Electronic equipment detects bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;VR equipment detects low level state in bus, and VR equipment pulls up, and level state is high level, and VR equipment is connected with electronic equipment, and now VR equipment becomes USB from machine;Electronic equipment detects when VR equipment connects, and electronic equipment becomes usb host, and sends bus reset signal and begin to use bus, electronic equipment to start re-enumeration VR equipment, and master-slave swap controls module makes the conduct of VR equipment from machine;Otherwise, VR equipment as during from machine, master-slave swap control module make VR equipment as main frame.
Preferably, VR equipment adopts HID protocol, HNP agreement and OTG agreement;
Electronic equipment adopts HID protocol, HNP agreement and OTG agreement.
As can be seen from the above technical solutions, the invention have the advantages that
VR equipment supports HID protocol, HNP agreement, OTG agreement, electronic equipment supports HID protocol, HNP agreement, OTG agreement, achieve the function of VR equipment and electronic equipment communication and charging, and provide a perfect changing method, expand the function of VR equipment, make VR equipment hosted can do from machine again, it is to avoid to occur that VR functions of the equipments are single.
Accompanying drawing explanation
In order to be illustrated more clearly that technical scheme, the accompanying drawing used required in describing will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is VR equipment USB by mian engine changeover from the changing method flow chart of machine;
Fig. 2 is that VR equipment USB is by the changing method flow chart switching main frame from machine;
Fig. 3 is the schematic diagram of VR equipment USB master-slave swap system.
Detailed description of the invention
For making the goal of the invention of the present invention, feature, the advantage can be more obvious and understandable; specific embodiment and accompanying drawing will be used below; the technical scheme of present invention protection is clearly and completely described; obviously; the embodiments described below are only a part of embodiment of the present invention, and not all embodiment.Based on the embodiment in this patent, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of this patent protection.
The present embodiment provides a kind of VR equipment USB master-slave switching method, including: VR equipment and electronic equipment;
When VR equipment determines the state self being charged to electronic equipment, VR equipment carries out master-slave swap as main frame by HNP agreement and electronic equipment;
After carrying out master-slave swap, when electronic equipment starts to enumerate external equipment, VR device report himself is the external equipment of standard man-machine interaction.
When VR equipment determines the state self being charged to electronic equipment, VR equipment carries out master-slave swap as main frame by HNP agreement and electronic equipment and specifically includes:
According to the level that detection VR device id pin is different, it is judged that the level of VR device id pin and electronic equipment ID pin, determine power supply main body according to level;
When VR equipment communicates as main frame and electronic equipment, VR equipment carries out master-slave swap by HNP agreement and electronic equipment.
VR equipment and electronic equipment are under copper, and VR equipment can pass through ID pin and charge to electronic equipment, and electronic equipment can also pass through VR device id pin to VR equipment charge.Certainly under non-data communications status, it is also possible to realize the function of charging mutually.
The concrete mode of VR equipment USB master-slave swap is, VR equipment USB by the mian engine changeover changing method from machine and VR equipment USB by the changing method switching main frame from machine;
As it is shown in figure 1, VR equipment USB by mian engine changeover from the changing method of machine is:
S1: power itself do not given by detection electronic equipment, and VR equipment opens power supply capacity;
S2: when carrying out master-slave swap, before carrying out master-slave swap, VR equipment is as main frame, electronic equipment is as from machine, and when carrying out master-slave swap, VR equipment sends HNP and enables descriptor to electronic equipment, represent that VR equipment supports HNP agreement, electronic equipment is replied ACK (Acknowledgement), is namely confirmed character after receiving HNP enable descriptor, in data communication, receiving station issues the one transmission class control character of dispatching station.Represent that the data sent have confirmed that reception is errorless, after VR equipment receives reply, hanging up bus;
S3: electronic equipment detects bus suspension, and disconnects, starts HNP, and bus electric discharge is low level state;
S4:VR equipment detects low level state in bus, and VR equipment pulls up, and level state is high level, and VR equipment is connected with electronic equipment, and now VR equipment becomes USB from machine;
S5: electronic equipment detects when VR equipment connects, electronic equipment becomes usb host, and sends bus reset signal and begin to use bus;
S6: electronic equipment starts re-enumeration VR equipment, VR equipment is as from machine, enumerating electronic equipment and support standard agreement, completing master-slave swap, VR equipment is switched to from machine, and electronic equipment is switched to main frame, and the agreement that employing electronic equipment is supported, make VR equipment to power electronic equipment.
It is SetFeatureb_hnp_enable descriptor that HNP in the present invention enables descriptor full name.
As in figure 2 it is shown, VR equipment USB by the changing method switching main frame from machine is:
S11: before carrying out master-slave swap, electronic equipment is as main frame, VR equipment is as from machine, when carrying out master-slave swap, electronic equipment sends HNP and enables descriptor to VR equipment, representing that HNP agreement supported by electronic equipment, VR equipment replys ACK after receiving HNP enable descriptor, after reply received by electronic equipment, hanging up bus;
S12:VR equipment Inspection is to bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;
S13: electronic equipment detects low level state in bus, electronic equipment pulls up, and level state is high level, and electronic equipment is connected with VR equipment, and now electronic equipment becomes USB from machine;
S14:VR equipment Inspection to electronic equipment connect time, VR equipment becomes usb host, and sends bus reset signal and begin to use bus;
S15:VR equipment starts re-enumeration electronic equipment, and electronic equipment is as from machine, enumerating VR equipment and support standard agreement, completing master-slave swap, electronic equipment is switched to from machine, and VR equipment is switched to main frame, and the agreement that employing VR equipment is supported, make electronic equipment power to VR equipment.
In the present embodiment, VR equipment supports HID protocol, HNP agreement, OTG agreement.Electronic equipment supports HID protocol, HNP agreement, OTG agreement, achieve the function of VR equipment and electronic equipment communication and charging, and present embodiments provide a perfect changing method, expand the function of VR equipment, make VR equipment hosted can do from machine again, it is to avoid to occur that VR functions of the equipments are single.VR equipment is by transmitting with the end-to-end interconnection of USB with electronic equipment, and breaching can only be the pattern of main frame by electronic equipment originally, made VR functions of the equipments more horn of plenty.Due to the high speed of usb bus, motility and autgmentability, VR equipment is made to be used widely in every field.
In the present embodiment, electronic equipment includes: mobile phone, computer, flat board, intelligent terminal etc. electronic equipment.
In the present embodiment, when VR equipment USB interface is not inserted into connecting line, VR equipment USB interface acquiescence is in pull-up state, and level state is high level, and when VR equipment hosted, USB interface can pull down to ground, and level state is 0;When VR equipment does from machine, USB interface can maintain pull-up, and level state is high level.
In the present embodiment, when electronic equipment USB interface is not inserted into connecting line, electronic equipment USB interface acquiescence is in pull-up state, and level state is high level, and when electronic equipment hosted, USB interface can pull down to ground, and level state is 0;When electronic equipment does from machine, USB interface can maintain pull-up, and level state is high level.
In the present embodiment, VR equipment is switched to from machine, electronic equipment is switched to main frame, adopt the agreement that electronic equipment is supported, when making VR equipment to power electronic equipment, if VR equipment USB interface and electronic equipment disconnect, then VR equipment USB interface recovers default conditions, being in pull-up state, level state is high level.
Electronic equipment is switched to from machine, and VR equipment is switched to main frame, adopts the agreement that VR equipment is supported, when making electronic equipment power to VR equipment, if VR equipment USB interface and electronic equipment disconnect, then VR equipment USB interface recovers default conditions, being in pull-up state, level state is high level.
The present invention also provides for a kind of VR equipment USB master-slave swap system, as it is shown on figure 3, include: VR equipment 10 and electronic equipment 13;VR equipment 10 includes: VR equipment usb 11, and electronic equipment 13 includes: electronic equipment usb 12;
VR equipment 10 also includes: USB main control module 1, USB are from controlling module 2, master-slave swap control module 3, instruction sending module 4, command reception module 5, detection module 6;
USB main control module 1 is used for controlling VR equipment as main frame;
USB is used for controlling VR equipment as from machine from controlling module 2;
Instruction sending module 4 enables descriptor for sending HNP to electronic equipment;
Command reception module 5 is for receiving the data message that electronic equipment sends;
Detection module 6 is for detecting state and the detection low level state of bus of electronic equipment bus;
When master-slave swap control module 3 carries out master-slave swap for VR equipment 10 as main frame, VR equipment 10 sends HNP and enables descriptor to electronic equipment 13, represents that VR equipment 10 supports HNP agreement, after electronic equipment 13 receives HNP enable descriptor, after reply ACK, VR equipment 10 receives reply, hanging up bus;Electronic equipment 13 detects bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;VR equipment 10 detects low level state in bus, and VR equipment 10 pulls up, and level state is high level, and VR equipment 10 is connected with electronic equipment 13, and now VR equipment 10 becomes USB from machine;Electronic equipment 13 detects when VR equipment 10 connects, and electronic equipment 13 becomes usb host, and sends bus reset signal and begin to use bus, and electronic equipment 13 starts re-enumeration VR equipment 10, and master-slave swap controls module makes the conduct of VR equipment 10 from machine;Otherwise, VR equipment 10 as during from machine, master-slave swap control module make VR equipment 10 as main frame.
VR equipment 10 adopts HID protocol, HNP agreement and OTG agreement;Electronic equipment 13 adopts HID protocol, HNP agreement and OTG agreement.
VR equipment USB master-slave swap system provided by the invention, achieve and make USB interface both may operate in main equipment pattern as required, may operate in again from equipment mode, not only facilitate user, be carry out data by USB interface to exchange and provide more convenient, approach efficiently simultaneously.
In this specification, each embodiment adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, identical similar portion reference mutually between each embodiment.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention.The multiple amendment of these embodiments be will be apparent from for those skilled in the art, and generic principles defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (10)

1. a VR equipment USB master-slave switching method, it is characterised in that including: VR equipment and electronic equipment;
When VR equipment determines the state self being charged to electronic equipment, VR equipment carries out master-slave swap as main frame by HNP agreement and electronic equipment;
After carrying out master-slave swap, when electronic equipment starts to enumerate external equipment, VR device report himself is the external equipment of standard man-machine interaction.
2. VR equipment USB master-slave switching method according to claim 1, it is characterised in that
When VR equipment determines the state self being charged to electronic equipment, VR equipment carries out master-slave swap as main frame by HNP agreement and electronic equipment and specifically includes:
According to the level that detection VR device id pin is different, it is judged that the level of VR device id pin and electronic equipment ID pin, determine power supply main body according to level;
When VR equipment communicates as main frame and electronic equipment, VR equipment carries out master-slave swap by HNP agreement and electronic equipment.
3. VR equipment USB master-slave switching method according to claim 2, it is characterised in that
VR equipment determines that self is charged specifically including to described electronic equipment:
Power itself do not given by detection electronic equipment, and VR equipment opens power supply capacity;
When carrying out master-slave swap, VR equipment sends HNP and enables descriptor to electronic equipment, represents that VR equipment supports HNP agreement, after electronic equipment receives HNP enable descriptor, after ACK, the VR equipment of reply receives reply, and hanging up bus;
Electronic equipment detects bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;
VR equipment detects low level state in bus, and VR equipment pulls up, and level state is high level, and VR equipment is connected with electronic equipment, and VR equipment becomes USB from machine;
Electronic equipment detects when VR equipment connects, and electronic equipment becomes usb host, and sends bus reset signal use bus;
Electronic equipment re-enumeration VR equipment, VR equipment is as from machine, enumerating electronic equipment and support standard agreement, complete master-slave swap, and VR equipment is switched to from machine, and electronic equipment is switched to main frame and the agreement that employing electronic equipment is supported, makes VR equipment to power electronic equipment.
4. VR equipment USB master-slave switching method according to claim 3, it is characterised in that including:
Before carrying out master-slave swap, electronic equipment is as main frame, VR equipment is as from machine, when carrying out master-slave swap, electronic equipment sends HNP and enables descriptor to VR equipment, representing that HNP agreement supported by electronic equipment, VR equipment replys ACK after receiving HNP enable descriptor, after reply received by electronic equipment, hanging up bus;
VR equipment Inspection is to bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;
Electronic equipment detects low level state in bus, and electronic equipment pulls up, and level state is high level, and electronic equipment is connected with VR equipment, and electronic equipment becomes USB from machine;
VR equipment Inspection to electronic equipment connect time, VR equipment becomes usb host, and sends bus reset signal and use bus;
VR equipment re-enumeration electronic equipment, electronic equipment is as from machine, enumerating VR equipment and support standard agreement, complete master-slave swap, and electronic equipment is switched to from machine, and VR equipment is switched to main frame and the agreement that employing VR equipment is supported, makes electronic equipment power to VR equipment.
5. VR equipment USB master-slave switching method according to claim 4, it is characterised in that including:
When VR equipment USB interface is not inserted into connecting line, VR equipment USB interface acquiescence is in pull-up state, and level state is high level, and when VR equipment hosted, USB interface can pull down to ground, and level state is 0;When VR equipment does from machine, USB interface can maintain pull-up, and level state is high level.
6. VR equipment USB master-slave switching method according to claim 4, it is characterised in that including:
When electronic equipment USB interface is not inserted into connecting line, electronic equipment USB interface acquiescence is in pull-up state, and level state is high level, and when electronic equipment hosted, USB interface can pull down to ground, and level state is 0;When electronic equipment does from machine, USB interface can maintain pull-up, and level state is high level.
7. VR equipment USB master-slave switching method according to claim 4, it is characterised in that including:
VR equipment is switched to from machine, and electronic equipment is switched to main frame, adopts the agreement that electronic equipment is supported, when making VR equipment to power electronic equipment, if VR equipment USB interface and electronic equipment disconnect, then VR equipment USB interface recovers default conditions, being in pull-up state, level state is high level.
8. VR equipment USB master-slave switching method according to claim 4, it is characterised in that including:
Electronic equipment is switched to from machine, and VR equipment is switched to main frame, adopts the agreement that VR equipment is supported, when making electronic equipment power to VR equipment, if VR equipment USB interface and electronic equipment disconnect, then VR equipment USB interface recovers default conditions, being in pull-up state, level state is high level.
9. a VR equipment USB master-slave swap system, it is characterised in that including: VR equipment and electronic equipment;VR equipment includes: VR equipment USB interface, and electronic equipment includes: electronic equipment USB interface;
VR equipment also includes: USB main control module, USB are from controlling module, master-slave swap control module, instruction sending module, command reception module, detection module;
Described USB main control module is used for controlling VR equipment as main frame;
Described USB is used for controlling VR equipment as from machine from controlling module;
Described instruction sending module enables descriptor for sending HNP to electronic equipment;
Described command reception module is for receiving the data message that electronic equipment sends;
Described detection module is for detecting state and the detection low level state of bus of electronic equipment bus;
When described master-slave swap control module carries out master-slave swap for VR equipment as main frame, VR equipment sends HNP and enables descriptor to electronic equipment, represents VR equipment support HNP agreement, after electronic equipment receives HNP enable descriptor, after ACK, the VR equipment of reply receives reply, hanging up bus;Electronic equipment detects bus suspension, and disconnects, and starts HNP, and bus electric discharge is low level state;VR equipment detects low level state in bus, and VR equipment pulls up, and level state is high level, and VR equipment is connected with electronic equipment, and now VR equipment becomes USB from machine;Electronic equipment detects when VR equipment connects, and electronic equipment becomes usb host, and sends bus reset signal and begin to use bus, electronic equipment to start re-enumeration VR equipment, and master-slave swap controls module makes the conduct of VR equipment from machine;Otherwise, VR equipment as during from machine, master-slave swap control module make VR equipment as main frame.
10. VR equipment USB master-slave swap system according to claim 9, it is characterised in that including:
VR equipment adopts HID protocol, HNP agreement and OTG agreement;
Electronic equipment adopts HID protocol, HNP agreement and OTG agreement.
CN201610076638.2A 2016-02-03 2016-02-03 A kind of VR equipment USB master-slave switching method and system Active CN105760328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610076638.2A CN105760328B (en) 2016-02-03 2016-02-03 A kind of VR equipment USB master-slave switching method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610076638.2A CN105760328B (en) 2016-02-03 2016-02-03 A kind of VR equipment USB master-slave switching method and system

Publications (2)

Publication Number Publication Date
CN105760328A true CN105760328A (en) 2016-07-13
CN105760328B CN105760328B (en) 2019-07-12

Family

ID=56329710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610076638.2A Active CN105760328B (en) 2016-02-03 2016-02-03 A kind of VR equipment USB master-slave switching method and system

Country Status (1)

Country Link
CN (1) CN105760328B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095007A (en) * 2016-07-29 2016-11-09 北京小鸟看看科技有限公司 One wears display device
CN106253371A (en) * 2016-07-29 2016-12-21 北京小鸟看看科技有限公司 One wears display electric power system
CN106253372A (en) * 2016-07-29 2016-12-21 北京小鸟看看科技有限公司 A kind of power supply unit
CN106774769A (en) * 2016-12-21 2017-05-31 浙江大华技术股份有限公司 The changing method and device of a kind of terminal work mode, handheld terminal
CN107391157A (en) * 2017-07-31 2017-11-24 北京小米移动软件有限公司 Mobile terminal and the method for identifying movable storage device
CN109426638A (en) * 2017-08-24 2019-03-05 比亚迪股份有限公司 USB attachment device and terminal device including it
CN111130580A (en) * 2019-07-25 2020-05-08 北京金水燕禹科技有限公司 Multifunctional hand-held instrument
CN111176854A (en) * 2019-11-22 2020-05-19 惠州市德赛西威智能交通技术研究院有限公司 Method and system for Cartlay exit synchronization

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104873082A (en) * 2014-03-02 2015-09-02 章玺 Intelligent express box using tablet computer as control center

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104873082A (en) * 2014-03-02 2015-09-02 章玺 Intelligent express box using tablet computer as control center

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095007A (en) * 2016-07-29 2016-11-09 北京小鸟看看科技有限公司 One wears display device
CN106253371A (en) * 2016-07-29 2016-12-21 北京小鸟看看科技有限公司 One wears display electric power system
CN106253372A (en) * 2016-07-29 2016-12-21 北京小鸟看看科技有限公司 A kind of power supply unit
CN106253372B (en) * 2016-07-29 2019-07-19 北京小鸟看看科技有限公司 A kind of power supply unit
CN106774769A (en) * 2016-12-21 2017-05-31 浙江大华技术股份有限公司 The changing method and device of a kind of terminal work mode, handheld terminal
CN107391157A (en) * 2017-07-31 2017-11-24 北京小米移动软件有限公司 Mobile terminal and the method for identifying movable storage device
CN107391157B (en) * 2017-07-31 2020-07-31 北京小米移动软件有限公司 Mobile terminal and method for identifying mobile storage device
CN109426638A (en) * 2017-08-24 2019-03-05 比亚迪股份有限公司 USB attachment device and terminal device including it
CN111130580A (en) * 2019-07-25 2020-05-08 北京金水燕禹科技有限公司 Multifunctional hand-held instrument
CN111130580B (en) * 2019-07-25 2021-11-30 北京金水燕禹科技有限公司 Multifunctional hand-held instrument
CN111176854A (en) * 2019-11-22 2020-05-19 惠州市德赛西威智能交通技术研究院有限公司 Method and system for Cartlay exit synchronization
CN111176854B (en) * 2019-11-22 2023-12-29 惠州市德赛西威智能交通技术研究院有限公司 Method and system for synchronizing exit of Carplay

Also Published As

Publication number Publication date
CN105760328B (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN105760328A (en) USB master and slave switching method and system for VR device
CN101751361B (en) Switchover method for controlling data transmission interface in mobile terminal and terminal equipment
EP3726925B1 (en) Mobile terminal, power adapter, and upgrade method thereof
ES2730761T3 (en) Mobile terminal, power supply adapter and method of updating them
CN105677420B (en) interface pin configuration method and device
CN102810880B (en) Power supply control method, power supply control device and electronic device
EP3234788A1 (en) DATA TRANSMISSION USING PCIe PROTOCOL VIA USB PORT
CN108475241B (en) SPI-based data transmission method and device
CN103365388A (en) Power supply method of terminal device and terminal device
CN103645975B (en) A kind of method of abnormal restoring and serial bus transmission device
CN203849731U (en) Data processing equipment implemented based on I2C bus
CN103618356A (en) Charging system for mobile terminal and charging method thereof
CN111881072B (en) High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator
JP2005209057A (en) Data communication method
CN103838700A (en) Level multiplexing control serial communication device and method
CN106416196B (en) Mobile terminal, power adapter and upgrading method thereof
CN203813501U (en) Charger
CN103559149A (en) Method and system for working mode switchover of universal serial bus on-the-go (USB OTG) dual-role devices
CN212515785U (en) High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator
CN108027744A (en) Data transmission method and mobile terminal
CN101500325A (en) Method for implementing mobile phone interconnecting information sharing by USB electric cable
CN104899164B (en) Address addressing method for integrated circuit bus, integrated circuit bus device and system
CN102609388B (en) Slave node circuit, communication method and communication device
CN102929828B (en) Support data transmission method and the device of standard and non-standard I 2C interface simultaneously
CN102236374B (en) Mainboard

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