CN101183343B - Device switching method and computer system - Google Patents
Device switching method and computer system Download PDFInfo
- Publication number
- CN101183343B CN101183343B CN2006101465158A CN200610146515A CN101183343B CN 101183343 B CN101183343 B CN 101183343B CN 2006101465158 A CN2006101465158 A CN 2006101465158A CN 200610146515 A CN200610146515 A CN 200610146515A CN 101183343 B CN101183343 B CN 101183343B
- Authority
- CN
- China
- Prior art keywords
- computer system
- peripheral unit
- switching method
- switching
- switching command
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000002093 peripheral effect Effects 0.000 claims abstract description 64
- 230000010354 integration Effects 0.000 claims 12
- 230000003213 activating effect Effects 0.000 claims 2
- 230000000694 effects Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明为有关于计算机技术,且特别有关于一种装置切换方法及系统。The present invention relates to computer technology, and in particular to a device switching method and system.
背景技术Background technique
通用串行总线(Universal Serial Bus,简称USB)提供一种用来连接外围装置至计算机装置的串行总线标准,已渐渐取代个人计算机上的其它串行或并列连接端口。USB可以连接的外围装置例如鼠标、键盘、摇杆、扫描仪、数字相机、打印机、外部储存装置、网络组件及其它装置。不同USB装置也可以整合在单一装置中,经由USB端口与计算机装置连接。举例来说,数字相机连接计算机装置并且切换至特定模式时可以作为网络摄影机、卡片阅读机、储存装置或其它装置。数字相机上的模式切换开关可以切换数字相机上的不同功能。但是随着其功能越多,需要结构更复杂的模式切换开关来切换,不但增加了其机构设计制造上的复杂度,也降低了其操作时的便利。The Universal Serial Bus (USB) provides a serial bus standard for connecting peripheral devices to computer devices, and has gradually replaced other serial or parallel connection ports on personal computers. USB can connect peripheral devices such as mouse, keyboard, joystick, scanner, digital camera, printer, external storage device, network components and other devices. Different USB devices can also be integrated into a single device and connected to a computer device via a USB port. For example, a digital camera can function as a webcam, card reader, storage device, or other device when connected to a computer device and switched to a specific mode. The mode switching switch on the digital camera can switch different functions on the digital camera. However, as its functions increase, a more complicated mode switching switch is required to switch, which not only increases the complexity of its mechanism design and manufacture, but also reduces the convenience of its operation.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种不需要硬件切换开关的装置切换方法及整合外围装置。In view of this, the object of the present invention is to provide a device switching method without hardware switch and integrate peripheral devices.
基于所述的目的,本发明实施例提供一种不需要硬件切换开关的装置切换方法,包含下列步骤。从一计算机系统的输入装置接收一操作指示。根据所述的操作指示从一计算机系统发送一第一切换命令(command)至经由一连接端口连接于该计算机系统的一整合外围装置,以将所述的整合外围装置中的操作装置从一第一装置切换为一第二装置。Based on the stated purpose, an embodiment of the present invention provides a device switching method that does not require a hardware switch, including the following steps. An operation instruction is received from an input device of a computer system. Send a first switching command (command) from a computer system to an integrated peripheral device connected to the computer system via a connection port according to the operation instruction, so as to switch the operating device in the integrated peripheral device from a first A device is switched to a second device.
另外,本发明实施例提供一种整合外围装置,经由一连接端口连接于一计算机系统,包含第一装置、第二装置及切换装置。所述的第一装置连接所述的计算机系统以作为所述的整合外围装置的预设(default)操作装置,并提供一第一功能。此时,所述的第二装置不同于所述的第一装置,且未连接所述的计算机系统。所述的整合外围装置从所述的计算机系统接收一第一切换命令时,所述的切换装置将所述的整合外围装置中的操作装置从一第一装置切换为一第二装置以响应所述的第一切换命令。In addition, an embodiment of the present invention provides an integrated peripheral device connected to a computer system through a connection port, including a first device, a second device and a switching device. The first device is connected to the computer system as a default operating device of the integrated peripheral device and provides a first function. At this time, the second device is different from the first device and is not connected to the computer system. When the integrated peripheral device receives a first switching command from the computer system, the switching device switches the operating device in the integrated peripheral device from a first device to a second device in response to the The first switching command described above.
本发明的效果为提供一种不需要硬件切换开关的装置切换方法及整合外围装置。The effect of the present invention is to provide a device switching method without a hardware switch and integrate peripheral devices.
附图说明Description of drawings
图1显示计算机系统及整合外围装置的实施例结构方块图;Fig. 1 shows the structural block diagram of the embodiment of computer system and integrated peripheral device;
图2显示装置切换方法实施例的流程图;FIG. 2 shows a flowchart of an embodiment of a device switching method;
图3显示装置切换方法另一实施例的流程图;Fig. 3 shows the flowchart of another embodiment of the device switching method;
图4显示私定命令的格式示意图;Figure 4 shows a schematic diagram of the format of a private command;
图5显示厂商命令的格式示意图;以及Figure 5 shows a schematic diagram of the format of a vendor command; and
图6显示装置切换方法另一实施例的流程图。FIG. 6 shows a flow chart of another embodiment of the device switching method.
附图标号:Figure number:
1~处理器; 2~主存储器;1~processor; 2~main memory;
3~显示器; 4~输入装置;3~display; 4~input device;
5~主机控制器; 6~储存装置;5~host controller; 6~storage device;
7~USB端口; 100~计算机系统;7~USB port; 100~computer system;
120~整合外围装置; 121~切换装置;120~integrated peripheral device; 121~switching device;
122~连接头; 123-125~装置;122~connector; 123-125~device;
61~应用程序; 62~应用程序;61 ~ application program; 62 ~ application program;
63~操作系统; 611~驱动程序;63~operating system; 611~driver program;
612~驱动程序。612~driver.
具体实施方式Detailed ways
以下说明是本发明的较佳实施例。其目的是要举例说明本发明一般性的原则,不应视为本发明的限制,本发明的范围当以权利要求所界定者为准。The following descriptions are of preferred embodiments of the invention. Its purpose is to illustrate the general principle of the present invention and should not be regarded as a limitation of the present invention. The scope of the present invention should be defined by the claims.
在图1中,计算机系统100包含处理器1、主存储器2、显示器3、输入装置4、主机控制器5及储存装置6。主机控制器5连接USB端口7。整合外围装置120的连接头122连接于USB端口7,并且包含了分别提供不同功能的装置123-125。切换装置121可以将装置123-125可以分别连接于计算机系统100或中断其连接。须要了解的是,装置123-125可以解读对应的切换命令以分别地控制切换装置121。整合外围装置120之中,与计算机系统100连接的装置123称为预设操作装置(default active device),可以与计算机系统100通讯并根据来自计算机系统100的切换命令(command)以控制切换装置121,进而切换整合外围装置120中的操作装置。In FIG. 1 , a
储存装置6储存应用程序61及62,以及操作系统63。应用程序61及62分别对应装置124及125。驱动程序611及621分别用以驱动装置124及125。处理器1可以加载应用程序61、62、操作系统63、驱动程序611及612至主存储器2以执行。装置123-125的其中一个可以被预设为整合外围装置120的预设操作装置。在以下说明中,装置123为储存装置(mass storage),支持USB massstorage class且被预设为整合外围装置120的预设操作装置,而其它装置(装置124及125)未连接所述的计算机系统100,装置124为一网络摄影机(webcam),装置125为一电视信号接收器(TV receiver)。然而须要了解的是,整合外围装置中可以整合各种其它装置。虽然所述的整合外围装置以USB为接口连接计算机系统,但是并不以此为限。整合外围装置也可以通过其它接口例如火线(Firewire)连接计算机系统。The
计算机系统100从输入装置4接收一操作指示,处理器1根据所述的操作指示从计算机系统100发送切换命令至整合外围装置120,以将整合外围装置120中的操作装置从装置123切换为装置124或装置125。处理器1可以根据执行的应用程序来自动发送切换命令以切换操作装置。举例来说,在激活或终止应用程序时自动切换操作装置,或者依据操作系统环境中的操作窗口(activewindow)以自动切换操作装置,以下举例说明。The
参照图2,当整合外围装置120连接至计算机系统100时,计算机系统100检测到整合外围装置120的预设操作装置,即储存装置123(步骤S200)。输入装置4接收使用者操作指示以激活计算机系统100中的对应装置124的应用程序61。处理器1执行应用程序61(步骤S202)时,应用程序61发出第一切换命令,通过主机控制器5及USB端口7传送至整合外围装置120(步骤S204)。所述的第一切换命令可以是符合通用串行总线(USB)大量储存装置类别(mass storageclass)标准的私定命令(private command)。图4显示私定命令的格式示意图。第一切换命令的内容可以记录在图4的私定命令的第15至第30字节。2, when the integrated
整合外围装置接收所述的切换命令时,储存装置123根据所述的私定命令以控制切换装置121,中断计算机系统100与储存装置123的联机,并且切换装置121建立计算机系统100及装置124的联机。藉此,整合外围装置120将操作装置从装置123切换为装置124以响应所述的切换命令。须要了解的是,在其它实施例中,也可以由操作系统63搭配装置124的驱动程序611发出所述的第一切换命令。When the integrated peripheral device receives the switching command, the
接着,计算机系统100检测到整合外围装置120的操作装置,即装置124(网络摄影机)(步骤S206),并与之互动运作(步骤S208)。输入装置4接收使用者操作指示用以关闭计算机系统100中的对应装置124的应用程序61。当处理器1终止应用程序61时(步骤S210),应用程序61再发出第二切换命令(步骤S212)。所述的第二切换命令可以是通用串行总线(USB)标准中的厂商命令(vendorcommand)。图5显示厂商命令的格式示意图。第二切换命令的内容可以记录在图5的厂商命令的第1字节。Next, the
装置124根据所述的私定命令控制切换装置121,以切换整合外围装置120的操作装置为储存装置123。须要了解的是,在其它实施例中,也可以由操作系统63或由装置124的驱动程序611来发出所述的第二切换命令。计算机系统100再次检测得换整合外围装置120的操作装置为储存装置123(步骤S214)。The
然而,整合外围装置120也可以在应用程序61未关闭之前切换操作装置,以下举例说明。However, the integrated
参照图3,当整合外围装置120连接至计算机系统100时,计算机系统100检测到整合外围装置120的预设操作装置,即储存装置123(步骤S300)。输入装置4接收使用者操作指示用以激活计算机系统100中的对应装置124的应用程序61。处理器1执行应用程序61(步骤S302)时,应用程序61发出第三切换命令,通过主机控制器5及USB端口7传送至整合外围装置120(步骤S304)。整合外围装置接收所述的第三切换命令时,储存装置123根据所述的第三切换命令以控制切换装置121,中断计算机系统100与储存装置123的联机,并且切换装置121建立计算机系统100及装置124的联机。3, when the integrated
接着,计算机系统100检测到整合外围装置120的操作装置,即装置124(网络摄影机)(步骤S306),并与之互动运作(步骤S308)。输入装置4接收使用者操作指示用以激活计算机系统100中的对应装置124的应用程序62。当处理器1执行应用程序62时(步骤S310),应用程序62发出第四切换命令(步骤S312)。装置124根据所述的第四切换命令控制切换装置121,以切换整合外围装置120的操作装置为装置125(电视信号接收器)。须要了解的是,在其它实施例中,也可以由操作系统63或由装置125的驱动程序621来发出所述的第四切换命令。计算机系统100再次检测得整合外围装置120的操作装置为装置125(步骤S314)。处理器1终止应用程序61(步骤S316)。Next, the
即使在步骤S316中终止应用程序61时发出对应装置124的厂商命令以切换操作装置为装置123,由于整合外围装置120的操作装置是装置125,无法辨识装置124的厂商命令,因此仍然可以正常运作而不会被切换成装置123。Even if the manufacturer command corresponding to the
计算机系统100可以依据操作系统环境中的操作窗口(active window)以自动切换操作装置,以下举例说明。The
参照图6,操作系统63检测是否有操作窗口的切换(步骤S600)?如是,操作系统63判别现在的操作窗口的应用程序(步骤S602)并判别整合外围装置120中对应该应用程序的装置(步骤S604),并传送切换命令至整合外围装置120以切换操作窗口对应的装置为操作装置(步骤S606)。Referring to FIG. 6, the
虽然本发明已以较佳实施例揭示如上,然而并非用以限定本发明,任何所属技术领域中具有通常知识,在不脱离本发明的精神和范围内,当可作各种的更动与润饰,因此本发明的保护范围当视后附的权利要求所界定者为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone with common knowledge in the technical field can make various changes and modifications without departing from the spirit and scope of the present invention. , so the protection scope of the present invention shall prevail as defined by the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101465158A CN101183343B (en) | 2006-11-14 | 2006-11-14 | Device switching method and computer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006101465158A CN101183343B (en) | 2006-11-14 | 2006-11-14 | Device switching method and computer system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101183343A CN101183343A (en) | 2008-05-21 |
CN101183343B true CN101183343B (en) | 2010-06-23 |
Family
ID=39448629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006101465158A Active CN101183343B (en) | 2006-11-14 | 2006-11-14 | Device switching method and computer system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101183343B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101383744B (en) * | 2008-10-09 | 2011-11-02 | 华为终端有限公司 | Method for wireless modem device adaptation, wireless modem device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1158455A (en) * | 1995-12-11 | 1997-09-03 | 翼系统株式会社 | Computer system |
CN1205467A (en) * | 1997-07-11 | 1999-01-20 | 梁恒盛 | Dynamic Printer Port Switcher |
CN1504915A (en) * | 2002-11-08 | 2004-06-16 | 南京易思克网络安全技术有限责任公司 | Method and apparatus for multi machines switching |
-
2006
- 2006-11-14 CN CN2006101465158A patent/CN101183343B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1158455A (en) * | 1995-12-11 | 1997-09-03 | 翼系统株式会社 | Computer system |
CN1205467A (en) * | 1997-07-11 | 1999-01-20 | 梁恒盛 | Dynamic Printer Port Switcher |
CN1504915A (en) * | 2002-11-08 | 2004-06-16 | 南京易思克网络安全技术有限责任公司 | Method and apparatus for multi machines switching |
Also Published As
Publication number | Publication date |
---|---|
CN101183343A (en) | 2008-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3591505B1 (en) | All-in-one machine for realizing quick touch in all channels thereof | |
CN102749985B (en) | Method and device for dynamically adjusting bus clock | |
US20090210608A1 (en) | KVM switch and operation method thereof | |
CN114302132A (en) | Display device and operation mode setting method | |
CN101539897B (en) | Multicomputer switching device and operation method thereof | |
CN102402477A (en) | Chip with computer system environment information monitoring module and computer system | |
KR20020043232A (en) | Interface for input device | |
US9696823B2 (en) | Computer and method for sharing input device thereof | |
US8605043B2 (en) | Touch display system and control method thereof | |
US7200744B2 (en) | Apparatus and method for controlling device operation in computer | |
CN104731734B (en) | A kind of output method and device of terminal signaling | |
CN102087589B (en) | Remote management device capable of detecting state of controlled computer | |
WO2018090722A1 (en) | Method and apparatus for realizing wired screen delivery | |
TWI328743B (en) | Device switching methods and computer systems | |
CN102122238B (en) | Computer management system and method | |
TWI545438B (en) | Computer management system and method thereof | |
CN101183343B (en) | Device switching method and computer system | |
CN115310150A (en) | A new type of server, server control method, device and medium | |
CN113038052B (en) | Digital video recorder, control method thereof, device storage medium and electronic device | |
CN212460555U (en) | Touch signal processing system | |
US20120221870A1 (en) | Computer and method for controlling operating state of device thereof | |
CN209015704U (en) | A kind of interface circuit and display equipment | |
CN117111824A (en) | Touch operation control method, system and computer-readable storage medium | |
CN102810054B (en) | Display device and method for controlling display device | |
JP2001184296A (en) | Usb communication interface, computer, hub, electronic equipment, and function switching method in the electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
ASS | Succession or assignment of patent right |
Owner name: XINTANG TECHNOLOGY CO., LTD. Free format text: FORMER OWNER: HUABANG ELECTRONICS CO., LTD. Effective date: 20100406 |
|
C41 | Transfer of patent application or patent right or utility model | ||
COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 000000 HSINCHU SCIENCE PARK, TAIWAN PROVINCE, CHINA TO: HSINCHU SCIENCE PARK, TAIWAN PROVINCE |
|
TA01 | Transfer of patent application right |
Effective date of registration: 20100406 Address after: Hsinchu Science Industrial Park, Taiwan Applicant after: Winbond Electronics Corp. Address before: 000000 Hsinchu Science Industrial Park, Taiwan, China Applicant before: Huabang Electronics Co., Ltd. |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |