TW201028860A - An USB dongle and its interior data transmission method - Google Patents

An USB dongle and its interior data transmission method Download PDF

Info

Publication number
TW201028860A
TW201028860A TW98103002A TW98103002A TW201028860A TW 201028860 A TW201028860 A TW 201028860A TW 98103002 A TW98103002 A TW 98103002A TW 98103002 A TW98103002 A TW 98103002A TW 201028860 A TW201028860 A TW 201028860A
Authority
TW
Taiwan
Prior art keywords
signal
usb
data
controller
unit controller
Prior art date
Application number
TW98103002A
Other languages
Chinese (zh)
Inventor
Wen-Xian Lv
Original Assignee
Formosa Ind Computing Inc
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 Formosa Ind Computing Inc filed Critical Formosa Ind Computing Inc
Priority to TW98103002A priority Critical patent/TW201028860A/en
Publication of TW201028860A publication Critical patent/TW201028860A/en

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

This invention relates to an USB dongle and its interior data transmission method. The USB dongle at least includes one memory module, which is an electronic data storage medium; at least one functional device; and a control circuit for receiving and processing the signals emitted from different functional devices and the memory module. The interior data transmission method of the USB dongle includes: packaging the signal of functional device into an information packet, and the functional device sending the information packet to the control circuit for performing the information packet transmission. Therefore, this invention is capable of using one single USB port to connect multiple devices of different functions to the host for transmission, and using the operation of firmware simulated hub to achieve the effects of circuit independency of each device, simplification of the entire circuit, and well-utilization of system resources.

Description

