TW504617B - Method using computer software to implement simulated bluetooth communication - Google Patents
Method using computer software to implement simulated bluetooth communication Download PDFInfo
- Publication number
- TW504617B TW504617B TW090102487A TW90102487A TW504617B TW 504617 B TW504617 B TW 504617B TW 090102487 A TW090102487 A TW 090102487A TW 90102487 A TW90102487 A TW 90102487A TW 504617 B TW504617 B TW 504617B
- Authority
- TW
- Taiwan
- Prior art keywords
- bluetooth
- code
- packet
- virtual
- interface
- Prior art date
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
504617 五、發明說明(1) 發明領域 本發明係關於藍牙通訊的方法,其特別係關於一種以 電腦軟體實現(computer software implemented)模擬藍 牙通訊的方法。 發明背景 習知使用藍牙的通訊方式,如圖一所顯示,圖一的近 端電腦主機及遠端電腦主機分別連接藍牙硬體,藉由藍牙 產生的無線電電波傳送及接收資料封包。為了使得既有設 備能夠便利的支援藍牙,因此藍牙定義了主機控制介面 (host controller interface,以下縮寫簡稱 HCI),既有 設備只需要在Com port (通訊埠)、USB、PCMCIA介面安裝 支援H C I介面的藍牙硬體,即可形成一個具有藍牙通訊功 能的設備,能夠讓原先沒有内嵌藍牙晶片組的既有設備, 亦有能力支援藍牙’並且所有支援HC I介面的藍牙硬體亦 不用擔心既有設備不相容,而無法使用的窘境。 而於帶 然不卻 ,得備 定不設 穩也體 夠卻硬 不,的 且式此 貴程如 昂用是 常應但 非及, 件定備 套協設 訊體體 通軟硬 幽豆 勺 aw 硬需相 牙所牙 藍牙藍 的藍買 前發購 目開時 了發 為開 供通 提牙 要藍 必擬 其模 有的 此求 因需 。作 擾工 困發 與開 性體 定軟 確合 不符 多且 許並 作, 工行 發可 開濟 體經 軟種 給一 階 的 前 熟 成 及 及 普 未 尚 術 技 體 硬 牙 藍 在 其 尤 案 方 的。 訊段504617 V. Description of the invention (1) Field of the invention The present invention relates to a method for Bluetooth communication, and more particularly to a method for simulating Bluetooth communication using computer software implemented. BACKGROUND OF THE INVENTION It is known to use a Bluetooth communication method. As shown in FIG. 1, the near-end computer host and the far-end computer host in FIG. 1 are respectively connected to Bluetooth hardware, and transmit and receive data packets through radio waves generated by Bluetooth. In order to allow existing devices to support Bluetooth conveniently, Bluetooth defines a host controller interface (hereinafter abbreviated as HCI). Existing devices only need to be installed on the Com port (communication port), USB, PCMCIA interfaces to support the HCI interface. Bluetooth hardware can form a device with Bluetooth communication function, which can make existing devices that have no embedded Bluetooth chipset, but also have the ability to support Bluetooth 'and all Bluetooth hardware that supports the HC I interface. There is a dilemma that the equipment is incompatible and cannot be used. However, it is not necessary to be prepared, but it is necessary to be stable, but it is sufficient but hard, and this expensive process is often used, but it is not appropriate, and the order is set to set the body to communicate with the body. The blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth blue tooth before the blue eyed the blue eyed the blue eyed before the hair eyed the blue eyed hair hair to open the tooth to open the mouth to be able to raise the tooth blue tooth must have its own model this demand. Disturbances caused by disturbing work do not coincide with the softness of the open body, and they may be used together. ICBC ’s hair development can use soft seeds to give first-order pre-maturity and the pre-existing technique of hard teeth blue. square. Segment
^1^ 1
41 50461741 504617
五、發明說明(2) 發明概要 石更體,即可模擬 本發明目的係提供不需要藉助於藍牙 達成藍牙在H C I規格所有封包的處理。 為達成本發明目的,本發明提供一豨ιν + c〇 η ·, 種以電腦軟體實現 ipu t er so 11 war e 1 mp 1 emen t ecHM ^ ^ x ^ 俱鍵監牙通訊的方 法,其適用於至少二個電腦,其中該-個+⑽ t 、 —個電腦分別豆有一 個相同傳輸協定的實體通訊層,該二個 八 體實現該方法的模擬藍牙通訊的通訊軟執行以軟 腦模擬使用藍牙硬體進行之間的通訊,^ 使付该一個電 驟:·編寫(coding )—主機控制介面(Hcn"去包括下列、步 模擬處理該藍牙硬體在主機控制介面所王工^碼’其用以 的命令及資料封包,使得該電腦執行誃弋(Protocol ) (Hc I )程式碼後,能夠模擬處理該主機^ 八控制介面 命令及資料封包;·編寫(C〇ding)— 】 = 面所接收的 式碼,其用以模擬該藍牙硬體,使得該^牙射頻介面程 牙射頰介面程式碼後,能夠模擬該執行該虛擬藍 it π- 取才硬體的、孟^ <牙哽體的設定。其中該虛擬藍牙射 0通訊及對該 1 〇, 考了步員介面裎4 π , <才硬體的通訊的步驟係為:使得兮 八碼模擬該 射相a 豕電腦執行兮& 頰介面程式碼後,將該虛擬藍牙射相A 叮邊虛擬藍牙 叩々及資料封包,再包封(pack)為处私▲ 式碼所接收 傳輪的封包。 此夠在該實體通訊層V. Description of the invention (2) Summary of the invention It is more practical and can be simulated. The purpose of the present invention is to provide the processing of all packets in the HC I specification without the help of Bluetooth. In order to achieve the purpose of the present invention, the present invention provides a method for implementing ipu t er so 11 war e 1 mp 1 emen t ecHM by computer software, which is applicable. On at least two computers, where the-+ + t and-1 computers have a physical communication layer with the same transmission protocol, the two octaves implement the method of simulating Bluetooth communication. The communication software is implemented using soft brain simulation. The Bluetooth hardware communicates with each other, ^ to make this one step: coding (hosting)-host control interface (Hcn " to include the following steps to simulate the processing of the Bluetooth hardware in the host control interface, the master code ^ code ' The commands and data packets used by the computer enable the computer to simulate and process the host after the execution of the Protocol (Hc I) code. ^ Eight control interface commands and data packets; · Coding—] = The received code is used to simulate the Bluetooth hardware, so that after the RF interface of the tooth is transmitted to the cheek interface code, it can simulate the execution of the virtual blue it π- fetch hardware. ; Setting of dental carcass. Its In this virtual Bluetooth radio 0 communication and the 10, the steps of the pedestrian interface 裎 4 π were tested, and the hardware communication steps were: making the eight-digit code simulate the radio phase a 豕 the computer executes the & cheek After the interface code, the virtual Bluetooth is transmitted to the A Bluetooth virtual data card and the data packet, and then the packet is packaged as a packet received by the private ▲ code.
第6頁 504617 五、發明說明(3) 為使熟悉該項技藝人士瞭解本發明之目的、特徵及功 效,茲藉由下述具體實施例,並配合所附之圖式,對本發 明詳加說明,說明如后: 發明詳細說明 圖二顯示依據本發明方法的模擬藍牙通訊架構示意 圖。圖二的近端電腦主機(l〇cal h〇st)10及遠端電腦主機 (remote host)ll,經由各自的虛擬藍牙主機控制介面 (virtual bluetooth host controller interface” 2及 虛擬藍牙射頻介面(virtual bluetooth RF Interface)13’ 並通過貫體通訊層(phySicai c〇m m unication layer) 14,以達成資料封包的傳送及接收。虛 擬監牙主機控制介面1 2模擬所有藍牙硬體的η c I介面所有 的動作,使得電腦主機就有如直接與藍牙硬體連線一樣。 在HC I介面所有的命令(commands )及事件(event s )之動 作’皆可由虛擬藍牙主機控制介面1 2模擬。由軟體開發工 作角_度來看,藍牙硬體因素所造成的錯誤,在本發明的虛 擬監牙主機控制介面1 2及虛擬藍牙射頻介面丨3係可以將之 控制或是避免,以利軟體開發工作的連線及除錯,經由虛 擬藍牙主機控制介面12及虛擬藍牙射頻介面13,可以加速 完成藍牙軟體協定層(blUet00th software pr〇t〇c〇1 1 a y e r )之開發。 圖三顯示圖二虛擬藍牙主機控制介面丨2的架構示意 504617 五、發明說明(4) 圖。虛擬藍牙主機控制介面1 2係至少由主機控制介面封包 處理(HCI packet process)120、連結鏈控制(iinkPage 6 504617 V. Description of the invention (3) In order to make the person skilled in the art understand the purpose, features and effects of the present invention, the following specific embodiments and the accompanying drawings are used to explain the present invention in detail. The description is as follows: Detailed description of the invention FIG. 2 shows a schematic diagram of an analog Bluetooth communication architecture according to the method of the present invention. The near-end computer host (10cal hst) 10 and the remote host (ll) of Fig. 2 pass through their respective virtual bluetooth host controller interface 2 and virtual Bluetooth radio frequency interface (virtual bluetooth RF Interface) 13 'and through the phySicai comm mmation layer 14 to achieve the transmission and reception of data packets. The virtual monitor host control interface 1 2 simulates the η c I interface of all Bluetooth hardware. The actions of the computer host are as if they are directly connected to the Bluetooth hardware. All commands and events in the HC I interface can be simulated by the virtual Bluetooth host control interface 12. Developed by software In terms of working angle, the errors caused by Bluetooth hardware factors can be controlled or avoided in the virtual monitor host control interface 12 and virtual Bluetooth radio frequency interface 丨 of the present invention to facilitate software development work. Connection and debugging, through the virtual Bluetooth host control interface 12 and virtual Bluetooth radio frequency interface 13, can complete the Bluetooth software protocol layer (blUet00th software pr〇t〇c〇1 1 ayer). Figure 3 shows the architecture of the virtual Bluetooth host control interface shown in Figure 2 丨 2 504617 V. Description of the invention (4) Figure. Virtual Bluetooth host control interface 1 2 at least by the host Control interface packet processing (HCI packet process) 120, link chain control (iink
control)121、連結鏈管理(link manager)122、 UA/UI/US 通道(UA/UI/US chanel)123、及封包編制(packet composer )12 4等所組成。主機控制介面封包處理12〇接收 上一層傳送下來的HCI命令,解析該HCI命令,執行該HCI 命令所需執行的程序。若這些程序係需要傳出訊息 (message),則經由連結鏈控制1 2 1、連結鏈管理ι 2 2、 UA/UI/US通道12 3等邏輯通道(i〇gicai channels)建立連control) 121, link manager 122 (link manager) 122, UA / UI / US channel (UA / UI / US chanel) 123, and packet composer 12 4 etc. The host control interface packet processing 120 receives the HCI command transmitted by the upper layer, parses the HCI command, and executes the program required to execute the HCI command. If these programs need to send messages (messages), the connection is established through logical channels (i0gicai channels) such as link control 1 2 1, link management ι 2 2, UA / UI / US channel 12 3, etc.
線及傳送資料,最後經由封包編制1 2 4建立封包後,傳送 至下一層。相對的另一方面,下一層亦會有其它電腦主機 的虛擬藍牙主機控制介面1 2傳來之封包,此時封包編制 1 2 4將其重新解開,分傳給各自的結鏈控制ι 2 ι、連結鏈管 理1 2 2、U A / U I / U S通道1 2 3等邏輯通道,最後交付主機控制 介面封包處理1 2 0來處理。The data is transmitted and transmitted. Finally, the packet is created through packet preparation 1 2 4 and then transmitted to the next layer. On the other hand, the next layer will also have packets from the virtual Bluetooth host control interface 12 of other computer hosts. At this time, the packet preparation 1 2 4 will unpack it and transfer it to the respective link control ι 2 ι, link chain management 1 2 2, UA / UI / US channel 1 2 3 and other logical channels, and finally delivered to the host control interface packet processing 1 2 0 for processing.
為支援HC I所定義一套的hc I封包,虛擬藍牙主機控制 介面1 2所處理的H C I封包,其每種封包可能含有命令或是 資料,主要的分類分別係:(1)連結鏈控制(link control) 協定的育料封包,其用於建立及切斷ACL連結U i nk)及SCO 連結;(2)連結鏈策略(i ink control p〇l icy )協定的資料 封包’其用於切換連線模式’包括了 a c t i v e模式(m o d e )、 lnQU1ry(詢問)模式、hold模式、sniff模式、及park模 式;(3)認證及加密(authentlcati ㈤ and encrypti〇n)協In order to support a set of HC I packets defined by HC I, the HCI packets processed by the virtual Bluetooth host control interface 12 may each contain commands or data. The main classifications are: (1) link chain control ( link control) protocol breeding packet, which is used to establish and cut off the ACL link U i nk) and SCO link; (2) the data packet of the link chain strategy (i ink control po icy) protocol, which is used to switch The "connection mode" includes active mode (mode), lnQU1ry (inquiry) mode, hold mode, sniff mode, and park mode; (3) authentication and encryption (authentlcati ㈤ and encrypti0n) protocol
第8頁 504617 五、發明說明(5) 定的資料封包,其用於使用P I N碼(C 〇 d e )及連結錄(1 i n k k e y )認證與加密,提升連線時安全性;(4 )參數設定 (parameters configuration)協定的資料封包,其用於修 改或讀取藍牙硬體上各項參數;(5 )硬體資訊及狀態 (hardware information and status)協定的資料封包, 其用於讀取硬體的資訊及狀態;(6)資料傳送(data ΐ r a n s m i s s i ο η )協定的資料封包,其用於傳送資料封包; (7 )流量控制(f 1 〇 w c〇n t r ο 1 )協定的資料封包,其用於避 免封包傳輸過快,造成電腦主機或藍牙硬體的緩衝器 (buf f er)無法消化,而造成緩衝器溢流(overn〇w)。 圖四a至圖四d顯示依據本發明方法的模擬藍牙通訊架 構進行處理HC I封包的示意圖。圖四a顯示傳送一般資料封 包的示意圖,例如一個一般資料封包丄〇 〇自近端電腦主機 1 0傳送至远端電腦主機11。圖四b顯示近端電腦主機發送 :σρ々封包至模擬藍牙硬體的示意圖,近端電腦主機1 0發 ,一個下命令封包1 〇 1給虛擬藍牙主機控制介面1 2,虛擬 藍牙主機控制介面丨2執行該下命令封包1 〇丨後,回應一個 事件v e n t)封包1 〇 2。圖四C顯示近端電腦主機的虛擬藍 牙主機控制介面發送要求(request)封包至遠端電腦主機 的f擬藍牙主機控制介面的示意圖,近端電腦主機丨〇的虛 疑二牙主枝控制介面1 2發送一個要求封包ΐ 〇 3至遠端電腦 主機u^虛擬藍牙主機控制介面丨2,然後遠端電腦主機丄i 的虛擬監牙主機控制介面1 2傳回一回應(response)封包Page 8 504617 V. Description of the invention (5) The specified data packet is used for authentication and encryption using PIN code (Code) and link record (1 inkkey) to improve the security during connection; (4) Parameter setting (parameters configuration) protocol data packet, which is used to modify or read various parameters on Bluetooth hardware; (5) hardware information and status protocol data packet, which is used to read hardware Information and status; (6) data packet of data transmission (data ΐ ransmissi ο η) agreement, which is used to transmit data packets; (7) flow control (f 1 〇wc〇ntr ο 1) data packet of agreement, which It is used to avoid the packet transmission too fast, which can cause the computer host or the Bluetooth hardware's buffer (buf er) to be unable to digest, resulting in buffer overflow (overn0w). Figures 4a to 4d show schematic diagrams of processing an HC I packet by an analog Bluetooth communication architecture according to the method of the present invention. Figure 4a shows a schematic diagram of transmitting a general data packet. For example, a general data packet is transmitted from the local computer host 10 to the remote computer host 11. Figure 4b shows the schematic diagram of the near-end computer host sending: σρ々 packets to the simulated Bluetooth hardware. The near-end computer host sends 10 packets, and a command packet is sent to the virtual Bluetooth host control interface 12 and the virtual Bluetooth host control interface.丨 2 After executing the command packet 1 〇 丨, it responds to an event (vent) packet 1 102. Fig. 4C shows a schematic diagram of the virtual Bluetooth host control interface of the near-end computer host sending a request packet to the f pseudo-Bluetooth host control interface of the remote computer host, and the hypothetical second tooth main branch control interface of the near-end computer host. 1 2 Send a request packet. 〇3 to the remote computer host u ^ Virtual Bluetooth host control interface 丨 2, and then the remote computer host 丄 i ’s virtual monitor host control interface 1 2 Return a response packet
第9頁 五、發明說明(6) -一_— __ 104至近端電腦主機10的虛 顯示當有事件(event)時,卢識牙主機控制介面12。圖四d 事件封包至電腦主機的示音I擬藍牙主機控制介面端傳送 主機1 1的虛擬藍牙主機控S°圖四d說明,當遠端電腦 個事件封包1 0 5至遠端電介面1 2發生一事件,其傳送一 11。 機1 1,以告知遠端電腦主機 依據本發明的方法,經 + 的封包,其加入一 BD jDD^4、业_械+監牙射頻介面13處理後Page 9 V. Description of the invention (6)-a __ __ 104 Virtual display to the near-end computer host 10 When there is an event, the control interface 12 of the Lu Zhiya host. Figure 4d. The sound packet of the event packet to the computer host. The virtual Bluetooth host control interface of the Bluetooth host control interface sends the host 1 1 virtual Bluetooth host control S. Figure 4d illustrates that when the remote computer has an event packet 105 to the remote electrical interface 1 An event occurs, which transmits a 11. Machine 11 to inform the remote computer host according to the method of the present invention, after adding a packet of +, it adds a BD jDD ^ 4, industry_machine + monitor RF interface 13 processing
型態(p a c k e ΐ t y p e )等資訊,麸/日守脈(C 1 0 c k )值及一封包 能在實體通訊層14傳輪的封勺然後會θ再將_其包封(Pack)成 廣播(broadcast)傳輸至所右使得可縊由貫體通訊層14 主機。圖五顯示經由虛擬藍牙同射:實入體上訊層的其它電腦 構圖。圖五的BD —ADDR2(^吃“/处理後的封包的結 值。時脈號的藍牙之BD —AI)DR 坏所杈擬的時脈值,當時脈值為 偶數時、,即為"主"電腦傳至”僕"電腦(master_>s丨的Type (packe ΐ type) and other information, the value of bran / Japanese guardianship (C 1 0 ck) and a packet can be sealed in the physical communication layer 14 transfer wheel and then θ will be packaged (packed) into a broadcast (Broadcast) transmission to the right makes it possible to pass through the host of the communication layer 14. Figure 5 shows the composition of other computers on the same layer of the real body via virtual Bluetooth. Figure 5: BD — ADDR2 (the value of the packet after processing / processing. The Bluetooth BD of the clock number — AI) DR is a clock value that is bad. When the clock value is even, it is " Master " Computer to "Servant" Computer (master_ > s 丨
封包’當時脈值為奇數時,即為”僕”電腦傳至,,主”電腦 (slave-〉master)的封包,並且”僕”電腦回應I,主”電腦的 時脈值係為π主π電腦傳來的時脈值加1。封包型態2 2係記 錄所傳輸封包的格式,其包括:i n q u i r y、 inquiry一response、 page、 page — response及其它隹寸包型 態。封包資料2 3存放著上一層傳下來的封包。藉此’當虛 擬藍牙射頻介面1 3利用下一層發送封包時,封包有可能 loopback回來,所加上的BD_ADDR值可以避免收到本身送When the packet value is odd, the packet is transmitted from the "slave" computer to the "master" computer (slave-> master), and the "slave" computer responds to I, and the clock value of the "master" computer is π master The clock value from π computer increases by 1. Packet type 2 2 records the format of the transmitted packet, which includes: i n q u i r y, inquiry-response, page, page-response, and other packet sizes. The packet information 2 3 stores the packets passed down from the previous layer. With this ’, when the virtual Bluetooth RF interface 1 3 uses the next layer to send a packet, the packet may be loopbacked back, and the added BD_ADDR value can avoid receiving the packet itself.
第10頁 504617 五、發明說明(7) 出 脈 B 疋 去又loopback回來的封包。同時,由BD — ADDI^配合時 值亦可得知封包係屬於那一個pic〇net。在每一個 Pi c〇net的”主π電腦之虛擬藍牙射頻介面13會記錄那些 BD — ADDR值係屬於本身pi conet内的”僕”電腦。當”主”電腦 接收到一個封包其BD — ADDR值確實屬於自己的„僕,,電腦,向 且時脈值亦為上一次”主”電腦發送的封包之時脈值加工 時,則可以確定所接收到的封包就是回應上個所發 包。在”僕"電腦的虛擬藍牙射頻介面13亦會記錄^些 BD —ADDR值係屬於自己的"主"電腦,當,,僕"電腦接收 個封包其BD一ADDR值確實屬於自己的”主”電腦, 、J AM-ADDR為自己的AM —ADDR,則可以確定所包接_ ’且封包的 自己的,’主,'電腦發送給”僕,,電腦。 舍的封包 依據本發明的方法,經由虛擬藍牙射頻介 inquiry封包,該inqUiry封包的資料攔内填义面13發送的 IAC(Inquiry Access Code)碼,並且其它所 — 上的電腦主機對於所接收到的i nqu丨ry封包,有比在-同一網路 inquiry封包的IAC^是否為所等待的lAc^,皆會檢查 (士 r u e )則回應一個i n q u i r y - r e s ρ ο n s e封包。果為真 機可以接收到連接在同一網路上其它電腦主2遊的電腦主 inqulry-response封包,此時發送的電腦主$所回應的 些其它電腦主機的BD_AD⑽值。依據本發1^明機即可獲得這 虛擬I牙射頻介面1 3發送的page封包,其封、勺方。去’經由 行page的所有電腦主機之BD — ADDR值及分、'包會填入要進 的 aIaddr,如Page 10 504617 V. Description of the invention (7) Pulse B 疋 Go to the packet returned by loopback. At the same time, it can be known by BD-ADDI ^ that the packet belongs to piconet. In each Pi Conet's "master π computer, the virtual Bluetooth radio interface 13 will record those BD-ADDR values belonging to the" slave "computer in its own pi conet. When the" master "computer receives a packet of its BD-ADDR The value really belongs to its own server, the computer, and the clock value is also the clock value of the last packet sent by the "master" computer. When it is processed, it can be determined that the received packet is a response to the last sent packet. The "Bluetooth" computer's virtual Bluetooth radio interface 13 will also record some BDs-the ADDR value belongs to its own "master" computer, when, the "receiver" computer receives a packet whose BD-ADDR value does indeed belong to itself "Master" computer, J AM-ADDR is its own AM-ADDR, then you can determine the packaged _ 'and the packet's own,' Master, 'computer to send to' Servant, 'computer. According to the method of the present invention, the packet is transmitted through the virtual Bluetooth RF interface inquiry packet, the data block of the inqUiry packet is filled with the IAC (Inquiry Access Code) code sent by the definition plane 13, and the host computer of the other The i nqu ry packet is better than the IAC ^ of the inquiry packet on the same network as the waiting lAc ^, all will check (Shi Rue) and respond with an inquiry-res ρ nose packet. If it is a real machine, it can receive the host inqulry-response packets of other hosts connected to the same network. At this time, the host BD_AD value of some other host computers that the host $ sent back responds to. The page packet sent by the virtual I-tooth RF interface 13 can be obtained in accordance with the present invention. Go to ’BD — ADDR values and points of all computer hosts that go through the page, and the packet will be filled with the aIaddr to be entered, such as
504617 五、發明說明(8) 果其它電腦主機如果同意連線,則會傳回一個 page-resp〇nse封包’抑或如果其它電腦主機不同意連 線,則不會傳回任何封包。 依據本發明的方法,經由主電腦主機(master computer host)的虛擬藍牙射頻介面13定時發送輪詢的 po 1 1封包,其用以確認連線的所有電腦主機是否仍在線 上。當”僕”電腦超過一段逾時時間(time〇ut peri〇d)未接 收到任何的主電知所發送的po丨1封包,則視為已斷線。 當”主π電腦發送pol 1封包給"僕”電腦,正常情況下的”僕” 電腦亦會傳回ρ ο 1 1 - r e s ρ ο n s e封包,如果,,主π電腦超過一 段逾時時間(t i m e 〇 u t p e r i 〇 d)並沒有接收到 Ρ 〇 1 1 - r e s ρ ο n s e封包,則視為”僕n電腦已斷線。 本發明的模擬藍牙通訊的方法,其極為適合以編寫 (coding)軟體方式來實現(implement),圖六顯示實施以 笔腦軟體貫現模擬藍牙通訊方法的流程圖。圖六的步驟3 0 係為:編寫一主機控制介面(HC I )程式碼,其用以模擬處理 ϋ亥監牙硬體在主機控制介面所有協定(p r 〇 t 〇 c 〇 1 )的資料封 包,使得該電腦執行該主機控制介面(HCI )程式碼後,能 夠模擬處理該主機控制介面所接收的資料封包。步驟3 0的 主機控制介面(HC I )程式碼,係以軟體手段實施虛擬藍牙 主機控制介面1 2。步,驟3 1係為:編寫^ 一虛擬監牙射頻介面 程式碼,其用以模擬該藍牙硬體’使得該電腦執行該虛擬504617 V. Description of the invention (8) If other computer hosts agree to connect, they will return a page-response packet, or if other computer hosts do not agree to the connection, no packets will be returned. According to the method of the present invention, polled po 1 1 packets are periodically sent via the virtual Bluetooth radio frequency interface 13 of the master computer host, which is used to confirm whether all connected computer hosts are still online. When the "slave" computer fails to receive any po1 packet sent by the main telegram for more than a period of time (time〇ut period), it is deemed to be disconnected. When the "host π computer sends pol 1 packet to the" quot "computer, the" serv "computer under normal circumstances will also return ρ ο 1 1-res ρ ο nse packet, if, the host π computer exceeds the timeout period (Time 〇utperi 〇d) did not receive the P 〇 1 1-res ρ ο nse packet, it is considered that "the computer is disconnected. The method of simulating Bluetooth communication according to the present invention is very suitable for coding. The software method is used to implement the implementation. Figure 6 shows the flow chart of implementing the Bluetooth communication method using pen-brain software. Step 30 in Figure 6 is: writing a host control interface (HC I) code, which is used to Simulates the data packets of all protocols (pr 〇 〇c 〇1) in the host control interface, so that the computer can simulate the host control interface (HCI) code after the computer executes the host control interface (HCI) code. Received data packets. The host control interface (HC I) code of step 30 is implemented by software as a virtual Bluetooth host control interface 1 2. Steps, steps 31 and 1 are: writing ^ a virtual monitor RF interface Code, which is to simulate the Bluetooth hardware 'cause the computer to execute the virtual
第12頁 504617 五、發明說明(9) |牙裎式碼後,能夠模擬該藍牙硬體的通訊及對該藍牙硬 體的設定,並將封包送至實體通訊層1 4。步驟3丨的虛擬藍 牙射頻介面程式碼,係以軟體手段實施虛擬藍牙射頻介面 步驟3 0的主機控制介面(H C I )程式碼其包括:一主機控 面封包處理程式碼(HCI packet processing program code)、一連結鏈控制程式碼(iink control program code)、一連結鏈管理程式碼(iink manager program code)、一 UA/UI/US通道程式碼(UA/UI/US chanel program code)、 一封包編制程式碼(packet c〇mp〇ser program code)。上述主機控制介面(HCI)程式碼所包括的 各個程式碼,其分別以軟體手段實施圖三的主機控制介面 封包處理1 2 0、連結鏈控制1 2 1、連結鏈管理1 2 2、 U A / U I ·/ U S通道1 2 3、及封包編制1 2 4等。 步驟3 1的虛擬藍牙射頻介面程式碼,其至少呈個 用於將步驟30的主機控制介面(HCI )程式碼所輸入/的 = BD-A_值、一時脈(Cl〇Ck)值及-封包型態 呈式碼。再者,步驟31的虛擬藍牙射頻介 呼叫(page)、及輪詢(?〇11)的資料封包的程】mq^y) 者,經電腦主機執行步驟31的虛擬藍牙射頻::二: 後,其能夠傳輪所模擬該藍牙硬體所要傳輪的: 504617 五、發明說明(ίο) 能夠在該二個 如使用乙太網 經執行虛擬藍 式碼所接收的 運用TCP/IP協 包。 再者,本 scatternet 白勺 連線功能的示 muti1-slave 牙硬體技術尚 例 電腦經由實體通訊層1 4傳輪該資料封勺 路(ethernet)作為實體通訊層14的具^ 牙射頻介面程式碼,將虛擬藍牙射领八例’ 命令及資料封包’再予包封(pack)為、程 定之UDP廣播協定在乙太網路上傳輪的封约在 步提供 muti 卜 slave pi c〇net 發明進 對多 連線傳輸,如圖七顯示依據本發明 〜 意圖,在圖七的虛擬藍牙主機控制么 • 」;丨面振 piconet、scatternet的連線傳輸,其 、幾Page 12 504617 V. Description of the invention (9) | After the flounder code, it can simulate the communication of the Bluetooth hardware and the settings of the Bluetooth hardware, and send the packet to the physical communication layer 14. The virtual Bluetooth radio frequency interface code of step 3 丨 is a software implementation of the virtual Bluetooth radio frequency interface step 3. The host control interface (HCI) code of step 30 includes: a host control plane packet processing program code , An iink control program code, an iink manager program code, a UA / UI / US channel program code, and a package Code (packet c〇mp〇ser program code). Each of the codes included in the above-mentioned host control interface (HCI) code implements the host control interface packet processing of FIG. 3 by software means 1 2 0, link control 1 2 1, link management 1 2 2, UA / UI · / US channel 1 2 3, and packet preparation 1 2 4 etc. The code of the virtual Bluetooth radio frequency interface of step 31 is at least one for inputting the host control interface (HCI) code of step 30 / = BD-A_ value, one clock (ClOCk) value, and- The packet type is coded. In addition, the virtual Bluetooth radio call of step 31 (page) and polling (? 〇11) of the data packet process] mq ^ y), the virtual Bluetooth radio of step 31 is executed by the computer host :: 2 :: It can transfer the ring simulated by the Bluetooth hardware: 504617 V. Description of the Invention (ίο) It can use the TCP / IP co-packaging received by the two by using the virtual blue code received by the Ethernet. Furthermore, the muti1-slave dental hardware technology of this scatternet connection function is still an example. The computer passes the physical communication layer 14 to pass the data. The ethernet is used as the physical communication layer 14 for the RF interface program. Code, the eight cases of virtual Bluetooth shooting command and data packets are repacked, and the scheduled UDP broadcast protocol is sealed on the Ethernet upload wheel. In this step, muti and slave pi c0net inventions are provided. Into-to-many connection transmission, as shown in Fig. 7 shows the intention according to the present invention. Is the virtual Bluetooth host in Fig. 7 controlled? "; 丨 surface transmission of piconet and scatternet.
未成熟時,提供完整的軟體測試環3竟N。t I 本發明的特點可以歸納如下所列: .本發明的虛擬藍牙主機控制介面及虛擬藍牙射 援藍牙HCI規格。 •本發明運用軟體模擬的方式,處理原先需藉由 與HCI相互傳送的資料。 貢介 面支 牙硬 體 .本發明運用虛擬藍牙射頻介面,處理原先需 頻硬體收送的資料封包。 藉由藍 牙射 •本發明運用支援藍牙H C I規格,以提供一個理相 …的軟體開When immature, a complete software test loop is provided. t I The features of the present invention can be summarized as follows: The virtual Bluetooth host control interface and virtual Bluetooth radio of the present invention support the Bluetooth HCI specification. • The present invention uses software simulation to process the data that was originally transmitted through HCI. Tributary interface supports dental hardware. The present invention uses a virtual Bluetooth radio frequency interface to process data packets originally received by the frequency hardware. By blue tooth shooting • The present invention uses a software that supports the Bluetooth H C I specification to provide a software package that can be used to ...
第14頁 504617 五、發明說明(11) 發環境,在軟體開發過程中可以不需要考慮藍牙硬體的瑕 疵,或是通訊障礙帶來的問題。 .本發明不須要使用藍牙晶片。 .本發明可以提供目前藍牙硬體尚未支援的功能,例如一 對多連線功能。 .本發明可以模擬各種突發狀況,以利軟體層測試各種突 發狀況的應對是否正常。 .本發明以電腦軟體實現模擬藍牙通訊的方法,使得花費 的成本低。 .本發明經由虛擬藍牙射頻介面可輕易支援各式網路通訊 協定。 .運用本發明所揭露的技術,可將其設計成S0C( System On Chip)的系統,成為一個不使用藍.牙晶片的藍牙等效系 統。 雖然本發明已以一較佳實施例揭露如上,然其並非用 以限定本發明,任何熟悉此技藝者,在不脫離本發明之精 神和範圍内,當可作各種之更動與潤飾,因此本發明之保Page 14 504617 V. Description of the invention (11) In the software development process, there is no need to consider Bluetooth hardware defects or problems caused by communication obstacles during the software development process. The invention does not require the use of a Bluetooth chip. The present invention can provide functions not currently supported by Bluetooth hardware, such as a one-to-many connection function. The present invention can simulate various emergencies, so that the software layer can test whether the response to various emergencies is normal. The present invention uses computer software to implement a method for simulating Bluetooth communication, so that the cost is low. The present invention can easily support various network communication protocols through a virtual Bluetooth radio frequency interface. Using the technology disclosed in the present invention, it can be designed as a System On Chip (SOC) system, and becomes a Bluetooth equivalent system without using a Bluetooth chip. Although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Anyone skilled in the art can make various changes and decorations without departing from the spirit and scope of the present invention. Invention guarantee
第15頁 504617Page 15 504617
第16頁Page 16
504617 圖式簡單說明 圖式簡單說明 圖 一 顯 示 習知藍 牙 通 訊 的 示 意 圖 〇 圖 二 顯 示 依據本 發 明 方 法 的 模 擬 藍 牙 通 訊 架 構 示 意 圖 〇 圖 二 顯 示 圖二虛 擬 藍 牙 主 機 控 制 介 面 1 2的 架 構 示 意 圖 0 圖 四 a至圖四d顯 示 依 據 本 發 明 方 法 的 模 擬 藍 牙 通 訊 架 構 進 行 處 理 H CI封包的示意圖f 5 圖 五 顯 示 經由虛 擬 藍 牙 射 頻 介 面 處 理 後 的 封 包 的 結 構 圖 0 圖 六 顯 示 貫施以 電 腦 軟 體 實 現 模 擬 藍 牙 通 訊 方 法 的 流 程 圖 〇 圖 七 顯 示 依據本 發 明 5 一 對 多 連 線 功 能 的 示 意 圖 0 圖號綸號說明 10 近端電腦主機 11 遠端電腦主機 12 虛擬藍牙主機控制介面 13 虛擬藍牙射頻介面 14 實體通訊層504617 Brief description of the diagram Brief description of the diagram Figure 1 shows a schematic diagram of a conventional Bluetooth communication. Figure 2 shows a schematic diagram of an analog Bluetooth communication architecture according to the method of the present invention. Figure 2 shows a schematic diagram of the architecture of a virtual Bluetooth host control interface 12 in Figure 2. Figures 4a to 4d show schematic diagrams of processing H CI packets according to the simulated Bluetooth communication architecture of the method of the present invention. F 5 Figure 5 shows the structure of a packet processed through a virtual Bluetooth RF interface. Figure 6 shows the implementation of computer software. Flow chart of a method for simulating Bluetooth communication. Figure 7 shows a schematic diagram of the one-to-many connection function according to the present invention. 0 Drawing number description 10 Local computer host 11 Remote computer host 12 Virtual Bluetooth host control interface 13 Virtual Bluetooth radio frequency interface 14 Physical communication layer
20 BD.ADDR 2 1 時脈 22 封包型態 2 3 封包資料20 BD.ADDR 2 1 clock 22 packet type 2 3 packet information
第17頁 504617 圖式簡單說明 30 編寫一主機控制介面(HC I )程式碼的步驟 31 編寫一虛擬藍牙射頻介面程式碼的步驟 10 0 一般資料封包 101 下命令封包 102 事件封包 103 要求對方反應封包 104 回應封包 105 事件封包 120 主機控制介面封包處理 121 連結鏈控制 122 連結鏈管理 123 UA/UI/US 通道 1 24 封包編制Page 17 504617 Brief description of the diagram 30 Steps of writing a host control interface (HC I) code 31 Steps of writing a virtual Bluetooth RF interface code 10 0 General data packet 101 Order packet 102 Event packet 103 Request the other party to respond to the packet 104 Response packet 105 Event packet 120 Host control interface packet processing 121 Link chain control 122 Link chain management 123 UA / UI / US Channel 1 24 Packet preparation
第18頁Page 18
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW090102487A TW504617B (en) | 2001-02-06 | 2001-02-06 | Method using computer software to implement simulated bluetooth communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW090102487A TW504617B (en) | 2001-02-06 | 2001-02-06 | Method using computer software to implement simulated bluetooth communication |
Publications (1)
Publication Number | Publication Date |
---|---|
TW504617B true TW504617B (en) | 2002-10-01 |
Family
ID=27607815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW090102487A TW504617B (en) | 2001-02-06 | 2001-02-06 | Method using computer software to implement simulated bluetooth communication |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW504617B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069258A (en) * | 2019-04-25 | 2019-07-30 | 北京百瑞互联技术有限公司 | A kind of two number generating method of HCI code |
-
2001
- 2001-02-06 TW TW090102487A patent/TW504617B/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110069258A (en) * | 2019-04-25 | 2019-07-30 | 北京百瑞互联技术有限公司 | A kind of two number generating method of HCI code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104753817B (en) | A kind of cloud computing Message Queuing Services local analogy method and system | |
CN104955074B (en) | Test device and test method | |
JP2019516171A5 (en) | ||
CN114500351B (en) | Network performance test method, device, equipment and storage medium | |
CN109286593A (en) | Transmit method and device, computer equipment and the storage medium of reconnection | |
CN108833542A (en) | The upgrade method and TWS earphone of TWS earphone | |
CN109981360A (en) | Internet of things equipment website activating method, device, system and storage medium | |
CN104883277B (en) | A kind of information interacting method and system based on BMC | |
CN113848850B (en) | BSP board card bus interface testing method, device and storage medium | |
TWI253586B (en) | Control system for controlling a plurality of computers | |
CN112804202B (en) | Multi-internetwork data security interaction method and device, server and storage medium | |
TW504617B (en) | Method using computer software to implement simulated bluetooth communication | |
JP2004228762A (en) | Test apparatus, mobile terminal apparatus and test method | |
CN101072135A (en) | Wireless LAN testing method and system | |
CN102393887B (en) | Application centralized management system and method based on Linux security module (LSM) mechanism | |
CN109992430A (en) | A kind of data transmission method, first terminal and second terminal | |
CN100508636C (en) | Detecting device and method for RNC air interface | |
JP2004112163A (en) | Mobile station tester | |
CN107786411A (en) | Inter-application communication tunnel connection/verification method/system, medium and equipment | |
JPH0473178B2 (en) | ||
CN113726796B (en) | Data interaction method, device, equipment and medium based on medical internet of things | |
CN109962962A (en) | A kind of method and apparatus of socket connection | |
CN109120697A (en) | A kind of service calling method and device based on network communication | |
KR100701421B1 (en) | Virtual communication module and method of verifying communication method using the same | |
CN109246733A (en) | User equipment and correlation technique |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent | ||
MM4A | Annulment or lapse of patent due to non-payment of fees |