CN105824771A - Electronic device and master-slave switching method and apparatus thereof - Google Patents

Electronic device and master-slave switching method and apparatus thereof Download PDF

Info

Publication number
CN105824771A
CN105824771A CN201510716307.6A CN201510716307A CN105824771A CN 105824771 A CN105824771 A CN 105824771A CN 201510716307 A CN201510716307 A CN 201510716307A CN 105824771 A CN105824771 A CN 105824771A
Authority
CN
China
Prior art keywords
equipment
electronic equipment
usb
processing unit
central processing
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
CN201510716307.6A
Other languages
Chinese (zh)
Other versions
CN105824771B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201510716307.6A priority Critical patent/CN105824771B/en
Publication of CN105824771A publication Critical patent/CN105824771A/en
Application granted granted Critical
Publication of CN105824771B publication Critical patent/CN105824771B/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/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Abstract

The invention provides an electronic device and a master-slave switching method and apparatus thereof. The master-slave switching method comprises the following steps: receiving a USB (Universal Serial Bus)_ID pin signal of a central processing unit in the electronic device, pin USB_ID of the central processing unit being grounded; judging whether another electronic device connected with the electronic device is a master device or not; when the other electronic device is not the master device, sending the USB_ID pin signal to the central processing unit; when the other electronic device is the master device, receiving a slave device switching instruction, and not sending the USB_ID pin signal to the central processing unit to switch the electronic device into a slave device according to the slave device switching instruction. According to the electronic device and the master-slave switching method and apparatus, the electronic device can be freely switched into the master device and the slave device, the reliability of a USB application is enhanced, the failure risk of the ID pin of the central processing unit is lowered, a PCB (Printed Circuit Board) wiring design space and OTG (On-The-Go) transfer cables are saved, and the switching cost is reduced.

Description

Electronic equipment and master-slave switching method thereof and device
Technical field
The present invention relates to technical field of electronic equipment, particularly relate to the master-slave switching method of a kind of electronic equipment, the master-slave swap device of a kind of electronic equipment and a kind of electronic equipment.
Background technology
At present, OTG (On-The-Go, is mainly used in the connection of various different electric room, to carry out data exchange) technology is exactly in the case of not having Host (main equipment), it is achieved the data transmission of different electric rooms.OTG agreement specifies, two electronic equipments, during carrying out data transmission, can only exist 1 Host and 1 Device (from equipment) simultaneously.Wherein, according to USB (UniversalSerialBus, USB (universal serial bus)) such as USB2.0 ID foot distinguish two electronic equipments role, i.e. the electronic equipment of ID foot ground connection be the electronic equipment of Host, ID foot unsettled (inside is drawn high) be Device.
At present, some electronic equipments are fixing by the ID foot ground connection of USB, and therefore, this electronic equipment can not do role transforming, connects Device only as Host, and role transforming Device can not be become to be connected to Host.
With reference to Fig. 1, in correlation technique, a kind of technical scheme that electronic equipment can be made to carry out role transforming is proposed, ID ' the foot of USB in electronic equipment is drawn by this technical scheme, ID ' foot is unsettled, and electronic equipment connects Host as Device, simultaneously, can be by connecing OTG patchcord by ID ' foot ground connection at electronic device exterior, thus electronic equipment connects Device as Host.
But, technical scheme in correlation technique needs when electronic equipment carries out role transforming to increase OTG patchcord, cost can be caused to increase, VBUS ' the path DC impedance of electronic equipment becomes big, D '+data signal and D '-data signal quality is deteriorated, and electronic equipment can be caused under serious conditions to charge, and detection is abnormal, cannot read storage device etc..Additionally, if USB socket enters foreign material, perspiration, rainwater etc. can cause the liquid of galvano-cautery, ID ' foot earth impedance step-down will be made, even being shorted to ground, now, ID ' foot lost efficacy, electronic equipment enters Host, and cannot role transforming be Device, electronic equipment can not be electrically charged, until shutting down after electric quantity consumption.
Summary of the invention
In view of the above problems, it is proposed that the embodiment of the present invention is to provide and overcoming the master-slave switching method of a kind of electronic equipment of the problems referred to above, the master-slave swap device of a kind of electronic equipment and corresponding a kind of electronic equipment.
In order to solve the problems referred to above, the embodiment of the invention discloses the master-slave switching method of a kind of electronic equipment, comprise the following steps: receive the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of described central processing unit;Judge whether another electronic equipment being connected with described electronic equipment is main equipment;When another electronic equipment described is not main equipment, send described USB_ID foot signal to described central processing unit;When another electronic equipment described is main equipment, receive from equipment switching command, and do not send described USB_ID foot signal to described central processing unit from equipment switching command, to switch described electronic equipment for from equipment according to described.
The embodiment of the invention also discloses the master-slave swap device of a kind of electronic equipment, including: receiver module, for receiving the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of described central processing unit;Main equipment judge module, for judging whether another electronic equipment being connected with described electronic equipment is main equipment;Sending module, for when another electronic equipment described is not main equipment, sends described USB_ID foot signal to described central processing unit;From equipment handover module, for when another electronic equipment described is main equipment, receive from equipment switching command, and do not send described USB_ID foot signal to described central processing unit from equipment switching command, to switch described electronic equipment for from equipment according to described.
The embodiment of the invention also discloses a kind of electronic equipment, including: the master-slave swap device of central processing unit and described electronic equipment, wherein, the USB_ID foot ground connection of described central processing unit.
The embodiment of the present invention includes advantages below: the USB_ID foot of central processing unit is set to ground connection, the USB_ID foot signal of central processing unit in receiving electronic equipment, and after judging whether another electronic equipment being connected with electronic equipment is main equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, send USB_ID foot signal to central processing unit;When another electronic equipment being connected with electronic equipment is main equipment, receive from equipment switching command, and do not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, saves OTG patchcord, reduces cost, and improves the unfailing performance of USB, and Consumer's Experience is good.
In order to solve the problems referred to above, the embodiment of the invention discloses the master-slave switching method of another kind of electronic equipment, described electronic equipment includes between USB_ID foot and the ground that switch module, described switch module are arranged on central processing unit in described electronic equipment;The USB_ID foot of described central processing unit is unsettled;The master-slave switching method of described electronic equipment comprises the following steps: judge whether another electronic equipment being connected with described electronic equipment is from equipment;When another electronic equipment described is from equipment, receives main equipment switching command, and control described switch module Guan Bi according to described main equipment switching command, to switch described electronic equipment as main equipment.
The embodiment of the invention also discloses the master-slave swap device of another kind of electronic equipment, described electronic equipment includes between USB_ID foot and the ground that switch module, described switch module are arranged on central processing unit in described electronic equipment;The USB_ID foot of described central processing unit is unsettled;The master-slave swap device of described electronic equipment includes: from equipment judge module, for judging whether another electronic equipment being connected with described electronic equipment is from equipment;Main equipment handover module, for when another electronic equipment described is from equipment, receives main equipment switching command, and controls described switch module Guan Bi according to described main equipment switching command, to switch described electronic equipment as main equipment.
The embodiment of the invention also discloses another kind of electronic equipment, including: the master-slave swap device of switch module, central processing unit and described electronic equipment, wherein, described switch module is arranged between USB_ID foot and the ground of described central processing unit, and the USB_ID foot of described central processing unit is unsettled.
The embodiment of the present invention includes advantages below: arrange switch module between USB_ID foot and the ground of central processing unit in the electronic device, and the USB_ID foot of central processing unit is set to unsettled, and judge whether another electronic equipment being connected with electronic equipment is from equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, receive main equipment switching command, and control switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, saves OTG patchcord, reduces cost, and improves the unfailing performance of USB, and Consumer's Experience is good.
Accompanying drawing explanation
Fig. 1 is the structural representation making technical scheme that electronic equipment carries out role transforming in correlation technique;
Fig. 2 is the flow chart of steps of the master-slave switching method embodiment of a kind of electronic equipment of the present invention;
Fig. 3 is the flow chart of steps of the master-slave switching method specific embodiment of a kind of electronic equipment of the present invention;
Fig. 4 is the structured flowchart of the master-slave swap device embodiment of a kind of electronic equipment of the present invention;
Fig. 5 is the structured flowchart of the master-slave swap device specific embodiment of a kind of electronic equipment of the present invention;
Fig. 6 is the structural representation of the master-slave swap device specific embodiment of a kind of electronic equipment of the present invention;
Fig. 7 is the flow chart of steps of the master-slave switching method embodiment of the another kind of electronic equipment of the present invention;
Fig. 8 is the flow chart of steps of the master-slave switching method specific embodiment of the another kind of electronic equipment of the present invention;
Fig. 9 is the structured flowchart of the master-slave swap device embodiment of the another kind of electronic equipment of the present invention;
Figure 10 is the structured flowchart of the master-slave swap device specific embodiment of the another kind of electronic equipment of the present invention;
Figure 11 is the structural representation of the master-slave swap device specific embodiment of the another kind of electronic equipment of the present invention.
Detailed description of the invention
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, the present invention is further detailed explanation with detailed description of the invention below in conjunction with the accompanying drawings.
One of core idea of the embodiment of the present invention is, by improving the technical scheme in correlation technique, so that electronic equipment is without OTG patchcord, and can realize freely switching main equipment and from equipment.
In the embodiment of the present invention, electronic equipment is the equipment of all use USBOTG technology that can carry out data transmission, charge, such as desktop computer, PDA (PersonalDigitalAssistant, palm PC), mobile phone, consumer devices (such as digital camera, video camera, printer etc.), TV etc., wherein, USB can be USB2.0, USB3.0 etc..
Embodiment one
With reference to Fig. 2, it is shown that the flow chart of steps of the master-slave switching method embodiment of a kind of electronic equipment of the present invention, comprise the following steps:
S1, receives the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of central processing unit.
Owing to the USB_ID foot of central processing unit is electronic equipment internal ground connection, and carry out external ground without USB connector by OTG patchcord.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB (PrintedCircuitBoard, printed circuit board) cabling design space.In one embodiment of the invention, in electronic equipment, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
S2, it is judged that whether another electronic equipment being connected with electronic equipment is main equipment.
In one embodiment of the invention, the sequencing of step S1 and step S2 can exchange, and this is not limited by the present invention.
S3, when another electronic equipment is not main equipment, sends USB_ID foot signal to central processing unit.
Wherein, another electronic equipment be not main equipment, i.e. another electronic equipment be when equipment, step S3 sends USB_ID foot signal to after central processing unit, and electronic equipment will be set up with another electronic equipment communicate as main equipment.
S4, when another electronic equipment is main equipment, receives from equipment switching command, and does not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment.
Wherein, step S4 does not send USB_ID foot signal and will set up with another electronic equipment communicate as from equipment to central processing unit, electronic equipment.
The embodiment of the present invention one includes advantages below: the USB_ID foot of central processing unit is set to ground connection, the USB_ID foot signal of central processing unit in receiving electronic equipment, and after judging whether another electronic equipment being connected with electronic equipment is main equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, transmission USB_ID foot signal is to central processing unit, and electronic equipment is as main equipment;When another electronic equipment being connected with electronic equipment is main equipment, receive from equipment switching command, and do not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment two
With reference to Fig. 3, it is shown that the flow chart of steps of the master-slave switching method specific embodiment of a kind of electronic equipment of the present invention, comprise the following steps:
S31, receives the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of central processing unit.
Owing to the USB_ID foot of central processing unit is electronic equipment internal ground connection, and carry out external ground without USB connector by OTG patchcord.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, in electronic equipment, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
S32, it is judged that whether another electronic equipment being connected with electronic equipment is main equipment;Comprise the following steps:
S321, the level value of the supply pin of USB connector in monitoring electronic equipment.
Wherein, the VBUS foot of the i.e. USB connector of the supply pin of USB connector.Due to the USB_ID foot ground connection of central processing unit in electronic equipment, in electronic equipment, the USB_ID foot signal of central processing unit is ground signalling, and in electronic equipment, the output level value of the supply pin of USB connector is more than zero, such as 5V.
S322, according to the level value of supply pin, it is judged that whether another electronic equipment being connected with electronic equipment is main equipment.
In one embodiment of the invention, the sequencing of step S31 and step S32 can exchange, and this is not limited by the present invention.
S33, when another electronic equipment is not main equipment, sends USB_ID foot signal to central processing unit.
Wherein, another electronic equipment is not main equipment, another electronic equipment i.e. is from equipment, in electronic equipment, the input level value of the supply pin of USB connector is zero, step S33 sends the USB_ID foot signal of central processing unit to after central processing unit, and electronic equipment will be as main equipment, and electronic equipment and another electronic equipment can set up communication, now, in electronic equipment, the output level value of the supply pin of USB connector is more than zero.
S34, when another electronic equipment is main equipment, receives from equipment switching command, and does not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment;Wherein, receive from equipment switching command, comprise the following steps:
S341, when another electronic equipment is main equipment, controls electronic equipment and shows from equipment switching push button.
S342, receives from equipment switching command;From equipment switching command for triggering from produced by equipment switching push button.
When another electronic equipment is main equipment, in electronic equipment, the input level value of the supply pin of USB connector is more than zero, such as 5V, and therefore, electronic equipment and another electronic equipment cannot set up communication.Step S34 does not send the USB_ID foot signal of central processing unit to central processing unit, and electronic equipment will as from equipment, thus realize communicating with the foundation of another electronic equipment, improves Consumer's Experience.
The embodiment of the present invention two includes advantages below: the USB_ID foot of central processing unit is set to ground connection, the USB_ID foot signal of central processing unit in receiving electronic equipment, and the level value of the supply pin of USB connector in monitoring electronic equipment, and according to the level value of supply pin, after judging whether another electronic equipment being connected with electronic equipment is main equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, the USB_ID foot signal of transmission central processing unit is to central processing unit, and electronic equipment is as main equipment;When another electronic equipment being connected with electronic equipment is main equipment, control electronic equipment and show from equipment switching push button, and receive trigger from produced by equipment switching push button after equipment switching command, according to not sending the USB_ID foot signal of central processing unit from equipment switching command to central processing unit, to switch electronic equipment for from equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment three
With reference to Fig. 4, it is shown that the structured flowchart of the master-slave swap device embodiment of a kind of electronic equipment of the present invention, specifically can include such as lower module:
Receiver module 41, for receiving the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of central processing unit.
Owing to the USB_ID foot of central processing unit is electronic equipment internal ground connection, and carry out external ground without USB connector by OTG patchcord.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, in electronic equipment, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
Main equipment judge module 42, for judging whether another electronic equipment being connected with electronic equipment is main equipment.
Sending module 43, for when another electronic equipment is not main equipment, sends USB_ID foot signal to central processing unit.
Wherein, another electronic equipment be not main equipment, i.e. another electronic equipment be when equipment, sending module 43 sends USB_ID foot signal to after central processing unit, and electronic equipment will be set up with another electronic equipment communicate as main equipment.
From equipment handover module 44, for when another electronic equipment is main equipment, receive from equipment switching command, and do not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment.
Wherein, do not send USB_ID foot signal from equipment handover module 44 to set up with another electronic equipment communicate as from equipment to central processing unit, electronic equipment.
The embodiment of the present invention three includes advantages below: the USB_ID foot of central processing unit is set to ground connection, the USB_ID foot signal of central processing unit in receiver module receives electronic equipment, and after main equipment judge module judges whether another electronic equipment being connected with electronic equipment is main equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, sending module transmission USB_ID foot signal is to central processing unit, and electronic equipment is as main equipment;When another electronic equipment being connected with electronic equipment is main equipment, receive from equipment switching command from equipment handover module, and do not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment four
With reference to Fig. 5, it is shown that the structured flowchart of the master-slave swap device specific embodiment of a kind of electronic equipment of the present invention, specifically can include such as lower module:
Receiver module 51, for receiving the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of central processing unit.
Owing to the USB_ID foot of central processing unit is electronic equipment internal ground connection, and carry out external ground without USB connector by OTG patchcord.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, in electronic equipment, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
Main equipment judge module 52, for judging whether another electronic equipment being connected with electronic equipment is main equipment;Including:
Monitoring submodule 521, for monitoring the level value of the supply pin of USB connector in electronic equipment.
Wherein, the VBUS foot of the i.e. USB connector of the supply pin of USB connector.Due to the USB_ID foot ground connection of central processing unit in electronic equipment, in electronic equipment, the USB_ID foot signal of central processing unit is ground signalling, and in electronic equipment, the output level value of the supply pin of USB connector is more than zero, such as 5V.
Main equipment judges submodule 522, for the level value according to supply pin, it is judged that whether another electronic equipment being connected with electronic equipment is main equipment.
Sending module 53, for when another electronic equipment is not main equipment, sends USB_ID foot signal to central processing unit.
Wherein, another electronic equipment is not main equipment, another electronic equipment i.e. is from equipment, in electronic equipment, the input level value of the supply pin of USB connector is zero, sending module 53 sends the USB_ID foot signal of central processing unit to after central processing unit, and electronic equipment will be as main equipment, and electronic equipment and another electronic equipment can set up communication, now, in electronic equipment, the output level value of the supply pin of USB connector is more than zero.
From equipment handover module 54, for when another electronic equipment is main equipment, receive from equipment switching command, and do not send USB_ID foot signal to central processing unit according to from equipment switching command, to switch electronic equipment for from equipment;Including:
Display sub-module 541, for when another electronic equipment is main equipment, controls electronic equipment and shows from equipment switching push button.
Command reception submodule 542, for receiving from equipment switching command;From equipment switching command for triggering from produced by equipment switching push button.
When another electronic equipment is main equipment, in electronic equipment, the input level value of the supply pin of USB connector is more than zero, such as 5V, and therefore, electronic equipment and another electronic equipment cannot set up communication.The USB_ID foot signal of central processing unit is not sent to central processing unit from equipment handover module 54, electronic equipment will be as from equipment, in electronic equipment, the supply pin output level value of USB connector is zero, thus realizes setting up with another electronic equipment communicating, and improves Consumer's Experience.
In one particular embodiment of the present invention, with reference to Fig. 6, the USB_ID foot ground connection of central processing unit (such as central processing unit 1 in Fig. 6) in electronic equipment, the ID foot of USB connector is unsettled, the USB_ID foot ground connection of central processing unit (such as central processing unit 2 in Fig. 6) in another electronic equipment being connected with electronic equipment, the ID foot of USB connector is unsettled, electronic equipment and another electronic equipment are respectively provided with the master-slave swap device of electronic equipment as shown in Figure 5, now, user freely can trigger according to wish arbitrary electronic equipment from equipment switching push button, electronic equipment is set up with another electronic equipment communicate, thus drastically increase Consumer's Experience.
The embodiment of the present invention four includes advantages below: the USB_ID foot of central processing unit is set to ground connection, the USB_ID foot signal of central processing unit in receiver module receives electronic equipment, and the level value of the supply pin of USB connector in monitoring submodule monitoring electronic equipment, main equipment judges submodule the level value according to supply pin, after judging whether another electronic equipment being connected with electronic equipment is main equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, sending module sends the USB_ID foot signal of central processing unit to central processing unit, electronic equipment is as main equipment;When another electronic equipment being connected with electronic equipment is main equipment, display sub-module from equipment handover module controls electronic equipment and shows from equipment switching push button, and from equipment handover module command reception submodule receive trigger from produced by equipment switching push button after equipment switching command, finally from equipment handover module according to not sending the USB_ID foot signal of central processing unit from equipment switching command to central processing unit, to switch electronic equipment for from equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment five
The embodiment of the invention also discloses a kind of electronic equipment, may include that the master-slave swap device of the electronic equipment shown in central processing unit and above-mentioned Fig. 4 or Fig. 5, wherein, USB_ID foot ground connection in central processing unit.
The embodiment of the present invention five includes advantages below: by the USB_ID foot of central processing unit is set to ground connection, and realize electronic equipment by the master-slave swap device of electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment six
With reference to Fig. 7, it is shown that the flow chart of steps of the master-slave switching method embodiment of the another kind of electronic equipment of the present invention, electronic equipment includes between USB_ID foot and the ground that switch module, switch module arrange central processing unit in the electronic device;The USB_ID foot of central processing unit is unsettled;The master-slave switching method of electronic equipment comprises the following steps:
S71, it is judged that whether another electronic equipment being connected with electronic equipment is from equipment.
S72, when another electronic equipment is from equipment, receives main equipment switching command, and controls switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment.
Wherein, in step S72, when switch module closes, the USB_ID foot ground connection of central processing unit, therefore, electronic equipment is as main equipment, and electronic equipment is set up with another electronic equipment and communicated.Owing to when switching electronic equipment and being main equipment, the USB_ID foot of central processing unit electronic equipment internal ground connection, and carries out external ground without USB connector by OTG patchcord by switch module.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
The embodiment of the present invention six includes advantages below: arrange switch module between USB_ID foot and the ground of central processing unit in the electronic device, and the USB_ID foot of central processing unit is set to unsettled, and judge whether another electronic equipment being connected with electronic equipment is from equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, receive main equipment switching command, and control switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment seven
With reference to Fig. 8, it is shown that the flow chart of steps of the master-slave switching method specific embodiment of the another kind of electronic equipment of the present invention, electronic equipment includes between USB_ID foot and the ground that switch module, switch module arrange central processing unit in the electronic device;The USB_ID foot of central processing unit is unsettled;The master-slave switching method of electronic equipment comprises the following steps:
S81, it is judged that whether another electronic equipment being connected with electronic equipment is from equipment;May comprise steps of:
S811, the level value of the supply pin of USB connector in monitoring electronic equipment.
Wherein, the VBUS foot of the i.e. USB connector of the supply pin of USB connector.Wherein, owing to the USB_ID foot of central processing unit is unsettled, the USB_ID foot signal of central processing unit is pull-up signal, and in electronic equipment, the output level value of the supply pin of USB connector is zero.
S812, according to the level value of supply pin, it is judged that whether another electronic equipment being connected with electronic equipment is from equipment.
S82, when another electronic equipment is from equipment, receives main equipment switching command, and controls switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment;Wherein, receive main equipment switching command, comprise the following steps:
S821, when another electronic equipment is from equipment, controls electronic equipment display main equipment switching push button.
S822, receives main equipment switching command;Main equipment switching command is for triggering produced by main equipment switching push button.
Wherein, when another electronic equipment is from equipment, in electronic equipment, the input level value of the supply pin of USB connector is zero, and therefore, electronic equipment and another electronic equipment cannot set up communication.Step S82 controls switch module Guan Bi, the USB_ID foot ground connection of central processing unit, thus central processing unit arranges electronic equipment as main equipment, in electronic equipment, the supply pin output level value of USB connector is more than zero, another electronic equipment is as from equipment, in electronic equipment, the supply pin input level value of USB connector is zero, it is achieved that electronic equipment is set up with another electronic equipment and communicated.
Owing to when switching electronic equipment and being main equipment, the USB_ID foot of central processing unit electronic equipment internal ground connection, and carries out external ground without USB connector by OTG patchcord by switch module.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
It addition, when another electronic equipment is main equipment, in electronic equipment, the input level value of the supply pin of USB connector is more than zero, such as 5V.Therefore, electronic equipment and another electronic equipment can set up communication.
The embodiment of the present invention seven includes advantages below: arrange switch module between USB_ID foot and the ground of central processing unit in the electronic device, and the USB_ID foot of central processing unit is set to unsettled, and monitor the level value of the supply pin of USB connector in electronic equipment, level value according to supply pin, judge whether another electronic equipment being connected with electronic equipment is from equipment, when another electronic equipment is from equipment, control electronic equipment display main equipment switching push button, receive and trigger main equipment switching command produced by main equipment switching push button, and control switch module Guan Bi according to main equipment switching command, with switching electronic equipment as main equipment, and when another electronic equipment being connected with electronic equipment is main equipment, normally set up communication.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment eight
With reference to Fig. 9, it is shown that the structured flowchart of the master-slave swap device embodiment of the another kind of electronic equipment of the present invention, electronic equipment includes between USB_ID foot and the ground that switch module, switch module arrange central processing unit in the electronic device;The USB_ID foot of central processing unit is unsettled;The master-slave swap device of electronic equipment may include that
From equipment judge module 91, for judging whether another electronic equipment being connected with electronic equipment is from equipment.
Main equipment handover module 92, for when another electronic equipment is from equipment, receives main equipment switching command, and controls switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment.
Wherein, in main equipment handover module 92, when switch module closes, the USB_ID foot ground connection of central processing unit, therefore, electronic equipment is as main equipment, and electronic equipment is set up with another electronic equipment and communicated.Owing to when switching electronic equipment and being main equipment, the USB_ID foot of central processing unit electronic equipment internal ground connection, and carries out external ground without USB connector by OTG patchcord by switch module.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
The embodiment of the present invention eight includes advantages below: arrange switch module between USB_ID foot and the ground of central processing unit in the electronic device, and the USB_ID foot of central processing unit is set to unsettled, from equipment judge module and judge whether another electronic equipment being connected with electronic equipment is from equipment, when another electronic equipment being connected with electronic equipment is for during from equipment, main equipment handover module receives main equipment switching command, and control switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment nine
With reference to Figure 10, it is shown that the structured flowchart of the master-slave swap device specific embodiment of the another kind of electronic equipment of the present invention, electronic equipment includes between USB_ID foot and the ground that switch module, switch module arrange central processing unit in the electronic device;The USB_ID foot of central processing unit is unsettled;The master-slave swap device of electronic equipment may include that
From equipment judge module 101, for judging whether another electronic equipment being connected with electronic equipment is from equipment;May include that
Monitoring means 1011, for monitoring the level value of the supply pin of USB connector in electronic equipment.
Wherein, the VBUS foot of the i.e. USB connector of the supply pin of USB connector.Wherein, owing to the USB_ID foot of central processing unit is unsettled, the USB_ID foot signal of central processing unit is pull-up signal, and in electronic equipment, the output level value of the supply pin of USB connector is zero.
From equipment judging unit 1012, for the level value according to supply pin, it is judged that whether another electronic equipment being connected with electronic equipment is from equipment.
Main equipment handover module 102, for when another electronic equipment is from equipment, receives main equipment switching command, and controls switch module Guan Bi according to main equipment switching command, to switch electronic equipment as main equipment;May include that
Display unit 1021, for when another electronic equipment is from equipment, controls electronic equipment display main equipment switching push button.
Instruction reception unit 1022, is used for receiving main equipment switching command;Main equipment switching command is for triggering produced by main equipment switching push button.
Specifically, switch module can be NMOS (NegativechannelMetalOxideSemiconductor, N-type metal-oxide semiconductor (MOS)) pipe or PMOS (PositivechannelMetalOxideSemiconductor, P-type mos) pipe or other gate-controlled switch device.
Wherein, when another electronic equipment is from equipment, in electronic equipment, the input level value of the supply pin of USB connector is zero, and therefore, electronic equipment and another electronic equipment cannot set up communication.Main equipment handover module 102 controls switch module Guan Bi, the USB_ID foot ground connection of central processing unit, thus central processing unit arranges electronic equipment as main equipment, in electronic equipment, the supply pin output level value of USB connector is more than zero, another electronic equipment is as from equipment, in electronic equipment, the supply pin input level value of USB connector is zero, it is achieved that electronic equipment is set up with another electronic equipment and communicated.
Owing to when switching electronic equipment and being main equipment, the USB_ID foot of central processing unit electronic equipment internal ground connection, and carries out external ground without USB connector by OTG patchcord by switch module.Thus the risk that the ID foot reducing switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect, and saved PCB trace design space.In one embodiment of the invention, the ID foot of USB connector could be arranged to unsettled, such that it is able to reduce the electric leakage of the ID foot of USB connector.
It addition, when another electronic equipment is main equipment, in electronic equipment, the input level value of the supply pin of USB connector is more than zero, such as 5V.Therefore, electronic equipment and another electronic equipment can set up communication.
In one particular embodiment of the present invention, with reference to Figure 11, in electronic equipment, the USB_ID foot of central processing unit (such as central processing unit 11 in Figure 11) is unsettled, the ID foot of USB connector is unsettled, in another electronic equipment being connected with electronic equipment, the USB_ID foot of central processing unit (such as central processing unit 12 in Figure 11) is unsettled, the ID foot of USB connector is unsettled, electronic equipment and another electronic equipment are respectively provided with the master-slave swap device of electronic equipment as shown in Figure 10, now, user can freely trigger the main equipment switching push button of arbitrary electronic equipment according to wish, electronic equipment is set up with another electronic equipment communicate, thus drastically increase Consumer's Experience.
nullThe embodiment of the present invention nine includes advantages below: arrange switch module between USB_ID foot and the ground of central processing unit in the electronic device,And the USB_ID foot of central processing unit is set to unsettled,Monitoring means also monitors the level value of the supply pin of USB connector in electronic equipment,From equipment judging unit according to the level value of supply pin,Judge whether another electronic equipment being connected with electronic equipment is from equipment,When another electronic equipment is from equipment,Display unit in main equipment handover module controls electronic equipment display main equipment switching push button,Instruction reception unit in main equipment handover module receives and triggers main equipment switching command produced by main equipment switching push button,Main equipment handover module also controls switch module Guan Bi according to main equipment switching command,With switching electronic equipment as main equipment,And when another electronic equipment being connected with electronic equipment is main equipment,Normally set up communication.Thus realize electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, it is achieved that optimize USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Embodiment ten
The embodiment of the invention also discloses another kind of electronic equipment, may include that switch module, central processing unit and the master-slave swap device of the electronic equipment shown in above-mentioned Fig. 9 or Figure 10, wherein, between USB_ID foot and the ground of the centrally disposed processor of switch module, the USB_ID foot of central processing unit is unsettled.
Specifically, switch module can be NMOS tube or PMOS or other gate-controlled switch device.
The embodiment of the present invention ten includes advantages below: by arranging switch module between USB_ID foot and the ground of central processing unit, and the USB_ID foot of central processing unit is set to unsettled, and realize electronic equipment by the master-slave swap device of electronic equipment and freely switch main equipment and from equipment, the USB function making electronic equipment is more sound, improve Consumer's Experience, save PCB trace design space simultaneously and saved OTG patchcord, reduce the risk that the ID foot of switching surfaces and USB connector lost efficacy, enhance the unfailing performance of USB application, achieve optimization USB charging detection and extremely and storage device problem cannot be read, make charging mechanism more perfect.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, and between each embodiment, identical similar part sees mutually.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of range of embodiment of the invention.
Finally, it can further be stated that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation or sequentially that there is any this reality between these entities or operation.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or terminal unit.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Above to electronic equipment provided by the present invention and master-slave switching method thereof and device, it is described in detail, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, the most all will change, in sum, this specification content should not be construed as limitation of the present invention.

