WO2011060664A1 - 共享便携式音频装置的系统及方法 - Google Patents

共享便携式音频装置的系统及方法 Download PDF

Info

Publication number
WO2011060664A1
WO2011060664A1 PCT/CN2010/076923 CN2010076923W WO2011060664A1 WO 2011060664 A1 WO2011060664 A1 WO 2011060664A1 CN 2010076923 W CN2010076923 W CN 2010076923W WO 2011060664 A1 WO2011060664 A1 WO 2011060664A1
Authority
WO
WIPO (PCT)
Prior art keywords
driver
audio device
sharing
serial bus
universal serial
Prior art date
Application number
PCT/CN2010/076923
Other languages
English (en)
French (fr)
Inventor
陈淮琰
闫海红
严晓龙
Original Assignee
无敌科技(西安)有限公司
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 无敌科技(西安)有限公司 filed Critical 无敌科技(西安)有限公司
Publication of WO2011060664A1 publication Critical patent/WO2011060664A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Definitions

  • the present invention relates to a system and method for sharing a portable audio device, and more particularly to a system and method for sharing a portable audio device using a bilateral drive.
  • PCs computers
  • audio output devices external independent audio output devices and audio input devices
  • notebook computers external independent audio output devices and audio input devices
  • technologies such as multimedia or Skype
  • the demand for audio equipment has become urgent, which has forced companies and individual users to equip their PCs with external audio equipment. Since it is not a basic device for PCs, many people bring these audio devices with them in case they need them.
  • portable devices have also achieved unprecedented development and popularity, such as: mobile phones, electronic dictionaries, handheld audio and video players, etc. These devices have become almost all necessary devices for every modern person. Most of these devices have built-in audio devices such as audio output devices and audio input devices.
  • the PC can use the audio device of the handheld smart device, it can not only facilitate the user, but also save unnecessary expenses.
  • the present invention has been made to solve the above technical problems in the prior art, and proposes a system and method for sharing a portable audio device.
  • the technical solution of the present invention is a system for sharing a portable audio device, which is special in that: the system includes: a control terminal, including a first driver and an application; and a controlled terminal, including a second driver a program and an audio module, the second driver emulating the audio module as an audio device; wherein, when the master and the controlled terminal are connected by a universal serial bus, the first driver drives the audio device to enable the application to perform data with the audio device exchange.
  • the above controlled terminals are portable audio, mobile phones, electronic dictionaries or handheld audio and video players.
  • the above host is a desktop computer or a notebook computer.
  • a method for sharing a portable audio device comprising a main control program and a controlled end program, the main control program is used to control the main control end, and the controlled end program is used to control the controlled end, and the main control end and the controlled end pass
  • the universal serial bus (USB) is connected, which is special in that: the main control program includes: 1) detecting whether the controlled terminal is accessed by the universal serial bus, and if so, proceeding to step 2);
  • the controlled end program includes:
  • step 8 Detect whether the universal serial bus is connected to the main control terminal, and if so, proceed to step 8);
  • the host program between the above steps 3) and 4) further comprises detecting whether the first driver successfully drives the audio module, and if so, performing step 4), if otherwise uninstalling the first driver.
  • the controlled end program between the above steps 8) and 9) further comprises detecting whether the first driver successfully drives the audio device, and if so, performing step 9).
  • the first driver described above is built in the main control terminal.
  • the above second driver is built in the controlled terminal.
  • the host program further includes detecting whether the universal serial bus is still connected to the controlled terminal, and if so, performing step 4), if not, uninstalling the first driver.
  • the controlled terminal program further includes detecting whether the universal serial bus is still connected to the host, and if not, turning off the second driver.
  • the invention utilizes the controlled end driver to enable the controlled end to open the interface of the universal serial bus.
  • the controlled end When the controlled end is connected with the main control end, the main control end can drive the controlled end through the universal serial bus. Therefore, the present invention enables the PC to use the audio device of the handheld smart device, which is convenient for the user and saves money.
  • Figure 1 is a flow chart of the main control terminal of the present invention.
  • FIG. 3 is a block diagram of the present invention.
  • the host program includes: (A) whether the controlled terminal is connected by the universal serial bus, and if so, proceeds to step (B), and if not, continues to detect whether the universal serial bus is connected; ) loading the first driver; (C) initializing the audio module of the controlled terminal; (D) detecting whether the first driver successfully drives the audio module of the controlled terminal, and if so, performing step (E); (E) by being initialized
  • the universal serial bus enables data exchange between the host application and the controlled audio module.
  • the main control program further includes a step (F) and a step (G), and the step (F) detects whether the universal serial bus is still connected to the controlled end, and if not, proceeds to step (G), and if so, continues Step (E); (G) Unload the first driver.
  • step (D) if the first driver does not successfully drive the audio module of the controlled terminal, proceed directly to step (G).
  • the first driver is built in the main control terminal, and the main control terminal can be a desktop computer or a notebook computer.
  • the controlled end program includes (a) initializing the audio module; (b) executing the second driver to emulate the audio module as an audio device; (c) detecting whether the controlled terminal is connected to the host through the universal serial bus. Then, if yes, proceed to step (d) ; (d) receiving the setting data of the first driver; (e) detecting whether the first driver successfully drives the audio device, and if so, performing step (f); f) Data exchange between the audio device and the application of the host through the universal serial bus.
  • the controlled terminal program includes the steps (g) and (h), and the step (g) detects whether the universal serial bus is still connected to the main control terminal.
  • step (h) The second driver, in step (e), if the first driver does not successfully drive the audio module, step (h) is directly performed.
  • the second driver is built in the controlled end, and the controlled end can be a portable audio, a mobile phone, an electronic dictionary or a handheld video player.
  • the host also includes an application-driven audio module.
  • the host 31 includes an application 311, a first driver 312, and a master universal serial bus 313.
  • the controlled terminal 32 includes an audio module 321, a second driver 322, and a controlled terminal universal serial bus 323.
  • the second driver 322 emulates the audio module 321 as an audio device and provides a universal serial bus interface.
  • the main control terminal 31 and the controlled terminal 32 are connected, the main control terminal 31 loads the first driver 312, and the first driver 312 exchanges the data stream 33 with the audio device through the bus interface, wherein the data stream 33 passes through the host terminal sequence.
  • the bus 313 and the controlled terminal serial bus 323 are in circulation.
  • the main control terminal 31 The application 311 can drive the audio device emulated by the audio module 321 with the first driver 311 and receive or output the audio signal 34 to the audio module 321.
  • the main control terminal 31 and the controlled terminal 32 can exchange the data stream 33 and the audio signal 34 to achieve the function of the audio module 321 sharing the controlled terminal 32.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Description