201028860 六、發明說明: •«1 【發明所屬之技術領域】 本發明是關於一種USB附接器及其内部資料傳輸方法,特別 係指一種利用韌體模擬實體集線器以具有複數功能之USB附接器 及其内部資料傳輸方法。 【先前技術】 隨著資訊科技的進步,各種多樣化功能之可攜式電子產品及電 腦週邊裝置也因應人們生活上的方便與需要而相繼的被開發出 ❹ 來 。例如’:各種規格廠牌之記憶卡(Memory Card)及其讀卡機 (Card Reader)、俗稱大拇哥的隨身碟(Fiash Disk)、外接式硬碟 機(Portable Hard Disk)、數位相機(Digital Camera)、MP3 播放 機(MP3 Player )、甚至是各類電腦滑鼠(M〇use )、鍵盤 (Keyboard)、印表機(Printer)等。 然而,上述之電子產品或電腦週邊裝置,需藉由和電腦主機連 接以進行資訊的傳輸或交換,其中,用以整合讓各種規格不同產 品與電腦主機交換資訊所使用之通用序列匯流排(Universal SeHal O Bus,USB)便是目前主流資料通訊傳輸協定,因此,人們可以在 任何擁有USB接口的電腦主機上,方便地存取檔案資料。 不過,USB於現實生活的使用上還是會遇到一些困擾與不便, 特別在於電腦主機所提供的USB接口數量不敷使用時,例如:一 般的筆記型電腦(Notebook)因受限於體積大小,通常只提供有 ,兩個USB接口’倘若使用者欲使用兩個以上USB附接器( D〇ngle)來連接該筆記型電腦(例如:同—時間需要使用藍牙傳 輸、外接鍵盤、外接滑鼠和隨身碟),勢必要於該複數個USB附 3 201028860 , 接器間輪流進行拔插動作,造成使用上的不方便。 因此’許多電子製造廠商無不努力整合多個USB附接器於單 一個USB附接器以便讓使用者能更彈性的使用有限的USB接口, 其中,台灣新型專利第2 6 〇 9 5 8號,曾揭露出將USB擴充器 (USBHUB)和USB無線傳輸器(USB Dongle)結合在一起,並 藉由數位延遲電路來避免訊號干涉的一種USB無線傳輸器。 美國專利第5890015號亦揭露出一種在USB堆疊之系統中加 入無線USB主機(HOST),以延伸整個USB系統,然而該案中所 參 揭露之USB擴充器(USB HUB)與無線USB主機係分別獨立分 開之兩個裝置,並非結合成一體之單一裝置。 然而,上述之相關前案大多藉由内嵌式之實體集線器,雖可透 過電路晶片的方式將複數個USB裝置整合成單一 USB裝置,但各 自USB裝置仍視為獨立之USB裝置並擁有各自獨立之Usb電 路,換言之,整合後於使用上如同一般的USB裝置,卻因電路的 整合使得内嵌式實體集線器之電路具有重複性、較複雜性和資源 浪費的缺點。 φ 因此,若能提供一種在不增加電路設計複雜程度即可整合多個 USB裝置於一 USB裝置的方法及附接器,以改採用韌體模擬集線 器的功能來進行訊號的傳輸/接收,勢必能解決上述相關前案電路 設計複雜之問題。 【發明内容】 本發明之主要目的係提供一種USB附接器,其至少包括有一 功能裝置和一記憶模組,可供使用者透過單一組1^8介面連接於 一主機以進行特定功能(例如〔無線傳輸)和資料存取,進而藏 201028860 少使用主機上USB槔的數量。 本發明之另一目的係提供一種USB附接器 法連其不使用任何實趙集線器,而係利用_來模部資 以連接至少-個擁有電路獨立㈣功能裝置 ㈣線器功能 充功能裝置數量的增加而増加電路設計的複雜程户。需擔、因擴 為達上述之目的,本發明之USB附接器,係包括有. 一記憶模組,係一種電子資料之儲存媒介; 至少一個功能裝置,係具有特殊功能導向之裝置. —序列介面引擎,係與-主機之USB連接 腦規範之通㈣定與主機進行溝通,_處理^=接’透過 附接器間所傳㈣滅·, 4理該主機與該咖 該記:=電路’係?j連接於該序列介面料、該功能震置及 ^轉換成-符合娜職之通訊協定的訊號傳送至該序列介面 ❹ 法,tr之又一目的在純供-種USB附接器内部資料傳輸方 =用料封包格式包裹由不同功能裝置所發送之資料,使 USB進^溝個功能裝置之資料得以獨立運作,再統'與主機之 你利達上述之目的本發明之USB附接器内部資料傳輸方法, 沖/少包括有—控制電路和至少—功能裝置之刪附接器, β玉1;路至少包括有一單元控制器和一主控制器,其中,該單 5 201028860 元控制器更包括有一緩衝資料區與一封包處理區,該單元控制器 與該主控制器之間聯繫介面透過一串列資料(SDA)通道、一串 列時脈(SCL)通道及一中斷要求(Interrupt Request, IRQ)通道 以進行資料傳輸,該單元控制器傳送資料給主控制器的USB附接 器内部資料傳輸方法,係包括有以下步驟: 步驟1:該功能裝置將一訊號傳送至對應之單元控制器中的 緩衝資料區; 步驟2:該單元控制器透過該中斷要求通道發送一中斷請求 〇 訊號至該主控制器; 步驟3:該主控制器回應該單元控制器的中斷請求; 步驟4 :該單元控制器於收到該主控器的回應後,停止該中 斷請求以準備接收該單元控制器欲傳送之資料,並透過該串列資 料通道和該串列時脈通道的高低電位轉換進行資料封包的傳輸; 步驟5:該單元控制器中的封包處理區讀取儲存於該緩衝資 料區的訊號,並將該訊號轉換成該主控制器可讀取之資料格式來 〇 包袠成一資料封包; 步驟6 :當該主控制器完成資料接收完畢後,發送一訊號來 通知該單元控制器並結束該資料封包的傳輸。 因此,藉由上述之步驟,本發明之USB附接器及其内部資料 傳輸方法可將至少一個功能裝置利用單一 USB埠連接至一主機進 行傳輸,利用韌體來模擬集線器的工作以達到各功能裝置的電路 獨立、簡化整體電路及系統資源妥善利用等功效。 【實施方式】 201028860 • 為使熟悉該項技藝人士暸解本發明之目的,兹配合圖式將本發 明之較佳實施例詳細說明如下。 請參考第一圖所示,本發明之USB附接器(i)實施例,係 包括有: ' 至少一個功能震置(1 2 ),係一具有特殊功能導向之裝置, 例如一具有藍牙傳輸功能的裝置; —序列介面引擎(1 〇),係與一主機之USB連接辞·相互連接, 透過USB規範之通信協定與該主機進行溝通,用以處理該主機與 & 該USB附接器(1 )間所傳輸的訊號; 一控制電路(1 1 ),係分別連接於該序列介面引擎(1 〇 ) 及該功能裝置(1 2 )以接收與處理不同功能裝置(丄2 )所發 送之訊號,並將該訊號轉換成一符合USB規範之通訊協定的訊號 來傳择至該序列介面引擎(1〇 )。 請參考第一及二a圖所示,上述之控制電路(丄1 )不含内嵌 式的實體集線器,係透過韌體進行模擬集線器之工作來使得至少 一個功能裝置(1 2)得以透過單一的USB連接埠與該主機進行 φ 溝通,該控制電路(1 1 )係包括有: 至少一個單元控制器(1 1 1 ),係對應於該功能裝置(i 2 ) 來接收和處理該功能裝置(12)所傳送過來的訊號; 一主控制器(1 1 2 )’係揍收該單元控制器(1 1 1 )所傳 送之訊號’將該訊號轉換成一符合USB規範之通訊協定的訊號來 傳送至該序列介面引擎(1 〇 ); ,一震盪器(1 1 3),係一石英震盪元件,分別用於提供該主 控制器(1 1 2)及該單元控制器(1 1 1 )工作所需之工作時 脈0 7 201028860 及二b圖,上述之單元控制器(1 1 1 )更 請參考第一、二 包括有: 緩衝資料區(1 1 1 1 ),係暫時儲存由該功能裝置(1 2 ) 所傳送過來之訊號; 封包處理區(11 12),係讀取該緩衝資料區(1 1 1 1 ) 之訊號,並將該訊號轉換成一主控制器(1 1 2)可讀取之格式 來傳送至主控制器(1 1 2 )。 ❹ 請參考第二c圖所示,上述之單元控制器(1 1 1 )與該主控 制器(1 1 2 )之間聯繫介面,係透過一串列資料(SerialDataLink) 通道(SDA)、-串列時脈(Serial cl〇ek Link)通道(s c ^ ) 及-中斷要求(intemipt Request)通道(〗RQ)來進行訊號發 送與接收,其中,上述之通道(sda,scL,irq)具有高 電位與低電位的兩種狀態。 -請參考第—圖所不’係、本發明之另—實施例,其與上述實施例 略同’不同之處在於該USB附接器(1)中更包括有—符合卿 傳輸規格之記憶模組(13 )’其中’該功能裝置(1 2 )為一遙 控模組(1 2 a )’本實施例可供一業務人員攜帶該腦附接器 (1)至客戶端’並將業務簡報資料儲存至該記憶模組(i 3) 中’故不需要機帶沉重的筆記型電腦,僅需將該刪附接器(1) 連接至客戶端主機(2 )的刪連接埠中,即可透過—外部遙控 器(1 2 b )對應遙控該’USB附接器f 1、 m υί> (1 )以進行業務簡報。 上述之記憶模組(1 3)包括有: -記憶體(1 3 i ),係-種非揮發性固態儲存記憶體(例如: 快閃記憶體); -記憶模組㈣器(i 3 2 ) ’係發送—控制訊號至該記憶體 8 201028860 • (131)或該控制電路(ll)以對應傳送資料; . 一防寫保護開關(1 3 3 ),係用於設定該記憶模組(1 3 ) 是否可以接受外部資料存入該記憶體(131)中,其中,該防 寫保護開關(1 3 2)可以為任一形式,包括設置一實體開關以 供使用者手動打開或關閉,或者透過軟體的執行作為一種虛擬的 開關以進行開閉控制; 一指示燈(1 3 4 ),係一發光二極體元件(ueD)元件,用 以顯示該記憶模組(1 3)的工作狀態(例如:該控制電路(工 φ 1 )自該記憶模組(1 3)進行資料讀取時,該指示燈(丄3 4) 將快速閃爍)。 上述之遙控模組(1 2 a ),係一種無線接收器,該遙控模組 (1 2 a )係接收該遙控器(1 2 b)所發送之一控制訊號,其 中’該控制訊號的種類可以為一 IEEE 802.15.1無線訊號、一 JEEE 802.15.4無線訊號或IEEE 802.llx無線訊號,該遙控模組(1 2 a)係包括有: 一天線(121),係用以接收該遙控器(1 2 b )所傳送之 φ 控制訊號; 一解碼器(122)’係將自該天線(121)所接收之控制 訊號進行解碼後傳送至該控制電路(1 1 ); 一震盪器(1 2 3 )’係一石英震盪元件,用於提供該解碼器 (1 2 2 )工作所需的工作時脈; 一指示燈(1 2 4 ),係一發光二極體(led)元件,用以顯 - 不該遙控模組(1 2 a )的工作狀態(例如:當遙控模組(1 2 a )於接收到該遙控器(1 2 b )所傳來的控制訊號時,該指示 燈(1 2 4 )將快速閃爍)。 201028860 - 因此’ #業務人員攜帶該USB附接器(!)至客戶端並將該 職附接器(1 )連接至客戶端主機(2 )之USB埠時,原先預 ,於該β&憶模組(1 3 )中的簡報應用程式透過該記憶模組控制 器(1 3 2)讀取後自動載入客戶端之主機(2)並呼叫該簡報 資料’例如該簡報資料係一 PowerPoint構案,故對應執行該主機 (2 )之PowerPoint的應用程式,待p〇werp〇int播案開啟後,該 業務人員得以透過遙控模組(i 2 a )和遙控器(i 2 b )以進 行簡報。 〇 明參考第一、二b、二c及四圖所示,本發明之USB附接器内 邛資料傳輸方法係應用於一至少包括有一控制電路(1 1)和一 功能裝置(1 2 )的USB附接器(1 ),該控制電路(1 1 )至 少包括有一單元控制器(i丄丄)和一主控制器(i丄2 ),該單 疋控制器(1 1 1 )包括有—緩衝暫存區(i i 1 i )和一封包 處理區(1 1 1 2 ),其中,該單元控制器(i n )與該主控制 器(1 1 2 )係透過一串列資料通道(s DA)、一串列時脈通道 (s C L)及一中斷要求通道(〗RQ)之聯繫介面來進行資料 Q 傳輸’該内部傳輸方法包括有以下步称: 步称1 (40):該功能裝置(1 2)發送一訊號至對應之單 凡控制器(1 1 1 )中的緩衝資料區(丄1 1 1 ); 步驟2 ( 4 1 ):該單元控制器(1 1 1 )透過該中斷要求通 道發送一中斷請求訊號至該主控制器(1 1 2 ); 步驟3 (42):該主控制器(1 1 2)回應該單元控制器(1 、 11)的中斷請求; 步驟4 ( 4 3 ):該單元控制器(1 1 1)於收到該主控器(1 1 2)的回應後’停止該中斷請求以準備接收該單元控制器(1 201028860 1l)欲傳送之次 列時脈通道(s:、,並,該串列資料通道(SDA)和該串 步驟5L力尚低電位轉換進行資料封包的傳輸; 112)讀取儲存 =單元控制器(111)中的封包處理區(1 訊號轉換成料區U 11 D的訊號,並將該 資料封包; (1 1 2 )可讀取之㈣格式來包裹成一 112)完成資料接收完畢 (1 1 1 )並結束該資料封 步驟6 ( 4 5 ):當該主控制器( 〇201028860 VI. Description of the invention: • «1 Technical Field of the Invention The present invention relates to a USB connector and an internal data transmission method thereof, and more particularly to a USB connection using a firmware-simulated physical hub to have a plurality of functions. And its internal data transmission method. [Prior Art] With the advancement of information technology, portable electronic products and computer peripheral devices with various functions have been developed in response to the convenience and needs of people's lives. For example, ': Memory Cards and Card Readers of various specifications, Common Names (Fiash Disk), Portable Hard Disks, Digital Cameras (Digital Camera) ), MP3 player (MP3 Player), and even various types of computer mouse (M〇use), keyboard (Keyboard), printer (Printer) and so on. However, the above-mentioned electronic products or computer peripheral devices need to be connected to a computer host for information transmission or exchange, and a universal serial bus used for exchanging information between various products of different specifications and a computer host (Universal) SeHal O Bus (USB) is the current mainstream data communication protocol, so people can easily access file data on any computer host with a USB interface. However, USB still encounters some troubles and inconveniences in real life use, especially when the number of USB interfaces provided by the host computer is insufficient. For example, the general notebook computer (Notebook) is limited by the size. Usually only available, two USB ports 'If the user wants to use more than two USB adapters (D〇ngle) to connect to the notebook (for example: same time to use Bluetooth transmission, external keyboard, external mouse And the pen drive), it is necessary to use the multiple USB attached 3 201028860, and the inter-connector takes turns to perform the plugging and unplugging action, resulting in inconvenience in use. Therefore, many electronics manufacturers are working hard to integrate multiple USB adapters into a single USB connector to allow users to use the limited USB interface more flexibly. Among them, Taiwan's new patent No. 2 6 〇 9 5 8 A USB wireless transmitter that combines a USB extender (USBHUB) and a USB wireless transmitter (USB Dongle) and avoids signal interference by a digital delay circuit has been revealed. U.S. Patent No. 5,890,015 also discloses a wireless USB host (HOST) added to the USB stacking system to extend the entire USB system. However, the USB expander (USB HUB) and the wireless USB host system disclosed in the case respectively The two separate devices are not a single unit that is integrated into one. However, most of the above related cases are integrated into a single USB device through a built-in physical hub. Although the USB devices are integrated into a single USB device through a circuit chip, the respective USB devices are still regarded as independent USB devices and have independent functions. The Usb circuit, in other words, is integrated and used as a general USB device, but the circuit of the embedded physical hub has the disadvantages of repetitiveness, complexity and waste of resources due to the integration of the circuit. φ Therefore, if a method and an attachment for integrating a plurality of USB devices into a USB device without increasing the complexity of the circuit design can be provided, the function of the firmware analog hub is used to transmit/receive signals, which is bound to be It can solve the complicated problem of the circuit design of the above related previous cases. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a USB connector that includes at least one functional device and a memory module that allows a user to connect to a host through a single set of interfaces to perform specific functions (eg, [Wireless transmission) and data access, and then the number of USB ports on the host is less than 201028860. Another object of the present invention is to provide a USB connector method that does not use any real-mode hub, but utilizes the _ module to connect at least one of the independent (four) function devices (four) line function charging devices. The increase is added to the complexity of the circuit design. The USB connector of the present invention includes a memory module, which is a storage medium for electronic data, and at least one functional device, which is a device with special function guidance. The serial interface engine is connected to the USB connection of the host computer (4) to communicate with the host, _ processing ^ = connected 'transmitted through the attachment (four) off ·, 4 the host and the coffee the note: = Circuit 'system? j is connected to the serial fabric, the function is shocked, and the signal converted into a communication protocol is transmitted to the serial interface method, and another purpose of the tr is in the pure data supply of the USB connector. Fang = use the material package format to wrap the data sent by different functional devices, so that the data of the USB function device can be operated independently, and then the internal data of the USB connector of the present invention with the purpose of the above-mentioned host The transmission method, the rush/small includes a control circuit and at least a function device de-attach connector, the β jade 1; the road at least includes a unit controller and a main controller, wherein the single 5 201028860 yuan controller further includes There is a buffer data area and a packet processing area, and the interface between the unit controller and the main controller passes through a serial data (SDA) channel, a serial clock (SCL) channel, and an interrupt request (Interrupt Request, IRQ) channel for data transmission, the unit controller transmits data to the main controller's USB adapter internal data transmission method, which includes the following steps: Step 1: The function device will send a signal Sent to the buffer data area in the corresponding unit controller; Step 2: The unit controller sends an interrupt request signal to the main controller through the interrupt request channel; Step 3: The main controller returns to the unit controller Interrupt request; Step 4: After receiving the response from the master, the unit controller stops the interrupt request to prepare to receive the data to be transmitted by the unit controller, and transmits the serial data channel and the serial clock The high-low potential conversion of the channel performs data packet transmission; Step 5: The packet processing area in the unit controller reads the signal stored in the buffer data area, and converts the signal into a data format readable by the main controller. Step 6: After the main controller finishes receiving the data, send a signal to notify the unit controller and end the transmission of the data packet. Therefore, by the above steps, the USB adapter of the present invention and the internal data transmission method thereof can connect at least one function device to a host for transmission by using a single USB port, and use the firmware to simulate the work of the hub to achieve each function. The circuit of the device is independent, and the overall circuit and system resources are properly utilized. [Embodiment] 201028860 In order to make the person skilled in the art understand the purpose of the present invention, the preferred embodiments of the present invention will be described in detail below with reference to the drawings. Referring to the first figure, the USB adapter (i) embodiment of the present invention includes: 'at least one function is set (1 2 ), which is a device with special function guidance, such as a Bluetooth transmission. Functional device; - Serial interface engine (1 〇), which is connected to a USB connection of a host, communicates with the host through a USB protocol communication protocol, and processes the host and the USB connector (1) The transmitted signal; a control circuit (1 1 ) connected to the serial interface engine (1 〇) and the functional device (1 2 ) for receiving and processing different functional devices (丄2) The signal is converted to a signal conforming to the USB specification for transmission to the serial interface engine (1). Please refer to the first and second diagrams. The above control circuit (丄1) does not include an embedded physical hub. The analog hub works through the firmware to enable at least one functional device (1 2) to pass through a single device. The USB port communicates with the host φ, and the control circuit (1 1 ) includes: at least one unit controller (1 1 1 ) corresponding to the function device (i 2 ) for receiving and processing the function device (12) The transmitted signal; a main controller (1 1 2 ) 'receives the signal transmitted by the unit controller (1 1 1 ) to convert the signal into a communication protocol conforming to the USB specification. Transfer to the serial interface engine (1 〇); an oscillator (1 1 3) is a quartz oscillating component for providing the main controller (1 1 2) and the unit controller (1 1 1 ) The working clock required for the work is 0 7 201028860 and the second b diagram. The above unit controller (1 1 1 ) is also referred to the first and second. The buffer data area (1 1 1 1 ) is temporarily stored by the Signal transmitted by the functional device (1 2 ); packet processing area (11 12), reading the signal of the buffer data area (1 1 1 1 ), and converting the signal into a readable format of the main controller (1 1 2) for transmission to the main controller (1 1 2 ). ❹ Refer to the second c diagram, the interface between the unit controller (1 1 1 ) and the main controller (1 1 2) is transmitted through a serial data (SerialDataLink) channel (SDA), - The serial cl〇ek Link channel (sc ^ ) and the -intermitt request channel (〗: RQ) are used for signal transmission and reception, wherein the above channels (sda, scL, irq) have high Two states of potential and low potential. - Please refer to the second embodiment of the present invention, which is a different embodiment of the present invention, which is different from the above embodiment in that the USB connector (1) further includes a memory conforming to the transmission specification. Module (13) 'where 'the functional device (1 2 ) is a remote control module (1 2 a )' This embodiment is for a business person to carry the brain attachment (1) to the client' and the business The profile data is stored in the memory module (i 3). Therefore, it is not necessary to have a heavy notebook computer. Simply connect the add-on connector (1) to the delete port of the client host (2). The 'USB Attacher f1, m υί> (1) can be remotely controlled via the external remote control (1 2 b) for business briefing. The above memory module (13) includes: - a memory (1 3 i ), a non-volatile solid state storage memory (for example: flash memory); - a memory module (4) (i 3 2) ''Send-control signal to the memory 8 201028860 • (131) or the control circuit (ll) to transmit data accordingly; . A write-protect switch (1 3 3) is used to set the memory module ( 1 3) Whether external data can be stored in the memory (131), wherein the write-protect switch (1 32) can be in any form, including setting a physical switch for the user to manually open or close, Or through the execution of the software as a virtual switch for opening and closing control; an indicator light (1 3 4) is a light-emitting diode element (ueD) component for displaying the working state of the memory module (13) (For example, when the control circuit (work φ 1) reads data from the memory module (1 3), the indicator light (丄3 4) will flash rapidly). The remote control module (1 2 a ) is a wireless receiver, and the remote control module (1 2 a ) receives a control signal sent by the remote controller (1 2 b), wherein 'the type of the control signal It can be an IEEE 802.15.1 wireless signal, a JEEE 802.15.4 wireless signal or an IEEE 802.11x wireless signal. The remote control module (1 2 a) includes: an antenna (121) for receiving the remote control The φ control signal transmitted by the device (1 2 b ); a decoder (122) transmits the control signal received from the antenna (121) to the control circuit (1 1 ); an oscillator ( 1 2 3 ) ' is a quartz oscillator component for providing the working clock required for the operation of the decoder (1 2 2 ); an indicator light (1 2 4 ) is a light-emitting diode (led) component, Used to display the operating state of the remote control module (1 2 a ) (for example, when the remote control module (1 2 a ) receives the control signal from the remote control (1 2 b ), the indication The light (1 2 4 ) will flash quickly). 201028860 - So '# business personnel carry the USB adapter (!) to the client and connect the service adapter (1) to the USB port of the client host (2), the original pre-, in the beta & The briefing application in the module (13) is read by the memory module controller (1 32) and automatically loaded into the host (2) of the client and called the briefing material. For example, the briefing data is a PowerPoint structure. Therefore, the application corresponding to the PowerPoint of the host (2) is executed, and after the p〇werp〇int broadcast is opened, the business personnel can use the remote control module (i 2 a ) and the remote controller (i 2 b ). briefing. Referring to the first, second, second, second and fourth figures, the USB adapter internal data transmission method of the present invention is applied to at least one control circuit (1 1) and a functional device (1 2). USB connector (1), the control circuit (1 1 ) includes at least a unit controller (i丄丄) and a main controller (i丄2), the unit controller (1 1 1 ) includes a buffer temporary storage area (ii 1 i ) and a packet processing area (1 1 1 2 ), wherein the unit controller (in) and the main controller (1 1 2) are transmitted through a series of data channels (s DA), a serial clock channel (s CL) and an interrupt request channel (〗 RQ) interface for data Q transmission 'The internal transmission method includes the following steps: Step 1 (40): This function The device (12) sends a signal to the buffer data area (丄1 1 1 ) in the corresponding controller (1 1 1 ); Step 2 (4 1 ): the unit controller (1 1 1 ) transmits the The interrupt request channel sends an interrupt request signal to the main controller (1 1 2 ); Step 3 (42): The main controller (1 1 2) responds to the interruption of the unit controller (1, 11) Step 4 ( 4 3 ): After receiving the response from the master (1 1 2), the unit controller (1 1 1) stops the interrupt request to prepare to receive the unit controller (1 201028860 1l) The sub-clock channel to be transmitted (s:,, and, the serial data channel (SDA) and the string 5L force low potential conversion for data packet transmission; 112) read storage = unit controller (111) In the packet processing area (1 signal is converted into the signal of the material area U 11 D, and the data is encapsulated; (1 1 2) readable (four) format is wrapped into a 112) complete data reception (1 1 1 ) And end the data seal step 6 (4 5): when the main controller (〇

