[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105302750A - Interface function configuration method and electronic equipment - Google Patents

Interface function configuration method and electronic equipment Download PDF

Info

Publication number
CN105302750A
CN105302750A CN201510643020.5A CN201510643020A CN105302750A CN 105302750 A CN105302750 A CN 105302750A CN 201510643020 A CN201510643020 A CN 201510643020A CN 105302750 A CN105302750 A CN 105302750A
Authority
CN
China
Prior art keywords
equipment
external
transmission interface
function
type
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.)
Pending
Application number
CN201510643020.5A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911050852.0A priority Critical patent/CN110851387B/en
Priority to CN201510643020.5A priority patent/CN105302750A/en
Publication of CN105302750A publication Critical patent/CN105302750A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Telephone Function (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses an interface function configuration method. The method is applied to electronic equipment. The electronic equipment comprises at least two transmission interfaces. The method comprises the following steps: when a detection result shows that external equipment is inserted into the transmission interfaces of the electronic equipment, obtaining the equipment type of the external equipment; and according to the equipment type of the external equipment, configuring the function of the transmission interface in the electronic equipment. The embodiment of the invention also simultaneously discloses electronic equipment.

Description

Interface function configuration method and electronic equipment
Technical Field
The present invention relates to interface function configuration technologies in the field of communications, and in particular, to an interface function configuration method and an electronic device.
Background
Along with the popularization, the popularization and the development of electronic products, the electronic products have more and more functions, stronger and stronger performance and richer experience, and bring convenience to the life of people. In order to adapt to various functions of electronic products, more and more interfaces are provided for electronic products. The common interface in the electronic product is a type TypeA interface, but the type of interface has the problem of positive and negative insertion, and can only realize relatively limited functions such as data transmission and charging for external equipment. In order to solve the existing problems, a type C interface is adopted to replace a type A interface in the prior art, and different interfaces encountered by a user in actual use are unified to adapt to interfaces with different functions; meanwhile, the problem of positive and negative insertion of the typeA interface is solved. Therefore, some electronic devices with few implementation functions can realize the functions of video output, data transmission, charging and the like by using a typeC interface.
For electronic devices with more functions, such as notebook computers, more than one typeC interface is needed to meet different requirements of users at the same time. For example, a second display screen is needed to display when the plug-in adapter is charged. Since each type c interface can only implement one function at a time, in the existing scheme, the functions of each type c interface are distinguished by defining different identifiers, so that a user knows the functions that each type c interface can implement. Therefore, each time the user uses the interfaces to realize various different functions, the user needs to firstly identify the functions which can be realized by each interface and know which interface the corresponding line is inserted into; moreover, some users may have a situation that the user is inconvenient to view the identifier or is accustomed to not view the identifier during the use process, and at this time, the user may need to try many times repeatedly to find the interface required by the user. Therefore, the use experience effect of the user is seriously influenced, the operation is troublesome, and the use operation of the user is inconvenient.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention are expected to provide an interface function configuration method and an electronic device, so as to solve the problem that a user needs to check an identifier of a transmission interface of the electronic device to correctly find a required interface in the prior art, facilitate user operation, save an operation flow, and improve interaction capability between the user and the electronic device.
The technical scheme of the invention is realized as follows:
in a first aspect, a method for configuring interface functions is provided, where the method is applied to an electronic device, where the electronic device includes at least two transmission interfaces, and the method includes:
when detecting that an external device is inserted into a transmission interface of the electronic device, acquiring the device type of the external device;
and configuring the function of a transmission interface in the electronic equipment according to the equipment type of the external equipment.
Optionally, the obtaining, when it is detected that an external device is inserted into the transmission interface of the electronic device, a device type of the external device includes:
when detecting that an external device is inserted into a transmission interface of the electronic device, sending a device type identification request to the external device;
and receiving the information of the external equipment sent by the external equipment after the external equipment responds to the equipment type identification request, and obtaining the equipment type of the external equipment according to the information of the external equipment.
Optionally, the configuring, according to the device type of the external device, a function of a transmission interface in the electronic device includes:
configuring the function of the transmission interface, into which the external equipment is currently inserted, to be a function corresponding to the equipment type of the external equipment according to the equipment type of the external equipment;
and configuring the rest transmission interfaces of the electronic equipment except the transmission interface which is currently inserted with the external equipment as full-function transmission interfaces.
Optionally, the configuring, according to the device type of the external device, a function of a transmission interface in the electronic device includes:
configuring the function of the transmission interface, into which the external equipment is currently inserted, to be a function corresponding to the equipment type of the external equipment according to the equipment type of the external equipment;
the functions of configuring the remaining transmission interfaces of the electronic device except the transmission interface currently inserted with the external device do not have the same functions as the transmission interface currently inserted with the external device.
Optionally, configuring, according to the device type of the external device, a function, into which the transmission interface of the external device is currently inserted, as a function corresponding to the device type of the external device, where the function includes:
and according to the equipment type of the external equipment, distributing a function switching signal to the transmission interface which is currently inserted with the external equipment, and configuring the function of the transmission interface which is currently inserted with the external equipment into a function corresponding to the equipment type of the external equipment according to the function switching signal.
Optionally, when it is detected that an external device is inserted into the transmission interface of the electronic device, before the device type of the external device is acquired, the method further includes:
and if the electronic equipment is in a working state, detecting whether the external equipment is inserted into a transmission interface of the electronic equipment.
In a second aspect, an electronic device is provided, where the electronic device includes at least two transmission interfaces, and the electronic device further includes: an acquisition unit and a configuration unit; wherein,
the acquisition unit is used for acquiring the equipment type of the external equipment when the external equipment is detected to be inserted into the transmission interface of the electronic equipment;
the configuration unit is configured to configure a function of a transmission interface in the electronic device according to a device type of the external device.
Optionally, the obtaining unit includes: a sending module and a processing module; wherein,
the sending module is used for sending a device type identification request to the external device when the external device is detected to be inserted into the transmission interface of the electronic device;
the processing module is used for receiving the information of the external equipment sent by the external equipment after responding to the equipment type identification request, and obtaining the equipment type of the external equipment according to the information of the external equipment.
Optionally, the configuration unit includes: a first configuration module and a second configuration module; wherein,
the first configuration module is configured to configure, according to the device type of the external device, a function into which a transmission interface of the external device is currently inserted as a function corresponding to the device type of the external device;
the second configuration module is configured to configure remaining transmission interfaces of the electronic device, except the transmission interface into which the external device is currently inserted, to be full-function transmission interfaces.
Optionally, the configuration unit further includes: a third configuration module and a fourth configuration module; wherein,
the third configuration module is configured to configure, according to the device type of the external device, a function into which a transmission interface of the external device is currently inserted as a function corresponding to the device type of the external device;
the fourth configuration module is configured to configure that functions of remaining transmission interfaces of the electronic device, except for the transmission interface into which the external device is currently inserted, do not have the same function as the transmission interface into which the external device is currently inserted.
Optionally, the first configuration module or the third configuration module is specifically configured to:
and according to the equipment type of the external equipment, distributing a function switching signal to the transmission interface which is currently inserted with the external equipment, and configuring the function of the transmission interface which is currently inserted with the external equipment into a function corresponding to the equipment type of the external equipment according to the function switching signal.
Optionally, the electronic device further includes a detection unit; wherein,
the detection unit is used for detecting whether the external equipment is inserted into the transmission interface of the electronic equipment or not if the electronic equipment is in a working state.
According to the interface function configuration method and the electronic device provided by the embodiment of the invention, when the condition that the external device is inserted into the transmission interface of the electronic device is detected, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, artificial identification information does not need to be set on the transmission interface, the problem that a user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved, the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
Drawings
Fig. 1 is a schematic flowchart of an interface function configuration method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another interface function configuration method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another interface function configuration method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an architecture for implementing interface function configuration according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating an interface function configuration method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of another electronic device according to another embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides an interface function configuration method, which is applied to an electronic device, where the electronic device includes at least two transmission interfaces, and as shown in fig. 1, the method includes the following steps:
101. and when detecting that the external equipment is inserted into the transmission interface of the electronic equipment, acquiring the equipment type of the external equipment.
The step 101 of acquiring the device type of the external device may be implemented by the electronic device; wherein, the preferred interface that can be the type of TypeC of transmission interface, and the type C interface can realize positive and negative plug-in function, and the size also differs a little with micro-USB. Theoretically, the transmission speed of the USB3.0TypeC can reach 10 Gbps. The transmission interface generally refers to an abstraction (which may be another entity) that an entity provides itself to the outside, and is used to separate the external communication method from the internal operation, so that the internal operation can be modified without affecting the interaction between the outside and other entities.
Specifically, the transmission interfaces according to the embodiment of the present invention include at least two transmission interfaces, and the electronic device may be a device capable of including at least two transmission interfaces, such as a notebook computer, a desktop computer, a palm computer, and the like. The electronic device may first detect whether an external device is inserted into a transmission interface of the electronic device, and once it is detected that an external device is inserted into any one of the transmission interfaces, the electronic device may start an instruction operation for determining a device type of the external device, so as to obtain the device type of the external device.
102. And configuring the function of a transmission interface in the electronic equipment according to the equipment type of the external equipment.
Step 102, configuring the function of a transmission interface in the electronic device according to the device type of the external device, wherein the function can be realized by the electronic device; the function of the transmission interface inserted with the external device can be configured according to the device type of the external device as a function corresponding to the device type of the external device. The device type of the external device can be data transmission, charging output, charging input, display output and the like. For example, when the device type of the external device is display output, the function of the device into which the transmission interface of the external device is inserted may be a function of having display output.
According to the interface function configuration method provided by the embodiment of the invention, when the external device is detected to be inserted into the transmission interface of the electronic device, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, artificial identification information does not need to be set on the transmission interface, the problem that a user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved, the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
An embodiment of the present invention provides an interface function configuration method, which is applied to an electronic device, where the electronic device includes at least two transmission interfaces, and as shown in fig. 2, the method includes the following steps:
201. if the electronic equipment is in a working state, the electronic equipment detects whether the external equipment is inserted into a transmission interface of the electronic equipment.
Specifically, whether the electronic device is in the working state or not can be judged by judging whether the electronic device is in the starting state or not and whether the electronic device is in the dormant state or not, and when the electronic device is in the starting state and is not in the dormant state, the electronic device can be considered to be in the working state. At this time, whether an external device is inserted into the transmission interface of the electronic device may be detected.
202. When detecting that the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment sends an equipment type identification request to the external equipment.
203. The electronic equipment receives the information of the external equipment sent by the external equipment after the external equipment responds to the equipment type identification request, and obtains the equipment type of the external equipment according to the information of the external equipment.
Specifically, the device type of the external device may be obtained by an electronic device that sends a device type identification request to the external device, and sends information of the external device in response to the device type identification request after the external device receives the device type identification request. Preferably, how to obtain the device type of the electronic device according to the device type identification request can be defined according to the version protocol standard of the USBPD specification V2.0 and above and the version protocol standard of the USBtype-C specification V1.1 and above. Of course, other protocol standards for the types of devices from which the external device is available are also applicable in the prior art.
204. The electronic equipment configures the function of a transmission interface in the electronic equipment according to the equipment type of the external equipment.
Specifically, only one external device may be simultaneously inserted into the transmission interface of the electronic device, or at least two transmission interfaces may be simultaneously inserted into the transmission interface of the electronic device, which is not specifically limited herein, and may be determined according to a specific application scenario in practical application; of course, no matter only one external device is inserted into the transmission interface at the same time or at least two external devices are inserted into the transmission interface of the electronic device at the same time, the configuration of the function of the transmission interface can be realized by adopting the interface function configuration mode provided by the embodiment of the invention; however, when at least two external devices are simultaneously inserted into the transmission interface, the function of configuring the transmission interface according to the device type of the external device may be adopted, or the function of configuring the transmission interface according to the device type of any one of the external devices may be adopted, and then the function of configuring the transmission interface according to the remaining device types of the external devices may be adopted.
It should be noted that, for the explanation of the steps in this embodiment and the same steps in the above embodiments, reference may be made to the description in the above embodiments, and details are not repeated here.
According to the interface function configuration method provided by the embodiment of the invention, when the external device is detected to be inserted into the transmission interface of the electronic device, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, artificial identification information does not need to be set on the transmission interface, the problem that a user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved, the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
An embodiment of the present invention provides an interface function configuration method, which is applied to an electronic device, where the electronic device includes at least two transmission interfaces, and as shown in fig. 3, the method includes the following steps:
301. if the electronic equipment is in a working state, the electronic equipment detects whether the external equipment is inserted into a transmission interface of the electronic equipment.
Wherein, the transmission interface may be preferably a type TypeC interface.
302. When detecting that the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment acquires the equipment type of the external equipment.
Specifically, the version protocol standard of the USBPD specification V2.0 or above and the version protocol standard of the USBtype-C specification V1.1 or above may be used to define how to obtain the device type of the electronic device. Of course, the device types that can obtain the external device by using the method defined in the above standard are only exemplified here, and there is no limitation that only these standards can be used, and other protocol standards for obtaining the device types of the external device are also applicable in the prior art.
303. The electronic equipment configures the function of the transmission interface, into which the external equipment is currently inserted, into a function corresponding to the equipment type of the external equipment according to the equipment type of the external equipment.
Specifically, the following description will be given by taking the device type of the external device inserted into the transmission interface as an example of display output: when the device type of the external device is detected to be the display output device, the transmission interface of the electronic device into which the external device is inserted can be configured to be an interface with a display output function. At the same time, the voltage signal of the transmission interface is switched to a voltage value corresponding to the function of display output, such as 5V. The specific implementation of configuring the transmission interface can be implemented with reference to the architecture shown in fig. 4: in the figure, the electronic device is exemplified to have two transmission interfaces, wherein the interface controller is connected with the transmission interface in the electronic device, the embedded controller sends an enable signal to the power switching controller and the signal switching controller according to the device type of the external device, starts the power switching controller and the signal switching controller, and sends a command to the application platform for providing a voltage and a function switching signal; then the power supply switching controller acquires a corresponding voltage signal from the application platform according to the voltage required by the external equipment, and sends the voltage signal to the interface controller, and the interface controller transmits the voltage signal to a corresponding transmission interface; meanwhile, the signal switching controller acquires the function switching signal from the application platform and sends the function switching signal to the interface controller to inform the interface controller of the function of the transmission interface, so that the function corresponding to the equipment type of the external equipment can be configured for the corresponding transmission interface.
It should be noted that, after configuring the function of the transmission interface currently inserted with the external device in step 303, step 304 or step 305 may be optionally executed.
304. The electronic equipment configures the remaining transmission interfaces in the electronic equipment except the transmission interface which is currently inserted with the external equipment as full-function transmission interfaces.
Specifically, after the transmission interface into which the external device is currently inserted is configured, the functions of the remaining interfaces may be configured. In this embodiment, all the remaining other transmission interfaces may be set to be fully functional interfaces, that is, the interfaces may implement the functions that can be implemented by any TypeC interface. When the external device is inserted into the remaining transmission interfaces, the functions of the remaining interfaces may be configured by using the same implementation procedure as the implementation procedure for configuring the transmission interface into which the external device has been inserted before.
305. The function of the electronic equipment configuring the remaining transmission interfaces of the electronic equipment except the transmission interface currently inserted with the external equipment does not have the same function as the transmission interface currently inserted with the external equipment.
Specifically, after the transmission interface into which the external device is currently inserted is configured, the functions of the remaining interfaces may be configured, and in this embodiment, it may be set that all the remaining other transmission interfaces do not have the functions of the transmission interface into which the external device is already inserted. At this time, when an external device is externally connected to any one of the remaining transmission interfaces, it may be determined whether the type of the external device is the same as the type of the device into which the external device was previously inserted, and if the types of the external device are the same, the configuration of the function of the transmission interface is not performed; and only when the type of the external equipment is different from that of the external equipment inserted with the transmission interface before, adopting the implementation steps same as the implementation process of configuring the transmission interface inserted with the external equipment before to configure the functions of the rest interfaces. For example, the configured function of the transmission interface externally connected with the external device is a display output function, that is, the external device is a display device; when the external equipment or the display equipment which is inserted with other transmission interfaces is detected, the corresponding transmission interface does not need to be defined as having the function of display output according to the display equipment, and the function configuration is not carried out on the transmission interface corresponding to the external equipment; only when the external device inserted into the transmission interface is a device other than the display device, such as a chargeable device, the function of the corresponding transmission interface is configured to have a function of outputting the voltage signal.
It should be noted that, for the explanation of the steps in this embodiment and the same steps in the above embodiments, reference may be made to the description in the above embodiments, and details are not repeated here.
According to the interface function configuration method provided by the embodiment of the invention, when the external device is detected to be inserted into the transmission interface of the electronic device, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, artificial identification information does not need to be set on the transmission interface, the problem that a user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved, the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
An embodiment of the present invention provides an interface function configuration method, which is applied to an electronic device, where the electronic device includes at least two transmission interfaces, and as shown in fig. 5, the method includes the following steps:
401. if the electronic equipment is in a working state, the electronic equipment detects whether the external equipment is inserted into a transmission interface of the electronic equipment.
Wherein, the transmission interface may be preferably a type TypeC interface.
402. When detecting that the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment sends an equipment type identification request to the external equipment.
403. The electronic equipment receives the information of the external equipment sent by the external equipment after the external equipment responds to the equipment type identification request, and obtains the equipment type of the external equipment according to the information of the external equipment.
404. The electronic equipment configures the function of the transmission interface, into which the external equipment is currently inserted, into a function corresponding to the equipment type of the external equipment according to the equipment type of the external equipment.
Specifically, the function of configuring the transmission interface currently inserted with the external device in step 404 may be implemented by:
and according to the type of the external equipment, distributing a function switching signal to the transmission interface which is currently inserted with the external equipment, and configuring the function of the transmission interface which is currently inserted with the external equipment into a function corresponding to the type of the external equipment according to the function switching signal.
Specifically, referring to the architecture shown in fig. 4, the interface controller may be notified of the function of the transmission interface by sending a function switching signal to the signal switching controller, or the signal switching controller may actively obtain the function switching signal from the application platform and send the function switching signal to the interface controller, so that the interface controller may configure the function corresponding to the device type of the external device for the corresponding transmission interface. Certainly, the transmission interface needs to have a certain voltage signal while realizing different functions, and the voltage signal may be a voltage signal obtained by the power switching controller from the application platform according to the voltage required by the external device, and sent to the interface controller, and the interface controller transmits the voltage signal to the corresponding transmission interface. The voltage signals required to be configured by different external devices can be determined according to the voltage magnitude required by various types of external devices specified in the USBPD specification V2.0 and above version protocol standards and the USBtype-C specification V1.1 and above version protocol standards during working.
It should be noted that, after configuring the function of the transmission interface currently inserted with the external device in step 404, step 405 or step 406 may be optionally executed.
405. The electronic equipment configures the remaining transmission interfaces in the electronic equipment except the transmission interface which is currently inserted with the external equipment as full-function transmission interfaces.
406. The function of the electronic equipment configuring the remaining transmission interfaces of the electronic equipment except the transmission interface currently inserted with the external equipment does not have the same function as the transmission interface currently inserted with the external equipment.
It should be noted that, for the explanation of the steps in this embodiment and the same steps in the above embodiments, reference may be made to the description in the above embodiments, and details are not repeated here.
According to the interface function configuration method provided by the embodiment of the invention, when the external device is detected to be inserted into the transmission interface of the electronic device, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, the identification information does not need to be artificially set on the transmission interface, the problem that the user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved,
the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
An embodiment of the present invention provides an electronic device 5, which includes at least two transmission interfaces, and can be applied to an interface function configuration method provided in embodiments corresponding to fig. 1 to 3 and 5, and as shown in fig. 6, the electronic device includes: an acquisition unit 51 and a configuration unit 52, wherein:
the obtaining unit 51 is configured to obtain a device type of the external device when it is detected that the external device is inserted into the transmission interface of the electronic device.
The configuration unit 52 is configured to configure the function of the transmission interface in the electronic device according to the device type of the external device obtained by the obtaining unit 51.
According to the electronic device provided by the embodiment of the invention, when the external device is detected to be inserted into the transmission interface of the electronic device, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, artificial identification information does not need to be set on the transmission interface, the problem that a user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved, the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
Further, referring to fig. 7, the acquisition unit 51 includes: a sending module 511 and a processing module 512, wherein:
the sending module 511 is configured to send a device type identification request to the external device when it is detected that the external device is inserted into the transmission interface of the electronic device.
The processing module 512 is configured to receive information of the external device sent by the external device after responding to the device type identification request sent by the sending module 511, and obtain the device type of the external device according to the information of the external device.
Specifically, referring to fig. 8, the configuration unit 52 includes: a first configuration module 521 and a second configuration module 522, wherein:
the first configuration module 521 is configured to configure, according to the device type of the external device obtained by the obtaining unit 51, the function of the transmission interface into which the external device is currently inserted as a function corresponding to the device type of the external device.
The second configuration module 522 is configured to configure remaining transmission interfaces of the electronic device, except for a transmission interface currently inserted with an external device, to be full-function transmission interfaces.
Specifically, optionally, as shown in fig. 9, the configuration unit 52 further includes: a third configuration module 523 and a fourth configuration module 524, wherein:
a third configuring module 523, configured to configure, according to the device type of the external device obtained by the obtaining unit 51, the function of the transmission interface into which the external device is currently inserted as a function corresponding to the device type of the external device.
A fourth configuration module 524, configured to configure the remaining transmission interfaces of the electronic device except the transmission interface into which the external device is currently inserted, to have no function the same as the transmission interface into which the external device is currently inserted.
Specifically, the first configuration module 521 or the third configuration module 523 is specifically configured to execute the following steps:
according to the device type of the external device obtained by the obtaining unit 51, a function switching signal is allocated to the transmission interface into which the external device is currently inserted, and the function of the transmission interface into which the external device is currently inserted is configured to be a function corresponding to the device type of the external device according to the function switching signal.
Further, referring to fig. 10, the electronic device further includes: a detection unit 53, wherein:
the detecting unit 53 is configured to detect whether an external device is inserted into a transmission interface of the electronic device if the electronic device is in a working state.
It should be noted that in this embodiment, the interaction process between each unit and each module may refer to the interaction process in the interface function configuration method provided in the embodiments corresponding to fig. 1 to 3 and 5, and details are not described here.
According to the electronic device provided by the embodiment of the invention, when the external device is detected to be inserted into the transmission interface of the electronic device, the device type of the external device is obtained, and the function of the transmission interface in the electronic device is configured according to the device type of the external device. Therefore, once the external equipment is inserted into the transmission interface of the electronic equipment, the electronic equipment can configure the function corresponding to the type of the external equipment for the transmission interface according to the type of the external equipment, artificial identification information does not need to be set on the transmission interface, the problem that a user needs to check the identification of the transmission interface of the electronic equipment to correctly find the required interface in the prior art is solved, the operation of the user is facilitated, the operation flow is saved, and the interaction capacity of the user and the electronic equipment is improved.
In practical applications, the obtaining unit 51, the configuring unit 52, the sending module 511, the processing module 512, the first configuring module 521, the second configuring module 522, the third configuring module 523, the fourth configuring module 524, and the detecting unit 53 may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like in the wireless data sending device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (12)

1. An interface function configuration method is applied to an electronic device, the electronic device comprises at least two transmission interfaces, and the method comprises the following steps:
when detecting that an external device is inserted into a transmission interface of the electronic device, acquiring the device type of the external device;
and configuring the function of a transmission interface in the electronic equipment according to the equipment type of the external equipment.
2. The method according to claim 1, wherein the obtaining the device type of the external device when it is detected that an external device is inserted into the transmission interface of the electronic device comprises:
when detecting that an external device is inserted into a transmission interface of the electronic device, sending a device type identification request to the external device;
and receiving the information of the external equipment sent by the external equipment after the external equipment responds to the equipment type identification request, and obtaining the equipment type of the external equipment according to the information of the external equipment.
3. The method according to claim 1, wherein the configuring the function of the transmission interface in the electronic device according to the device type of the external device comprises:
configuring the function of the transmission interface, into which the external equipment is currently inserted, to be a function corresponding to the equipment type of the external equipment according to the equipment type of the external equipment;
and configuring the rest transmission interfaces of the electronic equipment except the transmission interface which is currently inserted with the external equipment as full-function transmission interfaces.
4. The method according to claim 1, wherein the configuring the function of the transmission interface in the electronic device according to the device type of the external device comprises:
configuring the function of the transmission interface, into which the external equipment is currently inserted, to be a function corresponding to the equipment type of the external equipment according to the equipment type of the external equipment;
the functions of configuring the remaining transmission interfaces of the electronic device except the transmission interface currently inserted with the external device do not have the same functions as the transmission interface currently inserted with the external device.
5. The method according to claim 3 or 4, wherein the configuring, according to the device type of the external device, the function currently inserted with the transmission interface of the external device as a function corresponding to the device type of the external device includes:
and according to the equipment type of the external equipment, distributing a function switching signal to the transmission interface which is currently inserted with the external equipment, and configuring the function of the transmission interface which is currently inserted with the external equipment into a function corresponding to the equipment type of the external equipment according to the function switching signal.
6. The method according to claim 1, wherein before acquiring the device type of the external device when it is detected that the external device is inserted into the transmission interface of the electronic device, the method further comprises:
and if the electronic equipment is in a working state, detecting whether the external equipment is inserted into a transmission interface of the electronic equipment.
7. An electronic device comprising at least two transmission interfaces, characterized in that the electronic device further comprises: an acquisition unit and a configuration unit; wherein,
the acquisition unit is used for acquiring the equipment type of the external equipment when the external equipment is detected to be inserted into the transmission interface of the electronic equipment;
the configuration unit is configured to configure a function of a transmission interface in the electronic device according to a device type of the external device.
8. The electronic device of claim 7, the acquisition unit comprising: a sending module and a processing module; wherein,
the sending module is used for sending a device type identification request to the external device when the external device is detected to be inserted into the transmission interface of the electronic device;
the processing module is used for receiving the information of the external equipment sent by the external equipment after responding to the equipment type identification request, and obtaining the equipment type of the external equipment according to the information of the external equipment.
9. The electronic device of claim 7, wherein the configuration unit comprises: a first configuration module and a second configuration module; wherein,
the first configuration module is configured to configure, according to the device type of the external device, a function into which a transmission interface of the external device is currently inserted as a function corresponding to the device type of the external device;
the second configuration module is configured to configure remaining transmission interfaces of the electronic device, except the transmission interface into which the external device is currently inserted, to be full-function transmission interfaces.
10. The electronic device of claim 7, wherein the configuration unit further comprises: a third configuration module and a fourth configuration module; wherein,
the third configuration module is configured to configure, according to the device type of the external device, a function into which a transmission interface of the external device is currently inserted as a function corresponding to the device type of the external device;
the fourth configuration module is configured to configure that functions of remaining transmission interfaces of the electronic device, except for the transmission interface into which the external device is currently inserted, do not have the same function as the transmission interface into which the external device is currently inserted.
11. The electronic device according to claim 9 or 10, wherein the first configuration module or the third configuration module is specifically configured to:
and according to the equipment type of the external equipment, distributing a function switching signal to the transmission interface which is currently inserted with the external equipment, and configuring the function of the transmission interface which is currently inserted with the external equipment into a function corresponding to the equipment type of the external equipment according to the function switching signal.
12. The electronic device according to claim 7, characterized in that the electronic device further comprises a detection unit; wherein,
the detection unit is used for detecting whether the external equipment is inserted into the transmission interface of the electronic equipment or not if the electronic equipment is in a working state.
CN201510643020.5A 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment Pending CN105302750A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911050852.0A CN110851387B (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment
CN201510643020.5A CN105302750A (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510643020.5A CN105302750A (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201911050852.0A Division CN110851387B (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment

Publications (1)

Publication Number Publication Date
CN105302750A true CN105302750A (en) 2016-02-03

Family

ID=55200035

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510643020.5A Pending CN105302750A (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment
CN201911050852.0A Active CN110851387B (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201911050852.0A Active CN110851387B (en) 2015-09-30 2015-09-30 Interface function configuration method and electronic equipment

Country Status (1)

Country Link
CN (2) CN105302750A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106802874A (en) * 2017-01-11 2017-06-06 联想(北京)有限公司 A kind of processing method and electronic equipment
CN107003974A (en) * 2016-06-03 2017-08-01 达闼科技(北京)有限公司 A kind of interface detection method and device
CN107111589A (en) * 2016-04-15 2017-08-29 深圳前海达闼云端智能科技有限公司 A kind of communication means, device and electronic equipment
CN107257444A (en) * 2017-05-08 2017-10-17 广州美凯信息技术股份有限公司 A kind of HPI adaptive approach and device
CN107306000A (en) * 2016-04-22 2017-10-31 深圳市中兴微电子技术有限公司 A kind of method and apparatus of interface configuration
WO2018000635A1 (en) * 2016-06-29 2018-01-04 乐视控股(北京)有限公司 Interface configuration method and device
CN108491344A (en) * 2018-03-14 2018-09-04 广东美的制冷设备有限公司 Robot controls management method, system, robot and computer storage media
CN108874713A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN110750123A (en) * 2019-10-21 2020-02-04 杭州迪普科技股份有限公司 Power supply system, programmable logic device and power supply method
CN111132108A (en) * 2019-12-24 2020-05-08 联想(北京)有限公司 Information processing method and electronic equipment
TWI743089B (en) * 2016-04-08 2021-10-21 美商英特爾公司 Adjustable power delivery apparatus for universal serial bus (usb) type-c
CN108984447B (en) * 2018-07-27 2022-05-31 联想(北京)有限公司 Control method of electronic equipment and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150655A (en) * 2007-10-30 2008-03-26 深圳华为通信技术有限公司 A media displaying method and a TV terminal
CN201927859U (en) * 2011-01-10 2011-08-10 华为终端有限公司 Reusable interface
US20110314201A1 (en) * 2009-09-19 2011-12-22 Huizhou Tcl Mobile Communication Co., Ltd Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN102955557A (en) * 2011-08-19 2013-03-06 宏碁股份有限公司 Device and method for USB (universal serial bus) charging
CN103019355A (en) * 2011-12-07 2013-04-03 威盛电子股份有限公司 A charging device and a charging method thereof
US20140040290A1 (en) * 2011-04-20 2014-02-06 Huawei Device Co., Ltd. Data Interface Configuration Method and Terminal Device
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel
CN104461952A (en) * 2014-11-28 2015-03-25 广东欧珀移动通信有限公司 Interface sharing method and terminal
CN104519405A (en) * 2013-10-08 2015-04-15 联想(北京)有限公司 Control method and electronic equipment
CN104683865A (en) * 2015-02-16 2015-06-03 青岛海信电器股份有限公司 ARC (Audio Return Channel) setting method and equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7548411B2 (en) * 2004-10-29 2009-06-16 Hitachi, Ltd. Electronic circuit structure, power supply apparatus, power supply system, and electronic apparatus
US9367484B2 (en) * 2007-06-01 2016-06-14 Linda R. Stilwell System and apparatus for controlling use of mass storage devices
US9154026B2 (en) * 2012-06-27 2015-10-06 Intel Corporation Bridge driver for a switching voltage regulator which is operable to soft-switch and hard-switch
CN103441393B (en) * 2013-08-23 2016-08-10 深圳一电科技有限公司 Electronic equipment and versatile interface, communication system
CN103561369B (en) * 2013-10-31 2017-05-17 惠州Tcl移动通信有限公司 Usb interface circuit and electronic equipment
CN104915306B (en) * 2014-03-12 2018-10-02 深圳市顶峰科技有限公司 A kind of data manipulation control method and equipment manager

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150655A (en) * 2007-10-30 2008-03-26 深圳华为通信技术有限公司 A media displaying method and a TV terminal
US20110314201A1 (en) * 2009-09-19 2011-12-22 Huizhou Tcl Mobile Communication Co., Ltd Method and device for identifying universal serial bus (usb) insertion or charger insertion of mobile terminal
CN201927859U (en) * 2011-01-10 2011-08-10 华为终端有限公司 Reusable interface
US20140040290A1 (en) * 2011-04-20 2014-02-06 Huawei Device Co., Ltd. Data Interface Configuration Method and Terminal Device
CN102955557A (en) * 2011-08-19 2013-03-06 宏碁股份有限公司 Device and method for USB (universal serial bus) charging
CN103019355A (en) * 2011-12-07 2013-04-03 威盛电子股份有限公司 A charging device and a charging method thereof
CN102546869A (en) * 2012-01-06 2012-07-04 海能达通信股份有限公司 USB (Universal Serial Bus) interface multiplexing interphone and control method thereof
CN104519405A (en) * 2013-10-08 2015-04-15 联想(北京)有限公司 Control method and electronic equipment
CN104023294A (en) * 2014-05-30 2014-09-03 广东欧珀移动通信有限公司 Interface multiplexing apparatus in terminal, and adaptor panel
CN104461952A (en) * 2014-11-28 2015-03-25 广东欧珀移动通信有限公司 Interface sharing method and terminal
CN104683865A (en) * 2015-02-16 2015-06-03 青岛海信电器股份有限公司 ARC (Audio Return Channel) setting method and equipment

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI743089B (en) * 2016-04-08 2021-10-21 美商英特爾公司 Adjustable power delivery apparatus for universal serial bus (usb) type-c
CN107111589A (en) * 2016-04-15 2017-08-29 深圳前海达闼云端智能科技有限公司 A kind of communication means, device and electronic equipment
CN107306000A (en) * 2016-04-22 2017-10-31 深圳市中兴微电子技术有限公司 A kind of method and apparatus of interface configuration
CN107003974B (en) * 2016-06-03 2020-07-14 达闼科技(北京)有限公司 Interface detection method and device
CN107003974A (en) * 2016-06-03 2017-08-01 达闼科技(北京)有限公司 A kind of interface detection method and device
WO2018000635A1 (en) * 2016-06-29 2018-01-04 乐视控股(北京)有限公司 Interface configuration method and device
CN106802874A (en) * 2017-01-11 2017-06-06 联想(北京)有限公司 A kind of processing method and electronic equipment
CN107257444A (en) * 2017-05-08 2017-10-17 广州美凯信息技术股份有限公司 A kind of HPI adaptive approach and device
CN107257444B (en) * 2017-05-08 2018-10-09 广州美凯信息技术股份有限公司 A kind of host interface adaptive approach and device
CN108491344A (en) * 2018-03-14 2018-09-04 广东美的制冷设备有限公司 Robot controls management method, system, robot and computer storage media
CN108491344B (en) * 2018-03-14 2020-03-06 广东美的制冷设备有限公司 Robot control management method, system, robot and computer storage medium
CN108874713A (en) * 2018-05-31 2018-11-23 联想(北京)有限公司 A kind of information processing method and device
CN108874713B (en) * 2018-05-31 2021-10-22 联想(北京)有限公司 Information processing method and device
CN108984447B (en) * 2018-07-27 2022-05-31 联想(北京)有限公司 Control method of electronic equipment and electronic equipment
CN110750123A (en) * 2019-10-21 2020-02-04 杭州迪普科技股份有限公司 Power supply system, programmable logic device and power supply method
CN111132108A (en) * 2019-12-24 2020-05-08 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN110851387A (en) 2020-02-28
CN110851387B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN110851387B (en) Interface function configuration method and electronic equipment
US9588560B2 (en) Baseband PD communication over USB standard a connector
JP6571341B2 (en) Power supply method, device and program for audio use
EP2860638B1 (en) Serial communication over communication control pin
EP2879014A1 (en) Tablet interface extension method and device
EP2584471A1 (en) Method and terminal for selecting internal circuit according to USB interface status
CN104216840B (en) The method and device that a kind of USB sets and operated to external equipment
US20150121095A1 (en) Hub device for universal serial bus and power management method thereof
EP3035171A1 (en) Apparatus, system and method for communication of touch sensor information
US9612991B2 (en) Connector interface pin mapping
CN109478176B (en) Method, device and system for identifying opposite terminal equipment by USB Type-C port equipment
CN110618672A (en) Interface circuit and interface communication method and device thereof
CN109254210B (en) Electronic equipment port type detection method and device, detection circuit and electronic equipment
US11947481B2 (en) Terminal and type C interface anti-corrosion method
CN104850203A (en) Electronic apparatus reset method and electronic apparatus
CN108027744A (en) Data transmission method and mobile terminal
KR20130003645A (en) Method for establishing connection between external device and mobile terminal docking thereat
CN108321900A (en) The charge control method and terminal of terminal
KR102428450B1 (en) Host controller, secure element and serial peripheral interface
CN104899164B (en) Address addressing method for integrated circuit bus, integrated circuit bus device and system
CN105573939A (en) Method for carrying out data transmission on the basis of universal serial bus, and terminal
CN113934661B (en) Electronic equipment, control method, device and medium
CN105228261B (en) A kind of information processing method and electronic equipment
CN108874716B (en) Charging communication connection device and method for portable equipment
CN105068952A (en) SD interface multiplexing apparatus and method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160203

RJ01 Rejection of invention patent application after publication