TWI525440B - A data latching device for starting an electronic device and a method of starting the electronic device - Google Patents

A data latching device for starting an electronic device and a method of starting the electronic device Download PDF

Info

Publication number
TWI525440B
TWI525440B TW100139297A TW100139297A TWI525440B TW I525440 B TWI525440 B TW I525440B TW 100139297 A TW100139297 A TW 100139297A TW 100139297 A TW100139297 A TW 100139297A TW I525440 B TWI525440 B TW I525440B
Authority
TW
Taiwan
Prior art keywords
electronic device
data
boot code
code
data lock
Prior art date
Application number
TW100139297A
Other languages
Chinese (zh)
Other versions
TW201217976A (en
Inventor
Guo-He Huang
Rui-Lin Yan
Zheng-Zhong Ye
jun-qi Ye
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 filed Critical
Publication of TW201217976A publication Critical patent/TW201217976A/en
Application granted granted Critical
Publication of TWI525440B publication Critical patent/TWI525440B/en

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Description

具啟動電子裝置之資料拴鎖裝置及其啟動電子裝置的方法Data lock device with start-up electronic device and method for starting the same

    本發明係有關於一種資料拴鎖裝置及其啟動電子裝置的方法,其係尤指一種具啟動電子裝置之資料拴鎖裝置及其啟動電子裝置的方法。The invention relates to a data shackle device and a method for starting the same, which particularly relates to a data shackle device with a starter electronic device and a method for starting the same.

    按,半導體儲存裝置是可以儲存資料的一種半導體晶片,此類型的半導體晶片可以接受外部的寫入命令與資料,並將資料寫入儲存於晶片;該類型的晶片也可以接收外部的讀取命令來讀取儲存在晶片上的資料,並向外部輸出資料;該類型的晶片還支援其他命令如抹除、重定等。這類型半導體儲存裝置包括但不限於一快閃記憶體(Flash memory)、EEPROM、FRAM、DRAM、SRAM、SDRAM或MRAM。與傳統的磁、光介質等儲存介質相比,半導體儲存裝置具有體積小、重量輕、容量大、可靠性高、耗電量小等優點,而且不需要特定的機械裝置來驅動。例如現今半導體儲存裝置可無驅動器、無須開機;存取速度快,容量大大超過軟碟;體積小,攜帶方便,不易損壞。
    如此,電腦科技發展,人與人之間的資訊傳遞頻繁,所以隨身快閃儲存裝置成為每個人必備的電子產品。而現今市面上許多電子產品亦提供了隨身快閃儲存裝置的介面可供使用,現今的儲存裝置可分割成一個或二個以上的儲存空間供使用者,以增加使用上的便利性。
    然而,現在傳統軟碟機和磁片的作用越來越小,特別是當快閃儲存裝置發明以後,資料的交流均可不依賴軟碟機和磁片。但當今使用電腦的人們卻發現仍然離不開軟碟機和磁片,其原因之一是上述快閃儲存裝置無法支援電腦啟動,當電腦系統被病毒破壞或被病毒感然時需要一張乾淨的啟動磁片來從BIOS(Basic Input and Output System,基本輸入輸出系統)重新啟動電腦。一台主機採用內置式軟碟機,以備系統啟動之用,這樣一來增加了主機系統的體積和重量,以及成本。雖然目前快閃儲存裝置例如DiskOnChip可以支援電腦啟動,但因為它內置於主機系統,不能熱拔插和移動,當主機被病毒感染破壞時,無法通過DiskOnChip啟動系統,從而限制了其應用範圍。
    因此,如何針對上述問題而提出一種新穎具有啟動電子裝置功能之資料拴鎖裝置及其啟動電子裝置的方法,其可增加資料拴鎖裝置在應用層面上能更廣泛和更方便,使可解決上述之問題。
Press, the semiconductor storage device is a semiconductor wafer that can store data. This type of semiconductor wafer can accept external write commands and data, and write data to the wafer; this type of wafer can also receive external read commands. To read the data stored on the wafer and output the data to the outside; this type of chip also supports other commands such as erasing, re-setting, and the like. Semiconductor storage devices of this type include, but are not limited to, a flash memory, EEPROM, FRAM, DRAM, SRAM, SDRAM, or MRAM. Compared with conventional storage media such as magnetic and optical media, the semiconductor storage device has the advantages of small size, light weight, large capacity, high reliability, low power consumption, and the like, and does not require a specific mechanical device to drive. For example, today's semiconductor storage devices can be driven without a boot, have a fast access speed, and have a capacity that greatly exceeds that of a floppy disk; they are small in size, easy to carry, and not easily damaged.
In this way, the development of computer technology and frequent information transmission between people, so the flash memory storage device becomes an essential electronic product for everyone. Many electronic products on the market today also provide an interface for portable flash storage devices. Today's storage devices can be divided into one or more storage spaces for users to increase the convenience of use.
However, the role of the conventional floppy disk drive and the magnetic disk is becoming smaller and smaller, especially after the invention of the flash memory device, the data exchange can be independent of the floppy disk drive and the magnetic disk. However, people who use computers today find that they are still inseparable from floppy disks and magnetic disks. One of the reasons is that the flash memory device cannot support computer startup. When the computer system is damaged by viruses or is affected by viruses, it needs a clean one. Start the disk to restart the computer from the BIOS (Basic Input and Output System). A host computer uses a built-in floppy disk drive for system startup, which increases the size and weight of the host system, as well as the cost. Although the current flash storage device, such as DiskOnChip, can support computer startup, because it is built into the host system, it cannot be hot plugged and moved. When the host is damaged by a virus, the system cannot be booted through DiskOnChip, thereby limiting its application range.
Therefore, how to solve the above problems and propose a novel data shackle device having the function of starting an electronic device and a method for starting the same, which can increase the data shackle device can be more extensive and convenient at the application level, so that the above can be solved. The problem.

    本發明之目的之一,在於提供一種具啟動電子裝置之資料拴鎖裝置及其啟動電子裝置的方法,其藉由一資料拴鎖裝置連接一電子裝置時,資料拴鎖裝置之身分為一主機,並讀取且傳送本身所儲存之一開機碼至電子裝置而供電子裝置執行以啟動,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置。
    本發明之目的之一,在於提供一種具啟動電子裝置之資料拴鎖裝置及其啟動電子裝置的方法,其藉由控制單元比較儲存空間之開機碼與電子裝置之開機碼,而更新該電子裝置之該開機碼,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置。
    本發明之目的之一,在於提供一種具啟動電子裝置之資料拴鎖裝置及其啟動電子裝置的方法,其藉由一控制單元讀取電子裝置之開機碼,並得知電子裝置之開機碼損壞,而傳送儲存空間之開機碼傳送至電子裝置,而修復電子裝置之開機碼,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置。
    本發明之具啟動電子裝置之資料拴鎖裝置,其包含至少一儲存單元與一控制單元,資料拴鎖裝置包含複數儲存空間,該些儲存空間之一儲存至少一開機碼,控制單元耦接儲存單元,並存取儲存單元之開機碼。本發明之資料拴鎖裝置啟動電子裝置的方法係連接資料拴鎖裝置與一電子裝置,控制單元轉變資料拴鎖裝置之身分為一主機,接著控制單元讀取資料拴鎖裝置之儲存空間所儲存之開機碼,並傳送開機碼至電子裝置,電子裝置接收開機碼並依據開機碼而進行開機。如此,本發明藉由資料拴鎖裝置連接電子裝置時,資料拴鎖裝置之身分為一主機,並讀取且傳送本身所儲存之開機碼至電子裝置而供電子裝置執行而啟動,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置。
    再者,電子裝置儲存一開機碼,並在資料拴鎖裝置連接該電子裝置時,控制單元讀取電子裝置之開機碼,並比較儲存空間之開機碼與電子裝置之開機碼,以更新電子裝置之開機碼;或是在資料拴鎖裝置連接電子裝置時,控制單元讀取電子裝置之開機碼,並得知電子裝置之開機碼損壞,而傳送儲存空間之該開機碼傳送至電子裝置,以修復電子裝置之開機碼。如此,可達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置。
One of the objects of the present invention is to provide a data lock device with a start-up electronic device and a method for starting the same. When a data lock device is connected to an electronic device, the data lock device is divided into a host. And reading and transmitting one of the boot code stored by itself to the electronic device for execution by the electronic device to enable the user to use the data shackle device more widely and conveniently.
One of the objectives of the present invention is to provide a data lock device with an activation electronic device and a method for starting the same, which update the electronic device by comparing the boot code of the storage space with the boot code of the electronic device by the control unit. The boot code is used to enable the user to use the data lock device more widely and conveniently.
One of the objectives of the present invention is to provide a data locking device with an activation electronic device and a method for starting the electronic device, which reads a power-on code of the electronic device by a control unit, and knows that the power-on code of the electronic device is damaged. The boot code of the transfer storage space is transmitted to the electronic device, and the boot code of the electronic device is repaired to enable the user to use the data lock device more widely and conveniently.
The data lock device of the present invention includes at least one storage unit and a control unit. The data lock device includes a plurality of storage spaces, and one of the storage spaces stores at least one boot code, and the control unit is coupled and stored. Unit, and access the boot code of the storage unit. The data locking device of the present invention activates the electronic device by connecting the data locking device and an electronic device. The control unit converts the data locking device into a host, and then the control unit reads the storage space of the data locking device. The boot code and the boot code are transmitted to the electronic device, and the electronic device receives the boot code and starts the boot according to the boot code. Thus, when the data lock device is connected to the electronic device, the data lock device is divided into a host, and the boot code stored therein is read and transmitted to the electronic device for execution by the electronic device to be activated. The user can use the data lock device more widely and conveniently.
Furthermore, the electronic device stores a boot code, and when the data lock device is connected to the electronic device, the control unit reads the boot code of the electronic device, and compares the boot code of the storage space with the boot code of the electronic device to update the electronic device. The boot code; or when the data lock device is connected to the electronic device, the control unit reads the boot code of the electronic device, and knows that the boot code of the electronic device is damaged, and the boot code for transferring the storage space is transmitted to the electronic device, Repair the boot code of the electronic device. In this way, the user can use the data shackle device more widely and conveniently.

    茲為使 貴審查委員對本發明之結構特徵及所達成之功效有更進一步之瞭解與認識,謹佐以較佳之實施例及配合詳細之說明,說明如後:
    請參閱第一圖,其為本發明之具啟動電子裝置之資料拴鎖裝置之一實施例的方塊圖。如圖所示,本發明之資料拴鎖裝置1為一可攜式資料拴鎖裝置,例如半導體儲存裝置(Flash memory),隨身碟或行動硬碟等。本發明主要是藉由可攜式資料拴鎖裝置儲存開機碼(Boot code)並用以來對電子裝置進行開機,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置1。以下係針對如何利用可攜式資料拴鎖裝置來對電子裝置進行開機程序而進行說明。
    本發明之資料拴鎖裝置1包含至少一儲存單元10與一控制單元20。儲存單元10包含複數儲存空間12,14,16,該些儲存空間12,14,16之其中之一儲存至少一開機碼(Boot code),於此實施例中,儲存單元10之儲存空間16儲存開機碼與其他系統資料(System info)。控制單元20耦接儲存單元10,用以存取儲存單元10之該些儲存空間12,14,16所儲存的資料,並在資料拴鎖裝置1連接一電子裝置30(例如數位相機、印表機或翻譯機等)時,控制單元20宣告資料拴鎖裝置1為一主控端(Host),並控制單元20讀取並傳送儲存單元10之開機碼至電子裝置30,以開機電子裝置30。
    於本實施例中,本發明之資料拴鎖裝置1具有OTG(On The Go)功能,即當資料拴鎖裝置1連接電子裝置30時,控制單元20會向電子裝置30宣告資料拴鎖裝置1為主控端(Host),而透過endpoint0執行資料傳輸,以及執行列舉(enumerate)動作使電子裝置30為裝置端,所以,資料拴鎖裝置1之控制單元20可以讀取電子裝置之一描述(descriptor)資訊與電子裝置30的一相關資訊,而得知儲存單元10之儲存空間16所儲存之開機碼是否為電子裝置30的開機碼,若儲存空間16所儲存之開機碼符合電子裝置30的開機碼時,控制單元20則會讀取儲存空間16所儲存之開機碼,並傳送開機碼至電子裝置30,使電子裝置30可執行開機碼而啟動。如此,本發明藉由資料拴鎖裝置1連接電子裝置30時,資料拴鎖裝置1之身分轉變為主控端,並讀取且傳送本身所儲存之開機碼至電子裝置30而啟動電子裝置30,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置1。
    此外,儲存單元10可儲存多種不同開機碼,例如儲存單元10可儲存數位相機的開機碼、印表機的開機碼以及翻譯機的開機碼,如此,本發明之資料拴鎖裝置1即可支援數位相機、印表機與翻譯機的開機,即使用者只需要使用一個可攜式的資料拴鎖裝置1即可對數位相機、印表機與翻譯機而進行開機,而不再需要對應數位相機、印表機與翻譯機使用不同的開機軟碟或開機光碟,而讓使用者能更廣泛和更方便地使用資料拴鎖裝置1。
    另外,如第一圖所示,本發明之資料拴鎖裝置1與電子裝置30連接時,資料拴鎖裝置1可分為實體端(Physical)與邏輯端(Logical),即本發明之資料拴鎖裝置1經過一實體與一邏輯間的配對(mapping)機制,而使用者可藉由應用程式或顯示裝置得知資料拴鎖裝置1內部之邏輯區域分為多個儲存空間,儲存空間12,14,16,儲存空間16儲存開機碼與其他系統資料(System info),即資料拴鎖裝置1內部之邏輯區域為使用者能看見的區域,控制單元20會依據邏輯區域的儲存空間而對應儲存於儲存單元10內。
    又,本發明之資料拴鎖裝置1更包含一傳輸介面40,傳輸介面40耦接控制單元20,並用以連接電子裝置30與資料拴鎖裝置1,而傳輸資料和開機碼。其中,傳輸介面40為一通用串列匯流排(Universal Serial Bus,USB)、一小型電腦系統介面(Small Computer System Interface,SCSI)、一AT傳輸介面(AT Attachment,ATA)、一可編程通用輸入輸出(General Purpose Input/Output,GPIO)或一序列周邊介面(Serial Peripheral Interface bus,SPI)。
    請一併參閱第二圖,為本發明之資料拴鎖裝置1啟動電子裝置的方法之一實施例的流程圖。如圖所示,本發明之資料拴鎖裝置1啟動電子裝置的方法係先執行步驟S10啟動資料拴鎖裝置1與電子裝置的電源並連接資料拴鎖裝置1與電子裝置30,接著,執行步驟S12判斷電子裝置30執行內部儲存之開機碼(如步驟S14所示)或是執行外部資料拴鎖裝置1中所儲存的開機碼,其中,電子裝置30可以自行確認是載入內部記憶單元(ROM)所儲存之開機碼,還是載入外部資料拴鎖裝置1所儲存之開機碼,當然電子裝置30可以直接設定為載入外部資料拴鎖裝置1儲存之開機碼來啟動。
    再者,執行步驟S16資料拴鎖裝置1之控制單元20宣告資料拴鎖裝置1為主控端,而電子裝置30為裝置端,接著執行步驟S18訊號交流(Handshaking)資料拴鎖裝置1與電子裝置30,以資料拴鎖裝置1辨識與匹配電子裝置30,而確認資料拴鎖裝置1所儲存之開機碼符合電子裝置30所需要之開機碼,當資料拴鎖裝置1確認本身所儲存之開機碼不符合電子裝置30所需要之開機碼時,則回到執行步驟S14電子裝置30載入內部記憶單元(ROM)所儲存之開機碼;當資料拴鎖裝置1確認本身所儲存之開機碼符合電子裝置30所需要之開機碼時,則執行步驟S20讀取資料拴鎖裝置1所儲存之開機碼,並執行步驟S22傳送開機碼至電子裝置30。
    之後,執行步驟S24電子裝置30執行開機碼而進行啟動程序,其中,資料拴鎖裝置1將開機碼載入電子裝置30後,電子裝置30便會中斷與資料拴鎖裝置1的連結,而執行開機碼進行啟動程序,以避免電子裝置30在執行開機碼的過程中,資料拴鎖裝置1仍繼續傳輸資料至電子裝置30,造成電子裝置啟動失敗。接下來執行步驟S26電子裝置重新列舉(re-enumrate)資料拴鎖裝置1,資料拴鎖裝置1宣告為裝置端,即當電子裝置30完成啟動程序之後,資料拴鎖裝置1之控制單元20則會宣告資料拴鎖裝置1為裝置端,而供電子裝置存取資料之用,之後,執行步驟S28電子裝置存取資料於資料拴鎖裝置1。
    請一併參閱第三圖,為本發明之訊號交流資料拴鎖裝置1與電子裝置之步驟的詳細流程圖。如圖所示,在訊號交流資料拴鎖裝置1與電子裝置30之步驟中還包含了資料拴鎖裝置1辨識電子裝置30以及匹配資料拴鎖裝置1與電子裝置以讀取資料拴鎖裝置1所儲存之開機碼。其中,在資料拴鎖裝置1辨識電子裝置30中係先執行步驟S180設定資料拴鎖裝置1與電子裝置之間的一傳輸位址,即資料拴鎖裝置1此時為主控端,所以資料拴鎖裝置1會給電子裝置30一個獨一無二的位址,而作為資料拴鎖裝置1與電子裝置30之後溝通的位址之用,以完成定址的程序。接著執行步驟S182依據傳輸位址取得電子裝置之一描述(descriptor)資訊,即資料拴鎖裝置1之控制單元20會透過傳輸位址而取電子裝置30的描述資訊,其中描述資訊包含了一裝置描述(Device Descriptor)、一配置描述(Configuration Descriptor)、一介面描述(Interface Descriptor)、一端點描述(Endpoint Descriptor)或是一字串描述(String Descriptor)。其中,裝置描述的內容包含USB規格,VID/PID與配置數目;配置描述的內容包含特性與介面個數;介面描述的內容包含裝置類型與規格,端點個數;端點描述的內容包含資料傳輸端點、模式、方向、大小和間隔;字串描述的內容包含文字說明。如此,經過上述的流程,資料拴鎖裝置1即可完成與電子裝置30之間的傳輸辨識。
    再者,經過上述之標準傳輸協定(Standard command)的辨識程序之後,即可執行本發明之特定傳輸協定(Vendor command),而匹配資料拴鎖裝置1與電子裝置30以讀取資料拴鎖裝置1所儲存之開機碼,其包含了執行步驟S184傳送電子裝置之一辨識碼(ID)至資料拴鎖裝置1,即資料拴鎖裝置1之控制單元20會發送命令至電子裝置30,使電子裝置30依據控制單元20所發出的命令而對應輸出辨識碼(ID),之後,執行步驟S186資料拴鎖裝置1依據辨識碼,得知開機碼符合電子裝置30,以讀取資料拴鎖裝置1所儲存之開機碼,即控制單元20接收辨識碼後,即可得知資料拴鎖裝置1所儲存之開機碼是否為電子裝置30所需要的開機碼,當資料拴鎖裝置1所儲存之開機碼為電子裝置30所需要的開機碼時,而資料拴鎖裝置1會傳送開機碼至電子裝置30,而供電子裝置30執行開機碼而啟動。
    請復參閱第一圖,若電子裝置30也儲存一開機碼時,在資料拴鎖裝置1連接電子裝置30時,控制單元20會比較儲存空間16所儲存之開機碼與電子裝置30所儲存之開機碼,以更新電子裝置30之開機碼,即控制單元20可以藉由電子裝置30所傳送至辨識碼而得知電子裝置30內部開機碼的版本,並比較儲存空間16所儲存之開機碼的版本與電子裝置30所儲存之開機碼的版本,當資料拴鎖裝置1所儲存之開機碼的版本是新版本時,則資料拴鎖裝置1會傳送本身所儲存之開機碼的版本至電子裝置30,而更新電子裝置30之開機碼,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置1。
    再者,在資料拴鎖裝置1連接電子裝置30時,資料拴鎖裝置1會判斷電子裝置30之開機碼之狀態,以在該電子裝置之開機碼損壞時,而傳送儲存空間16之開機碼傳送至電子裝置30,以修復電子裝置30之開機碼,即在電子裝置30也儲存開機碼時,資料拴鎖裝置1可以藉由電子裝置30所傳送至辨識碼而得知電子裝置30內部開機碼的狀態,例如藉由辨識碼的部分位元而可判斷電子裝置30之開機碼之狀態,或是資料拴鎖裝置1可在主控端時,發出命令,要求電子裝置30回傳內部儲存之開機碼的狀態,供資料拴鎖裝置1之控制單元20判斷電子裝置30之開機碼之狀態,當電子裝置之開機碼損壞時,而傳送儲存空間16之開機碼傳送至電子裝置30,以修復電子裝置30之開機碼,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置1。。
    綜上所述,本發明之具啟動電子裝置之資料拴鎖裝置,其由一資料拴鎖裝置包含複數儲存空間,該些儲存空間之一儲存至少一開機碼,一控制單元用以存取儲存單元之開機碼。本發明之資料拴鎖裝置啟動電子裝置的方法係於連接資料拴鎖裝置與一電子裝置,資料拴鎖裝置宣告為一主機,接著控制單元讀取資料拴鎖裝置之儲存空間所儲存之開機碼,並傳送開機碼至電子裝置而供該電子裝置執行而啟動,以達到讓使用者能更廣泛和更方便地使用資料拴鎖裝置。
    本發明係實為一具有新穎性、進步性及可供產業利用者,應符合我國專利法所規定之專利申請要件無疑,爰依法提出發明專利申請,祈 鈞局早日賜准專利,至感為禱。
    惟以上所述者,僅為本發明之一較佳實施例而已,並非用來限定本發明實施之範圍,舉凡依本發明申請專利範圍所述之形狀、構造、特徵及精神所為之均等變化與修飾,均應包括於本發明之申請專利範圍內。
In order to provide a better understanding and understanding of the structural features and the achievable effects of the present invention, the preferred embodiments and detailed descriptions are provided as follows:
Please refer to the first figure, which is a block diagram of an embodiment of a data lock device with an activation electronic device of the present invention. As shown in the figure, the data lock device 1 of the present invention is a portable data lock device, such as a semiconductor memory device (Flash memory), a flash drive or a mobile hard disk. The invention mainly uses a portable data lock device to store a boot code and activates the electronic device to enable the user to use the data lock device 1 more widely and conveniently. The following is a description of how to use the portable data lock device to boot the electronic device.
The data lock device 1 of the present invention comprises at least one storage unit 10 and a control unit 20. The storage unit 10 includes a plurality of storage spaces 12, 14, 16 and one of the storage spaces 12, 14, 16 stores at least one boot code. In this embodiment, the storage space 16 of the storage unit 10 is stored. Boot code and other system information (System info). The control unit 20 is coupled to the storage unit 10 for accessing the data stored in the storage spaces 12, 14, 16 of the storage unit 10, and is connected to the electronic device 30 at the data locking device 1 (for example, a digital camera, a printer) The control unit 20 declares that the data lock device 1 is a host (Host), and the control unit 20 reads and transmits the boot code of the storage unit 10 to the electronic device 30 to boot the electronic device 30. .
In the present embodiment, the data shackle device 1 of the present invention has an OTG (On The Go) function, that is, when the data shackle device 1 is connected to the electronic device 30, the control unit 20 announces the data shackle device 1 to the electronic device 30. As the host, the data transmission is performed through the endpoint 0, and the enumeration action is performed to make the electronic device 30 be the device end. Therefore, the control unit 20 of the data lock device 1 can read one of the descriptions of the electronic device ( The information of the information and the electronic device 30 is related to the electronic device 30. The boot code stored in the storage space 16 of the storage unit 10 is the boot code of the electronic device 30. When the code is turned on, the control unit 20 reads the boot code stored in the storage space 16 and transmits the boot code to the electronic device 30 to enable the electronic device 30 to execute the boot code. Thus, when the data lock device 1 is connected to the electronic device 30, the identity of the data lock device 1 is converted into a master terminal, and the boot code stored therein is read and transmitted to the electronic device 30 to activate the electronic device 30. In order to enable the user to use the data shackle 1 more widely and conveniently.
In addition, the storage unit 10 can store a plurality of different boot codes. For example, the storage unit 10 can store the boot code of the digital camera, the boot code of the printer, and the boot code of the translator. Thus, the data lock device 1 of the present invention can support The digital camera, the printer and the translation machine are turned on, that is, the user only needs to use a portable data lock device 1 to turn on the digital camera, the printer and the translation machine, and no corresponding digital digits are needed. Cameras, printers and translators use different boot floppy or bootable CDs, allowing users to use the data lock device 1 more widely and conveniently.
In addition, as shown in the first figure, when the data lock device 1 of the present invention is connected to the electronic device 30, the data lock device 1 can be divided into a physical end and a logical end, that is, the data of the present invention. The lock device 1 passes through a mapping mechanism between a physical entity and a logical device, and the user can know by the application program or the display device that the logical area inside the data lock device 1 is divided into a plurality of storage spaces, and the storage space 12 is 14,16, the storage space 16 stores the boot code and other system data (System info), that is, the logical area inside the data lock device 1 is an area that can be seen by the user, and the control unit 20 stores correspondingly according to the storage space of the logical area. In the storage unit 10.
Moreover, the data shackle device 1 of the present invention further includes a transmission interface 40 coupled to the control unit 20 for connecting the electronic device 30 and the data shackle device 1 to transmit data and a boot code. The transmission interface 40 is a universal serial bus (USB), a small computer system interface (SCSI), an AT transmission interface (ATA), and a programmable universal input. General Purpose Input/Output (GPIO) or a Serial Peripheral Interface Bus (SPI).
Please refer to the second figure, which is a flowchart of an embodiment of a method for starting the electronic device by the data locking device 1 of the present invention. As shown in the figure, the data locking device 1 of the present invention activates the electronic device by first performing step S10 to start the power supply of the data locking device 1 and the electronic device, and connects the data locking device 1 and the electronic device 30, and then performs the steps. S12 determines that the electronic device 30 executes the internal storage boot code (as shown in step S14) or executes the boot code stored in the external data lock device 1, wherein the electronic device 30 can confirm that it is loaded into the internal memory unit (ROM). The stored boot code is also loaded with the boot code stored in the external data lock device 1. Of course, the electronic device 30 can be directly set to start by loading the boot code stored in the external data lock device 1.
Furthermore, the control unit 20 executing the step S16 of the data locking device 1 declares that the data locking device 1 is the main control terminal, and the electronic device 30 is the device terminal, and then performs the step S18 signal exchange (Handshaking) data locking device 1 and the electronic device. The device 30 recognizes and matches the electronic device 30 with the data locking device 1, and confirms that the power-on code stored in the data locking device 1 meets the power-on code required by the electronic device 30, and when the data locking device 1 confirms that it is stored. When the code does not meet the boot code required by the electronic device 30, the device returns to the boot code stored in the internal memory unit (ROM) of the electronic device 30 in step S14; when the data lock device 1 confirms that the boot code stored therein is consistent When the power-on code required by the electronic device 30 is performed, the power-on code stored in the data lock device 1 is read in step S20, and the power-on code is transmitted to the electronic device 30 in step S22.
After that, the electronic device 30 executes the booting process to execute the booting process. After the data lock device 1 loads the boot code into the electronic device 30, the electronic device 30 interrupts the connection with the data lock device 1 and executes. The boot code is used to start the program to prevent the data lock device 1 from continuing to transmit data to the electronic device 30 during the execution of the boot code, causing the electronic device to fail to start. Next, in step S26, the electronic device re-enumrates the data lock device 1. The data lock device 1 is declared as the device end, that is, after the electronic device 30 completes the startup process, the control unit 20 of the data lock device 1 The data lock device 1 is declared to be the device end, and the electronic device accesses the data. Thereafter, the electronic device accesses the data to the data lock device 1 in step S28.
Please refer to the third figure for a detailed flowchart of the steps of the signal exchange data locking device 1 and the electronic device of the present invention. As shown in the figure, the step of the signal exchange device 1 and the electronic device 30 further includes the data lock device 1 identifying the electronic device 30 and the matching data lock device 1 and the electronic device to read the data lock device 1 The boot code stored. Wherein, in the identification electronic device 30, the data locking device 1 first performs step S180 to set a transmission address between the data locking device 1 and the electronic device, that is, the data locking device 1 is the main control terminal at this time, so the data is The shackle device 1 will give the electronic device 30 a unique address and serve as an address for the data shackle device 1 to communicate with the electronic device 30 to complete the addressing process. Then, step S182 is executed to obtain one of the descriptor information of the electronic device according to the transmission address, that is, the control unit 20 of the data locking device 1 takes the description information of the electronic device 30 by transmitting the address, wherein the description information includes a device. A Device Descriptor, a Configuration Descriptor, an Interface Descriptor, an Endpoint Descriptor, or a String Descriptor. The content of the device description includes the USB specification, the VID/PID and the number of configurations; the content of the configuration description includes the number of features and interfaces; the content of the interface description includes the device type and specification, the number of endpoints; and the content of the endpoint description includes the data. The endpoint, mode, direction, size, and spacing are transmitted; the description of the string contains a textual description. Thus, after the above process, the data lock device 1 can complete the transmission identification with the electronic device 30.
Furthermore, after the identification procedure of the standard transmission command described above, the specific transmission protocol (Vendor command) of the present invention can be executed, and the data locking device 1 and the electronic device 30 are matched to read the data locking device. 1 stored boot code, which includes performing an identification code (ID) of the transmitting electronic device to the data lock device 1 in step S184, that is, the control unit 20 of the data lock device 1 sends a command to the electronic device 30 to make the electronic The device 30 correspondingly outputs an identification code (ID) according to the command issued by the control unit 20, and then executes the step S186. The data locking device 1 learns that the boot code conforms to the electronic device 30 according to the identification code to read the data locking device 1 The stored boot code, that is, after the control unit 20 receives the identification code, it can be known whether the boot code stored in the data lock device 1 is the boot code required by the electronic device 30, and is turned on when the data lock device 1 is stored. When the code is the boot code required by the electronic device 30, the data lock device 1 transmits the boot code to the electronic device 30, and the electronic device 30 activates the boot code.
Referring to the first figure, if the electronic device 30 also stores a boot code, when the data lock device 1 is connected to the electronic device 30, the control unit 20 compares the boot code stored in the storage space 16 with the electronic device 30. The boot code is used to update the boot code of the electronic device 30, that is, the control unit 20 can learn the version of the internal boot code of the electronic device 30 by transmitting the identification code to the electronic device 30, and compare the boot code stored in the storage space 16 with the boot code. The version of the boot code stored in the version and the electronic device 30. When the version of the boot code stored in the data lock device 1 is a new version, the data lock device 1 transmits the version of the boot code stored therein to the electronic device. 30. The boot code of the electronic device 30 is updated to enable the user to use the data lock device 1 more widely and conveniently.
Moreover, when the data lock device 1 is connected to the electronic device 30, the data lock device 1 determines the state of the power-on code of the electronic device 30, and transmits the boot code of the storage space 16 when the boot code of the electronic device is damaged. The device is transferred to the electronic device 30 to repair the power-on code of the electronic device 30. When the electronic device 30 also stores the power-on code, the data lock device 1 can learn that the electronic device 30 is powered on by the electronic device 30. The state of the code, for example, the state of the power-on code of the electronic device 30 can be judged by the partial bit of the identification code, or the data lock device 1 can issue a command at the master terminal, requesting the electronic device 30 to return the internal storage. The state of the boot code is used by the control unit 20 of the data lock device 1 to determine the state of the boot code of the electronic device 30. When the boot code of the electronic device is damaged, the boot code of the transfer storage space 16 is transmitted to the electronic device 30 to The boot code of the electronic device 30 is repaired to enable the user to use the data lock device 1 more widely and conveniently. .
In summary, the data lock device of the present invention has a data lock device comprising a plurality of storage spaces, one of the storage spaces storing at least one boot code, and a control unit for accessing and storing. The unit's boot code. The data locking device of the present invention activates the electronic device by connecting the data locking device and an electronic device, and the data locking device is declared as a host, and then the control unit reads the boot code stored in the storage space of the data locking device. And transmitting the boot code to the electronic device for activation by the electronic device to enable the user to use the data lock device more widely and conveniently.
The invention is a novelty, progressive and available for industrial use, and should meet the requirements of the patent application stipulated in the Patent Law of China, and the invention patent application is filed according to law, and the prayer bureau will grant the patent as soon as possible. prayer.
However, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and the shapes, structures, features, and spirits described in the claims are equivalently changed. Modifications are intended to be included in the scope of the patent application of the present invention.

本發明:this invention:

1...資料拴鎖裝置1. . . Data lock device

10...儲存單元10. . . Storage unit

12...儲存空間12. . . storage space

14...儲存空間14. . . storage space

16...儲存空間16. . . storage space

20...控制單元20. . . control unit

30...電子裝置30. . . Electronic device

40...傳輸介面40. . . Transmission interface

第一圖為本發明之具有啟動電子裝置功能之資料拴鎖裝置之一實施例的方塊圖;
第二圖為本發明之資料拴鎖裝置啟動電子裝置的方法之一實施例的流程圖;以及
第三圖為本發明之訊號交流資料拴鎖裝置與電子裝置之步驟的詳細流程圖。
The first figure is a block diagram of an embodiment of a data lock device having the function of activating an electronic device of the present invention;
2 is a flow chart of an embodiment of a method for starting an electronic device by a data lock device of the present invention; and a third flowchart showing a detailed flow chart of the steps of the signal exchange device and the electronic device of the present invention.

1...資料拴鎖裝置1. . . Data lock device

10...儲存單元10. . . Storage unit

12...儲存空間12. . . storage space

14...儲存空間14. . . storage space

16...儲存空間16. . . storage space

20...控制單元20. . . control unit

30...電子裝置30. . . Electronic device

40...傳輸介面40. . . Transmission interface

Claims (11)

一種具啟動電子裝置之資料拴鎖裝置,其包含:一儲存單元,包含複數儲存空間,該些儲存空間之一儲存至少一開機碼;以及一控制單元,耦接該儲存單元,並在該資料拴鎖裝置連接一電子裝置時,該控制單元宣告該資料拴鎖裝置為一主控端,並該控制單元讀取並傳送該儲存單元之該開機碼至該電子裝置,以供該電子裝置執行而啟動該電子裝置;其中,該電子裝置儲存一開機碼,在該資料拴鎖裝置連接該電子裝置時,該資料拴鎖裝置依據該電子裝置回傳之一資訊判斷該電子裝置之該開機碼的狀態,以在該電子裝置之該開機碼損壞時,而傳送該儲存空間之該開機碼至該電子裝置,以修復該電子裝置之該開機碼。 A data lock device with a start-up electronic device, comprising: a storage unit, comprising a plurality of storage spaces, one of the storage spaces storing at least one boot code; and a control unit coupled to the storage unit and at the data When the shackle device is connected to an electronic device, the control unit announces that the data slamming device is a master terminal, and the control unit reads and transmits the power-on code of the storage unit to the electronic device for execution by the electronic device And starting the electronic device; wherein the electronic device stores a boot code, and when the data lock device is connected to the electronic device, the data lock device determines the boot code of the electronic device according to the information returned by the electronic device a state of transmitting the boot code of the storage space to the electronic device to repair the boot code of the electronic device when the boot code of the electronic device is damaged. 如申請專利範圍第1項所述之資料拴鎖裝置,其更包含:一傳輸介面,耦接該控制單元,並用以連接該電子裝置,而傳輸訊號與該開機碼。 The information shackle device of claim 1, further comprising: a transmission interface coupled to the control unit and configured to connect the electronic device to transmit the signal and the boot code. 如申請專利範圍第2項所述之資料拴鎖裝置,其中該傳輸介面為一通用串列匯流排(Universal Serial Bus,UBS)、一小型電腦系統介面(Small Computer System Interface,SCSI)、一AT傳輸介面(AT Attachment,ATA)、一可編程通用輸入輸出(General Purpose Input/Output,GPIO)或一序列周邊介面(Serial Peripheral Interface bus,SPI)。 The information shackle device of claim 2, wherein the transmission interface is a Universal Serial Bus (UBS), a Small Computer System Interface (SCSI), an AT. Transmission interface (ATA), a General Purpose Input/Output (GPIO) or a Serial Peripheral Interface Bus (SPI). 如申請專利範圍第1項所述之資料拴鎖裝置,其中 該電子裝置儲存該開機碼,在該資料拴鎖裝置連接該電子裝置時,該控制單元比較該儲存空間之該開機碼與該電子裝置之該開機碼,以更新該電子裝置之該開機碼。 For example, the data shackle device described in claim 1 of the patent scope, wherein The electronic device stores the boot code. When the data lock device is connected to the electronic device, the control unit compares the boot code of the storage space with the boot code of the electronic device to update the boot code of the electronic device. 如申請專利範圍第1項所述之資料拴鎖裝置,其中該資料拴鎖裝置啟動該電子裝置後,該控制單元宣告為該資料拴鎖裝置。 The data shackle device of claim 1, wherein the data slamming device activates the electronic device, and the control unit announces the data shackle device. 一種資料拴鎖裝置啟動電子裝置的方法,其步驟包含:連接該資料拴鎖裝置與一電子裝置;宣告該資料拴鎖裝置為一主控端;讀取該資料拴鎖裝置所儲存之一開機碼;以及傳送該開機碼至該電子裝置,以供該電子裝置執行而啟動;其中,該電子裝置儲存一開機碼,在該資料拴鎖裝置連接該電子裝置時,該資料拴鎖裝置依據該電子裝置回傳之一資訊判斷該電子裝置之該開機碼之狀態,以在該電子裝置之該開機碼損壞時,而傳送該資料拴鎖裝置之該開機碼至該電子裝置,以修復該電子裝置之該開機碼。 A data locking device for starting an electronic device, the method comprising: connecting the data locking device and an electronic device; declaring the data locking device as a main control terminal; and reading the data storage device And transmitting the boot code to the electronic device for activation by the electronic device; wherein the electronic device stores a boot code, and when the data lock device is connected to the electronic device, the data lock device is The electronic device returns a message to determine the state of the power-on code of the electronic device, to transmit the power-on code of the data lock device to the electronic device to repair the electronic device when the power-on code of the electronic device is damaged. The boot code of the device. 如申請專利範圍第6項所述之資料拴鎖裝置啟動電子裝置的方法,其於宣告該資料拴鎖裝置為一主控端之步驟後,更包含:信號交換(handshaking)該資料拴鎖裝置與該電子裝置。 The method for initiating an electronic device by the data locking device according to claim 6 of the patent application, after the step of declaring the data locking device as a main control terminal, further comprises: handshaking the data locking device With the electronic device. 如申請專利範圍第7項所述之資料拴鎖裝置啟動方法,其中於信號交換該資料拴鎖裝置與該電子裝置之 步驟中包含:辨識該電子裝置,以作為該資料拴鎖裝置與該電子裝置的傳輸辨識;以及匹配該資料拴鎖裝置與該電子裝置,以讀取該資料拴鎖裝置所儲存之該開機碼。 The method for starting a data lock device according to claim 7, wherein the data lock device and the electronic device are exchanged The step includes: identifying the electronic device as a transmission identification of the data locking device and the electronic device; and matching the data locking device and the electronic device to read the boot code stored by the data locking device . 如申請專利範圍第8項所述之資料拴鎖裝置啟動電子裝置的方法,其中於辨識該電子裝置之步驟中包含:設定該資料拴鎖裝置與該電子裝置之間的一傳輸位址;以及依據該傳輸位址取得該電子裝置之一描述(descriptor)資訊,而完成該資料拴鎖裝置與該電子裝置的傳輸辨識。 The method for the electronic device to be activated by the data locking device of claim 8, wherein the step of identifying the electronic device comprises: setting a transmission address between the data locking device and the electronic device; Obtaining one piece of descriptor information of the electronic device according to the transmission address, and completing transmission identification of the data locking device and the electronic device. 如申請專利範圍第8項所述之資料拴鎖裝置啟動電子裝置的方法,其中於匹配該資料拴鎖裝置與該電子裝置之步驟中包含:傳送該電子裝置之一辨識碼至該資料拴鎖裝置;以及該資料拴鎖裝置依據該辨識碼,得知該開機碼符合該電子裝置,以讀取該資料拴鎖裝置所儲存之該開機碼。 The method for initiating an electronic device by the data lock device according to claim 8 , wherein the step of matching the data lock device and the electronic device comprises: transmitting an identification code of the electronic device to the data lock And the data locking device according to the identification code, knowing that the boot code conforms to the electronic device to read the boot code stored by the data lock device. 如申請專利範圍第6項所述之資料拴鎖裝置啟動電子裝置的方法,其中該電子裝置儲存該開機碼,在該資料拴鎖裝置連接該電子裝置時,該資料拴鎖裝置比較該資料拴鎖裝置之該開機碼與該電子裝置之該開機碼,以更新該電子裝置之該開機碼。 The method for initiating an electronic device by the data lock device according to claim 6 wherein the electronic device stores the boot code, and the data lock device compares the data when the data lock device is connected to the electronic device. The boot code of the lock device and the boot code of the electronic device to update the boot code of the electronic device.
TW100139297A 2010-10-29 2011-10-28 A data latching device for starting an electronic device and a method of starting the electronic device TWI525440B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US40805810P 2010-10-29 2010-10-29

Publications (2)

Publication Number Publication Date
TW201217976A TW201217976A (en) 2012-05-01
TWI525440B true TWI525440B (en) 2016-03-11

Family

ID=46552363

Family Applications (2)

Application Number Title Priority Date Filing Date
TW100139301A TW201222321A (en) 2010-10-29 2011-10-28 Data storage verification method
TW100139297A TWI525440B (en) 2010-10-29 2011-10-28 A data latching device for starting an electronic device and a method of starting the electronic device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW100139301A TW201222321A (en) 2010-10-29 2011-10-28 Data storage verification method

Country Status (1)

Country Link
TW (2) TW201222321A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI516986B (en) 2014-06-18 2016-01-11 拓連科技股份有限公司 Function control methods and systems for wearable electronic devices, and related computer program products

Also Published As

Publication number Publication date
TW201217976A (en) 2012-05-01
TWI444848B (en) 2014-07-11
TW201222321A (en) 2012-06-01

Similar Documents

Publication Publication Date Title
JP5065297B2 (en) Method of booting host device from MMC / SD device, host device bootable from MMC / SD device, and MMC / SD device capable of booting host device
TWI335534B (en) Mass storage device with boot code
US20070168614A1 (en) Secure-Digital (SD) Flash Card with Auto-Adaptive Protocol and Capacity
CN1241142C (en) Method of communication between smart card and host station
TWI437494B (en) Memory card, memory system including the same, and operating method thereof
US8725909B2 (en) Method for identifying host operating system by universal serial bus (USB) device
WO2018076792A1 (en) Method and device for disk management in arm device and arm device
TW201640358A (en) Data storage method, memory module and data storage system
US20080256352A1 (en) Methods and systems of booting of an intelligent non-volatile memory microcontroller from various sources
WO2012034524A1 (en) Method for identifying version type of windows operation system of host by usb device
US20070147157A1 (en) Flash Card and Controller with Integrated Voltage Converter for Attachment to a Bus that can Operate at Either of Two Power-Supply Voltages
JP2010160809A (en) Multifunctional semiconductor storage device
US7908417B2 (en) Motherboard system, storage device for booting up thereof and connector
TWI660306B (en) Operating method of data storage device
US8069282B2 (en) SD switch box in a cellular handset
US20170123881A1 (en) Test method of volatile memory device embedded in electronic device
TWI525440B (en) A data latching device for starting an electronic device and a method of starting the electronic device
US20140365713A1 (en) Electronic system and operating method thereof
EP1394682B1 (en) Data transfer control device, program and method of fabricating an electronic instrument
US6516398B2 (en) Program-downloadable data processing system and method for accessing memory by using a unified memory space therein
US8209452B2 (en) External device having a virtual storage device
TW200844850A (en) Portable multi-platform booting systems and architectures
TWI718601B (en) Card reader, data reading and writing system, and reading and writing method thereof
WO2022064994A1 (en) Storage activation method
TWI486790B (en) Computer boot-up configuration system and computer boot-up configuration method