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 PDFInfo
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims description 22
- 230000005540 biological transmission Effects 0.000 claims abstract description 10
- 230000007246 mechanism Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 7
- 238000013461 design Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Power Sources (AREA)
Abstract
Description
技术领域 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
12、32、52往复式检测端子 13、33控制器
12, 32, 52 reciprocating
20、40主机系统 21、41第一连接器
20, 40
34电源模块 35、45音频模块
34
36、46显示模块 37储存单元
36, 46
111电源端子 112接地端子
111
113D+端子 114D-端子 113D+ terminal 114D-terminal
211、212致动端 100、200控制方法
211, 212 actuating
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
如图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
请参考图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
请一并参考图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
前述为本发明其中一实施例的应用,在其它的实施例中,往复式检测端子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
此外,如图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
请参考图6,其为可携式装置30插入主机系统40时以执行装置指令的方法100的流程图,其中主要由下列步骤构成:
Please refer to FIG. 6, which is a flowchart of a
步骤102:当可携式装置30插入主机系统40时,往复式检测端子32受致动端211、212推动以产生该控制信号;步骤104:将可携式装置30由电源模块34供电切换至由主机系统40供电。
Step 102: When the portable device 30 is inserted into the
换言之,当可携式装置30插入主机系统40时,可携式装置30即由主机 系统40供电,以节省可携式装置30的电源模块34消耗的电力,可延长可携式装置30在独立使用时的电源寿命。
In other words, when the portable device 30 is plugged into the
请参考图7,其为可携式装置30自主机系统40拔出时以执行装置指令的方法200的流程图,其中主要由下列步骤构成:
Please refer to FIG. 7 , which is a flowchart of a
步骤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
本发明所揭露的可携式装置,利用于连接器位置设置一往复式检测端子(较佳地为一弹性按钮),当可携式装置插入于一主机系统时,弹性按钮被推动而产生信号变化,使可携式装置内的控制器据以执行一装置指令。当可携式装置自该主机系统拔除时,弹性按钮停止被推动产生信号变化至可携式装置完全脱离主机系统之前,控制器利用此数毫秒的时间执行事先设定的装置命令,使可携式装置具有更多样化的计算机控制以及提供数据传输的断电保护机制。 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)
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)
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)
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 |
-
2009
- 2009-11-06 CN CN2009102093940A patent/CN102053941B/en not_active Expired - Fee Related
Patent Citations (2)
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 |