CN108009110B - Equipment identification method and device - Google Patents

Equipment identification method and device Download PDF

Info

Publication number
CN108009110B
CN108009110B CN201711430227.XA CN201711430227A CN108009110B CN 108009110 B CN108009110 B CN 108009110B CN 201711430227 A CN201711430227 A CN 201711430227A CN 108009110 B CN108009110 B CN 108009110B
Authority
CN
China
Prior art keywords
interface
connector
infrared signal
equipment
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711430227.XA
Other languages
Chinese (zh)
Other versions
CN108009110A (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Spreadrise 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 Shanghai Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201711430227.XA priority Critical patent/CN108009110B/en
Publication of CN108009110A publication Critical patent/CN108009110A/en
Application granted granted Critical
Publication of CN108009110B publication Critical patent/CN108009110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/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]
    • 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/38Universal adapter
    • G06F2213/3852Converter between protocols
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a device identification method and device. The method comprises the following steps: the device connector is used for receiving a first infrared signal of first equipment through a first device interface to determine that the first equipment is a master device, determining that second equipment connected with a second device interface is a slave device, and transmitting first equipment data to the second equipment, wherein the first device interface is connected with the first equipment; or the device connector is used for receiving a second infrared signal of the second device through the second device interface to determine that the second device is a master device, determine that the first device connected with the first device interface is a slave device, and transmit data of the second device to the first device, wherein the first device interface is connected with the first device. The OTG function of the USB interface can be effectively realized through the embodiment of the application, and the power consumption is effectively saved.

Description

