[go: up one dir, main page]

CN105677420A - Method and device for interface pin configuration - Google Patents

Method and device for interface pin configuration Download PDF

Info

Publication number
CN105677420A
CN105677420A CN201610012976.XA CN201610012976A CN105677420A CN 105677420 A CN105677420 A CN 105677420A CN 201610012976 A CN201610012976 A CN 201610012976A CN 105677420 A CN105677420 A CN 105677420A
Authority
CN
China
Prior art keywords
interface
module
sub
equipment
information
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
CN201610012976.XA
Other languages
Chinese (zh)
Other versions
CN105677420B (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.)
Cloudminds Inc
Original Assignee
Cloudminds Inc
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 Cloudminds Inc filed Critical Cloudminds Inc
Priority to CN201610012976.XA priority Critical patent/CN105677420B/en
Publication of CN105677420A publication Critical patent/CN105677420A/en
Priority to PCT/CN2017/071011 priority patent/WO2017118441A1/en
Application granted granted Critical
Publication of CN105677420B publication Critical patent/CN105677420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a method and device for interface pin configuration. The method comprises the steps: a first device reads prestored information of an external connection device or module through a preset pin of a interface; the external connection device or module is connected with the first device through the interface; the prestored information comprises the type of the external connection device or module, a power supply mode or a communication interface type; and configuring a pin of the interface according to the prestored information. By adoption of the technical scheme, the potential risk of device damage and the like which are possibly caused by the fact that power is supplied to each pin directly after the interface is in inserted connection well in the prior art can be avoided, and the device connection safety is improved.

Description

