12994521299452
、 I 九、發明說明: 【發明所屬之技術領域】 本^明係$關-種1對多拷貝通用串列匯流埠(USB)磁碟的裝 置尤才曰種可以透過USB主晶片組與單晶微處理器,卿集 及RS-485串列介面來達到】對多咖磁碟資料拷貝的功能。…〜 【先前技術】 隨者咖介崎呈為PC主_邊與消費㈣子的賴介面各 種:音或是雜的產品也都與之結合。由於腦隨身碟或是咖二 放為的普及’幾乎是人手—機。而為了格式化媒體儲存裝置或是複 製固定的歌曲或是語譯f㈣料,通f是需要透過pc主機來回地 .插入裳置,拷貝’複製’拔取裝置等步驟。若是僅有-台單—USB隨 身碟的操作與裝設是比較為簡單,但是若要同時複製與操作多台_ 隨身碟則可想而知需耗時甚久。 因此,需要一種裝置能無須透過pC主機即可將USB磁碟的内 容’檔案或是語音檔案拷貝至多台剛出廠,Flash Mem〇ry尚未格式 化的USB隨身碟上。這過程包含了格式化USB磁碟機,建立檔案管 理系統,與拷貝樓案等工作。當然,若是一對一拷貝,不僅需花費時 間’更容易對測試機台造成磨損與負擔。 【發明内容】 本發明之主要目的,在於提供一種可以透過USB主晶片組與單晶 微處理器,USB集線器以及RS-485串列介面來達到1對多USB磁碟 貧料拷貝的功能。本發明可以應用至USB隨身碟或是MP3播放器的 1299452 消費性電子產業與PC週邊產業中,除了可提供快速拷貝與格式化的 功能’並且提升與加速相關產業的延伸技術上。 • 本發明的主要構造,包括有··一單晶微處理器;一通用串列匯流 • 埠(USB)主界面晶片組,該通用串列匯流璋(USB)主界面晶片組與該單 晶微處理器構成一通用串列匯流埠(USB)主機;一快閃記憶體Flash Memory;—可連接至少二個通用串列匯流埠(USB)磁碟機的通用串列匯 流埠(USB)集線器;一串列介面;及一可供資料來源的usb磁碟插接的 *輸入連結埠。 【實施方式】 請茶看圖一所示,本發明的主要技術特徵,是在於提供一種可1 對多拷貝通用串列匯流埠(USB)的裝置,其基本構造包括有·· 一單晶微處理器(11); 一通用串列匯流埠(USB)主界面晶片組(12),該通用串列匯流埠 (USB)主界面晶片組(12)與該單晶微處理器(11)構成一通用串列匯流 ®埠(職)主機; 一快閃記憶體 Flash Memory(13); 一可連接至少二個通用串列匯流埠(USB)磁碟機的通用串列匯流 埠(USB)集線器(H); 一串列介面(15);及 一可供資料來源的USB磁碟插接的輸入連結埠(圖中未示)。 請再參看圖一所示,本發明進一步透過網路方式延伸更多通用串 列匯流埠(USB)磁碟機同時拷貝的裝置設計,實現這個系統功能的架構 6 1299452 則如下圖一所示。 整個系統包括有一主模組(10)與至少一個從模組(20)。其中,主模 組(10)包含-單晶微處理器(11),USB主晶片組⑽,一快閃記憶體 FiashM刪ry(13),- RS-485串列介面(15),及—可供資料來源的〇 磁碟插接的輸人連料(财未示),而在—種較佳實施财,該主模 組可進-步包括有集線器㈣,使該主模組即具有—對多拷貝 • USB補機的功能。而從模組⑽包含一單晶微處理器⑼⑽主 晶片組(22), -快閃記憶體—Mem〇iy(23),_ rs,串列介面 (25),及- USB集線器(24)。其中,本發明所採用之聰主晶片植 .σ綱是賴取聰隨身碟等磁碟躺之用,以模擬眺 ' F"h OSB , 業機的㈣格式與資料之用。USB集線_(24 所欲待拷貝的空磁碟機⑼(如圖一所示,是表示連擴允 根據聰集線器的規範,基本上,可分為“ J峪逑接方式。因此,本創作的i 貝器可以最多達到33x7=: +夕USB磁碟拷 時工作的目的。此外,這拷貝二或疋33x 4:132組咖磁碟機同 USB磁碟槪目。 、°似情需求雜地敏所要拷貝的 的 A現一個—主32從的節點網 7 1299452 路模式,不僅且傳輸速度可達到10Mbps,且以差分介面傳送可大幅降 低雜訊源。 ' 相關元件的設計重點--說明如下: - (1 ) USB 主機: 這部分疋以一 8051早晶微處理器(11)(21)連接上一個USB主晶片 組(SL811HS,Cypress) (12)(22)來實現一個虛擬USB主機的功能。 春而杜运USB主機中’主要疋貫現了 USB Mass Storage群組與USB率 線斋群組。利用USB集線器(一個上游埠與四個下游埠為例)模組可 以連接4個擴充的USB磁碟機,並將所要拷貝的USB磁碟機(3⑺的資 料拷貝到這4個空白待格式化與拷貝資料的USB磁碟機⑼。這usb ,隨身碟與集線器是符合USB1.1/USB2.0規格。 相關的電路圖如下圖二,8051單晶微處理器⑽21)的週邊電路圖 與圖三’主晶片組SL811HS(12)(22)與觀單晶微處理器⑴)(21)連結 鲁的電路圖所示。 (2 ) RS-485節點網路: 由於RS-485是從RS-422基礎上發展而來的,所以RS 485許多 電氣規定與RS-422相似。例如,都是採用平衡傳輸方式,也都需要在 傳輸線上連祕端電阻。但是,RS_485可高達%個轉雜收器對 能夠在分享在同—個多點網路上。此外,驅動器與接收器的共模電壓 (Vcm)範圍可以擴充至+12至一7v之間。 8 1299452 此外’ RS-485可以採用二線與四線連接的方式。在二線連接方式 中,需注意到傳輸線是在整個佈線的雙端被終止掉,而不是在此佈線 中間的連接點來截止掉的。而終端電阻應僅使用在高資料傳輸率以及 執行較長佈_。此外,在綱85系統㈣信號接地線也必須保持共 挺電堡犯圍’且在驅動器上必須在位於_7至谓範圍中才能被接受。 〇而採用四線連接時,與RS_422—樣只能實現點對多的通信,即只 _月匕有4口主。又備’其餘為從設備。但是其改善了 的特性,使得 無論是使用四線還是二線1€接方式,我們皆可以在匯流排上連接多達 32们„又備。其中,在四線連接時是使用4個資料線以及—個額外的信 號接地線。這樣的網路連接方式,使得這主裝置點可與所有的從節點 通汛。而所有的從節點也僅與這主節點通訊。 而RS-485與RS-422 —樣,其最大傳輸距離約為4〇〇〇英吸(1219 公尺)’最大傳輸速率為l〇Mb/s。此外,rs-485需要2個終端電阻, _其阻值要铸於傳輸魏哺齡抗。在短距轉輸日村*需終端電 阻,即-般在300公尺以下不需終端電阻。終端電阻接在傳輸匯流排 的兩端。但是一般8051單晶微處理器僅具備RS_232串列介面(如圖二 所不)’為了轉換成RS-485介面需透過介面轉換Ic或是專用IC。如 圖四所示,為RS-232轉換RS-485轉換的電路圖。 基本上,RS-485的轉換1C類型相當多種,各種晶片組廠商也推 出特定功能的1C。其中,最為常用的是SN75179B與SN75176B(Texas, I IX, invention description: [Technical field of the invention] This device is a device that can be used for USB-based main chip sets and singles. Crystal microprocessor, Qingji and RS-485 serial interface to achieve the function of copying data from multi-cavette disk. ...~ [Previous technology] The accompaniment of the Japanese _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Because of the popularity of brain pens or coffee, it is almost a human hand. In order to format the media storage device or to copy the fixed song or the translation of the f (four) material, the pass f is a step of inserting the skirt, copying the 'copy' and extracting the device through the pc host. If only the - desk - USB flash drive operation and installation is relatively simple, but to copy and operate multiple _ flash drives at the same time can be imagined to take a long time. Therefore, there is a need for a device that can copy the contents of a USB disk's file or voice file to a plurality of USB flash drives that have not yet been formatted by Flash Mem〇ry without having to use the pC host. This process involves formatting the USB drive, creating a file management system, and copying the building. Of course, if it is a one-to-one copy, it will not only take time to make it easier to wear and burden the test machine. SUMMARY OF THE INVENTION The main object of the present invention is to provide a function of one-to-many USB disk poor material copy through a USB main chip set and a single crystal microprocessor, a USB hub and an RS-485 serial interface. The present invention can be applied to the 1299452 consumer electronics industry and the PC peripheral industry of the USB flash drive or the MP3 player, in addition to providing fast copying and formatting functions, and extending and accelerating the industry-related extension technology. • The main structure of the present invention includes a single crystal microprocessor; a universal serial bus • USB (USB) main interface chip set, the universal serial bus (USB) main interface chip set and the single crystal The microprocessor constitutes a universal serial bus (USB) host; a flash memory Flash memory; - a universal serial port (USB) hub capable of connecting at least two universal serial bus (USB) drives A series of interfaces; and a * input link for USB disk insertion of data sources. [Embodiment] Please refer to Figure 1, the main technical feature of the present invention is to provide a one-to-many-copy universal serial bus (USB) device, the basic structure of which includes a single crystal micro a processor (11); a universal serial port bus (USB) main interface chip set (12), the universal serial port bus (USB) main interface chip set (12) and the single crystal microprocessor (11) A universal serial bus® (job) host; a flash memory Flash memory (13); a universal serial bus (USB) hub that can connect at least two universal serial bus (USB) drives (H); a serial interface (15); and an input link (not shown) for USB disk insertion from a data source. Referring to FIG. 1 again, the present invention further extends the device design of the universal serial serial port (USB) disk drive through the network to realize the architecture of the system function. 6 1299452 is as shown in FIG. The entire system includes a main module (10) and at least one slave module (20). The main module (10) comprises a single crystal microprocessor (11), a USB main chip set (10), a flash memory FiashM delete ry (13), an RS-485 serial interface (15), and - The input source of the data source can be inserted into the disk (not shown), and in the preferred implementation, the main module can further include a hub (4), so that the main module has - For multi-copy • USB add-on function. The slave module (10) comprises a single crystal microprocessor (9) (10) main chip set (22), - flash memory - Mem〇iy (23), _ rs, serial interface (25), and - USB hub (24) . Among them, the Cong main wafer planted by the present invention is used for simulating the disk of the 眺 'F"h OSB, industry machine (4) format and data. USB hub _ (24 empty disk drive (9) to be copied (as shown in Figure 1, it means that the expansion is based on the specifications of the Cong Hub, basically, it can be divided into "J 峪逑 connection mode. Therefore, this creation The i shell can be up to 33x7=: + s USB disk copy work. In addition, this copy of the second or 疋33x 4:132 group of coffee drives with USB disk. The A to be copied by the geo-sensitive one - the main 32 slave node network 7 1299452 mode, not only the transmission speed can reach 10Mbps, and the differential interface transmission can greatly reduce the noise source. 'Design focus of related components - description As follows: - (1) USB host: This part is connected to a USB main chip set (SL811HS, Cypress) (12) (22) with an 8051 early crystal microprocessor (11) (21) to implement a virtual USB host. The function of the spring and Duyun USB host is mainly the USB Mass Storage group and the USB rate line group. The USB hub (an upstream port and four downstream ports) can be connected to 4 modules. Expanded USB drive and copy the data of the USB drive (3(7)) to be copied Bay to these 4 blank USB disk drives (9) to be formatted and copied. This usb, flash drive and hub are in compliance with USB1.1/USB2.0 specifications. The related circuit diagram is shown in Figure 2, 8051 single crystal microprocessor. The peripheral circuit diagram of (10) 21) is shown in the circuit diagram of Figure 3 'Main chip group SL811HS (12) (22) and viewing single crystal microprocessor (1)) (21). (2) RS-485 node network: due to RS -485 is developed from RS-422, so many electrical regulations of RS 485 are similar to RS-422. For example, balanced transmission is used, and all the terminals need to be connected to the transmission line. However, RS_485 can be used. Up to % of the twister pairs can be shared on the same multipoint network. In addition, the common mode voltage (Vcm) range of the driver and receiver can be expanded to between +12 and 7v. 8 1299452 In addition, 'RS -485 can be connected by two-wire and four-wire. In the two-wire connection mode, it should be noted that the transmission line is terminated at both ends of the entire wiring, instead of being cut off at the connection point in the middle of the wiring. Terminating resistors should only be used at high data rates and long In addition, in the 85 system (4) signal grounding wire must also maintain a total of electric bunker perimeter and must be accepted in the _7 to the range on the drive. When using a four-wire connection, and RS_422- It can only achieve point-to-multiple communication, that is, only _ 匕 匕 has 4 lords. Also prepared for 'the rest is a slave device. But its improved features make it possible to use either four-wire or two-wire 1 €. You can connect up to 32 on the busbar. Among them, four data lines and an additional signal ground line are used in the four-wire connection. This network connection allows the master device to communicate with all slave nodes. All slave nodes also communicate only with this master node. RS-485, like RS-422, has a maximum transmission distance of about 4 inches (1219 meters). The maximum transmission rate is l〇Mb/s. In addition, rs-485 requires 2 terminating resistors, and its resistance value should be cast to transmit Wei Yangling anti-wear. In the short-distance transfer to the village, the terminal resistance is required, that is, the terminal resistance is not required below 300 meters. The terminating resistor is connected to both ends of the transmission bus. However, the general 8051 single crystal microprocessor only has the RS_232 serial interface (as shown in Figure 2). In order to convert to the RS-485 interface, it is necessary to convert the Ic through the interface or a dedicated IC. As shown in Figure 4, it is a circuit diagram for RS-232 conversion RS-485 conversion. Basically, there are quite a few types of RS-485 conversion 1C, and various chipset manufacturers have also introduced 1C for specific functions. Among them, the most commonly used are SN75179B and SN75176B (Texas
Instruments)’其差異是前者是泛用型全雙工驅動器/接收器,後者是泛 9 1299452 用型單雙i收發ϋ。由於我們僅需單純的將主裝置的聽拷貝至從裝 置上。因此’在此採用單雙工的SN75176B 1C。 在圖四中,這個簡易的轉換電路使用了 3條RS-232信號線,其 _中’包含TD傳輸資料,RD接收資料,以及rTS控制選擇。從圖中 可以看到MAX232 1C將RS432信賴触TTL準位,以及再將TTL 仏遽連接至751·晶片組,以提供一個RS_485介面電路出來。整個 鲁電路的操作過程是,當RTS是低電位時,乃聽的致能輸入腳位是 尚電位的,那麼TD能夠傳輸信號至Rs_485的連接電路上。當rts 疋尚電位時,75176B的致能輸入腳位是低電位的,那麼RD就能夠接 收從RS-485的連接電路所傳遞進來的信號。 而如圖五所示,則為RS—485二線式佈線方式可以實現多點雙向通 信示意圖。 為了達到1對NUSB磁碟資料拷貝的功能。本發明是i對多USB 鲁磁碟拷貝系統為說明,為了便於組裝與測試,我們將以4個usb磁 碟為一模組,類似USB集線器HUB的架構來設計。其中,包含了一 個主模組與24個從模組。 母個模組的大小大約是80 mm X 80 mm X 50mm(長X寬x高)。 因此,總體的架構是如下圖六所示。整個系統包含了 25組的模組,共 是100個USB磁碟。而其實際大小預計是45〇 mm χ 200 mm x 35〇 mm。 請配合參看圖一、圖六所示,在系統的測試實現上,我們首先内 含48MB MP3資料(MP3歌曲)的128MB USB磁碟機(30)插入主模 10 1299452Instruments)' The difference is that the former is a general-purpose full-duplex driver/receiver, and the latter is a pan- 9 1299452 type single- and dual-i transceiver. Since we only need to simply copy the main device's listening to the slave device. Therefore, the single-duplex SN75176B 1C is used here. In Figure 4, this simple conversion circuit uses three RS-232 signal lines, _ in which contains TD transmission data, RD reception data, and rTS control selection. It can be seen from the figure that the MAX232 1C trusts the RS432 to touch the TTL level, and then connects the TTL 仏遽 to the 751·chipset to provide an RS_485 interface circuit. The operation of the entire Lu circuit is that when the RTS is low, the enabled input pin is still potential, then the TD can transmit signals to the Rs_485 connection circuit. When the rts is at a potential, the 75176B's enable input pin is low, so the RD can receive the signal from the RS-485 connection circuit. As shown in Figure 5, the RS-485 two-wire wiring method can realize the multi-point two-way communication diagram. In order to achieve the function of 1 pair of NUSB disk data copy. The present invention is an i-to-multi USB USB disk copy system. For ease of assembly and testing, we will use four usb disks as a module, similar to the architecture of a USB hub HUB. Among them, there is one main module and 24 slave modules. The size of the female module is approximately 80 mm X 80 mm X 50 mm (length X width x height). Therefore, the overall architecture is shown in Figure 6 below. The entire system consists of 25 modules, a total of 100 USB disks. The actual size is expected to be 45〇 mm χ 200 mm x 35〇 mm. Please refer to Figure 1 and Figure 6. In the system test implementation, we first insert the 128MB USB disk drive (30) containing 48MB MP3 data (MP3 song) into the main module 10 1299452
組(Master DeviceXlO)上,然後透過 USB Mass Storage C丨ass 格式將 USB 磁碟機(30)内的MP3資料讀出,並先複製至快閃記憶體HashOn the group (Master DeviceXlO), then read the MP3 data in the USB drive (30) through the USB Mass Storage C丨ass format and copy it to the flash memory Hash first.
Mern〇ry(13)内。而透過USB集線器(14)的控制可以控制4個待拷貝的 USB磁碟機(31),將資料依序拷貝進去。當拷貝完主模組⑽所連接的 4個USB磁碟機⑼後,緊接著,透戟s_485串列介面⑽依序拷貝 至連接的24個從模組⑽上的USB磁碟機(31)。根據圖六所示,使用 者可根據實際的需求’連接上不同數目的賴組(2_及不同數目的 USB磁碟。 以上所述,僅為本發明之一可行實施例,並非用以限定本發明之 專利範圍,凡舉依據下列申請專利範圍所述之内容、特徵以及並精神 而為之其他變化料效實施’皆應包含於本發明之專利範圍内。 綜上所述,本發明所具體界定於申請專利範圍之技術特徵,未見 於同類技術而具新穎性,且較習知技術具進步性,並能供產業充份利 籲用,已猶痛⑽,纽糾咖t請,輯鈞局依法核 予專利,以維護本申請人合法之權益。 【圖式簡單說明】 圖一為本發明1_對132或231個 SB _㈣拷貝线架構示意 圖一為本發明單晶微處理ϋ的週邊電路示意圖;Inside Mern〇ry (13). And through the control of the USB hub (14), it is possible to control four USB disk drives (31) to be copied, and copy the data in order. After copying the four USB disk drives (9) connected to the main module (10), the s_485 serial interface (10) is sequentially copied to the USB disk drive (31) of the connected 24 slave modules (10). . According to FIG. 6, the user can connect different numbers of singular groups (2_ and different numbers of USB disks according to actual needs). The above description is only one possible embodiment of the present invention, and is not intended to be limited. The scope of the present invention is to be construed as being included in the scope of the present invention in accordance with the contents, features and spirit of the invention as set forth in the following claims. In summary, the present invention Specifically defined in the technical characteristics of the scope of application for patents, it is not seen in the same kind of technology and is novel, and it is more advanced than the prior art, and can be used for the industry to fully appeal, has been painful (10), New Zealand, please The 钧 核 核 核 核 核 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 Peripheral circuit schematic;
圖三為本發明以SL811HS與咖單晶_理器連結的電路示音I =四為本發似收232㈣介轉RS姻串·_電路示音 圖五為本發明以Rs_485二線式 " 飞佈線方式來貫現多點雙向通信 1299452 圖;及 圖六為本發明1對100 USB磁碟資料拷貝系統的示意圖。 【主要元件符號說明】 (10)主模組 (12)(22)主晶片組 (14)(24)集線器 (20)從模組 (11)(21)單晶微處理器 (13)(23)快閃記憶體 (15)(25)串列介面 (30)(31)磁碟機Figure 3 is a circuit diagram of the SL811HS and the coffee crystal single crystal connected to the I = four is the same as the 232 (four) mediated RS _ _ circuit diagram 5 is the invention Rs_485 two-line " The fly wiring method is used to realize the multi-point two-way communication 1294452; and FIG. 6 is a schematic diagram of the 1-to-100 USB disk data copy system of the present invention. [Main component symbol description] (10) Main module (12) (22) Main chip set (14) (24) Hub (20) Slave module (11) (21) Single crystal microprocessor (13) (23 ) Flash memory (15) (25) serial interface (30) (31) disk drive
1212