後’發送1號來通知該單元控制器 包的傳輪。 咨 1 參考第二0、四及五圖所示’上述經步驟2 (4 1)所包裹 (5 )係至少包括有—終端代碼(5 G )、-事件指令 和-資料編碼(5 2 ),該終端代碼(5 Q )係供主控制 器(\1 2)_該單元控制器(丄丄丄)之用,該資料編瑪(5 2)則為欲傳送/發送之f料,並根據事件指令(5丨)決定主 控制器(112)或單元控制器(ill)的狀態。 上述步禅4 ( 4 3)中利用串列資料通道(s DA)和該串列 時脈通道(s c L)高低電位的轉換開始進行資料封包(5)的 傳輸係已屬熟悉本案技藝人士可具體實施之一般技術 ,並已經廣 泛應用於内部整合電路的一種串列通訊匯流排使用技術,因此, 在此不加以累述。 因此,藉由上述方法,本發明有別於傳統以實體集線器連接複 數功能裝置來達到具有複數功能之USB附接器,而是利用封包格 式包裹不同功能裝置所發送之資料’透過一主控制器統一交由序 列介面卩丨擎與主機之USB進行溝通,故能達到各裝置的電路獨 立、整趙電路簡化及系統資源妥善利用等功效。 201028860 雖然本發明以較佳實施例揭露如上,然其並非用以限定本發 明,任何熟習該項技藝者,在不脫離本發明之精神和範圍内,當 可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明 書所附之申請專利範圍所界定者為基準。 【圖式簡單說明】 第一圖為本發明USB附接器一實施例之結構方塊圖。 第二a圖為本發明之控制電路的結構方塊圖。 第二b圖為本發明之單元控制器的結構方塊圖。 〇 第二c圖為本發明單元控制器與該主控制器之間聯繫介面示 意圖。 第三圖為本發明USB附接器另一實施例的結構方塊圖。 第四圖為本發明USB附接器内部傳輸方法的實施流程圖。 第五圖為本發明之資料封包的封包架構示意圖。 ^ 【主要元件符號說明】 (1 ) USB附接器 (10) 序列介面引擎 (11) 控制電路 (111) 單元控制器 ‘ (1111) 緩衝暫存區 ' (1112) 封包處理區 12 201028860 ❹After the 'send number 1' to inform the unit controller of the packet's transmission. Consultation 1 refers to the second 0, 4 and 5 diagrams. 'The above paragraph 2 (4 1) is wrapped with (5) at least including terminal code (5 G), - event instruction and - data coding (5 2 ) The terminal code (5 Q ) is used for the main controller (\1 2)_ the unit controller (丄丄丄), and the data is programmed (5 2) for the material to be transmitted/transmitted, and The state of the main controller (112) or the unit controller (ill) is determined according to the event instruction (5丨). The above-mentioned step zen 4 (4 3) uses the serial data channel (s DA) and the serial clock channel (sc L) high and low potential conversion to start the data packet (5) transmission system is already familiar to the skilled person The general technology of the specific implementation has been widely applied to a serial communication bus using technology of the internal integrated circuit, and therefore, it will not be described here. Therefore, by the above method, the present invention is different from the traditional physical hub to connect a plurality of functional devices to achieve a USB function with a plurality of functions, but to encapsulate the data sent by different functional devices by using a packet format. The unified interface is communicated with the USB of the host by the serial interface, so it can achieve the functions of independent circuit, simplified Zhao circuit and proper utilization of system resources. The present invention is disclosed in the above preferred embodiments. However, it is not intended to limit the present invention, and those skilled in the art can make some modifications and refinements without departing from the spirit and scope of the present invention. The patent protection scope of the invention shall be based on the definition of the scope of the patent application attached to the specification. BRIEF DESCRIPTION OF THE DRAWINGS The first figure is a block diagram of an embodiment of a USB connector of the present invention. The second a diagram is a block diagram of the structure of the control circuit of the present invention. The second b diagram is a block diagram of the structure of the unit controller of the present invention. 〇 The second c diagram is a schematic illustration of the interface between the unit controller of the present invention and the main controller. The third figure is a block diagram showing the structure of another embodiment of the USB add-on of the present invention. The fourth figure is a flowchart of an implementation of the internal transmission method of the USB connector of the present invention. The fifth figure is a schematic diagram of the packet structure of the data packet of the present invention. ^ [Main component symbol description] (1) USB adapter (10) Serial interface engine (11) Control circuit (111) Unit controller ‘ (1111) Buffer scratchpad ' (1112) Packet processing area 12 201028860 ❹

(112) 主控制器 (113) 震盪器 (12) 功能裝置 (12a) 遙控模組 (12 1) 天線 (122) 解碼器 (123) 震盪器 (124) 指示燈 (13) 記憶模組 (13 1) 記憶體 (132) 記憶模組控制器 (133) 防寫保護開關 (134) 指示燈 (SCL) 串列時脈通道 (SDA) 串列資料通道 (IRQ) 中斷要求通道 (40) 步驟1 (41) 步驟2 (42) 步驟3 201028860 (43) 步驟4 (44) 步驟5 (45) 步驟6 ❿ 14(112) Main controller (113) Oscillator (12) Function device (12a) Remote control module (12 1) Antenna (122) Decoder (123) Oscillator (124) Indicator light (13) Memory module (13 1) Memory (132) Memory Module Controller (133) Anti-Write Protect Switch (134) Indicator (SCL) Serial Clock Channel (SDA) Serial Data Channel (IRQ) Interrupt Request Channel (40) Step 1 (41) Step 2 (42) Step 3 201028860 (43) Step 4 (44) Step 5 (45) Step 6 ❿ 14

Claims (1)

201028860 七、申請專利犯圍· 1、 一種USB附接器,係包括有: 至少一個功能裝置,其具有特定之功能導向; 一序列介面引擎’係與一主機之USB連接埠相互連接,透過 USB規範之通信協定與該主機進行溝通,用以處理該主機與該 USB附接器間所傳輸的訊號; 一控制電路,係分別連接於該序列介面引擎及該功能裝置以接 收與處理不同功能裝置所發送之訊號,並將該訊號轉換成一符合 • USB規範之通訊協定的訊號來傳送至該序列介面引擎。 2、 如申請專利範圍第1項所述之USB附接器,其中,該控 制電路更包括有: 至少一個單元控制器,係對應於該功能裝置來接收和處理該功 能裝置所傳送過來的訊號; 一主控制器’係接收該單元控制器所傳送之訊號,將該訊號轉 換成一符合USB規範之通訊協定的訊號傳送至該序列介面引擎; 一震逢^ ’分別用於提供該主控制器和該單元控制器工作所需 Q 之工作時脈' 3、 如申請專利範圍第2項所述之usb附接器,其中,該單 元控制器更包括有: 一緩衝資料區’係暫時儲存由功能裝置所傳送過來之訊號; 封包處理區,係讀取該緩衝資料區之訊號,並將該訊號轉換 成該主控制器可讀取之格式來傳送至該主控制器。 4、 如申請專利範圍第3項所述之USB附接器,其中,該單 70控制器與該主控制器係透過一串列資料通道、一串列時脈通道 及中斷要求通道之聯繫介面進行訊號發送與接收,其中,該等 15 201028860 通道具有高電位與低電位的兩種狀態。 5、 如申請專利範圍第4項所述之USB附接器,其中,該功 能裝置係一遙控模組,並透過一外部遙控器進行無線遙控,該遙 控模組包括有: 一天線,係用以接收該外部遙控器所傳送之控制訊號; 一解碼器’將自天線所接收之控制訊號進行解碼後傳送至該控 制電路; 一震盪器,用於提供該解碼器工作所需的工作時脈; 一指示燈,用以顯示該遙控模組的工作狀態。 6、 如申請專利範圍第5項所述之USB附接器,其中,該控 制訊號係一 IEEE 802.15.1無線訊號。 7、 如申請專利範圍第5項所述之USB附接器,其中,該控 制訊號係一 IEEE 802.1S.4無線訊號。 8、 如申請專利範圍第5項所述之USB附接器,其中,該控 制訊號係一 IEEE 802.1 lx無線訊號。 9、 如申請專利範圍第5項所述之USB附接器,其更包括有 一符合USB傳輸規格之記憶模組,該記憶模組包括有: 一記憶醴(1 3 1 ),係一種#揮發性固態儲存記憶體; 一記憶模組控制器(1 3 2 ),係發送一控制訊號至該記憶體 (131)或該控制電路以對應傳送資料; 一防寫保護開關,係用於設定該記憶模組是否接受將資料存入 該記憶體中; 一指示燈,用以顯示該記憶模、組的工作狀態。 1 0、如申請專利範圍第g項所述之USB附接器,其中,該 防寫保護開關係一實體開關。 201028860 1 1、如申請專利範圍第9項所述之USB附接器,其中,該 防寫保護開關係透過軟體執行之虛擬開關。 1 2、一種USB附接器内部資料傳輪方法,其係應用於如申 請專利範圍第4項所述之USB附接器,該方法包括有以下步驟: 步驟1 :該功能裝置將一訊號傳送至對應之單元控制器中的緩 衝資料區; 步驟2 :該單元控制器透過該中斷要求通道發送一中斷請求訊 號至該主控制器; | 步驟3:該主控制器回應該單元控制器的中斷請求; 步驟4 :該單元控制器於收到該主控器的回應後,停止該中斷 請求以準備接收該單元控制器欲傳送之資料並透過該串列資料 通道和該串列時脈通道的高低電位轉換進行資料封包的傳輸; 步驟5 :該單元控制器中的封包處理區讀取儲存於該緩衝資料 區的訊號,並將該訊號轉換成該主控制器可讀取之資料格式來包 袠成一資料封包; 步驟6 .當該主控制器完成資料接收完畢後,發送一訊號來通 〇知該單元控制器並結束該資料封包的傳輸。 卜1 3、一種USB附接器内部資料傳輸方法,其係應用於一至 夕匕括有一控制電路和一功能裝置之USB附接器,其中,該控制 電路至J包括有一單元控制器和一主控制器,該控制電路包括有 串列資料通道、一串列時脈通道及一中斷要求通道的聯繫介 面,該方法包括有以下步驟: 步驟1 ·該功能裝置將一訊號傳送至對應之單元控制器中的緩 衝資料區; 步驟2 ·該單元控制器透過該中斷要求通道發送一中斷請求訊 17 201028860 號至該主控制器; y驟3該主控制器回應該單元控制器的中斷請求; 步驟4:該單元控制器於收到該主控器的回應後,停止該中斷 請求以準備接收該單元控㈣欲傳送之資料,並透過該串列資料 通道和該串列時脈通道的高低電位轉換進行資料封包的傳輸; 步驟5 :該單元控制器中的封包處理區讀取儲存於該緩衝資料 區的訊號’並將該訊號轉換成該主控制器可讀取之資料格式來包 裹成一資料封包; 步驟6 .當該主控制器完成資料接收完畢後,發送一訊號來通 知該單元控制器並結束該資料封包的傳輸。 1 4、如申請專利範圍第1 2或1 3項所述之方法,其中,該 資料封包係至少包括有一終端代碼、一事件指令和—資料編瑪, 該終端代碼係供該主控制器辨識單元控制器之用,該資料編碼則 為欲傳送/發送之資料,並根據事件指令控制該主控制器或該單 元控制器的狀態。 如次頁 18201028860 VII. Applying for a patent. 1. A USB adapter includes: at least one functional device having a specific function orientation; a serial interface engine is connected to a USB connection of a host through a USB a standard communication protocol communicates with the host to process signals transmitted between the host and the USB adapter; a control circuit is coupled to the serial interface engine and the functional device to receive and process different functional devices The transmitted signal is transmitted to the serial interface engine by converting the signal into a communication protocol conforming to the USB specification. 2. The USB applicator of claim 1, wherein the control circuit further comprises: at least one unit controller corresponding to the function device for receiving and processing the signal transmitted by the function device A master controller receives the signal transmitted by the unit controller, and converts the signal into a protocol conforming to the USB specification and transmits the signal to the serial interface engine; And the working clock of the Q required for the operation of the unit controller. 3. The usb adapter according to claim 2, wherein the unit controller further comprises: a buffering data area is temporarily stored by The signal transmitted by the functional device; the packet processing area reads the signal of the buffer data area, and converts the signal into a format readable by the main controller to be transmitted to the main controller. 4. The USB adapter of claim 3, wherein the single controller 70 and the main controller communicate with each other through a serial data channel, a serial clock channel, and an interrupt request channel. Signal transmission and reception are performed, wherein the 15 201028860 channels have two states of high potential and low potential. 5. The USB adapter of claim 4, wherein the function device is a remote control module and wirelessly remotely controlled by an external remote control, the remote control module comprising: an antenna, Receiving a control signal transmitted by the external remote controller; a decoder 'decoding the control signal received from the antenna and transmitting the control signal to the control circuit; an oscillator for providing a working clock required for the decoder to work An indicator light for displaying the working status of the remote control module. 6. The USB adapter of claim 5, wherein the control signal is an IEEE 802.15.1 wireless signal. 7. The USB add-on as claimed in claim 5, wherein the control signal is an IEEE 802.1S.4 wireless signal. 8. The USB adapter of claim 5, wherein the control signal is an IEEE 802.1 lx wireless signal. 9. The USB applicator of claim 5, further comprising a memory module conforming to a USB transmission specification, the memory module comprising: a memory port (1 3 1 ), a type # volatile a solid state storage memory; a memory module controller (1 3 2) sends a control signal to the memory (131) or the control circuit to transmit data correspondingly; an anti-write protection switch is used to set the memory Whether the memory module accepts the data in the memory; an indicator light is used to display the working state of the memory module and the group. A USB add-on as described in claim g, wherein the write-protected relationship is a physical switch. The USB adapter of claim 9, wherein the write-protected open relationship is a virtual switch executed by the software. 1 . A USB adapter internal data transfer method, which is applied to the USB adapter as described in claim 4, the method comprising the following steps: Step 1: The function device transmits a signal To the buffer data area in the corresponding unit controller; Step 2: The unit controller sends an interrupt request signal to the main controller through the interrupt request channel; | Step 3: The main controller returns to the unit controller interrupt Requesting; Step 4: After receiving the response from the master, the unit controller stops the interrupt request to prepare to receive the data to be transmitted by the unit controller and to pass through the serial data channel and the serial clock channel. High and low potential conversion for data packet transmission; Step 5: The packet processing area in the unit controller reads the signal stored in the buffer data area, and converts the signal into a data format readable by the main controller袠成一数据包包; Step 6. When the main controller finishes receiving the data, it sends a signal to know the unit controller and end the transmission of the data packet. 1-3, a USB adapter internal data transmission method, which is applied to a USB connector including a control circuit and a function device, wherein the control circuit to J includes a unit controller and a main The controller includes a serial data channel, a serial clock channel, and a contact interface of the interrupt request channel. The method includes the following steps: Step 1: The function device transmits a signal to the corresponding unit control The buffer data area in the device; Step 2: The unit controller sends an interrupt request message 17 201028860 to the main controller through the interrupt request channel; y step 3: the main controller responds to the unit controller interrupt request; 4: After receiving the response from the master controller, the unit controller stops the interrupt request to prepare to receive the unit control (4) the data to be transmitted, and transmits the high and low potentials of the serial data channel and the serial clock channel. Converting the data packet transmission; Step 5: The packet processing area in the unit controller reads the signal stored in the buffer data area and turns the signal The information format that can be read by the main controller is packaged into a data packet; Step 6. After the main controller completes the data reception, a signal is sent to notify the unit controller and end the transmission of the data packet. The method of claim 12, wherein the data packet comprises at least a terminal code, an event instruction, and a data encoding, the terminal code is for the main controller to identify For the unit controller, the data code is the data to be transmitted/transmitted, and the state of the main controller or the unit controller is controlled according to the event instruction. As the next page 18
TW98103002A 2009-01-23 2009-01-23 An USB dongle and its interior data transmission method TW201028860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98103002A TW201028860A (en) 2009-01-23 2009-01-23 An USB dongle and its interior data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98103002A TW201028860A (en) 2009-01-23 2009-01-23 An USB dongle and its interior data transmission method

Publications (1)

Publication Number Publication Date
TW201028860A true TW201028860A (en) 2010-08-01

Family

ID=44853819

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98103002A TW201028860A (en) 2009-01-23 2009-01-23 An USB dongle and its interior data transmission method

Country Status (1)

Country Link
TW (1) TW201028860A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI588679B (en) * 2015-04-07 2017-06-21 si-bin Zhu Universal serial bus device and method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI588679B (en) * 2015-04-07 2017-06-21 si-bin Zhu Universal serial bus device and method thereof

Similar Documents

Publication Publication Date Title
JP6266615B2 (en) Sending multiple protocol data elements over an interface using a data tunnel
TWI393009B (en) Data sharing and transfer systems and methods
CN105159632B (en) Graphics multi-media ic and its operation method
US9239808B2 (en) Serial interface for FPGA prototyping
CN105700732B (en) It is used for transmission the devices, systems, and methods of touch sensor information
JP4837659B2 (en) Bus controller for processing split transactions
US20030233501A1 (en) Device for transferring from a memory card interface to a universal serial bus interface
KR20160013174A (en) A method, apparatus and system for performing management component transport protocol (mctp) communications with a universal serial bus (usb) device
TW200941496A (en) Virtual memory interface
TW200532456A (en) Efficient connection between modules of removable electronic circuit cards
US8850086B2 (en) SD switch box in a cellular handset
TWI405087B (en) Differential data transfer for flash memory card
WO2014023247A1 (en) Embedded device and method for control data communication based on the device
US20040103163A1 (en) Serial bus disk extender and portable storage device
TW201028860A (en) An USB dongle and its interior data transmission method
TWI401570B (en) Differential data transfer for flash memory card
CN101630296A (en) USB attached apparatus and internal data transmission method thereof
US20050102431A1 (en) Composite adapter for multiple peripheral functionality in portable computing system environments
EP3973637A1 (en) Exchange of data between a nfc reader and a dual nfc interface transponder
TWI345711B (en)
KR100446427B1 (en) Remote inspection apparatus installed between host computer and meter
US20080074299A1 (en) Electrical signal converting system
KR200268439Y1 (en) Remote inspection apparatus installed between host computer and meter
JP3144045U (en) Integrated touch button control card reader and its control chip module
TW200537311A (en) Control module and method for controlling a plurality of USB devices