WO2013178146A1 - 一种平板电脑接口扩展方法和装置 - Google Patents
一种平板电脑接口扩展方法和装置 Download PDFInfo
- Publication number
- WO2013178146A1 WO2013178146A1 PCT/CN2013/079521 CN2013079521W WO2013178146A1 WO 2013178146 A1 WO2013178146 A1 WO 2013178146A1 CN 2013079521 W CN2013079521 W CN 2013079521W WO 2013178146 A1 WO2013178146 A1 WO 2013178146A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interface
- cable
- type
- pin
- determined
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000012545 processing Methods 0.000 claims abstract description 52
- 238000001514 detection method Methods 0.000 claims abstract description 46
- 238000003780 insertion Methods 0.000 claims description 6
- 230000037431 insertion Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3262—Power saving in digitizer or tablet
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/266—Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4086—Bus impedance matching, e.g. termination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4247—Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus
- G06F13/426—Bus transfer protocol, e.g. handshake; Synchronisation on a daisy chain bus using an embedded synchronisation, e.g. Firewire bus, Fibre Channel bus, SSA bus
Definitions
- the present invention relates to tablet technology, and more particularly to a tablet interface expansion method and apparatus. Background technique
- the shape of the tablet is more and more concise, especially the interface design is more and more concise.
- Data communication interfaces, charging interfaces, audio and video interfaces, and even in-vehicle device interfaces are gradually integrated into one physical interface, usually a Micro Universal Serial Bus (USB) or a Mini USB interface.
- USB Micro Universal Serial Bus
- external expansion devices such as expansion slots or expansion docks are required to connect different types of cables to the Micro USB interface, including adapter charging cable, USB charging cable, and A.
- this not only increases the user's expenditure, but also causes the user to carry the extended device when the tablet needs to be carried out, which causes great inconvenience to the user. Summary of the invention
- the main purpose of the embodiments of the present invention is to provide a tablet computer interface expansion method and device, which can connect different types of cables on a Micro USB or Mini USB interface without external expansion devices, thereby enabling Users avoid carrying extended devices.
- the embodiment of the present invention provides a tablet computer interface expansion device, which is built in a tablet computer, and the device includes: an interface, a voltage detecting unit, an impedance detecting unit, a charging detecting unit, and a central processing unit;
- the interface is configured to insert a cable;
- the voltage detecting unit is configured to detect whether the power pin (VBUS) has a voltage input, and when there is no voltage input, notify the impedance detecting unit to notify the charging detecting unit when there is a voltage input;
- the impedance detecting unit is configured to detect an impedance between a signal indicating pin (ID) and a ground pin (GND) of the interface after receiving the notification sent by the voltage detecting unit;
- the charging detecting unit is configured to detect whether the data signal positive pin (DP) and the data signal negative pin (DM) are short-circuited or open after receiving the notification from the voltage detecting unit;
- the central processing unit is configured to determine, according to the impedance value detected by the impedance detecting unit or according to the result of the detection by the charging detecting unit, the type of the cable inserted into the interface; and the type of the cable configured to be inserted according to the insertion interface. Control the relevant components in the tablet to perform the corresponding operations.
- the central processing unit is configured to determine the type of the cable inserted into the interface by querying the correspondence between the preset impedance value and the cable type according to the impedance value detected by the impedance detecting unit.
- the central processing unit is configured to determine that the cable inserted into the interface is type A by querying the correspondence between the preset impedance value and the cable type when the impedance value detected by the impedance detecting unit is 0 ohm.
- USB Universal serial bus
- the cable inserted into the interface is determined to be a video cable by querying the correspondence between the preset impedance value and the cable type;
- the cable inserted into the interface is determined to be an audio cable by querying the correspondence between the preset impedance value and the cable type;
- the impedance detection unit detects an impedance value greater than or equal to 198 k ⁇ and less than or equal to 202 k ⁇
- the cable inserted into the interface is determined to be an in-vehicle device cable
- the cable inserted into the interface is determined to be a B-type USB cable by querying the correspondence between the preset impedance value and the cable type.
- the charging detecting unit is configured to detect whether the DP pin and the DM pin are short-circuited or open after receiving the notification from the voltage detecting unit, and when detecting that the DP pin and the DM pin are short-circuited, The central processing unit sends a low level signal, and when it is detected that the DP pin and the DM pin are open, a high level signal is sent to the central processing unit;
- the central processing unit is further configured to: when receiving the low level signal, determine, according to the correspondence between the preset level signal and the cable type, that the cable inserted into the interface is an adapter charging cable;
- the cable inserted into the interface is determined to be a USB charging cable according to a preset relationship between the level signal and the cable type.
- the device further includes: an interface selection unit, a power supply unit, and a charging management unit, wherein the central processing unit includes a main device interface, a video function interface, an audio function interface, and a slave device interface;
- the central processing unit is configured to open its own master device interface when the cable of the plug-in interface determined by itself is a type A USB cable, and the control interface selecting unit connects the master device interface with the type A USB cable The interface of the cable-connected slave device is turned on, and the control power source unit supplies power to the slave device through the VBUS pin;
- the video function interface When the cable of the inserted interface is a video cable, the video function interface is opened, and the control interface selection unit connects the video function interface and the interface of the device connected to the video cable;
- the audio function interface of the audio interface is opened, and the control interface selection unit interfaces the audio function interface with the device connected to the audio cable. Pass
- the central processing unit opens an audio function interface or a video function interface, and the control interface selection unit interfaces the audio function interface or the video function interface with the device connected to the in-vehicle device cable.
- the slave device interface When the determined cable of the plug-in interface is a B-type USB cable, the slave device interface is opened, and the control interface selecting unit connects the slave device interface and the interface of the master device connected to the type B USB cable. ;
- the charging management unit is controlled to charge according to the current value of the adapter charging
- the charging management unit is controlled to charge according to the current value of the USB charging.
- the embodiment of the invention provides a tablet computer interface expansion method, the method comprising: detecting whether a power pin (VBUS) has a voltage input, and when there is no voltage input, detecting a signal indicating pin (ID) and a ground pin (GND) of the interface The impedance between the two, based on the detected impedance value, determines the type of cable inserted into the interface;
- the detection data signal positive pin (DP) and the data signal negative pin (DM) are short-circuited or open circuit, and according to the detection result, the type of the cable inserted into the interface is determined;
- the determining the type of the cable inserted into the interface according to the detected impedance value is determined by querying the correspondence between the preset impedance value and the cable type according to the impedance value detected by the impedance detecting unit.
- the type of cable that is plugged into the interface is determined by querying the correspondence between the preset impedance value and the cable type according to the impedance value detected by the impedance detecting unit. The type of cable that is plugged into the interface.
- the determining, according to the detected impedance value, the type of the cable inserted into the interface by querying the correspondence between the preset impedance value and the cable type,
- the cable plugged into the interface is a type A universal serial bus (USB) cable; when the detected impedance value is greater than or equal to 34.6 kohms and less than or equal to 36.8 kohms, query the preset impedance value and cable Determine the type of the cable to be the video cable. If the detected impedance is greater than or equal to 64.6 k ⁇ and less than or equal to 71.4 k ⁇ , determine the corresponding impedance value and the cable type.
- the cable inserted into the interface is an audio cable. When the detected impedance is greater than or equal to 198 k ⁇ and less than or equal to 202 k ⁇ , the cable inserted into the interface is determined by querying the corresponding impedance value and cable type.
- the cable inserted into the interface is determined to be a B-type USB cable by querying the correspondence between the preset impedance value and the cable type.
- the detecting DP pin and the DM pin are short-circuited or open circuit, and according to the detection result, determining the type of the cable inserted into the interface,
- Detect whether the DP pin and the DM pin are short-circuited or open When it is detected that the DP pin and the DM pin are short-circuited, a low-level signal is issued. When the DP pin and the DM pin are detected to be open, a high-level signal is issued.
- the cable inserted into the interface is determined to be a USB charging cable according to a preset relationship between the level signal and the cable type.
- controlling the related components in the tablet to perform corresponding operations according to the determined type of the cable inserted into the interface
- the master device interface When the determined cable of the plug-in interface is a type A USB cable, the master device interface is opened, and the control interface selecting unit connects the master device interface and the slave device connected to the type A USB cable, and The central processing unit controls the power supply unit to supply power to the slave device through the VBUS pin;
- the cable of the inserted interface is a video cable
- the video function interface is opened, and the control interface selecting unit connects the interface of the video function interface and the device connected to the video cable; when determining the cable inserted into the interface
- the audio cable is an audio function
- the audio function interface is opened, and the control interface selection unit connects the audio function interface and the interface of the device connected to the audio cable;
- the determined cable of the insertion interface is the vehicle device cable, An audio function interface or a video function interface, the control interface selection unit connects an audio function interface or a video function interface with an interface of a device connected to the in-vehicle device cable;
- the slave device interface When the determined cable of the plug-in interface is a B-type USB cable, the slave device interface is opened, and the control interface selecting unit connects the slave device interface and the interface of the master device connected to the B-type USB cable;
- the charging management unit When the determined cable of the plugged interface is the adapter charging cable, the charging management unit is controlled to charge according to the current value of the adapter charging; when the determined cable of the plugged interface is a USB charging cable, the charging management unit is controlled to be charged by the USB. The current value is charged.
- the technical solution of the embodiment of the present invention includes: detecting whether a power pin (VBUS) has a voltage input, and when there is no voltage input, detecting a signal indicating an impedance between the pin (ID) and the ground pin (GND), According to the detected impedance value, determine the type of cable inserted into the interface; when there is voltage input, the detection data signal positive pin (DP) and the data signal negative pin (DM) are short-circuited or open circuit, according to the detection result, the insertion is determined.
- the type of the cable of the interface according to the determined type of the cable inserted into the interface, the related components in the tablet are controlled to perform corresponding operations, and thus the tablet interface expansion device provided by the embodiment of the present invention can be built in the tablet computer.
- the device determines whether the type of the cable inserted into the interface is short-circuited or disconnected according to the detected impedance value or the detected DP pin and the DM pin, and performs subsequent control, so that the external expansion device can be realized without being able to be in the Micro Connect different types of cables to the USB or Mini USB connector.
- FIG. 1 is a flowchart of an embodiment of a tablet computer interface expansion method according to the present invention
- FIG. 2 is a structural diagram of an embodiment of a tablet computer interface expansion device provided by the present invention.
- DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiment of the tablet interface expansion method provided by the present invention is as shown in FIG. 1. The method includes:
- Step 101 detecting whether the VBUS pin has a voltage input, when there is no voltage input, proceeds to step 102; when there is a voltage input, proceeds to step 104;
- Step 102 Detect an impedance between an ID pin of the interface and a GND pin
- Step 103 determining the type of the cable inserted into the interface according to the detected impedance value, and then performing step 106;
- Step 104 Detect whether the DP pin and the DM pin are short circuited or open circuited;
- Step 105 Determine, according to the result of the detection, a type of a cable inserted into the interface
- Step 106 Control the related components in the tablet to perform corresponding operations according to the determined type of the cable inserted into the interface.
- the step 103 may be: determining the type of the cable inserted into the interface by querying the correspondence between the preset impedance value and the cable type according to the impedance value detected by the impedance detecting unit; specifically,
- the detected impedance value is 0 ohms
- it is determined that the cable inserted into the interface is an A-type USB cable by querying the correspondence between the preset impedance value and the cable type;
- the cable inserted into the interface is determined to be a video cable by querying the corresponding relationship between the impedance value and the cable type; when the detected impedance value When the ratio of the impedance value to the cable type is greater than or equal to 64.6 k ⁇ , the cable inserted into the interface is determined to be an audio cable.
- the cable inserted into the interface is determined to be an in-vehicle device cable by querying the correspondence between the preset impedance value and the cable type;
- the cable inserted into the interface is determined to be a B-type USB cable by querying the correspondence between the preset impedance value and the cable type.
- the correspondence between the impedance value and the cable type can be set according to an empirical value.
- the steps 104, 105 may be,
- Detect whether the DP pin and the DM pin are short-circuited or open When it is detected that the DP pin and the DM pin are short-circuited, a low-level signal is issued. When the DP pin and the DM pin are detected to be open, a high-level signal is issued.
- the cable inserted into the interface is determined to be a USB charging cable according to a preset relationship between the level signal and the cable type;
- a high level signal can be issued.
- a low level signal can be issued.
- the level signal and the cable are The correspondence between the types is that the high level signal corresponds to the adapter charging cable, and the low level signal corresponds to the USB charging cable.
- the step 106 may be:
- the master device interface When the determined cable of the plug-in interface is a type A USB cable, the master device interface is opened, and the control interface selecting unit inserts the master device interface and the slave device connected to the type A USB cable to determine the connection.
- the cable of the interface is a video cable
- the video function interface is opened, and the control interface selection unit connects the interface of the video function interface and the device connected to the video cable; when the cable inserted into the interface is an audio cable When the audio function interface is turned on, the control is connected.
- the port selection unit connects the audio function interface and the interface of the device connected to the audio cable; when the determined cable of the plug-in interface is the car device cable, the audio function interface or the video function interface is opened, and the control interface selection unit is Connecting an audio function interface or a video function interface to an interface of a device connected to the in-vehicle device cable;
- the slave device interface When the determined cable of the plug-in interface is a B-type USB cable, the slave device interface is opened, and the control interface selecting unit connects the slave device interface and the interface of the master device connected to the B-type USB cable;
- the charging management unit is controlled to charge according to the current value of the adapter charging
- the charging management unit is controlled to charge according to the current value of the USB charging.
- the interface may be a Micro USB or Mini USB interface.
- the tablet interface expansion device is built in a tablet computer. As shown in FIG. 2, the device includes: an interface, an impedance detecting unit, a voltage detecting unit, a charging detecting unit, and a central processing unit;
- the interface is configured to insert a cable
- the voltage detecting unit is configured to detect whether the VBUS pin has a voltage input, and when there is no voltage input, notify the impedance detecting unit to notify the charging detecting unit when there is a voltage input;
- the impedance detecting unit is configured to detect an impedance between the ID pin of the interface and the GND pin after receiving the notification from the voltage detecting unit;
- the charging detecting unit is configured to detect whether the DP pin and the DM pin are short-circuited or open after receiving the notification from the voltage detecting unit;
- the central processing unit is configured to determine a type of a cable inserted into the interface according to the impedance value detected by the impedance detecting unit or according to a result detected by the charging detecting unit; and configured to be configured according to The type of cable that is determined by the plug-in interface itself controls the relevant components in the tablet to perform corresponding operations.
- the central processing unit is configured to determine the type of the cable inserted into the interface by querying the correspondence between the preset impedance value and the cable type according to the impedance value detected by the impedance detecting unit.
- the central processing unit is configured to determine that the cable inserted into the interface is A when the impedance value detected by the impedance detecting unit is 0 ohms, by querying the correspondence between the preset impedance value and the cable type.
- Type USB cable
- the cable inserted into the interface is determined to be a video cable by querying the correspondence between the preset impedance value and the cable type;
- the cable inserted into the interface is determined to be an audio cable by querying the correspondence between the preset impedance value and the cable type;
- the cable inserted into the interface is determined to be an in-vehicle device cable by querying the correspondence between the preset impedance value and the cable type;
- the cable inserted into the interface is determined to be a B-type USB cable by querying the correspondence between the preset impedance value and the cable type.
- the charging detecting unit is configured to detect whether the DP pin and the DM pin are short-circuited or open after receiving the notification from the voltage detecting unit, and when detecting that the DP pin and the DM pin are short-circuited, The central processing unit sends a low level signal, and when it is detected that the DP pin and the DM pin are open, a high level signal is sent to the central processing unit;
- the central processing unit is further configured to determine, when the low level signal is received, the cable inserted into the interface as an adapter according to the corresponding relationship between the preset level signal and the cable type. Charging cable
- the cable inserted into the interface is determined to be a USB charging cable according to a preset relationship between the level signal and the cable type.
- the device further includes: an interface selection unit, a power supply unit, and a charging management unit, wherein the central processing unit includes a main device interface, a video function interface, an audio function interface, and a slave device interface;
- the central processing unit is configured to open its own master device interface when the cable of the plug-in interface determined by itself is a type A USB cable, and the control interface selecting unit connects the master device interface with the type A USB The interface of the cable-connected slave device is turned on, and the control power source unit supplies power to the slave device through the VBUS pin;
- the video function interface When the cable of the inserted interface is a video cable, the video function interface is opened, and the control interface selection unit connects the video function interface and the interface of the device connected to the video cable;
- the audio function interface of the audio interface is opened, and the control interface selection unit connects the audio function interface and the interface of the device connected to the audio cable;
- the control interface selection unit interfaces the audio function interface or the video function interface with the device connected to the in-vehicle device cable.
- the slave device interface When the determined cable of the plug-in interface is a B-type USB cable, the slave device interface is opened, and the control interface selecting unit connects the slave device interface and the interface of the master device connected to the type B USB cable. ;
- the charging management unit is controlled to charge according to the current value of the adapter charging
- the interface is a Micro USB or Mini USB interface.
- the working principle of the tablet interface expansion device provided by the embodiment of the present invention is described below.
- the workflow of the device includes:
- Step 301 The voltage detecting unit detects whether the VBUS pin has a voltage input, and when there is no voltage input, notifies the impedance detecting unit to proceed to step 302; when there is a voltage input, notifies the charging detecting unit to proceed to step 304.
- Step 302 After receiving the notification sent by the voltage detecting unit, the impedance detecting unit detects the impedance between the ID pin of the Micro USB interface and the GND pin.
- Step 303 the central processing unit determines the type of the cable inserted into the interface according to the impedance value detected by the impedance detecting unit, by querying the correspondence between the preset impedance value and the cable type, and then performing step 306;
- the central processing unit determines the cable inserted into the interface as the type A USB cable by querying the correspondence between the preset impedance value and the cable type;
- the cable of the interface is a type A USB cable
- the tablet connected to the type A USB cable serves as a master device
- other devices connected to the type A USB cable serve as slave devices
- the other devices may be USB flash drive, mouse, keyboard, etc.
- the central processing unit determines the cable inserted into the interface as a video cable by querying the correspondence between the preset impedance value and the cable type;
- the central processing unit determines the cable inserted into the interface as an audio cable by querying the correspondence between the preset impedance value and the cable type;
- the central processing unit determines the cable inserted into the interface as the in-vehicle device cable by querying the correspondence between the preset impedance value and the cable type;
- the central processing unit determines the cable inserted into the interface as a type B USB cable by querying the correspondence between the preset impedance value and the cable type; when the line of the interface is inserted
- the cable is a B-type USB cable
- the tablet connected to the B-type USB cable functions as a slave device, and other devices connected to the B-type USB cable serve as a master device.
- the tablet computer can serve as a master device.
- the memory is called by other devices.
- Step 304 After receiving the notification sent by the voltage detecting unit, the charging detecting unit detects whether the DP pin and the DM pin are short-circuited or open. When it is detected that the DP pin and the DM pin are short-circuited, the low-power is sent to the central processing unit. a flat signal, when it is detected that the DP pin and the DM pin are open, send a high level signal to the central processing unit;
- Step 305 The central processing unit determines, according to a result of the detection by the charging detection unit, a type of a cable inserted into the interface.
- the central processing unit determines, according to the preset relationship between the level signal and the cable type, that the cable inserted into the interface is an adapter charging cable;
- the central processing unit determines that the cable inserted into the interface is a USB charging cable according to a preset relationship between the level signal and the cable type.
- Step 306 The central processing unit controls related components in the tablet computer to perform corresponding operations according to the type of the cable inserted into the interface determined by the central processing unit.
- the central processing unit opens the main device interface therein, and the control interface selecting unit connects the main device interface and the type A USB cable.
- the interface of the slave device (such as a USB flash drive) is turned on to enable the tablet computer to acquire data from the slave device; and the control power supply unit supplies power to the slave device through the VBUS pin;
- the central processing unit When the determined cable inserted into the interface is a video cable, the central processing unit opens the view within it. a frequency function interface, the control interface selection unit is configured to connect the video function interface and a device (such as a television) connected to the video cable, so that the tablet computer can output video data to the device; when determining the insertion interface When the cable is an audio cable, the central processing unit turns on the audio function interface therein, and the control interface selection unit connects the audio function interface and the device (such as a sound) connected to the audio cable to make the tablet Capable of outputting audio data to the device; when the determined cable of the plug-in interface is an in-vehicle device cable, the central processing unit opens an audio function interface or a video function interface therein, and the control interface selection unit sets the audio function interface or the video function The interface is interfaced with a device connected to the in-vehicle device cable to enable the tablet to output audio or video data to the device;
- the central processing unit opens the slave device interface therein, and the control interface selecting unit connects the slave device interface and the master device connected to the USB-type USB cable
- An interface (such as a computer) is turned on to enable the tablet to provide data to the host device;
- the central processing unit controls the charging management unit to charge according to the current value charged by the adapter, for example, 1.5A;
- the central processing unit controls the charging management unit to charge according to the current value of the USB charging, for example, 500 mA.
- the tablet interface expansion device provided by the embodiment of the present invention may be built in a tablet computer, and the device determines the insertion interface according to the detected impedance value or whether the detected DP pin and the DM pin are short-circuited or broken.
- the type of cable, and subsequent control enables different types of cables to be connected to the Micro USB or Mini USB interface without the need for an external expansion device.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Power Sources (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种平板电脑接口扩展方法和装置,其中,所述装置包括:接口,配置为插入线缆;电压检测单元,配置为检测VBUS针脚是否有电压输入,当没有电压输入时,通知阻抗检测单元,当有电压输入时,通知充电检测单元;阻抗检测单元,配置为在收到电压检测单元发来的通知后,检测接口的ID针脚与GND针脚之间的阻抗;充电检测单元,配置为在收到电压检测单元发来的通知后,检测DP针脚和DM针脚是短路还是断路;中央处理单元,配置为根据阻抗检测单元检测到的阻抗值或充电检测单元检测的结果,确定插入接口的线缆的类型;并控制平板电脑内的相关部件进行相应的操作。本发明可以实现无需外接扩展设备,就能在Micro USB或Mini USB接口上连接不同类型的线缆。
Description
一种平板电脑接口扩展方法和装置 技术领域
本发明涉及平板电脑技术, 尤其涉及一种平板电脑接口扩展方法和装 置。 背景技术
目前, 平板电脑(Tablet ) 的造型越来越简洁, 尤其是接口设计越来越 简洁。 逐渐将数据通讯接口、 充电接口、 音视频接口、 甚至车载设备接口 都融合在一个物理接口上, 通常为 Micro 通用串行总线 (Universal Serial Bus, USB )或 Mini USB接口。 但是, 目前需要在 Micro USB或 Mini USB 接口上外接扩展设备, 如扩展插槽或扩展底座, 才能在 Micro USB接口上 连接不同类型的线缆,其中包括适配器充电线缆、 USB充电线缆、 A型 USB 线缆、 B型 USB线缆、 音频线缆、 视频线缆、 车载设备线缆等。 但是, 这 样不仅增加了用户的支出, 而且导致在需要携带平板电脑外出时, 用户还 要携带扩展设备, 给用户造成极大的不便。 发明内容
有鉴于此, 本发明实施例的主要目的在于提供一种平板电脑接口扩展 方法和装置, 可以实现无需外接扩展设备, 就能在 Micro USB或 Mini USB 接口上连接不同类型的线缆, 从而可以使用户避免携带扩展设备。
为达到上述目的, 本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种平板电脑接口扩展装置, 内置于平板电脑, 所述装置包括: 接口、 电压检测单元、 阻抗检测单元、 充电检测单元、 中 央处理单元; 其中,
所述接口, 配置为插入线缆;
所述电压检测单元, 配置为检测电源针脚(VBUS )是否有电压输入, 当没有电压输入时, 通知所述阻抗检测单元, 当有电压输入时, 通知所述 充电检测单元;
所述阻抗检测单元, 配置为在收到电压检测单元发来的通知后, 检测 接口的信号指示针脚(ID )与接地针脚(GND )之间的阻抗;
所述充电检测单元, 配置为在收到电压检测单元发来的通知后, 检测 数据信号正针脚(DP )和数据信号负针脚(DM )是短路还是断路;
所述中央处理单元, 配置为根据阻抗检测单元检测到的阻抗值或根据 充电检测单元检测的结果, 确定插入接口的线缆的类型; 以及配置为根据 自身确定的插入接口的线缆的类型, 控制平板电脑内的相关部件进行相应 的操作。
较佳地, 所述中央处理单元, 配置为根据阻抗检测单元检测到的阻抗 值, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 的类型。
较佳地, 所述中央处理单元, 配置为当阻抗检测单元检测到的阻抗值 为 0欧姆时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接 口的线缆为 A型通用串行总线(USB ) 线缆;
当阻抗检测单元检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为视频线缆;
当阻抗检测单元检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为音频线缆;
当阻抗检测单元检测到的阻抗值大于等于 198千欧小于等于 202千欧
时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为车载设备线缆;
当阻抗检测单元检测到的阻抗值为无限大时, 通过查询预设的阻抗值 和线缆类型的对应关系, 确定插入接口的线缆为 B型 USB线缆。
较佳地, 所述充电检测单元, 配置为在收到电压检测单元发来的通知 后 ,检测 DP针脚和 DM针脚是短路还是断路, 当检测到 DP针脚和 DM针 脚是短路时, 向所述中央处理单元发出低电平信号, 当检测到 DP针脚和 DM针脚是断路时, 向所述中央处理单元发出高电平信号;
相应的, 所述中央处理单元, 还配置为当收到低电平信号时, 根据预 设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为适配器充电 线缆;
当收到高电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为 USB充电线缆。
较佳地, 所述装置还包括: 接口选择单元、 电源单元和充电管理单元, 所述中央处理单元包括主设备接口、 视频功能接口、 音频功能接口和从设 备接口;
所述中央处理单元, 配置为当自身确定的插入接口的线缆为 A型 USB 线缆时, 打开自身的主设备接口, 控制接口选择单元将所述主设备接口和 与所述 A型 USB线缆连接的从设备的接口接通, 并且, 控制电源单元通过 VBUS针脚给所述从设备提供电源;
当确定的插入接口的线缆为视频线缆时, 打开自身的视频功能接口, 控制接口选择单元将所述视频功能接口和与视频线缆连接的设备的接口接 通;
当确定的插入接口的线缆为音频线缆时, 打开自身的音频功能接口, 控制接口选择单元将所述音频功能接口和与音频线缆连接的设备的接口接
通;
当确定的插入接口的线缆为车载设备线缆时, 中央处理单元打开音频 功能接口或视频功能接口, 控制接口选择单元将音频功能接口或视频功能 接口和与车载设备线缆连接的设备的接口接通;
当确定的插入接口的线缆为 B型 USB线缆时,打开自身的从设备接口, 控制接口选择单元将所述从设备接口和与所述 B型 USB线缆连接的主设备 的接口接通;
当确定的插入接口的线缆为适配器充电线缆时, 控制充电管理单元按 适配器充电的电流值进行充电;
当确定的插入接口的线缆为 USB 充电线缆时, 控制充电管理单元按 USB充电的电流值进行充电。
本发明实施例提供了一种平板电脑接口扩展方法, 所述方法包括: 检测电源针脚( VBUS )是否有电压输入, 当没有电压输入时, 检测接 口的信号指示针脚(ID )与接地针脚(GND )之间的阻抗, 根据检测到的 阻抗值, 确定插入接口的线缆的类型;
当有电压输入时,检测数据信号正针脚 ( DP )和数据信号负针脚 ( DM ) 是短路还是断路, 根据检测的结果, 确定插入接口的线缆的类型;
根据确定的插入接口的线缆的类型, 控制平板电脑内的相关部件进行 相应的操作。
较佳地, 所述根据检测到的阻抗值, 确定插入接口的线缆的类型, 为, 根据阻抗检测单元检测到的阻抗值, 通过查询预设的阻抗值和线缆类 型的对应关系, 确定插入接口的线缆的类型。
较佳地, 所述根据检测到的阻抗值, 通过查询预设的阻抗值和线缆类 型的对应关系, 确定插入接口的线缆的类型, 为,
当检测到的阻抗值为 0欧姆时, 通过查询预设的阻抗值和线缆类型的
对应关系, 确定插入接口的线缆为 A型通用串行总线(USB )线缆; 当检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为视频线缆; 当检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为音频线缆; 当检测到的阻抗值大于等于 198千欧小于等于 202千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为车载设备线 缆;
当检测到的阻抗值为无限大时, 通过查询预设的阻抗值和线缆类型的 对应关系, 确定插入接口的线缆为 B型 USB线缆。
较佳地,所述检测 DP针脚和 DM针脚是短路还是断路,所述根据检测 的结果, 确定插入接口的线缆的类型, 为,
检测 DP针脚和 DM针脚是短路还是断路,当检测到 DP针脚和 DM针 脚是短路时, 发出低电平信号, 当检测到 DP针脚和 DM针脚是断路时,发 出高电平信号;
当收到低电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为适配器充电线缆;
当收到高电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为 USB充电线缆。
较佳地, 所述根据确定的插入接口的线缆的类型, 控制平板电脑内的 相关部件进行相应的操作, 为,
当确定的插入接口的线缆为 A型 USB线缆时, 打开主设备接口, 控制 接口选择单元将所述主设备接口和与所述 A型 USB线缆连接的从设备的接 口接通, 并且, 中央处理单元控制电源单元通过 VBUS针脚给所述从设备 提供电源;
当确定的插入接口的线缆为视频线缆时, 打开视频功能接口, 控制接 口选择单元将所述视频功能接口和与视频线缆连接的设备的接口接通; 当确定的插入接口的线缆为音频线缆时, 打开音频功能接口, 控制接 口选择单元将所述音频功能接口和与音频线缆连接的设备的接口接通; 当确定的插入接口的线缆为车载设备线缆时, 打开音频功能接口或视 频功能接口, 控制接口选择单元将音频功能接口或视频功能接口和与车载 设备线缆连接的设备的接口接通;
当确定的插入接口的线缆为 B型 USB线缆时, 打开从设备接口, 控制 接口选择单元将所述从设备接口和与所述 B型 USB线缆连接的主设备的接 口接通;
当确定的插入接口的线缆为适配器充电线缆时, 控制充电管理单元按 适配器充电的电流值进行充电; 当确定的插入接口的线缆为 USB充电线缆 时, 控制充电管理单元按 USB充电的电流值进行充电。
由上可知, 本发明实施例的技术方案包括: 检测电源针脚( VBUS )是 否有电压输入, 当没有电压输入时, 检测接口的信号指示针脚(ID ) 与接 地针脚(GND )之间的阻抗, 根据检测到的阻抗值, 确定插入接口的线缆 的类型; 当有电压输入时, 检测数据信号正针脚(DP )和数据信号负针脚 ( DM )是短路还是断路, 根据检测的结果, 确定插入接口的线缆的类型; 根据确定的插入接口的线缆的类型, 控制平板电脑内的相关部件进行相应 的操作, 由此, 本发明实施例提供的平板电脑接口扩展装置, 可以内置于 平板电脑,所述装置根据检测到的阻抗值或检测到的 DP针脚和 DM针脚是 短路还是断路, 确定插入接口的线缆的类型, 并进行后续的控制, 可以实 现无需外接扩展设备,就能在 Micro USB或 Mini USB接口上连接不同类型 的线缆。
附图说明
图 1为本发明提供的平板电脑接口扩展方法的实施例的流程图; 图 2为本发明提供的平板电脑接口扩展装置的实施例的结构图。 具体实施方式 本发明提供的平板电脑接口扩展方法的实施例, 如图 1 所示, 所述方 法包括:
步骤 101、 检测 VBUS针脚是否有电压输入, 当没有电压输入时, 进 入步骤 102; 当有电压输入时, 进入步骤 104;
步骤 102、 检测接口的 ID针脚与 GND针脚之间的阻抗;
步骤 103、 根据检测到的阻抗值, 确定插入接口的线缆的类型, 然后执 行步骤 106;
步骤 104、 检测 DP针脚和 DM针脚是短路还是断路;
步骤 105、 根据检测的结果, 确定插入接口的线缆的类型;
步骤 106、根据确定的插入接口的线缆的类型,控制平板电脑内的相关 部件进行相应的操作。
较佳地, 所述步骤 103 可以为, 根据阻抗检测单元检测到的阻抗值, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆的类 型; 具体地,
当检测到的阻抗值为 0欧姆时, 通过查询预设的阻抗值和线缆类型的 对应关系, 确定插入接口的线缆为 A型 USB线缆;
当检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为视频线缆; 当检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为音频线缆;
当检测到的阻抗值大于等于 198千欧小于等于 202千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为车载设备线 缆;
当检测到的阻抗值为无限大时, 通过查询预设的阻抗值和线缆类型的 对应关系, 确定插入接口的线缆为 B型 USB线缆;
所述阻抗值和线缆类型的对应关系, 可以根据经验值进行设定。
较佳地, 所述步骤 104、 105可以为,
检测 DP针脚和 DM针脚是短路还是断路,当检测到 DP针脚和 DM针 脚是短路时, 发出低电平信号, 当检测到 DP针脚和 DM针脚是断路时,发 出高电平信号;
当收到低电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为适配器充电线缆;
当收到高电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为 USB充电线缆;
实践中,当检测到 DP针脚和 DM针脚是短路时,可以发出高电平信号, 当检测到 DP针脚和 DM针脚是断路时, 可以发出低电平信号, 此时, 电平 信号和线缆类型的对应关系为, 高电平信号与适配器充电线缆对应, 低电 平信号与 USB充电缆对应。
较佳地, 所述步骤 106可以为,
当确定的插入接口的线缆为 A型 USB线缆时, 打开主设备接口, 控制 接口选择单元将所述主设备接口和与所述 A型 USB线缆连接的从设备的接 当确定的插入接口的线缆为视频线缆时, 打开视频功能接口, 控制接 口选择单元将所述视频功能接口和与视频线缆连接的设备的接口接通; 当确定的插入接口的线缆为音频线缆时, 打开音频功能接口, 控制接
口选择单元将所述音频功能接口和与音频线缆连接的设备的接口接通; 当确定的插入接口的线缆为车载设备线缆时, 打开音频功能接口或视 频功能接口, 控制接口选择单元将音频功能接口或视频功能接口和与车载 设备线缆连接的设备的接口接通;
当确定的插入接口的线缆为 B型 USB线缆时, 打开从设备接口, 控制 接口选择单元将所述从设备接口和与所述 B型 USB线缆连接的主设备的接 口接通;
当确定的插入接口的线缆为适配器充电线缆时, 控制充电管理单元按 适配器充电的电流值进行充电;
当确定的插入接口的线缆为 USB 充电线缆时, 控制充电管理单元按 USB充电的电流值进行充电。
较佳地, 所述接口可以为 Micro USB或 Mini USB接口。
本发明提供的平板电脑接口扩展装置的实施例, 内置于平板电脑, 如 图 2所示, 所述装置包括: 接口、 阻抗检测单元、 电压检测单元、 充电检 测单元、 中央处理单元; 其中,
所述接口, 配置为插入线缆;
所述电压检测单元, 配置为检测 VBUS针脚是否有电压输入, 当没有 电压输入时, 通知阻抗检测单元, 当有电压输入时, 通知所述充电检测单 元;
所述阻抗检测单元, 配置为在收到电压检测单元发来的通知后, 检测 接口的 ID针脚与 GND针脚之间的阻抗;
所述充电检测单元, 配置为在收到电压检测单元发来的通知后, 检测 DP针脚和 DM针脚是短路还是断路;
所述中央处理单元, 配置为根据阻抗检测单元检测到的阻抗值或根据 充电检测单元检测的结果, 确定插入接口的线缆的类型; 以及配置为根据
自身确定的插入接口的线缆的类型, 控制平板电脑内的相关部件进行相应 的操作。
较佳地, 所述中央处理单元, 具体配置为根据阻抗检测单元检测到的 阻抗值, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的 线缆的类型。
较佳地, 所述中央处理单元, 具体配置为当阻抗检测单元检测到的阻 抗值为 0欧姆时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插 入接口的线缆为 A型 USB线缆;
当阻抗检测单元检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为视频线缆;
当阻抗检测单元检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为音频线缆;
当阻抗检测单元检测到的阻抗值大于等于 198千欧小于等于 202千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为车载设备线缆;
当阻抗检测单元检测到的阻抗值为无限大时, 通过查询预设的阻抗值 和线缆类型的对应关系, 确定插入接口的线缆为 B型 USB线缆。
较佳地, 所述充电检测单元, 具体配置为在收到电压检测单元发来的 通知后, 检测 DP针脚和 DM针脚是短路还是断路, 当检测到 DP针脚和 DM针脚是短路时, 向所述中央处理单元发出低电平信号, 当检测到 DP针 脚和 DM针脚是断路时, 向所述中央处理单元发出高电平信号;
相应的, 所述中央处理单元, 还具体配置为当收到低电平信号时, 根 据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为适配器
充电线缆;
当收到高电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为 USB充电线缆。
较佳地, 所述装置还包括: 接口选择单元、 电源单元和充电管理单元, 所述中央处理单元包括主设备接口、 视频功能接口、 音频功能接口和从设 备接口;
所述中央处理单元, 具体配置为当自身确定的插入接口的线缆为 A型 USB线缆时, 打开自身的主设备接口, 控制接口选择单元将所述主设备接 口和与所述 A型 USB线缆连接的从设备的接口接通, 并且, 控制电源单元 通过 VBUS针脚给所述从设备提供电源;
当确定的插入接口的线缆为视频线缆时, 打开自身的视频功能接口, 控制接口选择单元将所述视频功能接口和与视频线缆连接的设备的接口接 通;
当确定的插入接口的线缆为音频线缆时, 打开自身的音频功能接口, 控制接口选择单元将所述音频功能接口和与音频线缆连接的设备的接口接 通;
当确定的插入接口的线缆为车载设备线缆时, 打开自身的音频功能接 口或视频功能接口, 控制接口选择单元将音频功能接口或视频功能接口和 与车载设备线缆连接的设备的接口接通;
当确定的插入接口的线缆为 B型 USB线缆时,打开自身的从设备接口, 控制接口选择单元将所述从设备接口和与所述 B型 USB线缆连接的主设备 的接口接通;
当确定的插入接口的线缆为适配器充电线缆时, 控制充电管理单元按 适配器充电的电流值进行充电;
当确定的插入接口的线缆为 USB 充电线缆时, 控制充电管理单元按
USB充电的电流值进行充电。
较佳地, 所述接口为 Micro USB或 Mini USB接口。
下面对本发明实施例提供的平板电脑接口扩展装置的工作原理进行介 绍, 所述装置的工作流程包括:
步骤 301、 电压检测单元检测 VBUS针脚是否有电压输入, 当没有电 压输入时, 通知阻抗检测单元, 进入步骤 302; 当有电压输入时, 通知所述 充电检测单元, 进入步骤 304。
步骤 302、在收到电压检测单元发来的通知后,阻抗检测单元检测 Micro USB接口的 ID针脚与 GND针脚之间的阻抗。
步骤 303、 中央处理单元根据阻抗检测单元检测到的阻抗值, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆的类型, 然后 执行步骤 306;
具体的, 当阻抗检测单元检测到的阻抗值为 0欧姆时, 中央处理单元 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为 A 型 USB线缆; 当插入接口的线缆为 A型 USB线缆时, 与所述 A型 USB线 缆连接的平板电脑作为主设备,与所述 A型 USB线缆连接的其他设备作为 从设备, 所述其他设备可以是 USB闪存驱动器(USB Flash Disk )、 鼠标、 键盘等设备;
当阻抗检测单元检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧 时, 中央处理单元通过查询预设的阻抗值和线缆类型的对应关系, 确定插 入接口的线缆为视频线缆;
当阻抗检测单元检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧 时, 中央处理单元通过查询预设的阻抗值和线缆类型的对应关系, 确定插 入接口的线缆为音频线缆;
当阻抗检测单元检测到的阻抗值大于等于 198千欧小于等于 202千欧
时, 中央处理单元通过查询预设的阻抗值和线缆类型的对应关系, 确定插 入接口的线缆为车载设备线缆;
当阻抗检测单元检测到的阻抗值为无限大时, 中央处理单元通过查询 预设的阻抗值和线缆类型的对应关系,确定插入接口的线缆为 B型 USB线 缆; 当插入接口的线缆为 B型 USB线缆时, 与所述 B型 USB线缆连接的 平板电脑作为从设备, 与所述 B型 USB线缆连接的其他设备作为主设备, 此时, 所述平板电脑可以作为存储器被其他设备调用。
步骤 304、 在收到电压检测单元发来的通知后, 充电检测单元检测 DP 针脚和 DM针脚是短路还是断路, 当检测到 DP针脚和 DM针脚是短路时, 向所述中央处理单元发出低电平信号,当检测到 DP针脚和 DM针脚是断路 时, 向所述中央处理单元发出高电平信号;
步骤 305、 中央处理单元根据充电检测单元检测的结果, 确定插入接口 的线缆的类型;
具体的, 当收到低电平信号时, 中央处理单元根据预设的电平信号和 线缆类型的对应关系, 确定插入接口的线缆为适配器充电线缆;
当收到高电平信号时, 中央处理单元根据预设的电平信号和线缆类型 的对应关系, 确定插入接口的线缆为 USB充电线缆。
步骤 306、 中央处理单元根据自身确定的插入接口的线缆的类型,控制 平板电脑内的相关部件进行相应的操作。
具体的, 当确定的插入接口的线缆为 A型 USB线缆时, 中央处理单元 打开其内的主设备接口, 控制接口选择单元将所述主设备接口和与所述 A 型 USB线缆连接的从设备(如 USB闪存驱动器)的接口接通, 以使平板电 脑能够从所述从设备获取数据; 并且, 控制电源单元通过 VBUS针脚给所 述从设备提供电源;
当确定的插入接口的线缆为视频线缆时, 中央处理单元打开其内的视
频功能接口, 控制接口选择单元将所述视频功能接口和与视频线缆连接的 设备(如电视) 的接口接通, 以使平板电脑能够向所述设备输出视频数据; 当确定的插入接口的线缆为音频线缆时, 中央处理单元打开其内的音 频功能接口, 控制接口选择单元将所述音频功能接口和与音频线缆连接的 设备(如音响) 的接口接通, 以使平板电脑能够向所述设备输出音频数据; 当确定的插入接口的线缆为车载设备线缆时, 中央处理单元打开其内 的音频功能接口或视频功能接口, 控制接口选择单元将音频功能接口或视 频功能接口和与车载设备线缆连接的设备的接口接通, 以使平板电脑能够 向所述设备输出音频或视频数据;
当确定的插入接口的线缆为 Β型 USB线缆时, 中央处理单元打开其内 的从设备接口,控制接口选择单元将所述从设备接口和与所述 Β型 USB线 缆连接的主设备(如电脑) 的接口接通, 以使平板电脑能够向所述主设备 提供数据;
当确定的插入接口的线缆为适配器充电线缆时, 中央处理单元控制充 电管理单元按适配器充电的电流值, 例如 1.5A, 进行充电;
当确定的插入接口的线缆为 USB充电线缆时, 中央处理单元控制充电 管理单元按 USB充电的电流值, 例如 500mA, 进行充电。
综上所述, 本发明实施例提供的平板电脑接口扩展装置, 可以内置于 平板电脑,所述装置根据检测到的阻抗值或检测到的 DP针脚和 DM针脚是 短路还是断路, 确定插入接口的线缆的类型, 并进行后续的控制, 可以实 现无需外接扩展设备,就能在 Micro USB或 Mini USB接口上连接不同类型 的线缆。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。
Claims
1、 一种平板电脑接口扩展装置, 内置于平板电脑, 所述装置包括: 接 口、 电压检测单元、 阻抗检测单元、 充电检测单元、 中央处理单元; 其 中,
所述接口, 配置为插入线缆;
所述电压检测单元, 配置为检测电源针脚 VBUS是否有电压输入, 当 没有电压输入时, 通知所述阻抗检测单元, 当有电压输入时, 通知所述充 电检测单元;
所述阻抗检测单元, 配置为在收到电压检测单元发来的通知后, 检测 接口的信号指示针脚 ID与接地针脚 GND之间的阻抗;
所述充电检测单元, 配置为在收到电压检测单元发来的通知后, 检测 数据信号正针脚 DP和数据信号负针脚 DM是短路还是断路;
所述中央处理单元, 配置为根据阻抗检测单元检测到的阻抗值或根据 充电检测单元检测的结果, 确定插入接口的线缆的类型; 以及配置为根据 自身确定的插入接口的线缆的类型, 控制平板电脑内的相关部件进行相应 的操作。
2、 根据权利要求 1所述的装置, 其中, 所述中央处理单元, 配置为根 据阻抗检测单元检测到的阻抗值, 通过查询预设的阻抗值和线缆类型的对 应关系, 确定插入接口的线缆的类型。
3、 根据权利要求 2所述的装置, 其中, 所述中央处理单元, 配置为当 阻抗检测单元检测到的阻抗值为 0欧姆时, 通过查询预设的阻抗值和线缆 类型的对应关系, 确定插入接口的线缆为 A型通用串行总线 USB线缆; 当阻抗检测单元检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆
为视频线缆;
当阻抗检测单元检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为音频线缆;
当阻抗检测单元检测到的阻抗值大于等于 198千欧小于等于 202千欧 时, 通过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆 为车载设备线缆;
当阻抗检测单元检测到的阻抗值为无限大时, 通过查询预设的阻抗值 和线缆类型的对应关系, 确定插入接口的线缆为 B型 USB线缆。
4、 根据权利要求 1所述的装置, 其中,
所述充电检测单元, 配置为在收到电压检测单元发来的通知后, 检测 DP针脚和 DM针脚是短路还是断路, 当检测到 DP针脚和 DM针脚是短路 时,向所述中央处理单元发出低电平信号, 当检测到 DP针脚和 DM针脚是 断路时, 向所述中央处理单元发出高电平信号;
相应的, 所述中央处理单元, 还配置为当收到低电平信号时, 根据预 设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为适配器充电 线缆;
当收到高电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为 USB充电线缆。
5、 根据权利要求 3或 4所述的装置, 其中, 所述装置还包括: 接口选 择单元、 电源单元和充电管理单元, 所述中央处理单元包括主设备接口、 视频功能接口、 音频功能接口和从设备接口;
所述中央处理单元, 配置为当自身确定的插入接口的线缆为 A型 USB 线缆时, 打开自身的主设备接口, 控制接口选择单元将所述主设备接口和 与所述 A型 USB线缆连接的从设备的接口接通, 并且, 控制电源单元通过
VBUS针脚给所述从设备提供电源;
当确定的插入接口的线缆为视频线缆时, 打开自身的视频功能接口, 控制接口选择单元将所述视频功能接口和与视频线缆连接的设备的接口接 通;
当确定的插入接口的线缆为音频线缆时, 打开自身的音频功能接口, 控制接口选择单元将所述音频功能接口和与音频线缆连接的设备的接口接 通;
当确定的插入接口的线缆为车载设备线缆时, 中央处理单元打开音频 功能接口或视频功能接口, 控制接口选择单元将音频功能接口或视频功能 接口和与车载设备线缆连接的设备的接口接通;
当确定的插入接口的线缆为 B型 USB线缆时,打开自身的从设备接口, 控制接口选择单元将所述从设备接口和与所述 B型 USB线缆连接的主设备 的接口接通;
当确定的插入接口的线缆为适配器充电线缆时, 控制充电管理单元按 适配器充电的电流值进行充电;
当确定的插入接口的线缆为 USB 充电线缆时, 控制充电管理单元按 USB充电的电流值进行充电。
6、 一种平板电脑接口扩展方法, 所述方法包括:
检测电源针脚 VBUS是否有电压输入, 当没有电压输入时, 检测接口 的信号指示针脚 ID与接地针脚 GND之间的阻抗, 根据检测到的阻抗值, 确定插入接口的线缆的类型;
当有电压输入时,检测数据信号正针脚 DP和数据信号负针脚 DM是短 路还是断路, 根据检测的结果, 确定插入接口的线缆的类型;
根据确定的插入接口的线缆的类型, 控制平板电脑内的相关部件进行 相应的操作。
7、 根据权利要求 6所述的方法, 其中, 所述根据检测到的阻抗值, 确 定插入接口的线缆的类型, 为,
根据阻抗检测单元检测到的阻抗值, 通过查询预设的阻抗值和线缆类 型的对应关系, 确定插入接口的线缆的类型。
8、 根据权利要求 7所述的方法, 其中, 所述根据检测到的阻抗值, 通 过查询预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆的类型, 为,
当检测到的阻抗值为 0欧姆时, 通过查询预设的阻抗值和线缆类型的 对应关系, 确定插入接口的线缆为 A型通用串行总线 USB线缆;
当检测到的阻抗值大于等于 34.6千欧小于等于 36.8千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为视频线缆; 当检测到的阻抗值大于等于 64.6千欧小于等于 71.4千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为音频线缆; 当检测到的阻抗值大于等于 198千欧小于等于 202千欧时, 通过查询 预设的阻抗值和线缆类型的对应关系, 确定插入接口的线缆为车载设备线 缆;
当检测到的阻抗值为无限大时, 通过查询预设的阻抗值和线缆类型的 对应关系, 确定插入接口的线缆为 B型 USB线缆。
9、 根据权利要求 6所述的方法, 其中, 所述检测 DP针脚和 DM针脚 是短路还是断路, 所述根据检测的结果, 确定插入接口的线缆的类型, 为, 检测 DP针脚和 DM针脚是短路还是断路,当检测到 DP针脚和 DM针 脚是短路时, 发出低电平信号, 当检测到 DP针脚和 DM针脚是断路时,发 出高电平信号;
当收到低电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为适配器充电线缆;
当收到高电平信号时, 根据预设的电平信号和线缆类型的对应关系, 确定插入接口的线缆为 USB充电线缆。
10、 根据权利要求 8或 9所述的方法, 其中, 所述根据确定的插入接 口的线缆的类型, 控制平板电脑内的相关部件进行相应的操作, 为,
当确定的插入接口的线缆为 A型 USB线缆时, 打开主设备接口, 控制 接口选择单元将所述主设备接口和与所述 A型 USB线缆连接的从设备的接 口接通, 并且, 中央处理单元控制电源单元通过 VBUS针脚给所述从设备 提供电源;
当确定的插入接口的线缆为视频线缆时, 打开视频功能接口, 控制接 口选择单元将所述视频功能接口和与视频线缆连接的设备的接口接通; 当确定的插入接口的线缆为音频线缆时, 打开音频功能接口, 控制接 口选择单元将所述音频功能接口和与音频线缆连接的设备的接口接通; 当确定的插入接口的线缆为车载设备线缆时, 打开音频功能接口或视 频功能接口, 控制接口选择单元将音频功能接口或视频功能接口和与车载 设备线缆连接的设备的接口接通;
当确定的插入接口的线缆为 B型 USB线缆时, 打开从设备接口, 控制 接口选择单元将所述从设备接口和与所述 B型 USB线缆连接的主设备的接 口接通;
当确定的插入接口的线缆为适配器充电线缆时, 控制充电管理单元按 适配器充电的电流值进行充电;
当确定的插入接口的线缆为 USB 充电线缆时, 控制充电管理单元按 USB充电的电流值进行充电。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP13796507.5A EP2879014B1 (en) | 2012-08-30 | 2013-07-17 | Tablet interface extension method and device |
US14/421,113 US9448611B2 (en) | 2012-08-30 | 2013-07-17 | Interface expending method and device for tablet computer |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210315236.5 | 2012-08-30 | ||
CN201210315236.5A CN102880238B (zh) | 2012-08-30 | 2012-08-30 | 一种平板电脑接口扩展方法和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013178146A1 true WO2013178146A1 (zh) | 2013-12-05 |
Family
ID=47481604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/079521 WO2013178146A1 (zh) | 2012-08-30 | 2013-07-17 | 一种平板电脑接口扩展方法和装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US9448611B2 (zh) |
EP (1) | EP2879014B1 (zh) |
CN (1) | CN102880238B (zh) |
WO (1) | WO2013178146A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417085A (zh) * | 2019-07-24 | 2019-11-05 | 深圳英集芯科技有限公司 | 一种用于检测苹果设备是否插入的系统及方法 |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102880238B (zh) | 2012-08-30 | 2015-07-22 | 中兴通讯股份有限公司 | 一种平板电脑接口扩展方法和装置 |
CN103473208B (zh) * | 2013-04-12 | 2016-10-12 | 威盛电子股份有限公司 | 传输系统 |
CN104519405A (zh) * | 2013-10-08 | 2015-04-15 | 联想(北京)有限公司 | 一种控制方法及电子设备 |
TWI528141B (zh) * | 2013-12-04 | 2016-04-01 | 緯創資通股份有限公司 | 手持電腦設備及其擴充裝置 |
KR20160040961A (ko) | 2014-10-06 | 2016-04-15 | 삼성전자주식회사 | 전자 장치 및 전자 장치에서 충방전 방법 |
CN104578276B (zh) * | 2014-12-24 | 2016-08-31 | 广东欧珀移动通信有限公司 | 充电方法、usb传输线及供电设备 |
CN106155956B (zh) * | 2015-04-02 | 2020-08-28 | 中兴通讯股份有限公司 | 接口识别方法以及终端 |
CN106292971A (zh) * | 2015-06-11 | 2017-01-04 | 联想(北京)有限公司 | 一种开启电源的方法及电子设备 |
CN104993182B (zh) | 2015-08-05 | 2018-01-09 | 青岛海信移动通信技术股份有限公司 | 一种移动终端、可直充电源适配器及充电方法 |
CN104993562B (zh) | 2015-08-05 | 2017-12-05 | 青岛海信移动通信技术股份有限公司 | 可直充电源适配器 |
CN104967201B (zh) | 2015-08-05 | 2018-10-02 | 青岛海信移动通信技术股份有限公司 | 快速充电方法、移动终端及可直充电源适配器 |
CN104967199B (zh) | 2015-08-05 | 2018-07-10 | 青岛海信移动通信技术股份有限公司 | 快速充电方法及移动终端 |
CN104967200B (zh) | 2015-08-05 | 2018-04-27 | 青岛海信移动通信技术股份有限公司 | 一种快速充电方法及移动终端 |
US10833518B2 (en) * | 2015-09-22 | 2020-11-10 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Charge control method and device, and electronic device |
CN105975039A (zh) * | 2016-04-29 | 2016-09-28 | 乐视控股(北京)有限公司 | 控制Type-C接口供电的方法、装置及电子设备 |
CN106406816A (zh) * | 2016-09-18 | 2017-02-15 | 北京小鸟看看科技有限公司 | 一种用于固件升级的接口电路及智能设备 |
CN106603755B (zh) * | 2016-10-26 | 2019-06-14 | 珠海格力电器股份有限公司 | 一种移动终端及基于移动终端的数据处理方法 |
KR102356707B1 (ko) | 2017-09-11 | 2022-01-27 | 삼성전자주식회사 | 커넥터 상의 이물질을 검출하기 위한 전자 장치 및 방법 |
KR102692156B1 (ko) * | 2018-02-21 | 2024-08-07 | 삼성전자주식회사 | 외부 전자 장치와 연결된 신호 단자에 감지된 전압의 크기에 따라 외부 전자 장치로 출력하는 전압을 제어 하기 위한 방법 및 전자 장치 |
CN109245244B (zh) * | 2018-11-13 | 2021-03-02 | Oppo(重庆)智能科技有限公司 | 充电电路、充电处理方法、电子设备及存储介质 |
CN112042174B (zh) * | 2018-12-07 | 2022-03-29 | 华为技术有限公司 | 一种智能支架以及模式启动的方法 |
CN109861038B (zh) * | 2018-12-11 | 2021-08-20 | 苏州佳世达电通有限公司 | 可自动切换连接模式的usb连接埠及其控制方法 |
CN109533182A (zh) * | 2019-01-15 | 2019-03-29 | 常州涛晨电子科技有限公司 | 多功能车用控制器及其工作方法 |
CN110309094A (zh) * | 2019-06-28 | 2019-10-08 | 联想(北京)有限公司 | 电子设备及其控制方法 |
CN110659237B (zh) * | 2019-09-27 | 2022-12-09 | 闻泰通讯股份有限公司 | 一种功能适配方法、装置、设备和存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747253A (zh) * | 2004-09-10 | 2006-03-15 | 联发科技股份有限公司 | 多重装置连接系统及其方法 |
CN101426038A (zh) * | 2007-10-29 | 2009-05-06 | 深圳富泰宏精密工业有限公司 | 便携式电子装置及其附件鉴别方法 |
US20090182935A1 (en) * | 2006-05-19 | 2009-07-16 | Xanto Technologies S.R.L. | Mass storage device, in particular of the usb type, and related method for transferring data |
CN201945991U (zh) * | 2011-01-28 | 2011-08-24 | 联想(北京)有限公司 | 电子设备和接口检测装置 |
CN102880238A (zh) * | 2012-08-30 | 2013-01-16 | 中兴通讯股份有限公司 | 一种平板电脑接口扩展方法和装置 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003248535A (ja) * | 2002-02-26 | 2003-09-05 | Alps Electric Co Ltd | インタフェース認識機能付き装置 |
CN101246465A (zh) * | 2007-05-18 | 2008-08-20 | 北京思比科微电子技术有限公司 | 通用串行总线芯片 |
CN201289641Y (zh) * | 2008-11-19 | 2009-08-12 | 龙旗科技(上海)有限公司 | 一种带有自适应微型usb接口接入设备装置的移动终端 |
US8145800B2 (en) * | 2008-12-31 | 2012-03-27 | Fresenius Medical Card Holdings, Inc. | Identifying when a USB self-powered device is connected to a medical device by triggering an alert about a potential risk to patient |
US8626932B2 (en) | 2009-09-01 | 2014-01-07 | Apple Inc. | Device-dependent selection between modes for asymmetric serial protocols |
US20120198101A1 (en) * | 2011-01-27 | 2012-08-02 | Brewster Porcella | Mobile device peripheral detection with independent state machines |
CN102393837B (zh) * | 2011-11-08 | 2014-07-30 | 深圳市海思半导体有限公司 | 一种usb充电器识别装置及方法 |
-
2012
- 2012-08-30 CN CN201210315236.5A patent/CN102880238B/zh active Active
-
2013
- 2013-07-17 US US14/421,113 patent/US9448611B2/en active Active
- 2013-07-17 EP EP13796507.5A patent/EP2879014B1/en not_active Not-in-force
- 2013-07-17 WO PCT/CN2013/079521 patent/WO2013178146A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747253A (zh) * | 2004-09-10 | 2006-03-15 | 联发科技股份有限公司 | 多重装置连接系统及其方法 |
US20090182935A1 (en) * | 2006-05-19 | 2009-07-16 | Xanto Technologies S.R.L. | Mass storage device, in particular of the usb type, and related method for transferring data |
CN101426038A (zh) * | 2007-10-29 | 2009-05-06 | 深圳富泰宏精密工业有限公司 | 便携式电子装置及其附件鉴别方法 |
CN201945991U (zh) * | 2011-01-28 | 2011-08-24 | 联想(北京)有限公司 | 电子设备和接口检测装置 |
CN102880238A (zh) * | 2012-08-30 | 2013-01-16 | 中兴通讯股份有限公司 | 一种平板电脑接口扩展方法和装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP2879014A4 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417085A (zh) * | 2019-07-24 | 2019-11-05 | 深圳英集芯科技有限公司 | 一种用于检测苹果设备是否插入的系统及方法 |
Also Published As
Publication number | Publication date |
---|---|
CN102880238B (zh) | 2015-07-22 |
EP2879014A4 (en) | 2015-11-11 |
EP2879014A1 (en) | 2015-06-03 |
EP2879014B1 (en) | 2018-09-05 |
CN102880238A (zh) | 2013-01-16 |
US9448611B2 (en) | 2016-09-20 |
US20150234445A1 (en) | 2015-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013178146A1 (zh) | 一种平板电脑接口扩展方法和装置 | |
US10746766B2 (en) | Devices and methods for detecting USB devices attached to a USB charging port | |
US10671135B2 (en) | Intelligent mobile power supply and method for USB data communication therewith | |
CN108666826B (zh) | 一种转接头、终端设备和转接头系统 | |
JP6083878B2 (ja) | 電力供給の方向を決定する方法及び装置 | |
CN106502939B (zh) | 一种usb转接头及数据传输设备 | |
JP5717005B2 (ja) | Usbインタフェースのステータスに従って内部回路を選択するための方法および端末 | |
US8769317B2 (en) | USB hub for supplying power upon determination whether a USB device is chargeable according to data transfer rate of the USB device | |
US9866055B2 (en) | Automatic scheme to detect multi-standard charger types | |
WO2013168289A1 (ja) | 電子機器およびその制御方法 | |
WO2021082731A1 (zh) | 一种电子设备及反向充电方法 | |
US20100109602A1 (en) | Charging device and method of operating the same | |
US20130101132A1 (en) | Method and Device for Earphone and USB to Share Micro-USB Interface | |
WO2022012527A1 (zh) | 充电器、数据线、充电设备和电子设备 | |
TWI394346B (zh) | 具快充手持式多媒體裝置的主機板 | |
WO2012142119A2 (en) | Mobile device auto detection apparatus and method | |
TW201014052A (en) | Detachable host accessory and portable system | |
KR20090011171A (ko) | 충전 장치 식별을 통한 충전 기능을 갖는 휴대 단말기 및방법 | |
WO2012163243A1 (zh) | 供电控制的方法、装置及电子设备 | |
US9590441B2 (en) | Multi-standard compliant USB battery charging scheme with detection of host disconnection in ACA-DOCK mode | |
CN114977444A (zh) | 移动电源芯片、检测电路和电子设备 | |
TW201216070A (en) | Host apparatus, management method and control circuit for universal serial bus | |
CN106856289B (zh) | 电子设备及其电路、转接设备及其电路和信号处理系统 | |
US20170033558A1 (en) | Electronic device and control method thereof | |
WO2010108551A1 (en) | Power management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13796507 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14421113 Country of ref document: US |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2013796507 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |