[go: up one dir, main page]

CN102053941B - Portable device with reciprocating detection terminal and detection control method thereof - Google Patents

Portable device with reciprocating detection terminal and detection control method thereof Download PDF

Info

Publication number
CN102053941B
CN102053941B CN2009102093940A CN200910209394A CN102053941B CN 102053941 B CN102053941 B CN 102053941B CN 2009102093940 A CN2009102093940 A CN 2009102093940A CN 200910209394 A CN200910209394 A CN 200910209394A CN 102053941 B CN102053941 B CN 102053941B
Authority
CN
China
Prior art keywords
portable apparatus
detection terminal
type detection
reciprocating type
connector
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.)
Expired - Fee Related
Application number
CN2009102093940A
Other languages
Chinese (zh)
Other versions
CN102053941A (en
Inventor
方文政
陈苍义
束崇万
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Transcend Information Inc
Original Assignee
Transcend Information Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Transcend Information Inc filed Critical Transcend Information Inc
Priority to CN2009102093940A priority Critical patent/CN102053941B/en
Publication of CN102053941A publication Critical patent/CN102053941A/en
Application granted granted Critical
Publication of CN102053941B publication Critical patent/CN102053941B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The connector position is provided with a detection terminal, when the portable device is inserted into a host system, the detection terminal is pushed to generate signal change, so that a controller in the portable device executes a device instruction according to the signal change. Or when the portable device is pulled out from the host system, the detection terminal is pushed to generate a signal change until the portable device is completely separated from the host system, and the controller executes another set device command by utilizing the time of several milliseconds, so that the portable device has more diversified computer control and a power-off protection mechanism for providing data transmission.

Description

具有往复式检测端子的可携式装置及其检测控制方法Portable device with reciprocating detection terminal and detection control method thereof

技术领域 technical field

本发明是有关一种可携式装置以及一种系统控制方法,尤指一种具有插入/拔出检测端子,于该检测端子被致动时,执行一自定义指令的可携式装置以及针对可携式装置插入/拔出所执行的控制方法。  The present invention relates to a portable device and a system control method, in particular to a portable device with an insertion/extraction detection terminal, when the detection terminal is actuated, a custom command is executed and aimed at A control method performed by plugging/unplugging a portable device. the

背景技术 Background technique

市面上的可携式装置通过与个人计算机等主机系统连接后,可进行可携式装置与主机系统之间的数据传输与储存。以通用序列总线(universalserial bus,USB)储存装置为例,其在主机系统上可以热插拔的特性,使得作为外接的可携式储存装置使用的USB储存装置具有相当广泛的应用。通常对于此类外接储存装置,主机系统可使用特定的装置移除程序来停止所有未来的存储器写入操作,以确保外接储存装置在安全稳定的条件下自主机系统移除。然而在许多使用情形中,USB储存装置往往会在无预警的情况下自主机系统拔除,若此时仍有数据在主机系统与USB储存装置之间传输,这种突然移除的操作往往会造成其中的数据遗失或毁损,更严重的情形甚至可能造成主机系统或USB储存装置的文件毁损而无法使用。  After the portable device on the market is connected with a host system such as a personal computer, data transmission and storage between the portable device and the host system can be performed. Taking a universal serial bus (USB) storage device as an example, its hot-swappable feature on the host system makes the USB storage device used as an external portable storage device widely used. Usually, for such an external storage device, the host system can use a specific device removal program to stop all future memory write operations, so as to ensure that the external storage device is removed from the host system under a safe and stable condition. However, in many use cases, USB storage devices are often removed from the host system without warning. If there is still data being transferred between the host system and the USB storage device at this time, this sudden removal operation often causes The data in it is lost or damaged, and in more serious cases, the files in the host system or USB storage device may be damaged and become unusable. the

发明内容 Contents of the invention

本发明的实施例揭露一种具有往复式检测端子的可携式装置。该可携式装置可沿一第一方向与一主机系统的一第一连接器电性连接以与该主机系统进行数据传输,该第一连接器具有一致动端。该可携式装置包含一第二连接器,一往复式检测端子以及一控制器。该第二连接器与该第一连接器配合使该可携式装置电性连接于该主机系统。该往复式检测端子设置于该第二连接器处,用来受该致动端致动以产生一控制信号。该往复式检测端子与该控制器电性连接,该控制器于接收该往复式检测端子产生的该控制信号时,执行一装置指令。其中该可携式装置为一通用序列总线(universal serial bus, USB)装置,该第一连接器为一USB母座。  The embodiment of the invention discloses a portable device with a reciprocating detection terminal. The portable device can be electrically connected with a first connector of a host system along a first direction to perform data transmission with the host system, and the first connector has an actuation end. The portable device includes a second connector, a reciprocating detection terminal and a controller. The second connector cooperates with the first connector to electrically connect the portable device to the host system. The reciprocating detection terminal is disposed at the second connector and used for being actuated by the actuating end to generate a control signal. The reciprocating detection terminal is electrically connected to the controller, and the controller executes a device instruction when receiving the control signal generated by the reciprocating detection terminal. Wherein the portable device is a universal serial bus (universal serial bus, USB) device, and the first connector is a USB female seat. the

本发明的实施例还揭露一种检测可携式装置与主机系统插拔而执行控制命令的方法,其中一可携式装置可沿一第一方向与一主机系统的一第一连接器电性连接以与该主机系统进行数据传输,该第一连接器具有一致动端。该方法包含下列步骤:当该可携式装置的一第二连接器沿该第一方向与该主机系统的该第一连接器插拔时,该可携式装置的一往复式检测端子受该致动端致动以产生一控制信号;以及该可携式装置的一控制器于接收该往复式检测端子产生的该控制信号时,执行一装置指令。该可携式装置为一通用序列总线(universal serial bus,USB)装置,该第一连接器为一USB母座。  Embodiments of the present invention also disclose a method for detecting the plugging and unplugging of a portable device and a host system and executing a control command, wherein a portable device can be electrically connected to a first connector of a host system along a first direction Connected for data transmission with the host system, the first connector has an actuating end. The method includes the following steps: when a second connector of the portable device is plugged and unplugged from the first connector of the host system along the first direction, a reciprocating detection terminal of the portable device is affected by the The actuating end is actuated to generate a control signal; and a controller of the portable device executes a device instruction when receiving the control signal generated by the reciprocating detection terminal. The portable device is a universal serial bus (USB) device, and the first connector is a USB socket. the

附图说明 Description of drawings

图1为本发明具有往复式检测端子的可携式装置第一实施例与一主机系统连接的方块示意图。  FIG. 1 is a schematic block diagram of a first embodiment of a portable device with a reciprocating detection terminal connected to a host system according to the present invention. the

图2为可携式装置的往复式检测端子与连接器的示意图。  FIG. 2 is a schematic diagram of a reciprocating detection terminal and a connector of a portable device. the

图3为可携式装置连接于主机系统的连接器的示意图。  FIG. 3 is a schematic diagram of a connector connecting a portable device to a host system. the

图4为可携式装置第二实施例与一主机系统连接的方块示意图。  FIG. 4 is a schematic block diagram of a second embodiment of a portable device connected to a host system. the

图5为可携式装置第三实施例连接于主机系统的连接器的局部示意图。  FIG. 5 is a partial schematic view of a connector of a third embodiment of the portable device connected to the host system. the

图6为可携式装置插入主机系统时以执行装置指令的方法流程图。  FIG. 6 is a flowchart of a method for executing device commands when a portable device is plugged into a host system. the

图7为可携式装置拔离主机系统时以执行装置指令的方法流程图。  FIG. 7 is a flowchart of a method for executing device commands when the portable device is unplugged from the host system. the

[主要元件标号说明]  [Description of main component labels]

10、30、50可携式装置            11、31、51第二连接器  10, 30, 50 portable device 11, 31, 51 second connector

12、32、52往复式检测端子        13、33控制器  12, 32, 52 reciprocating detection terminals 13, 33 controllers

20、40主机系统                  21、41第一连接器  20, 40 host system 21, 41 first connector

34电源模块                      35、45音频模块  34 power supply module 35, 45 audio module

36、46显示模块                  37储存单元  36, 46 display module 37 storage unit

111电源端子                     112接地端子  111 power supply terminal 112 grounding terminal

113D+端子                       114D-端子  113D+ terminal                           114D-terminal

211、212致动端                  100、200控制方法  211, 212 actuating end 100, 200 control method

102、104、202~207步骤  Steps 102, 104, 202~207

具体实施方式 Detailed ways

本发明利用在可携式装置的连接器一侧或内侧加上一可感测插入或拔出的往复式检测端子,以提示可携式装置的控制器,装置正在进行插拔,并据以作出相对应的控制反应。  The present invention uses a reciprocating detection terminal that can sense insertion or extraction on one side or the inner side of the connector of the portable device to prompt the controller of the portable device that the device is being plugged in and out, and according to respond accordingly. the

请参考图1,图1为可携式装置10一第一实施例与一主机系统20电性连接的示意图。可携式装置10可为具有通用序列总线(universal serial bus,USB)接口、IEEE 1394接口等具有热插拔能力的储存装置、外接装置、随身磁盘、MP3随身听等,其至少包含有一第二连接器11、一往复式检测端子12以及一控制器13,其中第二连接器11与往复式检测端子12皆与控制器13电性连接。主机系统20可为个人计算机、工作站、笔记本型计算机、或者具有扩充连接槽的可携式装置,其包含至少一第一连接器21。可携式装置10通过第二连接器11与主机系统20的第一连接器21电性连接,而第一连接器21与第二连接器11可为USB接口A type(或B Type)、IEEE 1394接口或其它应用于外接装置的连接器接口彼此配合的公母接头。当可携式装置10通过第二连接器11与主机系统20的第一连接器21电性连接于主机系统20以进行数据传输时,主机系统20第一连接器21以机械致动的方式致动可携式装置10的往复式检测端子12,以另外产生一控制信号,而此控制信号则可依据可携式装置的设计需求而有不同的作用。  Please refer to FIG. 1 , which is a schematic diagram of a first embodiment of a portable device 10 electrically connected to a host system 20 . The portable device 10 can be a storage device with hot-swappable capabilities such as a universal serial bus (USB) interface, an IEEE 1394 interface, an external device, a portable disk, an MP3 player, etc., and it at least includes a second The connector 11 , a reciprocating detection terminal 12 and a controller 13 , wherein both the second connector 11 and the reciprocating detection terminal 12 are electrically connected to the controller 13 . The host system 20 can be a personal computer, a workstation, a notebook computer, or a portable device with an expansion connection slot, and includes at least one first connector 21 . The portable device 10 is electrically connected to the first connector 21 of the host system 20 through the second connector 11, and the first connector 21 and the second connector 11 can be USB interface A type (or B Type), IEEE The 1394 interface or other connector interfaces applied to external devices are male and female connectors that cooperate with each other. When the portable device 10 is electrically connected to the host system 20 through the second connector 11 and the first connector 21 of the host system 20 for data transmission, the first connector 21 of the host system 20 is actuated mechanically. The reciprocating detection terminal 12 of the portable device 10 is moved to generate a control signal, and the control signal can have different effects according to the design requirements of the portable device. the

如图2所示,其为可携式装置10的第二连接器11与往复式检测端子12的示意图。如图所示,第二连接器11以一USB A Type公连接器为说明,其具有一电源端子111、一接地端子112、数据端子(包含一D+端子113以及一D-端子114),其配置与作用则依循USB标准来设置。往复式检测端子12则配置于第二连接器11的一侧。请一并参考图3,图3为可携式装置10第一实施例连接于主机系统20的第一连接器21的示意图。于本实施例中,往复式检测端子12为一往复式弹性按钮(于其它实施例中,往复式检测端子12亦可为可携式装置10的环状壳体),当可携式装置10沿着I方向安装于主机系统10的第一连接器21上,可携式装置10的电源端子111、接地端子112、D+端子113以及D-端子114分别与第一连接器21相对应的连接端子(图上未显示)电性连接,以建立可携式装置10与主机系统20的外接连线。而第一连接器21上的致动端211(可为第一连接器21上的一突出端或主机系统20的外壳的一部分)接触并致动往复式检测端子12,并产生一控制信号。  As shown in FIG. 2 , it is a schematic diagram of the second connector 11 and the reciprocating detection terminal 12 of the portable device 10 . As shown in the figure, the second connector 11 is illustrated by a USB A Type male connector, which has a power terminal 111, a ground terminal 112, and data terminals (including a D+ terminal 113 and a D- terminal 114). The configuration and function are set according to the USB standard. The reciprocating detection terminal 12 is disposed on one side of the second connector 11 . Please refer to FIG. 3 together. FIG. 3 is a schematic view of the first embodiment of the portable device 10 connected to the first connector 21 of the host system 20 . In this embodiment, the reciprocating detection terminal 12 is a reciprocating elastic button (in other embodiments, the reciprocating detection terminal 12 can also be an annular shell of the portable device 10), when the portable device 10 Installed on the first connector 21 of the host system 10 along the I direction, the power terminal 111, the ground terminal 112, the D+ terminal 113 and the D- terminal 114 of the portable device 10 are connected to the first connector 21 respectively. The terminals (not shown in the figure) are electrically connected to establish an external connection between the portable device 10 and the host system 20 . The actuating end 211 on the first connector 21 (which may be a protruding end on the first connector 21 or a part of the housing of the host system 20 ) contacts and actuates the reciprocating detection terminal 12 and generates a control signal. the

请参考图4,图4为可携式装置30一第二实施例与一主机系统40连接 的方块示意图。其中可携式装置30除了包含一第二连接器31、一往复式检测端子32以及一控制器33外,另可选择性地包含一电源模块34、一音频模块35、一显示模块36以及一储存单元37,电源模块34可为可携式装置30的内部电源(充电电池或太阳能电池)或一以外接的方式提供电源的电源模块。主机系统40除了包含一第一连接器41外,另可选择性地包含一音频模块45以及一显示模块46。其中第二连接器31、往复式检测端子32与第一连接器41的连接关系与图1的第一实施例相仿。  Please refer to FIG. 4, which is a schematic block diagram of a second embodiment of a portable device 30 connected to a host system 40. Wherein the portable device 30 can optionally include a power supply module 34, an audio module 35, a display module 36 and a The storage unit 37 and the power module 34 can be an internal power source (rechargeable battery or solar cell) of the portable device 30 or a power module that provides power externally. The host system 40 may optionally include an audio module 45 and a display module 46 in addition to a first connector 41 . The connection relationship between the second connector 31 , the reciprocating detection terminal 32 and the first connector 41 is similar to that of the first embodiment shown in FIG. 1 . the

请一并参考图2的可携式装置10以及图4的可携式装置30。为了利用可携式装置10、40相对于主机系统20、40的插拔行为以建立可携式装置10、40的数据保护机制,或利用可携式装置10、40进行更多样化的计算机控制与安全措施,往复式检测端子12、32以不小于一连接器规范长度沿着I方向延伸于第二连接器11、31一侧。例如在USB连接器的公母接头连接后,其USB公母座结合后规范的间距最小为2.67毫米,因此往复式检测端子12、32沿着I方向延伸于第二连接器11、31的一侧,且其长度L不小于2.67毫米(或较佳地,稍大于2.67毫米),且往复式检测端子12、32为一可被推动的往复式按钮,因此当第二连接器11、31沿I方向安装于第一连接器21、41时,第一连接器21、41的致动端211会接触并推动往复式检测端子12、32使往复式检测端子12、32产生一控制信号。在将可携式装置10、30插入主机系统20、40的阶段,控制器13、33可在接收到该控制信号时(例如以一通用输出入信号(general purpose I/O,GPIO)的方式传送至控制器13、33)执行一预先设定好的装置指令,例如可将可携式装置10、30的供电来源由装置内的电源模块34切换为主机系统20、40(经由电源端子111、一接地端子112提供电源)供电,以节省可携式装置10、30电源模块34的电力。  Please refer to the portable device 10 in FIG. 2 and the portable device 30 in FIG. 4 together. In order to use the plugging behavior of the portable device 10, 40 relative to the host system 20, 40 to establish a data protection mechanism for the portable device 10, 40, or to use the portable device 10, 40 to perform more diverse computer For control and safety measures, the reciprocating detection terminals 12, 32 extend along the direction I to one side of the second connector 11, 31 with a length not less than a standard length of the connector. For example, after the male and female joints of the USB connectors are connected, the minimum distance between the USB male and female seats is 2.67 mm, so the reciprocating detection terminals 12, 32 extend along the I direction to one side of the second connector 11, 31. side, and its length L is not less than 2.67 mm (or preferably, slightly greater than 2.67 mm), and the reciprocating detection terminal 12, 32 is a reciprocating button that can be pushed, so when the second connector 11, 31 along When the I direction is installed on the first connector 21, 41, the actuating end 211 of the first connector 21, 41 will contact and push the reciprocating detection terminal 12, 32 so that the reciprocating detection terminal 12, 32 generates a control signal. At the stage of inserting the portable device 10, 30 into the host system 20, 40, the controller 13, 33 may receive the control signal (for example, in the form of a general purpose I/O (GPIO) sent to the controller 13, 33) to execute a preset device command, for example, the power supply source of the portable device 10, 30 can be switched from the power module 34 in the device to the host system 20, 40 (via the power terminal 111 , a ground terminal 112 provides power supply) to save the power of the power module 34 of the portable device 10,30. the

前述为本发明其中一实施例的应用,在其它的实施例中,往复式检测端子12、32亦可设定为在停止被致动端211推动时,产生该控制信号。例如,当第二连接器11、31沿着I方向的相反方向欲自主机系统20、40的第一连接器21、41拔出时,第一连接器21、41的致动端211会先停止推动往复式检测端子12、32(往复式检测端子12、32为往复式按钮,因此会回复未被推动如图2的状态),由于电源端子111、接地端子112以及D+端子113以及D-端子114在第二连接器11、31沿着I方向相对往复式检测端子12、32具有较长的长度(较佳地,往复式检测端子12、32末端与电源端子111以及接 地端子112的末端的距离差D符合USB规范的最小距离,亦即D最少有4.2毫米,而往复式检测端子12、32末端与D+端子113以及D-端子114的末端的距离差R符合USB规范的最小距离,亦即R最少有3.2毫米),往复式检测端子12、32产生该控制信号直到可携式装置10、30断电(即第二连接器11、31完全脱离第一连接器21、41)或停止数据传输(即第一连接器21、41与第二连接器11、31的数据端子联机中断)之前有数毫秒的时间,此时控制器13、33可在接收到该控制信号时,执行一预先设定好的装置指令,例如(1)结束可携式装置10、30的背景执行程序,以标准的中断方式停止可携式装置10、30与主机系统20、40之间数据的传输、处理,如此可避免可携式装置10、30突然拔除所造成的数据毁损;(2)启动可携式装置10、30的电源模块34对可携式装置10、30供电,以接续可携式装置10、30原先正在进行的工作;(3)控制主机系统20、40关机或进行其它特定的通知或控制,例如本发明所揭露的技术可将可携式装置10、30设置为一主机系统20、40的运作检查工具,当可携式装置10、30连接于主机系统20、40时,主机系统20、40才可以正常运作,当可携式装置10、30拔离主机系统20、40时,则主机系统20、40会自动关机(例如可携式装置10、30可传送一强制关机的命令给主机系统20、40);(4)亦可控制可携式装置10、30或主机系统20、40的音频模块35、45发出声响、或控制可携式装置10、30或主机系统20、40的显示模块36、46显示信号以通知使用者可携式装置10、30以自主机系统20、40移除。  The foregoing is an application of one embodiment of the present invention. In other embodiments, the reciprocating detection terminals 12 and 32 can also be set to generate the control signal when they stop being pushed by the actuating end 211 . For example, when the second connector 11, 31 intends to be pulled out from the first connector 21, 41 of the host system 20, 40 along the direction opposite to the I direction, the actuating end 211 of the first connector 21, 41 will first Stop pushing the reciprocating detection terminals 12, 32 (the reciprocating detection terminals 12, 32 are reciprocating buttons, so they will return to the state of not being pushed as shown in Figure 2), because the power terminal 111, the ground terminal 112, the D+ terminal 113 and the D- The terminal 114 has a longer length relative to the reciprocating detection terminal 12, 32 along the direction I of the second connector 11, 31 (preferably, the end of the reciprocating detection terminal 12, 32 is connected to the power terminal 111 and the grounding terminal 112. The distance difference D of the ends complies with the minimum distance of the USB specification, that is, D is at least 4.2 mm, and the distance difference R between the ends of the reciprocating detection terminals 12 and 32 and the ends of the D+ terminal 113 and the D- terminal 114 complies with the minimum distance of the USB specification , that is, R is at least 3.2 millimeters), the reciprocating detection terminals 12, 32 generate the control signal until the portable device 10, 30 is powered off (that is, the second connector 11, 31 is completely separated from the first connector 21, 41) Or stop data transmission (that is, the first connector 21,41 and the data terminal of the second connector 11,31 on-line interruption) have several milliseconds time, at this moment, when the controller 13,33 receives the control signal, execute A pre-set device command, such as (1) end the background execution program of the portable device 10, 30, and stop the transmission of data between the portable device 10, 30 and the host system 20, 40 in a standard interrupt mode , processing, so that the data damage caused by the sudden unplugging of the portable device 10, 30 can be avoided; (3) control the host system 20, 40 to shut down or perform other specific notifications or controls, for example, the technology disclosed in the present invention can set the portable device 10, 30 as a host The operation inspection tool of the system 20, 40, when the portable device 10, 30 is connected to the host system 20, 40, the host system 20, 40 can operate normally, when the portable device 10, 30 is pulled out of the host system 20, 40, then the host system 20, 40 will automatically shut down (for example, the portable device 10, 30 can send a forced shutdown command to the host system 20, 40); (4) also can control the portable device 10, 30 or The audio module 35,45 of the host system 20,40 emits a sound, or controls the display module 36,46 of the portable device 10,30 or the host system 20,40 to display a signal to notify the user that the portable device 10,30 is automatically activated. Machine system 20, 40 is removed. the

此外,如图5所示,可携式装置50的往复式检测端子52亦可直接设置于第二连接器51的内部,当第二连接器51结合于第一连接器21时,第一连接器21端口作为致动端212推动往复式检测端子52以产生信号变化,同样可达成前述的作用。而往复式检测端子12、32利用GPIO走线的方式直接传送信号变化给控制器13、33,可以在不需过多变更装置内部电路的条件下,提供本发明一简便的应用结果。  In addition, as shown in FIG. 5, the reciprocating detection terminal 52 of the portable device 50 can also be directly arranged inside the second connector 51. When the second connector 51 is combined with the first connector 21, the first connection The port of the device 21 is used as the actuating end 212 to push the reciprocating detection terminal 52 to generate a signal change, which can also achieve the aforementioned effects. The reciprocating detection terminals 12, 32 directly transmit signal changes to the controllers 13, 33 by means of GPIO wiring, which can provide a simple application result of the present invention without changing the internal circuit of the device too much. the

请参考图6,其为可携式装置30插入主机系统40时以执行装置指令的方法100的流程图,其中主要由下列步骤构成:  Please refer to FIG. 6, which is a flowchart of a method 100 for executing device instructions when the portable device 30 is inserted into the host system 40, which mainly consists of the following steps:

步骤102:当可携式装置30插入主机系统40时,往复式检测端子32受致动端211、212推动以产生该控制信号;步骤104:将可携式装置30由电源模块34供电切换至由主机系统40供电。  Step 102: When the portable device 30 is inserted into the host system 40, the reciprocating detection terminal 32 is pushed by the actuating ends 211, 212 to generate the control signal; Step 104: Switch the portable device 30 from the power supply module 34 to Power is supplied by the host system 40 . the

换言之,当可携式装置30插入主机系统40时,可携式装置30即由主机 系统40供电,以节省可携式装置30的电源模块34消耗的电力,可延长可携式装置30在独立使用时的电源寿命。  In other words, when the portable device 30 is plugged into the host system 40, the portable device 30 is powered by the host system 40, so as to save the power consumed by the power module 34 of the portable device 30, which can prolong the operation of the portable device 30 independently. Power life in use. the

请参考图7,其为可携式装置30自主机系统40拔出时以执行装置指令的方法200的流程图,其中主要由下列步骤构成:  Please refer to FIG. 7 , which is a flowchart of a method 200 for executing device instructions when the portable device 30 is pulled out from the host system 40, which mainly consists of the following steps:

步骤202:当可携式装置30拔离主机系统40时,往复式检测端子32停止受致动端211、212推动以产生该控制信号。当可携式装置30的控制器33接收到检测端子32产生的控制信号后,则可依据不同的需求设计执行相对应的装置命令。例如步骤203:结束可携式装置30的背景执行程序、步骤204:启动电源模块34对可携式装置30供电、步骤205:控制主机系统40关机、步骤206:控制可携式装置30或主机系统40的音频模块35、45发出声响、以及步骤207:控制可携式装置10或主机系统40的显示模块36、46显示信号等。  Step 202: When the portable device 30 is pulled out from the host system 40, the reciprocating detection terminal 32 stops being pushed by the actuating ends 211, 212 to generate the control signal. When the controller 33 of the portable device 30 receives the control signal generated by the detection terminal 32, it can design and execute corresponding device commands according to different requirements. For example, step 203: end the background execution program of the portable device 30, step 204: start the power module 34 to supply power to the portable device 30, step 205: control the shutdown of the host system 40, step 206: control the portable device 30 or the host The audio modules 35 , 45 of the system 40 make sounds, and step 207 : control the display modules 36 , 46 of the portable device 10 or the host system 40 to display signals and the like. the

本发明所揭露的可携式装置,利用于连接器位置设置一往复式检测端子(较佳地为一弹性按钮),当可携式装置插入于一主机系统时,弹性按钮被推动而产生信号变化,使可携式装置内的控制器据以执行一装置指令。当可携式装置自该主机系统拔除时,弹性按钮停止被推动产生信号变化至可携式装置完全脱离主机系统之前,控制器利用此数毫秒的时间执行事先设定的装置命令,使可携式装置具有更多样化的计算机控制以及提供数据传输的断电保护机制。  The portable device disclosed in the present invention uses a reciprocating detection terminal (preferably an elastic button) at the connector position. When the portable device is inserted into a host system, the elastic button is pushed to generate a signal Change, so that the controller in the portable device executes a device command accordingly. When the portable device is unplugged from the host system, the elastic button stops being pushed to generate a signal change until the portable device is completely separated from the host system, and the controller uses this few milliseconds to execute the pre-set device command, so that the portable Type devices have more diverse computer controls and provide power-off protection mechanisms for data transmission. the

以上所述仅为本发明的较佳实施例,凡依本发明权利要求范围所做的均等变化与修饰,皆应属本发明的涵盖范围。  The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention. the

Claims (25)

1. the portable apparatus with reciprocating type detection terminal is used for electrically connecting to carry out data transmission with this host computer system along first connector of first direction and host computer system, and this first connector has actuation ends, and this portable apparatus comprises:
Second connector cooperates with this first connector to make this portable apparatus be electrically connected at this host computer system;
Reciprocating type detection terminal is arranged at this second connector place, is used for receiving this actuation ends to activate to produce control signal; And
Controller, this reciprocating type detection terminal and this controller electrically connect, and this controller is when receiving this control signal of this reciprocating type detection terminal generation, and actuating unit instructs;
Wherein this portable apparatus is a universal serial bus USB device, and this first connector is the female seat of USB.
2. portable apparatus according to claim 1, wherein this actuation ends is a jag or the housing of this host computer system on this first connector.
3. portable apparatus according to claim 1, wherein this second connector includes power supply terminal and ground terminal, and this reciprocating type detection terminal and this power supply terminal and this ground terminal are not less than the distance of USB standard along the range difference of this first direction.
4. portable apparatus according to claim 3, wherein this reciprocating type detection terminal and this power supply terminal and this ground terminal are not less than 4.2 millimeters along the range difference of this first direction.
5. portable apparatus according to claim 1, wherein this second connector includes data terminal, and this reciprocating type detection terminal and this data terminal are not less than the distance of USB standard along the range difference of this first direction.
6. portable apparatus according to claim 5, wherein this reciprocating type detection terminal and this data terminal are not less than 3.2 millimeters along the range difference of this first direction.
7. portable apparatus according to claim 1, wherein this reciprocating type detection terminal is through promoted to produce this control signal by this actuation ends.
8. portable apparatus according to claim 7 also comprises power module, and this device instruction is for switching to this portable apparatus by this host computer system power supply by this power module power supply.
9. portable apparatus according to claim 1, wherein this reciprocating type detection terminal stops to promote this reciprocating type detection terminal to produce this control signal through this actuation ends.
10. portable apparatus according to claim 9, wherein the instruction of this device is one of following instruction: finish this portable apparatus the background executive routine, start this portable apparatus power supply of this portable apparatus one electric power source pair of module, control this host computer system shutdown, the audio-frequency module of controlling this portable apparatus or this host computer system sends the sound, control the display module shows signal of this portable apparatus or this host computer system.
11. portable apparatus according to claim 1, wherein this control signal is that signal is gone in general output.
12. portable apparatus according to claim 1, wherein this reciprocating type detection terminal circular shell that is button or this portable apparatus.
13. portable apparatus according to claim 1, wherein this reciprocating type detection terminal extends this second connector, one side and is no less than the distance of USB standard along the length of this first direction.
14. portable apparatus according to claim 13, wherein this reciprocating type detection terminal extends this second connector, one side and is no less than 2.67 millimeters along the length of this first direction.
15. portable apparatus according to claim 1, wherein this actuation ends is the housing of the female seat of this USB.
16. one kind is detected the plug of portable apparatus and host computer system and carries out the method for control command; Wherein portable apparatus can electrically connect along first connector of first direction and host computer system to carry out data transmission with this host computer system; This first connector has consistent moved end, and this method comprises the following step:
When second connector of this portable apparatus during along this first connector plug of this first direction and this host computer system, the reciprocating type detection terminal of this portable apparatus is activated to produce control signal by this actuation ends; And
The controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and actuating unit instructs;
Wherein this portable apparatus is a universal serial bus USB device, and this first connector is the female seat of USB.
17. method according to claim 16, wherein this reciprocating type detection terminal receives this actuation ends actuating to produce control signal to be: this reciprocating type detection terminal promotes to produce this control signal through receiving this actuation ends.
18. method according to claim 17; Wherein the controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and the actuating unit instruction comprises step: this portable apparatus is switched to by this host computer system power supply by the power module power supply.
19. method according to claim 16, wherein this reciprocating type detection terminal receives this actuation ends actuating to produce control signal to be: this reciprocating type detection terminal stops to promote this reciprocating type detection terminal to produce this control signal through this actuation ends.
20. method according to claim 19, wherein the controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and the actuating unit instruction comprises step: the background executive routine that finishes this portable apparatus.
21. method according to claim 19; Wherein the controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and the actuating unit instruction comprises step: start this portable apparatus power supply of this portable apparatus one electric power source pair of module.
22. method according to claim 19, wherein the controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and the actuating unit instruction comprises step: control this host computer system shutdown.
23. method according to claim 19; Wherein the controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and the actuating unit instruction comprises step: the audio-frequency module of controlling this portable apparatus or this host computer system sends the sound.
24. method according to claim 19; Wherein the controller of this portable apparatus is when receiving this control signal of this reciprocating type detection terminal generation, and the actuating unit instruction comprises step: the display module shows signal of controlling this portable apparatus or this host computer system.
25. method according to claim 16, wherein this reciprocating type detection terminal is activated to produce this control signal by the housing of the female seat of this USB.
CN2009102093940A 2009-11-06 2009-11-06 Portable device with reciprocating detection terminal and detection control method thereof Expired - Fee Related CN102053941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102093940A CN102053941B (en) 2009-11-06 2009-11-06 Portable device with reciprocating detection terminal and detection control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102093940A CN102053941B (en) 2009-11-06 2009-11-06 Portable device with reciprocating detection terminal and detection control method thereof

Publications (2)

Publication Number Publication Date
CN102053941A CN102053941A (en) 2011-05-11
CN102053941B true CN102053941B (en) 2012-07-04

Family

ID=43958283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102093940A Expired - Fee Related CN102053941B (en) 2009-11-06 2009-11-06 Portable device with reciprocating detection terminal and detection control method thereof

Country Status (1)

Country Link
CN (1) CN102053941B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077193B (en) * 2013-03-25 2018-08-31 联想(北京)有限公司 A kind of control method and a kind of electronic equipment
CN104103970B (en) * 2013-04-03 2018-01-23 施耐德电气It公司 A kind of break-make road control method of electric connector and circuit
CN107861839A (en) * 2017-10-18 2018-03-30 深圳市汉普电子技术开发有限公司 USB hot plug data anti-loss method, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5691898A (en) * 1995-09-27 1997-11-25 Immersion Human Interface Corp. Safe and low cost computer peripherals with force feedback for consumer applications
CN101241479A (en) * 2007-02-09 2008-08-13 安国国际科技股份有限公司 Universal sequence bus device capable of matching with fast card adapter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5691898A (en) * 1995-09-27 1997-11-25 Immersion Human Interface Corp. Safe and low cost computer peripherals with force feedback for consumer applications
CN101241479A (en) * 2007-02-09 2008-08-13 安国国际科技股份有限公司 Universal sequence bus device capable of matching with fast card adapter

Also Published As

Publication number Publication date
CN102053941A (en) 2011-05-11

Similar Documents

Publication Publication Date Title
US7970973B2 (en) Portable device having plug detector and control method of detecting the portable device
US8502414B2 (en) Power saving apparatus and power saving method thereof
TWI375186B (en)
CN202772364U (en) Connector and control chip
US20110320837A1 (en) Power supply circuit, power supply method, and signal processing apparatus
CN102738614A (en) Connector and power management system thereof
WO2011160572A1 (en) Method and device for charging through universal serial bus interface
CN102073602B (en) Computer system, connection control device as well as connecting and disconnecting method
CN102053941B (en) Portable device with reciprocating detection terminal and detection control method thereof
CN108429093A (en) Automatic open close power supply adaptor
CN201503967U (en) Power supply and network connection integration control device of extension line socket
CN206441113U (en) A kind of direct on/off circuit of direct current supply computer
US20210149471A1 (en) Method for waking up notebook computer, computer accessory, and computer system
CN106383565B (en) Direct power-on/off circuit of direct-current power-supply computer
JP2011070261A (en) Information processing system, information processing device, relay device, connection wire, and program
CN102314152B (en) Energy-saving device and energy-saving method thereof
KR101020511B1 (en) Power automatic control device and method for blocking standby power
CN209748647U (en) USB connector, power supply device, circuit board and mobile terminal
US8854933B2 (en) Information processing apparatus, drive unit, detection circuit and control method
CN111403967B (en) Controlled socket
US20220236784A1 (en) Method for switching power mode of computer device, computer accessory, and computer system
JPH07302141A (en) Interface device and its power control method
JP2011118455A (en) Information processor and control method in information processor
TWI470440B (en) Method of reconnecting to a host computer for an electronic device and electronic device thereof
CN118860755A (en) Dual-bus architecture USB function detection method based on function detection 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20191106

CF01 Termination of patent right due to non-payment of annual fee