Claims (15)

1. the master-slave switching method of an electronic equipment, it is characterised in that comprise the following steps:
Receive the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of described central processing unit;
Judge whether another electronic equipment being connected with described electronic equipment is main equipment;
When another electronic equipment described is not main equipment, send described USB_ID foot signal to described central processing unit;
When another electronic equipment described is main equipment, receive from equipment switching command, and do not send described USB_ID foot signal to described central processing unit from equipment switching command, to switch described electronic equipment for from equipment according to described.
Master-slave switching method the most according to claim 1, it is characterised in that described reception, from equipment switching command, comprises the following steps:
When another electronic equipment described is main equipment, controls described electronic equipment and show from equipment switching push button;
Receive described from equipment switching command;Described described from produced by equipment switching push button for triggering from equipment switching command.
Master-slave switching method the most according to claim 1, it is characterised in that whether another electronic equipment that described judgement is connected with described electronic equipment is main equipment, comprises the following steps:
The level value of the supply pin of USB connector in monitoring electronic equipment;
Level value according to described supply pin, it is judged that whether another electronic equipment being connected with described electronic equipment is main equipment.
4. the master-slave swap device of an electronic equipment, it is characterised in that including:
Receiver module, for receiving the USB_ID foot signal of central processing unit in electronic equipment;The USB_ID foot ground connection of described central processing unit;
Main equipment judge module, for judging whether another electronic equipment being connected with described electronic equipment is main equipment;
Sending module, for when another electronic equipment described is not main equipment, sends described USB_ID foot signal to described central processing unit;
From equipment handover module, for when another electronic equipment described is main equipment, receive from equipment switching command, and do not send described USB_ID foot signal to described central processing unit from equipment switching command, to switch described electronic equipment for from equipment according to described.
Master-slave swap device the most according to claim 4, it is characterised in that described include from equipment handover module:
Display sub-module, for when another electronic equipment described is main equipment, controls described electronic equipment and shows from equipment switching push button;
Command reception submodule, is used for receiving described from equipment switching command;Described described from produced by equipment switching push button for triggering from equipment switching command.
Master-slave swap device the most according to claim 4, it is characterised in that described main equipment judge module includes:
Monitoring submodule, for monitoring the level value of the supply pin of USB connector in electronic equipment;
Main equipment judges submodule, for the level value according to described supply pin, it is judged that whether another electronic equipment being connected with described electronic equipment is main equipment.
7. an electronic equipment, it is characterised in that including: central processing unit and the master-slave swap device according to the electronic equipment according to any one of claim 4-6, wherein, the USB_ID foot ground connection of described central processing unit.
8. the master-slave switching method of an electronic equipment, it is characterised in that described electronic equipment includes between USB_ID foot and the ground that switch module, described switch module are arranged on central processing unit in described electronic equipment;The USB_ID foot of described central processing unit is unsettled;The master-slave switching method of described electronic equipment comprises the following steps:
Judge whether another electronic equipment being connected with described electronic equipment is from equipment;
When another electronic equipment described is from equipment, receives main equipment switching command, and control described switch module Guan Bi according to described main equipment switching command, to switch described electronic equipment as main equipment.
Master-slave switching method the most according to claim 8, it is characterised in that described reception main equipment switching command, comprises the following steps:
When another electronic equipment described is from equipment, control described electronic equipment display main equipment switching push button;
Receive described main equipment switching command;Described main equipment switching command is for triggering produced by described main equipment switching push button.
Master-slave switching method the most according to claim 8, it is characterised in that whether another electronic equipment that described judgement is connected with electronic equipment is from equipment, comprises the following steps:
The level value of the supply pin of USB connector in monitoring electronic equipment;
Level value according to described supply pin, it is judged that whether another electronic equipment being connected with described electronic equipment is from equipment.
The master-slave swap device of 11. 1 kinds of electronic equipments, it is characterised in that described electronic equipment includes between USB_ID foot and the ground that switch module, described switch module are arranged on central processing unit in described electronic equipment;The USB_ID foot of described central processing unit is unsettled;The master-slave swap device of described electronic equipment includes:
From equipment judge module, for judging whether another electronic equipment being connected with described electronic equipment is from equipment;
Main equipment handover module, for when another electronic equipment described is from equipment, receives main equipment switching command, and controls described switch module Guan Bi according to described main equipment switching command, to switch described electronic equipment as main equipment.
12. master-slave swap device according to claim 11, it is characterised in that described main equipment handover module includes:
Display unit, for when another electronic equipment described is from equipment, controls described electronic equipment display main equipment switching push button;
Instruction reception unit, is used for receiving described main equipment switching command;Described main equipment switching command is for triggering produced by described main equipment switching push button.
13. master-slave swap devices according to claim 11, it is characterised in that described include from equipment judge module:
Monitoring means, for monitoring the level value of the supply pin of USB connector in electronic equipment;
From equipment judging unit, for the level value according to described supply pin, it is judged that whether another electronic equipment being connected with described electronic equipment is from equipment.
14. 1 kinds of electronic equipments, it is characterized in that, including: switch module, central processing unit and the master-slave swap device according to the electronic equipment according to any one of claim 11-13, wherein, described switch module is arranged between USB_ID foot and the ground of described central processing unit, and the USB_ID foot of described central processing unit is unsettled.
15. electronic equipments according to claim 14, it is characterised in that described switch module is NMOS tube or PMOS.
CN201510716307.6A 2015-10-28 2015-10-28 Electronic equipment and its master-slave switching method and device Active CN105824771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510716307.6A CN105824771B (en) 2015-10-28 2015-10-28 Electronic equipment and its master-slave switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510716307.6A CN105824771B (en) 2015-10-28 2015-10-28 Electronic equipment and its master-slave switching method and device