共享便携式音频装置的系统及方法 技术领域
本发明涉及一种共享便携式音频装置的系统及方法, 尤其是一种利用双边 驱动共享便携式音频装置的系统及方法。
背景技术
目前, 除部分笔记型计算机已经内置外, 目前绝大部分的计算机 (PC) 需 要外接独立的音频输出设备及音频输入装置。 随着多媒体或 Skype等技术的发 展普及, 人们对音频设备的需求也变得迫切, 这使得公司以及个人用户不得不 为 PC机配备外接音频设备。 由于不是 PC的基本设备, 不少人随身自备上这些 音频设备以备不时之需。
同时, 便携式装置也得到空前的发展与普及, 例如: 行动电话, 电子词典, 掌上影音播放器等这些设备几乎成为每个现代人的随身必备装置。 而这些装置 绝大部分都内置了像音频输出设备及音频输入装置这样的音频设备。
因而, 如果能使 PC机使用掌上智能型装置的音频设备, 不但能方便用户, 还能节省不必要的开支。
发明内容
本发明为解决背景技术中存在的上述技术问题, 而提出一种共享便携式音 频装置的系统及方法。
本发明的技术解决方案是本发明为一种共享便携式音频装置的系统, 其特 殊之处在于: 该系统包含: 主控端, 包含第一驱动程序及应用程序; 受控端, 包含第二驱动程序及音频模块, 第二驱动程序使音频模块仿真为音频设备; 其 中, 当主控端及受控端以通用序列总线连接时, 第一驱动程序驱动音频设备, 使应用程序与音频设备进行数据交换。
上述受控端为随身音响、 行动电话、 电子词典或掌上影音播放器。
上述主控端为桌上型计算机或笔记型计算机。
一种共享便携式音频装置的方法, 包含主控端程序及受控端程序, 主控端 程序用来控制主控端, 受控端程序用来控制受控端, 主控端及受控端通过通用 序列总线 (USB )相接, 其特殊之处在于: 所述主控端程序包含: 1 ) 侦测受控端是否由通用序列总线接入, 若是, 则进行步骤 2) ;
2) 加载第一驱动程序;
3 ) 初始化受控端的音频模块;
4) 通过通用序列总线使主控端的应用程序与音频模块进行数据交换; 所述受控端程序包含:
5 ) 初始化音频模块;
6) 执行第二驱动程序使音频模块仿真为音频设备;
7) 侦测通用序列总线是否与主控端相接, 若是, 则进行步骤 8) ;
8) 接收第一驱动程序的设定数据;
9) 通过通用序列总线使音频设备与主控端的应用程序进行数据交换。
上述步骤 3 )和 4)之间主控端程序还包含侦测第一驱动程序是否成功驱动 音频模块, 若是则进行歩骤 4), 若否则卸载第一驱动程序。
上述步骤 8 )和 9 )之间受控端程序还包含侦测第一驱动程序是否成功驱动 音频设备, 若是则进行步骤 9)。
上述第一驱动程序内建于主控端中。
上述第二驱动程序内建于受控端中。
上述步骤 4 ) 之后主控端程序还包含侦测通用序列总线是否仍与受控端连 接, 若是则进行歩骤 4), 若否, 则卸载第一驱动程序。
上述步骤 9 ) 之后受控端程序还包含侦测通用序列总线是否仍与主控端连 接, 若否, 则关闭第二驱动程序。
本发明利用受控端驱动程序使受控端开放通用序列总线的接口, 当受控端 与主控端连接, 主控端可经过通用序列总线驱动受控端。 因此本发明能使 PC机 使用掌上智能型装置的音频设备, 方便了用户, 还能节省开支。
附图说明
图 1为本发明主控端流程图;
图 2为本发明受控端流程图;
图 3为本发明方块图。
其中, 31-主控端, 311-应用程序, 312-第一驱动程序, 313-主控端通用序列 总线, 32-受控端, 321-音频模块, 322-第二驱动程序, 323-受控端通用序列总线, 33-数据流, 34-音频讯号;
具体实施方式
参见图 1, 主控端程序包含: (A) 受控端是否由通用序列总线接入, 若是, 则进行歩骤 (B ) , 若否, 则继续侦测通用序列总线是否接入; (B ) 加载第一驱 动程序; (C) 初始化受控端的音频模块; (D ) 侦测第一驱动程序是否成功驱动 受控端的音频模块, 若是, 则进行步骤 (E) ; (E) 通过已初始化的通用序列总 线使主控端的应用程序与受控端的音频模块进行数据交换。 其中, 主控端程序 还包含歩骤 (F ) 及步骤 (G), 步骤 (F ) 侦测通用序列总线是否仍与受控端连 接, 若否, 则进行步骤 (G) , 若是, 则继续进行步骤 (E) ; (G) 卸载第一驱 动程序, 在步骤(D) 中, 若第一驱动程序未成功驱动受控端的音频模块, 则直 接进行步骤 (G)。 其中, 第一驱动程序内建于主控端中, 主控端可为桌上型计 算机或笔记型计算机。
参见图 2, 受控端程序包含 (a) 初始化音频模块; (b) 执行第二驱动程序 使音频模块仿真为音频设备; (c ) 侦测受控端是否通过通用序列总线与主控端 相接, 若是, 则进行步骤 (d) ; ( d) 接收第一驱动程序的设定数据; (e ) 侦测 第一驱动程序是否成功驱动音频设备, 若是, 则进行歩骤(f) ; (f)通过通用序 列总线使音频设备与主控端的应用程序进行数据交换。 其中, 受控端程序包含 步骤 (g) 及歩骤 (h), 步骤 (g ) 侦测通用序列总线是否仍与主控端连接, 若 否, 则进行步骤 (h); (h) 关闭第二驱动程序, 在步骤 (e) 中, 若第一驱动程 序未成功驱动音频模块, 则直接进行步骤 (h)。 其中, 第二驱动程序内建于受 控端中, 受控端可为随身音响、 行动电话、 电子词典或掌上影音播放器。 主控 端还包含应用程序趋动音频模块。
参见图 3, 主控端 31包含应用程序 311、 第一驱动程序 312及主控端通用序列 总线 313, 受控端 32包含音频模块 321、 第二驱动程序 322及受控端通用序列 总线 323。 当主控端 31通过主控端通用序列总线 313与受控端通用序列总线相 接 323, 第二驱动程序 322仿真音频模块 321为音频设备, 并提供通用序列总 线接口。 主控端 31及受控端 32连接时, 主控端 31加载第一驱动程序 312, 第 一驱动程序 312通过总线接口与音频设备进行数据流 33交换, 其中, 数据流 33通过主控端序列总线 313及受控端序列总线 323流通。 如此, 主控端 31的 应用程序 311即可利用第一驱动程序 311对音频模块 321所仿真的音频设备进 行驱动, 并接收或输出音频信号 34予音频模块 321。 通过此模式, 主控端 31 及受控端 32即可进行数据流 33及音频信号 34的交流, 达到共享受控端 32的 音频模块 321的功能。

