The invention relates to a wireless connecting method, a computer, and a non-transitory computer-readable storage medium. More particularly, the invention relates to a wireless connecting method, a computer, and a non-transitory computer-readable storage medium for wireless connection by BLUETOOTH between a computer and other devices.
BLUETOOTH is a wireless technology standard for exchanging data over short distances (using short-wavelength UHF radio waves in the ISM band from 2.4 to 2.485 GHz) from fixed and mobile devices and building personal area networks (PANs). It can connect several devices, overcoming problems of synchronization.
According to the BLUETOOTH specification, when a personal computer (PC), such as a desktop or a laptop computer, is connected with one or more external devices through BLUETOOTH, the PC generally serves as a BLUETOOTH host device and the external devices serve as BLUETOOTH accessory devices. In other words, a PC itself cannot be a Bluetooth accessory of other Bluetooth device. A way to solve the problem is to implement a BLUETOOTH application so that the PC may work as a host and an accessory of the connected device at the same time.
However, the Microsoft system has the Microsoft Bluetooth stack which may operate the PC as a host for a device connected to the PC by Bluetooth originally, and it may be convenience if the BLUETOOTH application implemented can co-exist with the Microsoft Bluetooth stack.
An embodiment of this disclosure is to provide a wireless connecting method includes the following operations: connecting a device to a computer by BLUETOOTH; determining the computer is a host or accessory for the device; operating the computer as the host for the device by a Microsoft BLUETOOTH stack if the computer is the host for the device; and operating the computer as the accessory for the device by an application if the computer is the accessory for the device. The computer is operated as the host and accessory at the same time.
An embodiment of this disclosure is to provide a computer includes a memory and a processor. The memory includes an application to handle a device connected to the computer by BLUETOOTH. The processor is configured to run the application to determine whether the computer is a host or a accessory for the device. The processor operates the computer as the host for the device by a Microsoft BLUETOOTH stack if the computer is the host for the device, and the processor operates the computer as the accessory for the device by an application if the computer is the accessory for the device. The computer is operated as the host and the accessory at the same time.
The embodiment of the present disclosure is to provide a non-transitory computer-readable storage medium storing a computer program performing a wireless connecting method. The wireless connecting method includes the following operations: connecting a device to a computer by BLUETOOTH; determining the computer is a host or a accessory for the device; operating the computer as the host for the device by a Microsoft BLUETOOTH stack if the computer is the host for the device; and operating the computer as the accessory for the device by an application if the computer is the accessory for the device. The computer is operated as the host and the accessory at the same time.
Aspects of the present disclosure are best understood from the following detailed description when read with the accompanying figures. It is noted that, in accordance with the standard practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features may be arbitrarily increased or reduced for clarity of discussion.
The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. Specific examples of components and arrangements are described below to simplify the present disclosure. These are, of course, merely examples and are not intended to be limiting. In addition, the present disclosure may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
The terms used in this specification generally have their ordinary meanings in the art, within the context of the invention, and in the specific context where each term is used. Certain terms that are used to describe the invention are discussed below, or elsewhere in the specification, to provide additional guidance to the practitioner regarding the description of the invention.
Reference is made to
In some embodiments, the memory 110 includes an application. The application is configured to handle the device 900 which is connected to the computer 100 by BLUETOOTH connection 170. The processor 130 is configured to run the application to determine whether the computer 100 is an accessory or a host for the device 900A or the device 900B when the device 900A or the device 900B is connected to the computer 100 by BLUETOOTH connection 170.
In some embodiments, for example, if the processor 130 determines the computer 100 to run as the accessory and the device 900A to run as the host when the device 900A is connected to the computer 100 by BLUETOOTH connection 170, the processor 130 operates the computer 100 as the accessory for the device 900A by the application. In some embodiments, if the processor 130 determines the computer 100 to run as the host and the device 900A to run as the accessory when the device 900A is connected to the computer 100 by BLUETOOTH connection 170, the processor 130 operates the computer 100 as the host for the device 900A by the Microsoft BLUETOOTH stack. When the device 900A works as the host, the computer 100 and the device 900B all become peripheral devices (accessories) of the device 900A.
Furthermore, in the present disclosure, the computer 100 may operate as the host and the accessory at the same time. For example, the device 900A and the device 900B may connect to the computer 100 by the BLUETOOTH connection 170 at the same time. The device 900A is the accessory and the computer 100 is the master; meanwhile, the device 900B is the host and the computer 100 is the slave. The computer 100 operates as the host for the device 900A by the Microsoft BLUETOOTH stack. The computer 100 operates as the accessory for the device 900B by the application.
Reference is made to
As illustrated in
When the device 900A is connected to the computer 100 through the BLUETOOTH connection 170 (as illustrated in
On the other hand, if the computer 100 is determined to operate as an accessory for the device 900A, the computer 100 operates as the accessory for the device 900A through a customized BLUETOOTH stack. The customized BLUETOOTH stack is implemented by the application 230 at the communication link module 232, which may make the computer 100 work as the accessory for the device 900A. The information transmits between the customized BLUETOOTH stack and the device 900A may be transmitted through the filter driver 210.
If the computer 100 works as a host and an accessory at the same time when connected to several devices 900A and 900B, the BLUETOOTH event arbiter module 234 may handle the conflict between the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack. Methods of handling the conflict between the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack includes sequencing the information and/or the packets transmitting from the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack. However, the present disclosure is not limited to the method mentioning above.
In some embodiments, when the device 900A or the device 900B is not connected to the computer 100, the processor 130 detaches the device 900A or the device 900B from the computer 100 by the application 230.
Reference is made to
As illustrated in
When the device 900A is connected to the computer 100 through the BLUETOOTH connection 170 (as illustrated in
On the other hand, if the computer 100 is determined to operate as an accessory for the device 900A, the computer 100 operates as an accessory for the device 900A through a customized BLUETOOTH stack. The customized BLUETOOTH stack is implemented by the application 330 at the communication link module 332, which may make the computer 100 work as the accessory for the device 900A.
If the computer 100 works as a host and an accessory at the same time when connected to several devices 900A and 900B, the BLUETOOTH event arbiter module 334 may handle the conflict between the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack. Methods of handling the conflict between the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack includes sequencing the information and/or the packets transmitting from the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack. However, the present disclosure is not limited to the method mentioning above.
In some embodiments, when the device 900A or the device 900B is not connected to the computer 100, the processor 130 detaches the device 900A or the device 900B from the computer 100 by the application 330.
It is to be noted that in some embodiments, the device 900A and the device 900B may be driven by the same driver 270. In some other embodiments, the device 900A and the device 900B may be driven by different driver 270.
Reference is made to
As illustrated in
When the device 900A is connected to the computer 100 through the BLUETOOTH connection 170 (as illustrated in
On the other hand, if the computer 100 is determined to operate as an accessory for the device 900A, the computer 100 operates as the accessory for the device 900A through a customized BLUETOOTH stack. The customized BLUETOOTH stack is implemented by the application 430 at the communication link module 432, which may make the computer 100 work as the accessory for the device 900A.
The processor 130 (as illustrated in
In some embodiments, the USB emulated device 420 is configured to emulate a BLUETOOTH adapter 422 and a BLUETOOTH driver 424. The USB emulated device 420 is a virtual software device configured to run the Microsoft BLUETOOTH stack 250. Moreover, the USB emulated device 420 forwards the USB traffic to the application 430. The USB traffic includes bulk packets, interrupt packets, and control packets. In some embodiments, the information is sent between the filter driver 410 and the USB emulated device 420 through the driver 270.
The processor 130 (as illustrated in
If the computer 100 works as a host and an accessory at the same time when connected to several devices 900A and 900B, the BLUETOOTH event arbiter module 434 may handle the conflict between the Microsoft BLUETOOTH stack 250 and the customized BLUETOOTH stack.
The Microsoft BLUETOOTH stack 250 (as illustrated in
Reference is made to
For convenience of explanation and understanding reference is made to
In operation S510, connecting a device to a computer by BLUETOOTH. In some embodiments, operation S510 may be performed by the processor 130, as illustrated in
In operation S530, determining whether the computer is a host or an accessory for the device. In some embodiments, operation S530 may be performed by the processor 130, as illustrated in
Reference is made to
As illustrated in
In operation S550, operating the computer as the accessory for the device by an application. Reference is made to
In operation S570, operating the computer as the host for the device by a Microsoft BLUETOOTH stack. Reference is made to
Reference is made to
Another embodiment of the disclosure is a non-transitory computer-readable storage medium. The non-transitory computer readable storage medium stores instructions for performing the method 500 in aforesaid embodiment shown in
The kernel space is strictly reserved for running a privileged operating system kernel, kernel extensions, and most device drivers. The user space is the memory area where application software and some drivers execute. The concept of the kernel space and the user space are known to one of ordinary skill in the art, and may not be addressed in details.
According to the embodiment of the present disclosure, it is understood that the embodiment of the present disclosure is to provide a wireless connecting method, a computer, and a non-transitory computer-readable storage medium, in order to operate the computer as the accessory and the host at the same time when the computer is connecting to devices by BLUETOOTH. Furthermore, the implemented application that makes the computer work as an accessory for the connected device may co-exist with the Microsoft BLUETOOTH stack.
In this document, the term “coupled” may also be termed as “electrically coupled”, and the term “connected” may be termed as “electrically connected”. “Coupled” and “connected” may also be used to indicate that two or more elements cooperate or interact with each other. It will be understood that, although the terms “first,” “second,” etc., may be used herein to describe various elements, these elements should not be limited by these terms. These terms are used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.
In addition, the above illustrations comprise sequential demonstration operations, but the operations need not be performed in the order shown. The execution of the operations in a different order is within the scope of this disclosure. In the spirit and scope of the embodiments of the present disclosure, the operations may be increased, substituted, changed and/or omitted as the case may be.
The foregoing outlines features of several embodiments so that those skilled in the art may better understand the aspects of the present disclosure. Those skilled in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same purposes and/or achieving the same advantages of the embodiments introduced herein. Those skilled in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions, and alterations herein without departing from the spirit and scope of the present disclosure.
This application is a continuation-in-part of U.S. application Ser. No. 15/183,884, filed on Jun. 16, 2016, the full disclosure of which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
6366622 | Brown | Apr 2002 | B1 |
6731939 | Watanabe | May 2004 | B1 |
6760804 | Hunt | Jul 2004 | B1 |
7003102 | Kiko | Feb 2006 | B2 |
7043205 | Caddes | May 2006 | B1 |
7047051 | Sackett | May 2006 | B2 |
7165171 | Zhang | Jan 2007 | B2 |
7215649 | Yu | May 2007 | B2 |
7257398 | Ukita | Aug 2007 | B1 |
7269183 | Morris | Sep 2007 | B2 |
7436300 | Glass | Oct 2008 | B2 |
7506148 | Zhang | Mar 2009 | B2 |
7596353 | Chung | Sep 2009 | B2 |
7599662 | Ibrahim | Oct 2009 | B2 |
7774027 | Parikh | Aug 2010 | B2 |
7801561 | Parikh | Sep 2010 | B2 |
8014339 | Moore | Sep 2011 | B1 |
8050647 | Ibrahim | Nov 2011 | B2 |
8073388 | Grushkevich | Dec 2011 | B2 |
8095078 | Benkert | Jan 2012 | B2 |
8190716 | Zhodzishsky | May 2012 | B2 |
8208854 | Winter | Jun 2012 | B2 |
8224247 | Kidron | Jul 2012 | B2 |
8249649 | Tseng | Aug 2012 | B2 |
8287434 | Zavadsky | Oct 2012 | B2 |
8346170 | Preston | Jan 2013 | B2 |
8346171 | Mack | Jan 2013 | B1 |
8554138 | Higgins | Oct 2013 | B2 |
8620379 | Zhodzishsky | Dec 2013 | B2 |
8700089 | Tseng | Apr 2014 | B2 |
8761671 | Singer | Jun 2014 | B2 |
8798541 | Scott | Aug 2014 | B1 |
8838697 | Lashkari | Sep 2014 | B2 |
8862399 | Schmidt | Oct 2014 | B2 |
8892175 | Kirsch | Nov 2014 | B2 |
8897764 | Takikawa | Nov 2014 | B2 |
8942632 | Shen | Jan 2015 | B2 |
8950935 | Khachaturian | Feb 2015 | B1 |
8964298 | Haddick | Feb 2015 | B2 |
8965090 | Khachaturian | Feb 2015 | B1 |
8976724 | Hauser | Mar 2015 | B2 |
9049042 | Tagg | Jun 2015 | B2 |
9144094 | Bhamidipati | Sep 2015 | B2 |
9189182 | Jung | Nov 2015 | B2 |
9229854 | Kuzmin | Jan 2016 | B1 |
9237217 | Zeung | Jan 2016 | B2 |
9306872 | Donaldson | Apr 2016 | B2 |
9383772 | Zeung | Jul 2016 | B2 |
9544718 | Song | Jan 2017 | B2 |
9680885 | Yamada | Jun 2017 | B2 |
9710377 | Kuzmin | Jul 2017 | B1 |
9813845 | Kim | Nov 2017 | B2 |
9906893 | Zeung | Feb 2018 | B2 |
9949038 | Guindi | Apr 2018 | B2 |
20010019956 | Tada | Sep 2001 | A1 |
20020012329 | Atkinson | Jan 2002 | A1 |
20020062397 | Chang | May 2002 | A1 |
20020172218 | Harrison | Nov 2002 | A1 |
20030013411 | Uchiyama | Jan 2003 | A1 |
20030068033 | Kiko | Apr 2003 | A1 |
20030087681 | Sackett | May 2003 | A1 |
20030144029 | Wu | Jul 2003 | A1 |
20040070488 | Stockhammer | Apr 2004 | A1 |
20040136338 | Lin | Jul 2004 | A1 |
20040198219 | Malmstrom | Oct 2004 | A1 |
20040230790 | Zhang | Nov 2004 | A1 |
20050073991 | Roberts | Apr 2005 | A1 |
20050083741 | Chang | Apr 2005 | A1 |
20050107103 | Melpignano | May 2005 | A1 |
20050152294 | Yu | Jul 2005 | A1 |
20050181729 | Ibrahim | Aug 2005 | A1 |
20050197064 | Ibrahim | Sep 2005 | A1 |
20050286466 | Tagg | Dec 2005 | A1 |
20060025075 | Chung | Feb 2006 | A1 |
20060068760 | Hameed | Mar 2006 | A1 |
20060105712 | Glass | May 2006 | A1 |
20060116107 | Hulvey | Jun 2006 | A1 |
20060234632 | Lin | Oct 2006 | A1 |
20060293905 | Ramanathan | Dec 2006 | A1 |
20070099568 | Yang | May 2007 | A1 |
20070150560 | Zhang | Jun 2007 | A1 |
20070173270 | Block | Jul 2007 | A1 |
20070211624 | Schmidt | Sep 2007 | A1 |
20080002758 | Schmidt | Jan 2008 | A1 |
20080052384 | Marl | Feb 2008 | A1 |
20080070504 | Benkert | Mar 2008 | A1 |
20080081559 | Parikh | Apr 2008 | A1 |
20080081667 | Parikh | Apr 2008 | A1 |
20080207126 | Grushkevich | Aug 2008 | A1 |
20080230609 | Singh | Sep 2008 | A1 |
20080232605 | Bagha | Sep 2008 | A1 |
20080274695 | Muth | Nov 2008 | A1 |
20080279129 | Zhodzishsky | Nov 2008 | A1 |
20080287063 | Kidron | Nov 2008 | A1 |
20080294340 | Schmidt | Nov 2008 | A1 |
20080311852 | Hansen | Dec 2008 | A1 |
20090001160 | Davis | Jan 2009 | A1 |
20090014519 | Singh | Jan 2009 | A1 |
20090061775 | Warren | Mar 2009 | A1 |
20090204964 | Foley | Aug 2009 | A1 |
20090232041 | Smith | Sep 2009 | A1 |
20090281835 | Patwardhan | Nov 2009 | A1 |
20090312010 | Hall | Dec 2009 | A1 |
20090318081 | Winter | Dec 2009 | A1 |
20100009673 | Ibrahim | Jan 2010 | A1 |
20100041330 | Elg | Feb 2010 | A1 |
20100197326 | Ngo | Aug 2010 | A1 |
20100202346 | Sitzes | Aug 2010 | A1 |
20100284380 | Banerjee | Nov 2010 | A1 |
20100328216 | Honda | Dec 2010 | A1 |
20110021142 | Desai | Jan 2011 | A1 |
20110034125 | Preston | Feb 2011 | A1 |
20110034126 | Higgins | Feb 2011 | A1 |
20110071997 | Sullivan | Mar 2011 | A1 |
20110107117 | Jung | May 2011 | A1 |
20110158217 | Meng | Jun 2011 | A1 |
20110251021 | Zavadsky | Oct 2011 | A1 |
20110255454 | Hauser | Oct 2011 | A1 |
20110320624 | Schmidt | Dec 2011 | A1 |
20120003973 | Tseng | Jan 2012 | A1 |
20120005382 | Chatterjee | Jan 2012 | A1 |
20120057456 | Bogatin | Mar 2012 | A1 |
20120057518 | Herrala | Mar 2012 | A1 |
20120094757 | Vago | Apr 2012 | A1 |
20120142271 | Zhodzishsky | Jun 2012 | A1 |
20120165062 | Preston | Jun 2012 | A1 |
20120185071 | Kwon | Jul 2012 | A1 |
20120203877 | Bartholomay | Aug 2012 | A1 |
20120302170 | Frazier | Nov 2012 | A1 |
20130010764 | Tseng | Jan 2013 | A1 |
20130065680 | Zavadsky | Mar 2013 | A1 |
20130090931 | Ghovanloo | Apr 2013 | A1 |
20130127980 | Haddick | May 2013 | A1 |
20130137415 | Takikawa | May 2013 | A1 |
20130238711 | Lashkari | Sep 2013 | A1 |
20130278631 | Border | Oct 2013 | A1 |
20130288606 | Kirsch | Oct 2013 | A1 |
20140067957 | Yamada | Mar 2014 | A1 |
20140120829 | Bhamidipati | May 2014 | A1 |
20140169795 | Clough | Jun 2014 | A1 |
20140297900 | Herbert | Oct 2014 | A1 |
20140335902 | Guba | Nov 2014 | A1 |
20140342669 | Zeung | Nov 2014 | A1 |
20140344494 | Zeung | Nov 2014 | A1 |
20150010179 | Solum | Jan 2015 | A1 |
20150024804 | Davis | Jan 2015 | A1 |
20150147968 | Friedman | May 2015 | A1 |
20150223272 | Parkinson | Aug 2015 | A1 |
20150281853 | Eisner | Oct 2015 | A1 |
20150281877 | Walden | Oct 2015 | A1 |
20150365979 | Park | Dec 2015 | A1 |
20160012465 | Sharp | Jan 2016 | A1 |
20160014545 | Tian | Jan 2016 | A1 |
20160037389 | Tagg | Feb 2016 | A1 |
20160073908 | Khachaturian | Mar 2016 | A1 |
20160080896 | Song | Mar 2016 | A1 |
20160100275 | Viswanadham | Apr 2016 | A1 |
20160117813 | Gross | Apr 2016 | A1 |
20160119320 | Bansal | Apr 2016 | A1 |
20160134996 | Verma | May 2016 | A1 |
20160140370 | Pierce | May 2016 | A1 |
20160150105 | Shinomiya | May 2016 | A1 |
20160184635 | Kwon | Jun 2016 | A1 |
20160189143 | Koeppel | Jun 2016 | A1 |
20160249356 | Pope | Aug 2016 | A1 |
20160262056 | Chen | Sep 2016 | A1 |
20160277875 | Ivanova | Sep 2016 | A1 |
20160306966 | Srivastava | Oct 2016 | A1 |
20160334837 | Dees | Nov 2016 | A1 |
20160359925 | Song | Dec 2016 | A1 |
20160360345 | Kim | Dec 2016 | A1 |
20160366263 | Song | Dec 2016 | A1 |
20160371961 | Narang | Dec 2016 | A1 |
20170006414 | Tomassini | Jan 2017 | A1 |
20170006415 | Song | Jan 2017 | A1 |
20170034646 | Song | Feb 2017 | A1 |
20170135125 | Buthler | May 2017 | A1 |
20170150533 | Alipour | May 2017 | A1 |
20170188181 | Jin | Jun 2017 | A1 |
20170366923 | Zeung | Dec 2017 | A1 |
20180235468 | Khachaturian | Aug 2018 | A1 |
20180253264 | Chang | Sep 2018 | A1 |
Number | Date | Country | |
---|---|---|---|
20180139795 A1 | May 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15183884 | Jun 2016 | US |
Child | 15869512 | US |