The method of a kind of interface pin configuration and device
Technical field
The application relates to the technical field that interface connects check processing, it is possible to be applied to high in the clouds field in intelligent robotics, a kind of method configured in particular to interface pin and device.
Background technology
Current scheme is after the interface grafting connected between equipment or module, directly for each pin of interface powers on.
Prior art is directly each pin powered after interface grafting well, it is possible to cause the potential safety hazards such as device damage.
Application content
The embodiment of the present application proposes method and the device of a kind of interface pin configuration, the potential safety hazard that may exist in order to existing interface connection handling scheme.
The embodiment of the present application provides the method for a kind of interface pin configuration, comprises the steps:
First equipment reads the information that prestores of external equipment or module by the default pin of interface; Described external equipment or module are by described interface and described first equipment connection; The described information that prestores: the type of described external equipment or module, power supply mode or communication interface type;
Pin according to the described interface described in information configuration that prestores.
The embodiment of the present application provides the device of a kind of interface pin configuration, comprising:
Reading unit, for reading the information that prestores of external equipment or module by the default pin of interface; Described external equipment or module are by described interface and described first equipment connection; The described information that prestores: the type of described external equipment or module, power supply mode or communication interface type;
Dispensing unit, for the pin of the interface described in information configuration that prestores described in basis.
The useful effect of the application is as follows:
The embodiment of the present application provides method and the device of a kind of interface pin configuration, owing to being the information that prestores that the default pin by connecting interface reads external equipment or module, and according to the described information that prestores, the interface of the first equipment and described external equipment or model calling is configured, first equipment can carry out interface configuration according to the information of prestoring of described external equipment or module, avoid prior art being directly after interface grafting well each pin powered, the potential safety hazards such as the device damage that may cause, it is to increase the security of equipment connection.
Accompanying drawing explanation
The specific embodiment of the application is described below with reference to accompanying drawings,
Fig. 1 is the flow process schematic diagram of the method for interface pin configuration in the embodiment of the present application;
Fig. 2 is the schematic diagram that in the embodiment of the present application, the first equipment is connected by interface with external equipment or module, and wherein, 1 is the first equipment, and 2 is interface, and 3 is external equipment or module;
Fig. 3 is the layout structure schematic diagram of the interface in the embodiment of the present application;
Fig. 4 is the interface pin distribution schematic diagram in the embodiment of the present application;
Fig. 5 is the structure schematic diagram of the device of interface pin configuration in the embodiment of the present application;
Fig. 6 is the implementing procedure schematic diagram of interface pin configuration in the embodiment of the present application.
Specific embodiment party formula
Technical scheme and advantage in order to make the application are clearly understood, below in conjunction with accompanying drawing, the exemplary embodiment of the application is described in more detail, obviously, described embodiment is only a part of embodiment of the application, instead of all embodiments is exhaustive. And when not conflicting, the embodiment in this description and the feature in embodiment can be combined with each other.
Fig. 1 is the flow process schematic diagram of the method for interface pin configuration in the embodiment of the present application, and as shown in Figure 1, the method for this interface pin configuration can comprise the steps:
Step 101: the first equipment reads the information that prestores of external equipment or module by the default pin of interface; Described external equipment or module are by described interface and described first equipment connection; The described information that prestores: the type of described external equipment or module, power supply mode or communication interface type;
Step 102: according to the pin of the described interface described in information configuration that prestores.
In concrete enforcement, the first equipment can be intelligent handheld device, high in the clouds intelligent robot etc.
Default pin can be have any pin that data communication function reads the information that prestores from external equipment, such as, can be UART (UniversalAsynchronousReceiver/Transmitter, universal asynchronous receiving-transmitting transmitter) data pins of sub-interface, USB (UniversalSerialBus, general serial bus) data pins of sub-interface, I2C (Inter-IntegratedCircuit, IC bus) data pins of sub-interface, or other function pin, is not specifically limited here.
Fig. 2 is the schematic diagram that in the embodiment of the present application, the first equipment is connected by interface with external equipment or module, as shown in Figure 2,1 it is provided with the interface 2 can being connected with external equipment or module 3 on the first device, being provided with on external equipment or module 3 and the interface that interface 2 phase is mated, the first equipment is connected by interface with external equipment or module.
The method of the interface pin configuration that the embodiment of the present application provides, owing to being the information that prestores that the default pin by connecting interface reads external equipment or module, and according to the described information that prestores, the interface of the first equipment and described external equipment or model calling is configured, first equipment can carry out interface configuration according to the information of prestoring of described external equipment or module, avoid prior art being directly after interface grafting well each pin powered, the potential safety hazards such as the device damage that may cause, it is to increase the security of equipment connection.
In enforcement, before the first equipment reads the information that prestores of external equipment or module by interface, it is also possible to comprising:
Detect the insertion detection sub-interface of described interface;
Testing result according to described insertion detection sub-interface determines that whole pin of described interface connects.
In concrete enforcement, described interface can comprise insertion detection sub-interface, after the first equipment is connected with external equipment or module interface, can judge whether whole pins of described interface connect by insertion detection sub-interface.
Specifically, can by the GND (Ground of the pin of the insertion of described interface detection sub-interface and the interface being provided with external equipment or module, ground) connect, the level of the pin of the first Equipment Inspection insertion detection sub-interface, if low level, then illustrate that whole pins of described interface are connected with the interface on external equipment or module; Otherwise, illustrate that one or more pin of described interface is not connected with the interface on external equipment or module.
Before first equipment reads the information that prestores of external equipment or module by interface, the insertion being carried out interface pin by insertion detection sub-interface connects detection, after interface exact connect ion can be guaranteed, the default pin opening described interface again reads the information that prestores of external equipment or module, and when avoiding occurring that interface connects bad, the problem of the information that prestores is read in impact.
In enforcement, the first equipment reads the information that prestores of external equipment or module by the default pin of interface, it is possible to specifically comprise:
The I2C sub-interface that first equipment is described interface is powered;
By the data pins of described I2C sub-interface from the information that prestores described in described external equipment or module reading; The described information of prestoring prestores in the memory of described external equipment or module, is that described memory is powered by the power pin of described I2C sub-interface.
In concrete enforcement, I2C is the two two-way continuous buses of line, serial communication line between integrated circuit is provided, adopt a data line (SDA), clock lines (SCL) completes the transmission of data and the expansion of peripheral components to add one, owing to the addressing of I2C is soft addressing mode, it is possible to save sheet route selection.
The data amount of the information that prestores usually can not be big especially, I2C bus has three kinds of transfer speed: standard (100Kbps), fast fast mode (400Kbps) and high fast mode (3.4Mbps), can meet completely to the rate request that the information that prestores reads.
In addition, power by the power pin of I2C sub-interface owing to storing the memory of information of prestoring, instead of power by external equipment or module, also can normally use powering on without the need to external equipment or module like this, it is to increase safety in utilization.
In enforcement, before the pin of the described interface described in information configuration that prestores, it is also possible to comprising:
Determine that described first equipment allows to connect described external equipment or module according to the type of described external equipment or module.
In concrete enforcement, before the pin of the described interface described in information configuration that prestores, it is also possible to judge whether the type of external equipment or the module prestoring in information is allowed to connect by the first equipment. If determining, described first equipment allows to connect described external equipment or module, then the pin of the interface described in information configuration that prestores described in continuation basis. By determining that the type of external equipment or module is allowed equipment or the module type of connection by the first equipment, it is possible to avoid the equipment connection of mistake, avoid the configuration work of the unnecessary pin to described interface.
In enforcement, the method for described interface pin configuration can also comprise:
If determining, described first equipment does not allow to connect described external equipment or module, then exit interface and connect.
In concrete enforcement, determine that the type of external equipment or module is forbidden by the first equipment connecting the equipment that maybe can not identify or module type, then exit interface to connect, described interface can not be configured and power on, all right reporting fault information, prompting external equipment or module are that the first equipment is forbidden connecting the equipment that maybe can not identify or module.
In enforcement, according to the pin of the described interface described in information configuration that prestores, it is possible to specifically comprise:
According to the described power supply mode prestored in information, configure the power supply parameter of the power pin of each sub-interface of described interface;
That connects in the communicator interface of following described interface according to the described communication interface type that prestores in information is one or more: PCIE (PeripheralComponentInterconnectExpress, peripheral interconnect standard) sub-interface, UART sub-interface, SIM (SubscriberIdentityModule, client identification module) clamp interface, I2C sub-interface or USB sub-interface.
In concrete enforcement, the pin of the described interface needed for external equipment or module being communicated with the first equipment connection according to the information of prestoring is connected, and pin can comprise: power pin in the sub-interfaces such as I2C sub-interface, UART sub-interface, SIM clamp interface, state-detection sub-interface, control sub-interface or data pins etc. And according to the information of prestoring, the power supply parameter of the power pin of each sub-interface is configured, wherein power supply parameter can comprise: input voltage scope, output voltage, power output, efficiency etc.
Determine that external equipment or module are powered by the first equipment or powered by the first equipment according to the power supply mode in the information of prestoring, correspondingly, connect external supplied for electronic interface or connect charging sub-interface, it is to increase the security that equipment is powered.
In enforcement, described in the information of prestoring can also comprise: the attribute information of described external equipment or module, described attribute information comprises: main equipment, or from equipment;
Described method, it is also possible to comprising:
Principal and subordinate's relation of described first equipment and described external equipment or module is determined according to described attribute information.
In concrete enforcement, in the process such as state-detection or control, also relate to the determination of principal and subordinate's relation of the first equipment and described external equipment or module, so, the described information of prestoring can also comprise the attribute information of described external equipment or module, that is, described external equipment or module are main equipment or from equipment.
If attribute information is main equipment, then determining that the principal and subordinate of the first equipment and described external equipment or module is closed is: the first equipment is for from equipment, described external equipment or module are main equipment; If attribute information is from equipment, then determining that the principal and subordinate of the first equipment and described external equipment or module is closed is: the first equipment is main equipment, and described external equipment or module are from equipment.
In enforcement, described interface can also comprise: state-detection sub-interface, control sub-interface, externally supplied for electronic interface or charging sub-interface.
Fig. 3 is the layout structure schematic diagram of the interface in the embodiment of the present application, and as shown in Figure 3, the external supplied for electronic interface in described interface is that external equipment or module are provided the sub-interface of power supply by the first equipment; The sub-interface that charges to provide the external equipment of power supply or module to be the sub-interface that the first equipment provides power supply; Insertion detection sub-interface is the sub-interface judging whether external equipment or module are correctly plugged into described interface; PCIE sub-interface, USB sub-interface, UART sub-interface and I2C sub-interface are respectively high, medium and low speed communicator interface; SIM clamp interface is and possesses SIM in the external equipment of wireless communication function or module and stick into the sub-interface of the letter that works; State-detection sub-interface, control sub-interface are the interface of the function state of detection, control external equipment or module, it is possible to according to the free defining interface number of pin of function demand and point mode for cloth.
Fig. 4 is the interface pin distribution schematic diagram in the embodiment of the present application, as shown in Figure 4, due to PCIE sub-interface, USB sub-interface, I2C sub-interface is the interface that communicates conventional in current equipment connection with UART sub-interface, therefore by the relevant pins being defined in interface separate for these sub-interfaces.
Pin 1~6 belongs to external supplied for electronic interface, pin 7 and 62 belongs to insertion detection sub-interface, pin 11, 13, 17, 19, 23, 25, 29, 31, 33 belong to PCIE sub-interface, pin 37 and 39 belongs to UART sub-interface, pin 47, 49, 51, 53, 55 belong to SIM clamp interface, pin 59, 61, 63 belong to I2C sub-interface, pin 65~68 belongs to charging sub-interface, pin 44, 46, 50, 52, 56, 58 belong to USB sub-interface, pin 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 38, 40 belong to state-detection sub-interface and control sub-interface complexing pin.
In order to reduce between data pins, especially interference between the data pins of high rate communication, can arranging GND pin between data pins, such as, pin 9,15,21,27,35,36,42,45,48,54,57,60 is the GND pin reducing interference between data pins.
In enforcement, described state-detection sub-interface and described control sub-interface can the same data pins of multiplexing.
Concrete implement, owing to state-detection and control do not carry out usually simultaneously, it is possible to by state-detection sub-interface with control sub-interface can the same data pins of multiplexing, with the pin of Appropriate application interface.
Conceive based on same application, the embodiment of the present application additionally provides the device of a kind of interface pin configuration, the principle dealt with problems due to this device is similar to a kind of method that interface pin configures, and therefore the enforcement of this device see the enforcement of method, can repeat part and repeat no more.
Fig. 5 is the structure schematic diagram of the device of interface pin configuration in the embodiment of the present application, and as shown in Figure 5, the device of this interface pin configuration can comprise:
Reading unit 501, for reading the information that prestores of external equipment or module by the default pin of interface; Described external equipment or module are by described interface and described first equipment connection; The described information that prestores: the type of described external equipment or module, power supply mode or communication interface type;
Dispensing unit 502, for the pin of the interface described in information configuration that prestores described in basis.
In enforcement, the device of described interface pin configuration can also comprise:
Detecting unit, read the information that prestores of external equipment or module by interface for the first equipment before, detects the insertion detection sub-interface of described interface;
Connect determining unit, for determining that whole pin of described interface connects according to the testing result of described insertion detection sub-interface.
In enforcement, described reading unit can be powered specifically for the IC bus I2C sub-interface for described interface; By the data pins of described I2C sub-interface from the information that prestores described in described external equipment or module reading; The described information of prestoring prestores in the memory of described external equipment or module, is that described memory is powered by the power pin of described I2C sub-interface.
In enforcement, the device of described interface pin configuration can also comprise:
Allow to connect determining unit, before the pin for the interface described in information configuration that prestores described in basis, determine that described first equipment allows to connect described external equipment or module according to the type of described external equipment or module.
In enforcement, the device of described interface pin configuration can also comprise:
Exit connection unit, if for determining that described first equipment does not allow to connect described external equipment or module, then exit interface and connect.
In enforcement, described dispensing unit can power supply mode specifically for prestoring described in basis in information, configure the power supply parameter of the power pin of each sub-interface of described interface; That connects in the communicator interface of following described interface according to the described communication interface type that prestores in information is one or more: PCIE sub-interface, UART sub-interface, SIM clamp interface, I2C sub-interface or USB sub-interface.
In enforcement, described in the information of prestoring can also comprise: the attribute information of described external equipment or module, described attribute information comprises: main equipment, or from equipment;
Described device, it is also possible to comprising:
Principal and subordinate's relation determining unit, for determining principal and subordinate's relation of described first equipment and described external equipment or module according to described attribute information.
In enforcement, described interface can also comprise: state-detection sub-interface, control sub-interface, externally supplied for electronic interface or charging sub-interface.
In enforcement, described state-detection sub-interface and described control sub-interface can the same data pins of multiplexing.
For convenience of description, each several part of the above device is divided into various module or unit to describe respectively with function. Certainly, the function of each module or unit can be realized in same or multiple software or hardware when implementing the application.
The method of the interface pin configuration in the embodiment of the present invention and device, can be applicable to interface pin configuration when equipment interface connects. Fig. 6 is the implementing procedure schematic diagram of interface pin configuration in the embodiment of the present application, as shown in Figure 6, is described below in conjunction with a concrete application scene. After connecting interface, first carry out insertion detection by insertion detection sub-interface, it is determined that all pins of interface connect? if no, then exiting interface to connect; If then connecting the I2C sub-interface of interface. Do you read the information that prestores of external equipment or module by the data pins of I2C sub-interface after, judge that the type of external equipment or module is the type that the first equipment allows to connect? if not, then exit interface and connect; If then reading the power supply mode of external equipment or the module prestoring in information. Do you determine that external equipment or module are powered by the first equipment according to power supply mode? if then connecting external supplied for electronic interface and external equipment or module being powered; Otherwise, connect charging sub-interface, by external equipment or module, the first equipment powered. After configuring outer supplied for electronic interface or charging sub-interface, read the communication interface type prestored in information. Connect the one or more communicator interfaces in described interface according to the communication interface type in the information of prestoring, wherein, communicator interface can comprise: PCIE sub-interface, UART sub-interface, SIM clamp interface, I2C sub-interface or USB sub-interface etc.
As seen from the above-described embodiment, in the technical scheme that the embodiment of the present application provides, before the pin configuration of docking port, the information that prestores of external equipment or module is read by connecting the default pin (data pins of I2C sub-interface) of interface, and according to the described information that prestores, the interface of the first equipment and described external equipment or model calling is configured, first equipment can carry out interface configuration according to the information of prestoring of described external equipment or module, avoid prior art being directly after interface grafting well each pin powered, the potential safety hazards such as the device damage that may cause, improve the security of equipment connection.
Those skilled in the art are it should be appreciated that the embodiment of the application can be provided as method, system or computer program. Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect. And, the application can adopt the form at one or more upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) wherein including computer usable program code.
The application is that flow chart and/or block diagram with reference to the method according to the embodiment of the present application, equipment (system) and computer program describe. Should understand can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame. These computer program instructions can be provided to the process device of general-purpose computations machine, dedicated computing machine, Embedded Processor or other programmable data processing device to produce a machine so that the instruction performed by the process device of computer or other programmable data processing device is produced for realizing the device of function specified in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in and can guide in computer-readable memory that computer or other programmable data processing device work in a specific way, making the instruction that is stored in this computer-readable memory produce the manufacture comprising instruction device, this instruction device realizes the function specified in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform a series of operating procedure to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for realizing the step of the function specified in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although having described the preferred embodiment of the application, but those skilled in the art once the substantially creative concept of cicada, then these embodiments can be made other change and amendment. Therefore, it is intended that the appended claims shall be construed comprise preferred embodiment and fall into all changes and the amendment of the application's scope.
Obviously, the application can be carried out various change and modification and not depart from the spirit and scope of the application by the technical staff of this area. Like this, if these amendments of the application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application also is intended to comprise these change and modification.