Equipment identification method and device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a device identification method and apparatus.
Background
With the rapid development of related technologies of intelligent terminals, more and more terminals need to transmit data to each other, where OTG has come, and OTG is an abbreviation of on-the-go, and is now a very mature technology, and is mainly applied to connections between various devices or mobile devices.
Disclosure of Invention
The embodiment of the application provides an equipment identification method and device, which can effectively realize the OTG function of a USB interface and effectively save power consumption.
In a first aspect, an embodiment of the present application provides an apparatus connector, including a first apparatus interface, a second apparatus interface, and a cable connecting the first apparatus interface and the second apparatus interface;
the device connector is used for receiving a first infrared signal of first equipment through the first equipment interface to determine that the first equipment is a master device, determining that second equipment connected with a second equipment interface is slave devices, and transmitting first equipment data to the second equipment, wherein the first equipment interface is connected with the first equipment; alternatively, the first and second electrodes may be,
the device connector is used for receiving a second infrared signal of second equipment through the second equipment interface so as to determine that the second equipment is the master equipment, determining that first equipment connected with a first equipment interface is slave equipment, and transmitting second equipment data to the first equipment, wherein the first equipment interface is connected with the first equipment.
In a second aspect, an embodiment of the present application provides an apparatus identification method, where the method includes:
the device connector receives a first infrared signal from a first device interfaced by a first device interface;
the device connector determines that the first device is a master device according to the first infrared signal, and determines that a second device connected with the second device interface is a slave device;
the device connector transmits data of the first device to the second device; alternatively, the first and second electrodes may be,
the device connector receiving a second infrared signal from a second device interfaced by a second device;
the device connector determines that the second device is a master device according to the second infrared signal, and determines that the first device connected with the first device interface is a slave device;
the device connector transmits data of the second device to the first device.
In a third aspect, an embodiment of the present application provides a device connector, including:
a receiving unit for receiving a first infrared signal from a first device connected to a first device interface;
the determining unit is used for determining that the first equipment is master equipment according to the first infrared signal and determining that second equipment connected with the second equipment interface is slave equipment;
a transmission unit, configured to transmit data of the first device to the second device;
the receiving unit is further used for receiving a second infrared signal from a second device connected with a second device interface by the device connector;
the determining unit is further configured to determine, according to the second infrared signal, that the second device is a master device, and determine that the first device connected with the first device interface is a slave device;
and the transmission unit is also used for transmitting the data of the second equipment to the first equipment.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect or the second aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package, said computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present application, the device connector first receives a first infrared signal from a first device connected to the first device interface; secondly, the device connector determines that the first device is a master device according to the first infrared signal, and determines that a second device connected with a second device interface is a slave device; finally, the device connector transmits the data of the first device to the second device; or, the device connector first receives a second infrared signal from a second device connected to the second device interface; secondly, the device connector determines that the second device is a master device according to the second infrared signal, and determines that the first device connected with the first device interface is a slave device; finally, the device connector transmits the data of the second device to the first device. The OTG function of the USB interface can be effectively realized through the embodiment of the application, and the power consumption is effectively saved.
Drawings
Reference will now be made in brief to the accompanying drawings, to which embodiments of the present application relate.
Fig. 1 is a schematic structural diagram of a device connector provided in an embodiment of the present application;
fig. 2 is a flowchart illustrating an embodiment of a device identification method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating an embodiment of a device identification method according to an embodiment of the present application;
fig. 4 is a block diagram of functional units of an apparatus identification device according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The device connector according to the embodiments of the present application may be connected to various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which are merely examples and are not exhaustive, and include but not limited to the device connector.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a device connector 100 according to an embodiment of the present application, where the device connector 100 includes: device 101, USB wire interface 102, VBUS 103 in the device, D Minus 104 in the device, infrared reception 105 in the device, infrared transmission 106 in the device, D Plus 107 in the device, GND 108 in the device, VBUS 109 in the USB wire interface, D Minus110 in the USB wire interface, infrared reception 111 in the USB wire interface, DPlus 112 in the USB wire interface, GND113 in the USB wire interface.
The device connector is used for receiving a first infrared signal of first equipment through a first device interface to determine that the first equipment is a main device, determining that second equipment connected with a second device interface is a slave device, and transmitting first equipment data to the second equipment, wherein the first device interface is connected with the first equipment; or the device connector is used for receiving a second infrared signal of the second device through the second device interface to determine that the second device is a master device, determine that the first device connected with the first device interface is a slave device, and transmit data of the second device to the first device, wherein the first device interface is connected with the first device. The OTG function of the USB interface can be effectively realized through the embodiment of the application, and the power consumption is effectively saved.
In one possible example, the first device interface includes a first infrared IR transmitting circuit module, a first infrared IR receiving circuit module, a first VBUS interface, a first D Minus interface, a first D Plus interface, and a first GND interface; the second equipment interface comprises a second infrared IR transmitting circuit module, a second infrared IR receiving circuit module, a second VBUS interface, a second D Minus interface, a second D Plus interface and a second GND interface.
Therefore, in the example, the ID pin in the prior art is omitted, and infrared (IR transmission and reception) is used instead, so that the USB interface can be more durable in a certain space, and debugging is facilitated.
In one possible example, the first VBUS interface is connected to the second VBUS interface by a first wire in the cable; the first D Minus interface is connected with the second D Minus interface through a second iron wire in the cable; the first D Plus interface is connected with the second D Plus interface through a third iron wire in the cable; the first GND interface is connected with the second GND interface through a fourth iron wire in the cable.
Therefore, in this example, the OTG function of the USB interface can be effectively realized through the one-to-one correspondence of each interface, and the service life of the USB interface is increased.
In one possible example, the device connector is further configured to receive a third infrared signal of the first device through the first device interface, determine a first target rate for transmitting first data of the first device based on the third infrared signal, and transmit the first data of the first device at the first target rate; or, the device connector is further configured to receive a fifth infrared signal of the second device through the second device interface, determine a second target rate for transmitting second data of the second device according to the fifth infrared signal, and transmit the second data of the second device according to the second target rate.
Wherein the device connector supports transmission modes of different rates.
Therefore, in the example, the device connector determines the transmission rate through the received infrared signal, and then transmits data according to the transmission rate, so that the transmission rate can be flexibly changed when different signals are received, the data transmission is more accurate and faster, and the fault tolerance rate is improved.
In one possible example, the device connector is further configured to receive a fourth infrared signal of the first device through the first device interface, and determine to transmit first data of the first device in a low power consumption mode according to the fourth infrared signal; or, the device connector is further configured to receive a sixth infrared signal of the second device through the second device interface, and determine to transmit the first data of the first device in the low power consumption mode according to the sixth infrared signal.
For example, when two cellular phones exchange information with each other through a connection, one connection is at the power-consuming mini-A side, which is the A device, and is the host by default. The other is a B device and is a peripheral by default. When the device a receives the infrared signal, and determines that USB communication is not required according to the infrared signal, the device a may close the VBUS line, and at this time the device B may detect the state and enter a low power consumption mode.
Therefore, in this example, the device connector determines to transmit data in a low power consumption mode through the received infrared signal, so that power consumption can be effectively saved, and the service life of the device can be prolonged.
In one possible example, the device connector supports a host signaling protocol (HNP) and a Session Request Protocol (SRP).
It can be seen that, in this example, the host detection capability can be improved by the host signaling protocol (HNP), the power consumption can be saved by the Session Request Protocol (SRP), and the diversity and the service life of the device connection can be improved by supporting two protocols.
Referring to fig. 2, fig. 2 is a schematic flow chart of an embodiment of a device identification method according to an embodiment of the present application, applied to the device connector shown in fig. 1, consistent with the embodiment shown in fig. 1. As shown in the figure, the device identification method includes:
201, the device connector receives a first infrared signal from a first device interfaced by a first device.
202, the device connector determines, according to the first infrared signal, that the first device is a master device, and determines that a second device connected to the second device interface is a slave device.
203, the device connector transmitting data of the first device to the second device.
It can be seen that in the embodiment of the present application, the device connector receives a first infrared signal from a first device connected to the first device interface; the device connector determines that the first device is a master device according to the first infrared signal, and determines that the second device connected with the second device interface is a slave device; the device connector transmits the data of the first device to the second device; or the device connector receives a second infrared signal from a second device connected to the second device interface; the device connector determines that the second device is a master device according to the second infrared signal, and determines that the first device connected with the first device interface is a slave device; the device connector transmits data of the second device to the first device. Because the equipment connector can accurately judge the master equipment and the slave equipment through infrared signals, and the master equipment transmits data to the slave equipment, the data transmission under two different equipment is realized, and the improvement of the connection diversity between different equipment and the data transmission accuracy are facilitated.
In one possible example, the device connector receives a third infrared signal of the first device; the device connector determines a first target rate of first data of the first device according to the third infrared signal; the device connector transmits the first data according to the first target rate.
Wherein the device connector supports transmission modes of different rates.
Therefore, in the example, the device connector determines the transmission rate through the received infrared signal, and then transmits data according to the transmission rate, so that the transmission rate can be flexibly changed when different signals are received, the data transmission is more accurate and faster, and the fault tolerance rate is improved.
In one possible example, the device connector receives a fifth infrared signal of the first device; the device connector determines a second target rate of second data of the second device according to the fifth infrared signal; the device connector transmits the second data according to the second target rate.
Therefore, in the example, the master device and the slave device are determined through the received infrared signals, the transmission rate is determined, and then the data is transmitted according to the determined transmission rate, so that the transmission rate can be flexibly changed when different signals are received, the data transmission is more accurate and faster, and the fault tolerance rate is improved.
In one possible example, the device connector receives a fourth infrared signal from the first device receiving the connected first device; the equipment connector generates a first instruction according to the fourth infrared signal; the device connector closes the slave device according to the first instruction and enters a low power consumption mode; or the device connector receives a sixth infrared signal from the second device receiving connection second device; the equipment connector generates a second instruction according to the sixth infrared signal; and the device connector closes the slave device according to the second instruction and enters a low power consumption mode.
The low power consumption mode is an operating mode when the USB is turned off when communication is not required.
Therefore, in this example, the device connector determines to transmit data in a low power consumption mode through the received infrared signal, so that power consumption can be effectively saved, and the service life of the device can be prolonged.
Referring to fig. 3, fig. 3 is a schematic flowchart of a device identification method according to an embodiment of the present application, applied to the device connector shown in fig. 1, in accordance with the embodiment shown in fig. 2. As shown in the figure, the resource allocation method includes:
301, the device connector receives a second infrared signal from a second device to which the second device interface is connected.
302, the device connector determines that the second device is a master device according to the second infrared signal, and determines that the first device connected with the first device interface is a slave device.
303, the device connector transmitting data of the second device to the first device.
It can be seen that in the embodiment of the present application, the device connector receives a first infrared signal from a first device connected to the first device interface; the device connector determines that the first device is a master device according to the first infrared signal, and determines that the second device connected with the second device interface is a slave device; the device connector transmits the data of the first device to the second device; or the device connector receives a second infrared signal from a second device connected to the second device interface; the device connector determines that the second device is a master device according to the second infrared signal, and determines that the first device connected with the first device interface is a slave device; the device connector transmits data of the second device to the first device. Because the equipment connector can accurately judge the master equipment and the slave equipment through infrared signals, and the master equipment transmits data to the slave equipment, the data transmission under two different equipment is realized, and the improvement of the connection diversity between different equipment and the data transmission accuracy are facilitated.
In addition, the device connector determines the transmission rate through the received infrared signals, and then transmits data according to the transmission rate, so that the transmission rate can be flexibly changed when different signals are received, the data transmission is more accurate and faster, and the fault tolerance rate is improved.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It will be appreciated that the device connector, in order to carry out the above-described functions, comprises corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of integrated units, fig. 4 shows a block diagram of a possible functional unit of the device identification apparatus according to the above-described embodiment. The device identification apparatus 400 is applied to a mobile terminal, the mobile terminal runs an operating system and one or more application programs, the operating system includes a management module and a plurality of policy modules, and the device identification apparatus 400 includes: a receiving unit 401, a determining unit 402 and a transmitting unit 403, wherein,
the receiving unit 401 is configured to receive a first infrared signal from a first device connected to a first device interface;
the determining unit 402 is configured to determine, according to the first infrared signal, that the first device is a master device, and determine that a second device connected to the second device interface is a slave device;
the transmission unit 403 is configured to transmit data of the first device to the second device; alternatively, the first and second electrodes may be,
the receiving unit 401 is configured to receive a second infrared signal from a second device connected to a second device interface by the device connector;
the determining unit 402 is configured to determine, according to the second infrared signal, that the second device is a master device, and determine that the first device connected with the first device interface is a slave device;
the transmission unit 403 is configured to transmit the data of the second device to the first device.
It can be seen that in the embodiment of the present application, the device connector receives a first infrared signal from a first device connected to the first device interface; the device connector determines that the first device is a master device according to the first infrared signal, and determines that the second device connected with the second device interface is a slave device; the device connector transmits the data of the first device to the second device; or the device connector receives a second infrared signal from a second device connected to the second device interface; the device connector determines that the second device is a master device according to the second infrared signal, and determines that the first device connected with the first device interface is a slave device; the device connector transmits data of the second device to the first device. Because the equipment connector can accurately judge the master equipment and the slave equipment through infrared signals, and the master equipment transmits data to the slave equipment, the data transmission under two different equipment is realized, and the improvement of the connection diversity between different equipment and the data transmission accuracy are facilitated.
In a possible example, the receiving unit 401 is further configured to receive a third infrared signal of the first device;
the determining module 402 is further configured to determine a first target rate of the first data of the first device according to the third infrared signal;
the sending module 403 is further configured to send the first data according to the first target rate.
In one possible example, the device identification apparatus further includes:
the receiving module 401 is further configured to receive a fifth infrared signal of the first device;
the determining module 402 is further configured to determine a second target rate of second data of the second device according to the fifth infrared signal;
the sending module 403 is further configured to send the second data according to the second target rate.
In one possible example, the receiving unit 401 is specifically configured to: the device connector receives a fourth infrared signal from the first device receiving the connected first device; the equipment connector generates a first instruction according to the fourth infrared signal; the device connector closes the slave device according to the first instruction and enters a low power consumption mode; or the device connector receives a sixth infrared signal from the second device receiving connection second device; the equipment connector generates a second instruction according to the sixth infrared signal; and the device connector closes the slave device according to the second instruction and enters a low power consumption mode.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A device connector comprising a first device interface, a second device interface, and a cable connecting the first device interface and the second device interface; the first equipment interface comprises a first infrared IR transmitting circuit module, a first infrared IR receiving circuit module, a first Bus power supply Voltage Bus interface, a first Data negative signal Data Minus interface, a first Data positive signal Data Plus interface and a first Ground wire group interface; the second equipment interface comprises a second infrared IR transmitting circuit module, a second infrared IR receiving circuit module, a second VBUS interface, a second D Minus interface, a second DPlus interface and a second GND interface;
the device connector is used for receiving a first infrared signal of a first device through a first infrared IR receiving circuit module of the first device interface to determine that the first device is a master device, determine that a second device connected with a second device interface is a slave device, and transmit first device data to the second device, wherein the first device interface is connected with the first device; alternatively, the first and second electrodes may be,
the device connector is used for receiving a second infrared signal of second equipment through a second infrared IR receiving circuit module of the second equipment interface so as to determine that the second equipment is master equipment, determining that first equipment connected with a first equipment interface is slave equipment, and transmitting second equipment data to the first equipment, wherein the first equipment interface is connected with the first equipment.
2. The device connector of claim 1,
the first VBUS interface is connected with the second VBUS interface through a first iron wire in the cable;
the first D Minus interface is connected with the second D Minus interface through a second iron wire in the cable;
the first D Plus interface is connected with the second D Plus interface through a third iron wire in the cable;
the first GND interface is connected with the second GND interface through a fourth iron wire in the cable.
3. The device connector of claim 1 or 2,
the device connector is further configured to receive a third infrared signal of the first device through the first device interface, determine a first target rate for transmitting first data of the first device according to the third infrared signal, and transmit the first data of the first device according to the first target rate; alternatively, the first and second electrodes may be,
the device connector is further configured to receive a fifth infrared signal of the second device through the second device interface, determine a second target rate for transmitting second data of the second device according to the fifth infrared signal, and transmit the second data of the second device according to the second target rate.
4. The device connector of claim 3,
the device connector is further configured to receive a fourth infrared signal of the first device through the first device interface, and determine to transmit first data of the first device in a low power consumption mode according to the fourth infrared signal; alternatively, the first and second electrodes may be,
the device connector is further configured to receive a sixth infrared signal of the second device through the second device interface, and determine to transmit the first data of the first device in a low power consumption mode according to the sixth infrared signal.
5. The device connector of claim 1 or 2, wherein the device connector supports a host signaling protocol (HNP) and a Session Request Protocol (SRP).
6. A device identification method, characterized by being applied to the device connector according to any one of claims 1 to 3; the method comprises the following steps:
the device connector receives a first infrared signal from a first device interfaced by a first device interface;
the device connector determines that the first device is a master device according to the first infrared signal, and determines that a second device connected with the second device interface is a slave device;
the device connector transmits data of the first device to the second device; alternatively, the first and second electrodes may be,
the device connector receiving a second infrared signal from a second device interfaced by a second device;
the device connector determines that the second device is a master device according to the second infrared signal, and determines that a first device connected with the first device interface is a slave device;
the device connector transmits data of the second device to the first device.
7. The method of claim 6, further comprising:
the device connector receives a third infrared signal of the first device;
the device connector determines a first target rate of first data of the first device according to the third infrared signal;
the device connector transmits the first data according to the first target rate.
8. The method of claim 7, further comprising:
the device connector receives a fifth infrared signal of the first device;
the device connector determines a second target rate of second data of the second device according to the fifth infrared signal;
the device connector transmits the second data according to the second target rate.
9. The method according to any one of claims 6-8, characterized in that the method comprises:
the device connector receives a fourth infrared signal from the first device receiving the connected first device;
the equipment connector generates a first instruction according to the fourth infrared signal;
the device connector closes the slave device according to the first instruction and enters a low power consumption mode; alternatively, the first and second electrodes may be,
the device connector receives a sixth infrared signal from the second device receiving the second device;
the equipment connector generates a second instruction according to the sixth infrared signal;
and the device connector closes the slave device according to the second instruction and enters a low power consumption mode.
CN201711430227.XA 2017-12-26 2017-12-26 Equipment identification method and device Active CN108009110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711430227.XA CN108009110B (en) 2017-12-26 2017-12-26 Equipment identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711430227.XA CN108009110B (en) 2017-12-26 2017-12-26 Equipment identification method and device