Claims

权 利 要 求 书
1、 一种共享便携式音频装置的系统, 其特征在于: 该系统包含: 主控端, 包含第一驱动程序及应用程序; 受控端, 包含第二驱动程序及音频模块, 第二 驱动程序使音频模块仿真为音频设备; 其中, 当主控端及受控端以通用序列总 线连接时, 第一驱动程序驱动音频设备, 使应用程序与音频设备进行数据交换。
2、 根据权利要求 1所述的共享便携式音频装置的系统, 其特征在于: 所述 受控端为随身音响、 行动电话、 电子词典或掌上影音播放器。
3、 根据权利要求 1所述的共享便携式音频装置的系统, 其特征在于: 所述 主控端为桌上型计算机或笔记型计算机。
4、 一种共享便携式音频装置的方法, 包含主控端程序及受控端程序, 主控 端程序用来控制主控端, 受控端程序用来控制受控端, 主控端及受控端通过通 用序列总线相接, 其特征在于: 所述主控端程序包含:
1 ) 侦测受控端是否由通用序列总线接入, 若是, 则进行步骤 2) ;
2) 加载第一驱动程序;
3 ) 初始化受控端的音频模块;
4) 通过通用序列总线使主控端的应用程序与音频模块进行数据交换; 所述受控端程序包含:
5 ) 初始化音频模块;
6) 执行第二驱动程序使音频模块仿真为音频设备;
7) 侦测通用序列总线是否与主控端相接, 若是, 则进行步骤 8) ;
8) 接收第一驱动程序的设定数据;
9) 通过通用序列总线使音频设备与主控端的应用程序进行数据交换。
5、 根据权利要求 4所述的共享便携式音频装置的方法, 其特征在于: 所述 步骤 3 )和 4)之间主控端程序还包含侦测第一驱动程序是否成功驱动音频模块, 若是则进行步骤 4), 若否则卸载第一驱动程序。
6、 根据权利要求 4所述的共享便携式音频装置的方法, 其特征在于: 所述 歩骤 8 )和 9)之间受控端程序还包含侦测第一驱动程序是否成功驱动音频设备, 若是则进行步骤 9)。
7、 根据权利要求 4所述的共享便携式音频装置的方法, 其特征在于: 所述 第一驱动程序内建于主控端中。
8、 根据权利要求 4所述的共享便携式音频装置的方法, 其特征在于: 所述 第二驱动程序内建于受控端中。
9、 根据权利要求 4所述的共享便携式音频装置的方法, 其特征在于: 所述 歩骤 4)之后主控端程序还包含侦测通用序列总线是否仍与受控端连接, 若是则 进行步骤 4), 若否, 则卸载第一驱动程序。
10、 根据权利要求 4所述的共享便携式音频装置的方法, 其特征在于: 所 述歩骤 9)之后受控端程序还包含侦测通用序列总线是否仍与主控端连接,若否, 则关闭第二驱动程序。
PCT/CN2010/076923 2009-11-17 2010-09-15 共享便携式音频装置的系统及方法 WO2011060664A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910218994.3 2009-11-17
CN200910218994A CN101702142A (zh) 2009-11-17 2009-11-17 共享便携式音频装置的系统及方法