Claims (18)

1. the method for an interface pin configuration, it is characterised in that, comprise the steps:
First equipment reads the information that prestores of external equipment or module by the default pin of interface; Described external equipment or module are by described interface and described first equipment connection; The described information that prestores: the type of described external equipment or module, power supply mode or communication interface type;
Pin according to the described interface described in information configuration that prestores.
2. the method for claim 1, it is characterised in that, the first equipment also comprises before reading the information that prestores of external equipment or module by interface:
Detect the insertion detection sub-interface of described interface;
Testing result according to described insertion detection sub-interface determines that whole pin of described interface connects.
3. the method for claim 1, it is characterised in that, the first equipment reads the information that prestores of external equipment or module by the default pin of interface, specifically comprises:
The IC bus I2C sub-interface that first equipment is described interface is powered;
By the data pins of described I2C sub-interface from the information that prestores described in described external equipment or module reading; The described information of prestoring prestores in the memory of described external equipment or module, is that described memory is powered by the power pin of described I2C sub-interface.
4. the method for claim 1, it is characterised in that, before the pin of the described interface described in information configuration that prestores, also comprise:
Determine that described first equipment allows to connect described external equipment or module according to the type of described external equipment or module.
5. method as claimed in claim 4, it is characterised in that, also comprise:
If determining, described first equipment does not allow to connect described external equipment or module, then exit interface and connect.
6. the method for claim 1, it is characterised in that, according to the pin of the described interface described in information configuration that prestores, specifically comprise:
According to the described power supply mode prestored in information, configure the power supply parameter of the power pin of each sub-interface of described interface;
That connects in the communicator interface of following described interface according to the described communication interface type that prestores in information is one or more: peripheral interconnect standard PCIE sub-interface, universal asynchronous receiving-transmitting transmitter UART sub-interface, client identification module SIM clamp interface, I2C sub-interface or general-purpose serial bus USB sub-interface.
7. method as claimed in claim 6, it is characterised in that, described in the information that prestores also comprise: the attribute information of described external equipment or module, described attribute information comprises: main equipment, or from equipment;
Described method, also comprises:
Principal and subordinate's relation of described first equipment and described external equipment or module is determined according to described attribute information.
8. the method for claim 1, it is characterised in that, described interface also comprises: state-detection sub-interface, control sub-interface, externally supplied for electronic interface or charging sub-interface.
9. method as claimed in claim 8, it is characterised in that, described state-detection sub-interface and the described control same data pins of sub-interface multiplexing.
10. the device of an interface pin configuration, it is characterised in that, comprising:
Reading unit, for reading the information that prestores of external equipment or module by the default pin of interface; Described external equipment or module are by described interface and described first equipment connection; The described information that prestores: the type of described external equipment or module, power supply mode or communication interface type;
Dispensing unit, for the pin of the interface described in information configuration that prestores described in basis.
11. devices as claimed in claim 10, it is characterised in that, also comprise:
Detecting unit, read the information that prestores of external equipment or module by interface for the first equipment before, detects the insertion detection sub-interface of described interface;
Connect determining unit, for determining that whole pin of described interface connects according to the testing result of described insertion detection sub-interface.
12. devices as claimed in claim 10, it is characterised in that, described reading unit is powered specifically for the IC bus I2C sub-interface for described interface; By the data pins of described I2C sub-interface from the information that prestores described in described external equipment or module reading; The described information of prestoring prestores in the memory of described external equipment or module, is that described memory is powered by the power pin of described I2C sub-interface.
13. devices as claimed in claim 10, it is characterised in that, also comprise:
Allow to connect determining unit, before the pin for the interface described in information configuration that prestores described in basis, determine that described first equipment allows to connect described external equipment or module according to the type of described external equipment or module.
14. devices as claimed in claim 13, it is characterised in that, also comprise:
Exit connection unit, if for determining that described first equipment does not allow to connect described external equipment or module, then exit interface and connect.
15. devices as claimed in claim 10, it is characterised in that, the power supply mode of described dispensing unit specifically for prestoring described in basis in information, configures the power supply parameter of the power pin of each sub-interface of described interface; That connects in the communicator interface of following described interface according to the described communication interface type that prestores in information is one or more: PCIE sub-interface, universal asynchronous receiving-transmitting transmitter UART sub-interface, client identification module SIM clamp interface, I2C sub-interface or general-purpose serial bus USB sub-interface.
16. devices as claimed in claim 15, it is characterised in that, described in the information that prestores also comprise: the attribute information of described external equipment or module, described attribute information comprises: main equipment, or from equipment;
Described device, also comprises:
Principal and subordinate's relation determining unit, for determining principal and subordinate's relation of described first equipment and described external equipment or module according to described attribute information.
17. devices as claimed in claim 10, it is characterised in that, described interface also comprises: state-detection sub-interface, control sub-interface, externally supplied for electronic interface or charging sub-interface.
18. devices as claimed in claim 17, it is characterised in that, described state-detection sub-interface and the described control same data pins of sub-interface multiplexing.
CN201610012976.XA 2016-01-08 2016-01-08 interface pin configuration method and device Active CN105677420B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610012976.XA CN105677420B (en) 2016-01-08 2016-01-08 interface pin configuration method and device
PCT/CN2017/071011 WO2017118441A1 (en) 2016-01-08 2017-01-12 Method and apparatus for configuring interface pin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610012976.XA CN105677420B (en) 2016-01-08 2016-01-08 interface pin configuration method and device