Publications (2)

Publication Number Publication Date
CN108009110A CN108009110A (en) 2018-05-08
CN108009110B true CN108009110B (en) 2020-03-10

Family

ID=62061239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711430227.XA Active CN108009110B (en) 2017-12-26 2017-12-26 Equipment identification method and device

Country Status (1)

Country Link
CN (1) CN108009110B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115718684A (en) * 2021-06-25 2023-02-28 展讯通信(上海)有限公司 OTG function detection method, system, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197974A (en) * 2007-10-25 2008-06-11 南京Lg新港显示有限公司 Image display device and automatic mode switching method
CN101340110A (en) * 2008-04-29 2009-01-07 北京中星微电子有限公司 USB OTC device power source and implementing method thereof
CN101359316A (en) * 2007-08-03 2009-02-04 大唐移动通信设备有限公司 Method and apparatus for implementing general-purpose serial bus USB OTG
CN101741825A (en) * 2008-11-17 2010-06-16 联想(北京)有限公司 Method and equipment for switching between wireless USB interface and wired USB interface
CN107256166A (en) * 2017-05-27 2017-10-17 深圳酷旗互联网有限公司 The control system and method for application are filled after a kind of voice remote controller

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8706031B2 (en) * 2001-11-13 2014-04-22 Intel Corporation Method for switching the use of a shared set of wireless I/O devices between multiple computers
US7636549B2 (en) * 2006-04-21 2009-12-22 Abbott Medical Optics Inc. Automated bonding for wireless devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359316A (en) * 2007-08-03 2009-02-04 大唐移动通信设备有限公司 Method and apparatus for implementing general-purpose serial bus USB OTG
CN101197974A (en) * 2007-10-25 2008-06-11 南京Lg新港显示有限公司 Image display device and automatic mode switching method
CN101340110A (en) * 2008-04-29 2009-01-07 北京中星微电子有限公司 USB OTC device power source and implementing method thereof
CN101741825A (en) * 2008-11-17 2010-06-16 联想(北京)有限公司 Method and equipment for switching between wireless USB interface and wired USB interface
CN107256166A (en) * 2017-05-27 2017-10-17 深圳酷旗互联网有限公司 The control system and method for application are filled after a kind of voice remote controller

