CN103164357B - 电子装置及usb设备的移除策略设定方法 - Google Patents

电子装置及usb设备的移除策略设定方法 Download PDF

Info

Publication number
CN103164357B
CN103164357B CN201110424477.9A CN201110424477A CN103164357B CN 103164357 B CN103164357 B CN 103164357B CN 201110424477 A CN201110424477 A CN 201110424477A CN 103164357 B CN103164357 B CN 103164357B
Authority
CN
China
Prior art keywords
usb device
usb
interface
facility information
electronic installation
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
CN201110424477.9A
Other languages
English (en)
Other versions
CN103164357A (zh
Inventor
何全
陈明艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Scienbizip Consulting Shenzhen Co Ltd
Original Assignee
Scienbizip Consulting Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Scienbizip Consulting Shenzhen Co Ltd filed Critical Scienbizip Consulting Shenzhen Co Ltd
Priority to CN201110424477.9A priority Critical patent/CN103164357B/zh
Priority to TW100147313A priority patent/TWI441026B/zh
Priority to US13/587,944 priority patent/US20130159688A1/en
Publication of CN103164357A publication Critical patent/CN103164357A/zh
Application granted granted Critical
Publication of CN103164357B publication Critical patent/CN103164357B/zh
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种电子装置包括处理单元和存储单元,存储单元中存储有至少一个USB设备对应的设备信息。处理单元包括读取模块、比较模块和策略模块,读取模块在电子装置运行基本输入输出系统进程时读取电子装置的每个USB接口上所连接的设备的设备信息。比较模块比较读取的每个设备的设备信息是否与存储的一设备的设备信息一致。策略模块根据比较模块的比较结果对每个接口上所连接的设备设定相应的移除策略。本发明还提供相应的USB设备的移除策略设定方法。通过本发明的电子装置及USB设备的移除策略设定方法,只需将需要被认定为内部设备的设备信息存储至电子装置中,电子装置则会动态地设定该内部设备的移除策略,而不受USB接口的限制。

Description

电子装置及USB设备的移除策略设定方法
技术领域
本发明涉及电子装置,特别涉及能够设定USB接口所连接的设备的移除策略的电子装置及USB设备的移除策略设定方法。
背景技术
根据微软Windows Hardware Quality Lab(WHQL)认证的要求,在安装了Windows7操作系统的电子装置,如笔记本电脑或台式主机中,必须对电子装置的Universal SerialBUS(USB)接口上所连接的USB读卡器设备指定相应的移除策略(Removal Policy),即必须指定USB读卡器为内部设备才可以通过WHQL认证。
现有的技术中,一般将某个USB接口指定为内部接口,需要被认定为内部设备的USB设备只有通过该固定的内部接口连接到电子装置上后才会被认定为内部设备,从而造成电子装置连接结构上的限定。
发明内容
有鉴于此,有必要提供一种能够根据USB设备本身的属性而动态设定USB设备的移除策略的电子装置及设备的移除策略设定方法,以解决上述问题。
该电子装置设置有至少一个用于连接USB设备的USB接口,该电子装置包括处理单元和存储单元,该存储单元中存储有至少一个USB设备对应的设备信息。该处理单元包括:
读取模块,用于在电子装置运行基本输入输出系统进程时读取每个USB接口上所连接的USB设备的设备信息;
比较模块,比较读取的每个USB设备的设备信息是否与存储单元中存储的一USB设备的设备信息一致;
策略模块,根据比较模块的比较结果对每个USB接口上所连接的USB设备设定相应的移除策略。
一种USB设备的移除策略设定方法,用于设置有至少一个USB接口的电子装置中,该电子装置包括处理单元和存储单元,该存储单元中存储有至少一USB设备对应的设备信息。该信号侦测方法包括由处理单元执行的步骤:
在电子装置运行基本输入输出系统进程时读取每个USB接口上所连接的USB设备的设备信息;
比较读取的每个USB设备的设备信息是否与存储单元中存储的一USB设备的设备信息一致;
根据比较的结果对每个USB接口上所连接的USB设备设定相应的移除策略。
通过本发明的能够动态设定USB接口所连接的USB设备的移除策略的电子装置及USB设备的移除策略设定方法,只需要将需要被认定为内部设备的设备信息存储至电子装置中,电子装置就会动态地设定该内部设备的移除策略,而不受USB接口的限制。
附图说明
图1为本发明一实施方式中电子装置的模块图。
图2为一种USB设备的移除策略设定方法的流程图。
主要元件符号说明
电子装置 100
处理单元 10
存储单元 20
USB设备 30
USB接口 40
读取模块 101
比较模块 102
策略模块 103
设置模块 104
如下具体实施方式将结合上述附图进一步说明本发明。
具体实施方式
请参阅图1,为本发明一实施方式中电子装置的模块图。该电子装置100包括一处理单元10和一存储单元20,该存储单元20中存储有至少一USB设备30对应的设备信息,该USB设备30为鼠标、键盘、扫描仪等。在本实施方式中,每个USB设备30的设备信息包括该设备30的Vendor ID(VID,生产商编号)、Product ID(PID,产品编号)及产品描述符。该电子装置100上设置有至少一个USB接口40,用于连接所述USB设备30。该电子装置100可为笔记本电脑、台式电脑等安装有Windows 7操作系统的装置。
该处理单元10包括读取模块101、比较模块102和策略模块103。该读取模块101用于在电子装置100运行基本输入输出系统(Basic Input Output System,BIOS)进程时读取每个USB接口40上所连接设备30的设备信息。该比较模块102用于比较读取的每个USB设备的设备信息是否与存储单元20中存储的一USB设备的设备信息一致。该策略模块103用于根据比较模块102的比较结果对该每个USB接口40上所连接的设备30设定相应的移除策略,即确定该所连接的设备30为外部设备或内部设备。
在本实施方式中,策略模块103是在高级配置和电源管理接口(AdvancedConfiguration and Power Management Interface,ACPI)进程运行阶段设定设备30的移除策略的。具体地,在ACPI阶段,当读取模块101读取的一USB设备30的设备信息与存储单元20中存储的一USB设备的设备信息一致时,策略模块103设定该设备30对应的USB接口40为内部接口,连接在该内部接口上的设备30为内部设备。当读取模块101读取的一USB设备30的设备信息与存储单元20中存储的所有USB设备30的设备信息都不一致时,策略模块103设定该设备30对应的USB接口40为外部接口,连接在该外部接口上的设备30为外部设备。当读取模块101读取一USB接口40没有连接USB设备30时,策略模块103设定该USB接口40为外部接口,当有USB设备30接入至该USB接口40后,策略模块103则进一步设定该USB设备30为外部设备。
该电子装置100还包括一设置模块104,用于响应用户的操作将需要被设定为内部设备的USB设备30的设备信息存储至存储单元20中。因此,在设定一USB设备30的移除策略时,如果该USB设备30需要被设定为内部设备,则将该USB设备30的设备信息存储至存储单元20中,如果该USB设备30需要被设定为外部设备,则不做任何操作。策略模块103则可以根据读取模块101读取的USB设备30的设备信息动态地设定该USB设备30为内部设备或外部设备。从而,当设定该USB设备30为内部设备后,该USB设备30与任意的USB接口40连接均可被识别为内部设备,而不需要预先设定某一USB接口40为内部接口而使内部USB设备30连接至该固定的USB接口40上。
如图2所示,为一种USB设备的移除策略设定方法的流程图。该设定方法用于包括至少一个USB接口40的电子装置100中。该电子装置100包括处理单元10和存储单元20,该存储单元20中存储有至少一USB设备30对应的设备信息。该USB设备的移除策略设定方法包括由处理单元10执行的步骤:
S201:在电子装置100运行基本输入输出系统进程时读取每个USB接口40上所连接USB设备30的设备信息;
S202:比较读取的每个USB设备30的设备信息是否与存储单元20中存储的一USB设备的设备信息一致;
S203:根据比较的结果对每个USB接口40上所连接的设备30设定相应的移除策略。
在本实施方式中,步骤S203具体为:在高级配置和电源管理接口进程运行阶段,当读取的一USB设备30的设备信息与存储单元20中存储的一USB设备30的设备信息一致时,设定该USB设备30对应的USB接口40为内部接口,连接在该内部接口40上的USB设备30为内部设备;当读取的一USB设备30的设备信息与存储单元20中存储的所有USB设备30的设备信息都不一致时,设定该USB设备30对应的USB接口40为外部接口,连接在该外部接口上的设备30为外部设备;当读取某一USB接口40没有连接USB设备30时,设定该USB接口40为外部接口,当有USB设备30连接至该USB接口40后,则进一步设定该USB设备30为外部设备。

Claims (9)

1.一种电子装置,设置有至少一个用于连接USB设备的USB接口,该电子装置包括处理单元和存储单元,其特征在于,该存储单元中存储有至少一个USB设备对应的设备信息,该处理单元包括:读取模块,用于在电子装置运行基本输入输出系统进程时读取每个USB接口上所连接的USB设备的设备信息;比较模块,比较读取的每个USB设备的设备信息是否与存储单元中存储的一USB设备的设备信息一致;策略模块,根据比较模块的比较结果对每个USB接口上所连接的USB设备设定相应的移除策略,其中,当读取模块读取的USB设备的设备信息与存储单元中存储的USB设备对应的设备信息一致时,该策略模块设定该USB设备对应的USB接口为内部接口,连接在该内部接口上的USB设备为内部设备;当读取模块读取的USB设备的设备信息与存储单元中存储的所有USB设备的设备信息都不一致时,该策略模块设定该USB设备对应的USB接口为外部接口,连接在该外部接口上的USB设备为外部设备。
2.如权利要求1所述的电子装置,其特征在于,该策略模块在高级配置和电源管理接口进程运行阶段设定USB设备的移除策略。
3.如权利要求2所述的电子装置,其特征在于,当读取模块读取一USB接口没有连接USB设备时,策略模块设定该USB接口为外部接口,当有USB设备接入至该USB接口后,读取模块则设定该USB设备为外部设备。
4.如权利要求2所述的电子装置,其特征在于,每个USB设备对应的设备信息包括该USB设备的VID、PID及产品描述符。
5.如权利要求2所述的电子装置,其特征在于,该电子装置安装有WINDOWS 7操作系统。
6.如权利要求2-4中任一项所述的电子装置,其特征在于,该处理单元还包括一设置模块,用于响应用户的操作将需要被设定为内部设备的USB设备的设备信息存储至存储单元中。
7.一种USB设备的移除策略设定方法,用于设置于至少一个USB接口的电子装置中,该电子装置包括处理单元和存储单元,该存储单元中存储有至少一USB设备对应的设备信息,其特征在于,该方法包括由处理单元执行的步骤:在电子装置运行基本输入输出系统进程时读取每个USB接口上所连接的USB设备的设备信息;比较读取的每个USB设备的设备信息是否与存储单元中存储的一USB设备的设备信息一致;根据比较的结果对每个USB接口上所连接的USB设备设定相应的移除策略,其中,当读取的USB设备的设备信息与存储单元中存储的USB设备信息一致时,设定该USB设备对应的USB接口为内部接口,连接在该内部接口上的USB设备为内部设备;当读取的USB设备的设备信息与存储单元中存储的所有USB设备的设备信息都不一致时,设定该USB设备对应的USB接口为外部接口,连接在该外部接口上的USB设备为外部设备;当读取的USB接口没有连接USB设备时,设定该USB接口为外部接口,当有USB设备接入至该USB接口后,设定该USB设备为外部设备。
8.如权利要求7所述的USB设备的移除策略设定方法,其特征在于:该移除策略的设定在高级配置和电源管理接口运行阶段进行。
9.如权利要求8所述的USB设备的移除策略设定方法,其特征在于,每个USB设备对应的设备信息包括该USB设备的VID、PID及产品描述符。
CN201110424477.9A 2011-12-17 2011-12-17 电子装置及usb设备的移除策略设定方法 Expired - Fee Related CN103164357B (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201110424477.9A CN103164357B (zh) 2011-12-17 2011-12-17 电子装置及usb设备的移除策略设定方法
TW100147313A TWI441026B (zh) 2011-12-17 2011-12-20 電子裝置及usb設備的移除策略設定方法
US13/587,944 US20130159688A1 (en) 2011-12-17 2012-08-17 Electronic device and method of setting removal policy of usb device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110424477.9A CN103164357B (zh) 2011-12-17 2011-12-17 电子装置及usb设备的移除策略设定方法

Publications (2)

Publication Number Publication Date
CN103164357A CN103164357A (zh) 2013-06-19
CN103164357B true CN103164357B (zh) 2017-10-13

Family

ID=48587456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110424477.9A Expired - Fee Related CN103164357B (zh) 2011-12-17 2011-12-17 电子装置及usb设备的移除策略设定方法

Country Status (3)

Country Link
US (1) US20130159688A1 (zh)
CN (1) CN103164357B (zh)
TW (1) TWI441026B (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2799947B1 (de) * 2013-05-03 2016-03-23 Siemens Aktiengesellschaft Anordnung mit einem ersten und einem zweiten Peripheriegerät
CN104063297A (zh) * 2014-07-16 2014-09-24 合肥联宝信息技术有限公司 一种利用usb接口对计算机硬件进行诊断的方法及装置
CN108985112A (zh) * 2018-06-12 2018-12-11 山东超越数控电子股份有限公司 一种usb端口控制系统及方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1957342A (zh) * 2004-02-26 2007-05-02 密克罗奇普技术公司 支持内部和外部usb收发器的数字接口
TW201122803A (en) * 2009-12-21 2011-07-01 Hon Hai Prec Ind Co Ltd Method and system for testing USB peripheral module of electronic device
CN102147779A (zh) * 2011-04-07 2011-08-10 广东金赋信息科技有限公司 一种usb外设处理装置及usb外设的处理方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4065498B2 (ja) * 2002-05-21 2008-03-26 キヤノン株式会社 情報処理システムおよびオプション機能セットアップ方法およびプログラムおよび記憶媒体
JP2004102897A (ja) * 2002-09-12 2004-04-02 Brother Ind Ltd 電子機器
KR100653065B1 (ko) * 2005-07-21 2006-12-01 삼성전자주식회사 전자기기 시스템 및 그 제어방법
US7966440B2 (en) * 2007-05-14 2011-06-21 Ricoh Company, Limted Image processing controller and image forming apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1957342A (zh) * 2004-02-26 2007-05-02 密克罗奇普技术公司 支持内部和外部usb收发器的数字接口
TW201122803A (en) * 2009-12-21 2011-07-01 Hon Hai Prec Ind Co Ltd Method and system for testing USB peripheral module of electronic device
CN102147779A (zh) * 2011-04-07 2011-08-10 广东金赋信息科技有限公司 一种usb外设处理装置及usb外设的处理方法

Also Published As

Publication number Publication date
TW201327178A (zh) 2013-07-01
US20130159688A1 (en) 2013-06-20
TWI441026B (zh) 2014-06-11
CN103164357A (zh) 2013-06-19

Similar Documents

Publication Publication Date Title
CN106557340B (zh) 一种配置方法及装置
US8661306B2 (en) Baseboard management controller and memory error detection method of computing device utilized thereby
CN102375787A (zh) 利用内存窗口实现接口的系统及方法
CN103116402B (zh) 具有语音控制功能的计算机系统以及语音控制方法
KR20060047693A (ko) 스카시 및 사스 하드웨어 검증시스템 및 방법
US20100274999A1 (en) Control system and method for memory
US8898484B2 (en) Optimizing delivery of regulated power from a voltage regulator to an electrical component
CN103775367A (zh) 智能风扇的控制方法
CN103593281A (zh) 测试系统及测试方法
US8719637B2 (en) System and method for acquiring basic input/output system debug codes
CN103164357B (zh) 电子装置及usb设备的移除策略设定方法
CN103810440B (zh) 存取系统及方法
CN107145455A (zh) 一种整机系统更新smbios静态信息的方法
CN104809083A (zh) 获取网卡硬件地址的方法
CN114924998B (zh) 内存信息读取装置及方法、计算设备主板、设备和介质
CN106919407A (zh) 电脑内嵌产品资料同步更新的方法
CN103956129A (zh) 电子产品显示屏的自动识别系统
CN104090631A (zh) 外围元件连接装置及具有外围元件连接接口的电子装置
Intel
Intel
Intel
Intel Intel® Desktop Board DH61SA Technical Product Specification
Intel
Intel
Intel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161021

Address after: 518109 Guangdong province Shenzhen city Longhua District Dragon Road No. 83 wing group building 11 floor

Applicant after: SCIENBIZIP CONSULTING (SHEN ZHEN) Co.,Ltd.

Address before: 518109 Guangdong city of Shenzhen province Baoan District Longhua Town Industrial Zone tabulaeformis tenth East Ring Road No. 2 two

Applicant before: HONG FU JIN PRECISION INDUSTRY (SHENZHEN) Co.,Ltd.

Applicant before: HON HAI PRECISION INDUSTRY Co.,Ltd.

AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20170329

CI01 Publication of corrected invention patent application

Correction item: deemed abandonment of patent right

Correct: The revocation of the patent right shall be regarded as giving up

False: The patent right is deemed to be abandoned

Number: 13

Volume: 33

RA01 Restoration of patent right

Former decision: deemed abandonment of patent right

Former decision publication date: 20170329

RR01 Reinstatement of patent right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171013

Termination date: 20171217

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