Publications (2)

Publication Number Publication Date
CN105677420A true CN105677420A (en) 2016-06-15
CN105677420B CN105677420B (en) 2020-01-31

Family

ID=56299713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610012976.XA Active CN105677420B (en) 2016-01-08 2016-01-08 interface pin configuration method and device

Country Status (2)

Country Link
CN (1) CN105677420B (en)
WO (1) WO2017118441A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017118441A1 (en) * 2016-01-08 2017-07-13 深圳前海达闼云端智能科技有限公司 Method and apparatus for configuring interface pin
CN108228129A (en) * 2018-01-31 2018-06-29 小派科技(上海)有限责任公司 Interface data processing method and device
CN108549477A (en) * 2018-03-28 2018-09-18 联想(北京)有限公司 A kind of power regulating method and electronic equipment
CN108874713A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN109062840A (en) * 2018-07-25 2018-12-21 合肥联宝信息技术有限公司 A kind of method and device of multiplex interface pin
EP3637270A1 (en) * 2018-10-12 2020-04-15 Giga-Byte Technology Co., Ltd. External electrical connector and computer system
CN111048928A (en) * 2018-10-12 2020-04-21 技嘉科技股份有限公司 External electric connector and computer system
CN112165136A (en) * 2020-09-30 2021-01-01 努比亚技术有限公司 Interface arrangement and mobile terminal charge
CN113525086A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, control method, storage medium and vehicle
CN113525085A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, detection method, electric connector and vehicle
CN113525088A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, detection method and vehicle with auxiliary instrument board assembly
CN113525087A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Vehicle and control method thereof, sub-instrument panel assembly, and computer-readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116352703A (en) * 2023-02-20 2023-06-30 上海交通大学 Robot and external module expansion connection method thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472656A (en) * 2002-07-31 2004-02-04 光宝科技股份有限公司 Method and system for detecting and converting non-universal serial bus device by converter
US20080188133A1 (en) * 2007-02-02 2008-08-07 Yun-Hsiu Lee Mini card adapter structure
CN101446934A (en) * 2008-11-28 2009-06-03 成都市华为赛门铁克科技有限公司 Method for distinguishing interface, and device and system thereof
CN101453373A (en) * 2007-11-23 2009-06-10 华为技术有限公司 Near-end maintenance method, system and equipment for device
CN102193503A (en) * 2010-03-15 2011-09-21 研祥智能科技股份有限公司 Industrial control mainboard and method thereof for identifying external device
US20110279095A1 (en) * 2010-05-11 2011-11-17 Hao-Ping Hong Universal serial bus device and related method
CN102289873A (en) * 2011-05-24 2011-12-21 张苹 Vending machine with map function

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478598B (en) * 2009-01-23 2012-04-04 中兴通讯股份有限公司 Communication negotiation method for mobile terminal and smart card, mobile terminal therefor
CN102572352B (en) * 2011-12-26 2014-12-10 中兴通讯股份有限公司 HDMI multiplexing method, HDMI, and equipped provided with HDMI
US10074254B2 (en) * 2013-11-20 2018-09-11 Tyco Fire & Security Gmbh Cloud-based method and apparatus for configuring a fire panel
CN103763392B (en) * 2014-01-29 2018-09-07 百度在线网络技术(北京)有限公司 The control method of equipment, apparatus and system
CN105677420B (en) * 2016-01-08 2020-01-31 深圳前海达闼云端智能科技有限公司 interface pin configuration method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1472656A (en) * 2002-07-31 2004-02-04 光宝科技股份有限公司 Method and system for detecting and converting non-universal serial bus device by converter
US20080188133A1 (en) * 2007-02-02 2008-08-07 Yun-Hsiu Lee Mini card adapter structure
CN101453373A (en) * 2007-11-23 2009-06-10 华为技术有限公司 Near-end maintenance method, system and equipment for device
CN101446934A (en) * 2008-11-28 2009-06-03 成都市华为赛门铁克科技有限公司 Method for distinguishing interface, and device and system thereof
CN102193503A (en) * 2010-03-15 2011-09-21 研祥智能科技股份有限公司 Industrial control mainboard and method thereof for identifying external device
US20110279095A1 (en) * 2010-05-11 2011-11-17 Hao-Ping Hong Universal serial bus device and related method
CN102289873A (en) * 2011-05-24 2011-12-21 张苹 Vending machine with map function

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017118441A1 (en) * 2016-01-08 2017-07-13 深圳前海达闼云端智能科技有限公司 Method and apparatus for configuring interface pin
CN108228129A (en) * 2018-01-31 2018-06-29 小派科技(上海)有限责任公司 Interface data processing method and device
CN108549477A (en) * 2018-03-28 2018-09-18 联想(北京)有限公司 A kind of power regulating method and electronic equipment
CN108874713B (en) * 2018-05-31 2021-10-22 联想(北京)有限公司 Information processing method and device
CN108874713A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN109062840A (en) * 2018-07-25 2018-12-21 合肥联宝信息技术有限公司 A kind of method and device of multiplex interface pin
CN111048928A (en) * 2018-10-12 2020-04-21 技嘉科技股份有限公司 External electric connector and computer system
JP2020077380A (en) * 2018-10-12 2020-05-21 技嘉科技股▲ふん▼有限公司Giga−Byte Technology Co.,Ltd. External electrical connector and computer system
EP3637270A1 (en) * 2018-10-12 2020-04-15 Giga-Byte Technology Co., Ltd. External electrical connector and computer system
CN113525086A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, control method, storage medium and vehicle
CN113525085A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, detection method, electric connector and vehicle
CN113525088A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, detection method and vehicle with auxiliary instrument board assembly
CN113525087A (en) * 2020-04-21 2021-10-22 北京新能源汽车股份有限公司 Vehicle and control method thereof, sub-instrument panel assembly, and computer-readable storage medium
CN113525086B (en) * 2020-04-21 2024-04-16 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, control method, storage medium and vehicle
CN113525088B (en) * 2020-04-21 2024-07-12 北京新能源汽车股份有限公司 Auxiliary instrument board assembly, detection method and vehicle with auxiliary instrument board assembly
CN112165136A (en) * 2020-09-30 2021-01-01 努比亚技术有限公司 Interface arrangement and mobile terminal charge
CN112165136B (en) * 2020-09-30 2023-05-19 努比亚技术有限公司 Charging interface device and mobile terminal