Publications (1)

Publication Number Publication Date
WO2011060664A1 true WO2011060664A1 (zh) 2011-05-26

Family

ID=42157058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076923 WO2011060664A1 (zh) 2009-11-17 2010-09-15 共享便携式音频装置的系统及方法

Country Status (2)

Country Link
CN (1) CN101702142A (zh)
WO (1) WO2011060664A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702142A (zh) * 2009-11-17 2010-05-05 无敌科技(西安)有限公司 共享便携式音频装置的系统及方法
CN103106101B (zh) * 2011-11-10 2017-06-27 联想(北京)有限公司 关联方法、电子设备和关联系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2554728Y (zh) * 2002-06-27 2003-06-04 青岛海信计算机有限公司 多功能便携式移动存储娱乐器
CN101170309A (zh) * 2007-11-26 2008-04-30 南京大学 便携式usb数字音频处理设备
CN101702142A (zh) * 2009-11-17 2010-05-05 无敌科技(西安)有限公司 共享便携式音频装置的系统及方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2554728Y (zh) * 2002-06-27 2003-06-04 青岛海信计算机有限公司 多功能便携式移动存储娱乐器
CN101170309A (zh) * 2007-11-26 2008-04-30 南京大学 便携式usb数字音频处理设备
CN101702142A (zh) * 2009-11-17 2010-05-05 无敌科技(西安)有限公司 共享便携式音频装置的系统及方法

Also Published As

Publication number Publication date
CN101702142A (zh) 2010-05-05

Similar Documents

Publication Publication Date Title
US7509444B2 (en) Data access device for working with a computer of power off status
US8660817B2 (en) Hardware test and diagnosis system and method
US8595321B2 (en) Supporting system for remote control
US7921244B2 (en) Data sharing and transfer systems and methods
KR101642240B1 (ko) 주변 디바이스에 대한 효율적인 저전력 종료 시퀀스
US20190294382A1 (en) Mass storage virtualization for cloud computing
US8631185B2 (en) Method and system for transferring high-speed data within a portable device
CN1505783A (zh) 用于计算设备的低功耗数字音频解码/播放系统
CN109308175A (zh) 利用移动设备及显示设备进行同屏显示的电子装置及方法
TWI325561B (en) Embedded controller and computer system using the same
CN208985138U (zh) 同屏显示的电子装置、计算机设备以及数据处理系统
CN102332073A (zh) 一种控制usb端口设备开关的方法
WO2011060664A1 (zh) 共享便携式音频装置的系统及方法
CN108984457A (zh) 一种基于STM32F7的USB Host HID实验方法
WO2014139119A1 (en) Providing hybrid touchpad in computing device
US12118363B2 (en) Coordinated boot synchronization and startup of information handling system subsystems
CN101788964B (zh) 自动对映更新的计算机转接装置
CN112306558A (zh) 处理单元、处理器、处理系统、电子设备和处理方法
TW201020793A (en) System of sharing portable audio device and method thereof
TWI389542B (zh) 可模擬一無線通訊產品之可攜式電子裝置及其相關方法
CN102411419B (zh) 电脑装置及其对可携式电子装置的充电方法
TWI284280B (en) Embedded controller/keyboard controller compatible with various memory access formats and method used thereof
CN201773508U (zh) 多媒体嵌入式实验设备
TWI258676B (en) Architecture of auto-playback for storage device and method thereof
JP2009543245A5 (zh)

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: 10831080

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10831080

Country of ref document: EP

Kind code of ref document: A1