Also Published As

Publication number Publication date
CN108009110A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN108390433B (en) Quick charging method, power adapter and mobile terminal
CN111209026B (en) Mobile terminal, power adapter and upgrading method thereof
EP3179596B1 (en) Charging method, mobile terminal, and charging device
CN101873719A (en) Method, device and system for configuring wireless fidelity (WIFI) parameter
US9612991B2 (en) Connector interface pin mapping
CN106575169B (en) Method for eliminating interference of charger on touch screen and mobile terminal
US9514066B1 (en) Reconfigurable interface and method of configuring a reconfigurable interface
WO2017049549A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN104348583A (en) Information processing method and electronic equipment
CN108924325B (en) Data processing method and related device
CN108009110B (en) Equipment identification method and device
CN107454659B (en) Terminal identification method, system, terminal equipment and base station
CN103152464B (en) Equipment, method and system of obtaining fixed phone calling information through wireless way
CN112153712A (en) Communication method and device of terminal and base station
CN109151790B (en) Bluetooth device connection method and system based on network security
EP3048858A1 (en) Wireless customer premise equipment and accessing method therefor
CN113282532B (en) Communication device, communication method of communication device and electronic equipment
CN215006660U (en) Vehicle-mounted subscriber identity module circuit
CN102932497A (en) Method, device and system for obtaining internet protocol address
CN109586755B (en) Communication device, communication storage device, switching method and terminal equipment
CN107453774B (en) Digital signal receiver
CN110830962A (en) Data transmission method, device and storage medium for use in vehicle
CN109542812A (en) Data communication control method, device and terminal device
CN104427529A (en) Information processing method and terminal
CN108769956A (en) Internet of Things communication means, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221221

Address after: 201203 1st floor, building 1, Lane 36, Xuelin Road, Pudong New Area Free Trade Zone, Shanghai

Patentee after: SHANGHAI TRANSSION INFORMATION TECHNOLOGY Ltd.

Address before: Room 922 / 926, block a, No.1 Lane 399, shengxia Road, Pudong New Area pilot Free Trade Zone, Shanghai 201203

Patentee before: SHANGHAI SPREADRISE COMMUNICATION TECHNOLOGY Ltd.