Publications (2)

Publication Number Publication Date
CN105824771A true CN105824771A (en) 2016-08-03
CN105824771B CN105824771B (en) 2019-10-15

Family

ID=56514884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510716307.6A Active CN105824771B (en) 2015-10-28 2015-10-28 Electronic equipment and its master-slave switching method and device

Country Status (1)

Country Link
CN (1) CN105824771B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776428A (en) * 2016-12-06 2017-05-31 广州视源电子科技股份有限公司 Terminal device, read-write equipment, data transmission system and hardware initialization method
CN107977331A (en) * 2016-10-25 2018-05-01 中兴通讯股份有限公司 A kind of control method, device and terminal
CN108549612A (en) * 2018-03-20 2018-09-18 青岛海信移动通信技术股份有限公司 A kind of method and USB controller of adjustment operating mode
CN108563594A (en) * 2018-03-26 2018-09-21 联想(北京)有限公司 A kind of data transmission method, device and USB adapter
CN109508309A (en) * 2017-09-15 2019-03-22 神讯电脑(昆山)有限公司 Electronic device and automatic switching of connected Path Method
CN109800198A (en) * 2019-01-17 2019-05-24 上海华测导航技术股份有限公司 A kind of USB port connects three equipment and realizes the autonomous switching circuits of hardware
CN112181880A (en) * 2020-09-09 2021-01-05 深圳拔越软件有限公司 Method and device for controlling switching of USB channel
CN112234704A (en) * 2020-10-12 2021-01-15 维沃移动通信有限公司 Flash lamp power supply switching circuit, flash lamp control method and electronic equipment
CN114895968A (en) * 2022-04-29 2022-08-12 苏州浪潮智能科技有限公司 Server maintenance method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526930A (en) * 2008-10-13 2009-09-09 建荣集成电路科技(珠海)有限公司 USB interface master-slave machine detection device and detection method
CN101847801A (en) * 2010-04-09 2010-09-29 友达光电股份有限公司 Electronic device and concatenation method thereof
CN102750248A (en) * 2012-06-21 2012-10-24 中兴通讯股份有限公司 USB (Universal Serial Bus) equipment working mode switching method and USB equipment
CN104951034A (en) * 2015-07-16 2015-09-30 广东欧珀移动通信有限公司 Mobile terminal and USB interface mode control method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526930A (en) * 2008-10-13 2009-09-09 建荣集成电路科技(珠海)有限公司 USB interface master-slave machine detection device and detection method
CN101847801A (en) * 2010-04-09 2010-09-29 友达光电股份有限公司 Electronic device and concatenation method thereof
CN102750248A (en) * 2012-06-21 2012-10-24 中兴通讯股份有限公司 USB (Universal Serial Bus) equipment working mode switching method and USB equipment
CN104951034A (en) * 2015-07-16 2015-09-30 广东欧珀移动通信有限公司 Mobile terminal and USB interface mode control method and device thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977331A (en) * 2016-10-25 2018-05-01 中兴通讯股份有限公司 A kind of control method, device and terminal
WO2018077094A1 (en) * 2016-10-25 2018-05-03 西安中兴新软件有限责任公司 Controlling method and apparatus, and terminal
CN106776428A (en) * 2016-12-06 2017-05-31 广州视源电子科技股份有限公司 Terminal device, read-write equipment, data transmission system and hardware initialization method
CN106776428B (en) * 2016-12-06 2020-05-08 广州视源电子科技股份有限公司 Terminal device, read-write device, data transmission system and hardware initialization method
CN109508309A (en) * 2017-09-15 2019-03-22 神讯电脑(昆山)有限公司 Electronic device and automatic switching of connected Path Method
CN108549612B (en) * 2018-03-20 2021-03-19 青岛海信移动通信技术股份有限公司 Method for adjusting working mode and USB controller
CN108549612A (en) * 2018-03-20 2018-09-18 青岛海信移动通信技术股份有限公司 A kind of method and USB controller of adjustment operating mode
CN108563594A (en) * 2018-03-26 2018-09-21 联想(北京)有限公司 A kind of data transmission method, device and USB adapter
CN108563594B (en) * 2018-03-26 2022-03-25 联想(北京)有限公司 Data transmission method and device and USB adapter
CN109800198A (en) * 2019-01-17 2019-05-24 上海华测导航技术股份有限公司 A kind of USB port connects three equipment and realizes the autonomous switching circuits of hardware
CN112181880A (en) * 2020-09-09 2021-01-05 深圳拔越软件有限公司 Method and device for controlling switching of USB channel
CN112234704A (en) * 2020-10-12 2021-01-15 维沃移动通信有限公司 Flash lamp power supply switching circuit, flash lamp control method and electronic equipment
CN114895968A (en) * 2022-04-29 2022-08-12 苏州浪潮智能科技有限公司 Server maintenance method, device, equipment and storage medium
CN114895968B (en) * 2022-04-29 2023-08-11 苏州浪潮智能科技有限公司 Server maintenance method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105824771B (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN105824771A (en) Electronic device and master-slave switching method and apparatus thereof
US8235746B2 (en) USB connector structure
KR101682611B1 (en) Cable with circuitry for communicating performance information
JP5283719B2 (en) Electronic equipment and electronic equipment system
US20140013024A1 (en) Interposer and intelligent multiplexer to provide a plurality of peripherial buses
CN102750252A (en) Circuit capable of reusing universal serial bus (USB)/ universal asynchronous receiver/ transmitter (UART) interfaces and electronic device using same
CN106655316B (en) Charging circuit and terminal device
CN107391419B (en) Support general sequence busbar concentrator of many host computers and automobile-used host computer
CN109426638B (en) USB connecting device and terminal equipment comprising same
US20110252277A1 (en) Electronic device with debugging and software updating function
US20120096286A1 (en) Charging management method, charging control circuit and the host apparatus having the same
US8364976B2 (en) Pass-through adapter with crypto ignition key (CIK) functionality
CN107506322B (en) Type-C adapter for realizing detection of USB equipment and channel control method
US20170093095A1 (en) Transmission line for electronic apparatus
CN102270860A (en) Fast charging device of intelligent mobile phone
CN109478174B (en) Switch for reversible interface
US9584919B2 (en) Interface switching system and method for switching operation mode
KR102318130B1 (en) External electrical connector and computer system
CN102236374B (en) Mainboard
US9378074B2 (en) Server system
US8527686B2 (en) Electronic device having multifunctional network interface port
CN108141677A (en) A kind of loud speaker module, audio compensation methods and device
US20130019046A1 (en) Data transmitting device and system for portable device and method thereof
CN105337128A (en) Interface patch cord and standard module
CN204515763U (en) Data line and terminal system

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