Also Published As

Publication number Publication date
WO2017118441A1 (en) 2017-07-13
CN105677420B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN105677420A (en) Method and device for interface pin configuration
US8762746B1 (en) Power management in electronic devices
CN105630726B (en) The binary channels mobile terminal of multiplexing USB port
US9059906B1 (en) Data communication interface
US7895386B2 (en) USB interface provided with host/device function and its control method
CN103618356B (en) A charging system and charging method for a mobile terminal
CN102708077B (en) State recognition method and state recognition apparatus
CN106571657A (en) Terminal, converter and connection conversion system and method
CN102981916B (en) A kind of mobile terminal and control method thereof and device
CN105048018B (en) The charging method and device of a kind of terminal with data exchanging function
CN105071484B (en) A kind of charging method and device of the terminal with data exchanging function
CN108228509A (en) A kind of USB interface switching device and electronic equipment
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN104836877B (en) A kind of method for debugging detection mobile phone
CN109783286A (en) Built-in test method, test device and terminal device and storage medium
CN108599530A (en) A power supply mode converter and a power supply mode conversion method
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN102023955A (en) Method for connecting USB controller and USB controller
CN106774769A (en) The changing method and device of a kind of terminal work mode, handheld terminal
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN110837450A (en) USB TYPE-C docking station test method and device, electronic equipment and storage medium
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system
CN206441175U (en) A kind of isolator of movable storage device
CN114299534B (en) Circuit schematic detection method, device, terminal equipment and storage medium
CN106488429A (en) The processing method and processing device of client identification module SIM

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