PERIPHERAL DEVICE CONTROLLING METHOD BY USING STORAGE DEVICE AND STORAGE DEVICE CAPABLE OF CONTROLLING PERIPHERAL DEVICES
20190034361 ยท 2019-01-31
Inventors
Cpc classification
G06F3/0632
PHYSICS
G06F16/1847
PHYSICS
G06F3/0679
PHYSICS
G06F2213/3804
PHYSICS
G06F3/0605
PHYSICS
International classification
Abstract
The present invention mainly discloses a storage device capable of controlling peripheral devices, which comprises a micro processing unit, a communication unit and a storage unit. Particularly, the storage unit is separated into a plurality of storage blocks and one file table block based on a file system, and parts of the storage blocks storing with device accessing files are further set to be a peripheral device controlling block. After connecting the storage device to a peripheral device and a host electronic device, the host electronic device can control the peripheral device through changing contents of the device accessing files. Thus, for the peripheral device manufactures, it just needs to develop driver software of this storage device and an application program for accessing the device accessing file, but does not need to develop corresponding peripheral device driver softwares compatible with various host operating systems, such as Windows and iOS.
Claims
1. A peripheral device controlling method, comprising following steps: (1) connecting a storage device to a peripheral device, wherein a storage unit of the storage device is separated into a plurality of storage blocks and one file table block based on a file system, and one of the plurality of storage blocks stored at least one device accessing file of the peripheral device; and wherein the peripheral device directly connects to a host electronic device or communicate with the host electronic device through the storage device; (2) providing a device file accessing unit in the host electronic device; (3) the device file accessing unit accessing at least one file table from the file table block, so as to find out the storage block storing with the device accessing file by looking up the file table; (4) the device file accessing unit setting the storage blocks storing with the device accessing file as a peripheral device controlling block; and (5) the host electronic device controlling the peripheral device executing actions by using the device file accessing unit to edit contents of the device accessing file stored in the peripheral device controlling block.
2. The peripheral device controlling method of claim 1, wherein the file system is selected from the group consisting of FAT, FAT8, FAT12, FAT16, FAT32, exFAT, ISO9660, UDF, NTFS, HFS, HFS+, ext2, ext3, and ext4.
3. The peripheral device controlling method of claim 1, wherein the host electronic device is selected from the group consisting of portable electronic device, server device, smart phone, tablet PC, smart watch, desk computer, laptop computer, and industrial computer.
4. The peripheral device controlling method of claim 1, wherein the storage device is selected from the group consisting of memory card, flash drive, and external hard disk drive.
5. The peripheral device controlling method of claim 1, wherein the operating system is selected from the group consisting of Windows, iOS, MAC OS X, Android, and Linux.
6. A storage device, being used to control a peripheral device in combination with a host electronic device; wherein a device file accessing unit is provided in the host electronic device, and the storage device comprising: a microprocessor unit; a communication unit, being coupled to the microprocessor unit and used for connecting to a first communication interface of the peripheral device; wherein the peripheral device connecting to the host electronic device by a second communication interface thereof; and a storage unit, being separated into a plurality of storage blocks and one file table block storing with at least one file table based on a file system; wherein the device file accessing unit is configured to find out at least one device accessing file from the plurality of storage blocks by looking up the file table, so as to set the storage block storing with the device accessing file as a peripheral device controlling block; wherein the host electronic device controls the peripheral device executing actions by using the device file accessing unit to edit contents of the device accessing file stored in the peripheral device controlling block.
7. The storage device of claim 6, wherein the file system is selected from the group consisting of FAT, FAT8, FAT12, FAT16, FAT32, exFAT, ISO9660, UDF, NTFS, HFS, HFS+, ext2, ext3, and ext4.
8. The storage device of claim 6, wherein the host electronic device is selected from the group consisting of portable electronic device, server device, smart phone, tablet PC, smart watch, desk computer, laptop computer, and industrial computer.
9. The storage device of claim 6, wherein the host electronic device is installed with an application program of accessing device file, used for accessing the contents of the device accessing file.
10. The storage device of claim 6, wherein the storage device is selected from the group consisting of memory card, flash drive, and external hard disk drive.
11.-12. (canceled)
13. A storage device, being used to control a peripheral device in combination with a host electronic device; wherein a device file accessing unit is provided in the host electronic device, and the storage device comprising: a microprocessor unit; a first communication unit, being coupled to the microprocessor unit and used for connecting to a communication interface of the peripheral device; a second communication unit, being coupled to the microprocessor unit and used for connecting to an I/O interface of the host electronic device; and a storage unit, being separated into a plurality of storage blocks and one file table block storing with at least one file table based on a file system; wherein the device file accessing unit is configured to find out at least one device accessing file from the plurality of storage blocks by looking up the file table, so as to set the storage block storing with the device accessing file as a peripheral device controlling block; wherein the host electronic device controls the peripheral device executing actions by using the device file accessing unit to edit contents of the device accessing file stored in the peripheral device controlling block.
14. The storage device of claim 13, wherein the file system is selected from the group consisting of FAT, FAT8, FAT12, FAT16, FAT32, exFAT, ISO9660, UDF, NTFS, HFS, HFS+, ext2, ext3, and ext4.
15. The storage device of claim 13, wherein the host electronic device is selected from the group consisting of portable electronic device, server device, smart phone, tablet PC, smart watch, desk computer, laptop computer, and industrial computer.
16. The storage device of claim 13, wherein the host electronic device is installed with an application program of accessing device file, used for accessing the contents of the device accessing file.
17. The storage device of claim 13, wherein the storage device is selected from the group consisting of memory card, flash drive, and external hard disk drive.
18.-19. (canceled)
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The invention as well as a preferred mode of use and advantages thereof will be best understood by referring to the following detailed description of an illustrative embodiment in conjunction with the accompanying drawings, wherein:
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0048] To more clearly describe a peripheral device controlling method by using storage device and a storage device capable of controlling peripheral devices according to the present invention, embodiments of the present invention will be described in detail with reference to the attached drawings hereinafter.
[0049] Before starting to introduce the peripheral device controlling method by using storage device of the present invention, it needs to firstly explain what is file system. File system is applied in a storage device for systematically organizing and arranging data stored in storage units or modules of the storage device. For instance, file allocation table, also abbreviated to FAT, is one type of file system developed by Microsoft. Moreover, as hard disk and flash drives evolved, the capabilities of the file system have been extended accordingly, resulting in several FAT variants, including FAT12, FAT16, FAT32, and exFAT(FAT64). It is worth mentioning that, extended file system (ext) was implemented in April 1992 as the first file system created specifically for the Linux kernel. Of course, there are still many types of file systems differing from FAT and ext being developed, such as HTFS and HFS+.
[0050]
[0051] After comparing
[0052] Based on the knowledge of the file systems and the experience on development and manufacture of USB devices, inventors of the present invention propose a new technology for making a host computer able to control its peripheral devices through a file system applied in a storage device. Please refer to
[0057] For facilitating engineers skilled in USB device developing and producing technology field able to understand this peripheral device controlling method more easily, in following paragraphs, stereo and framework diagrams of a storage device capable of controlling peripheral devices will be provided for auxiliarily explaining the peripheral device controlling method.
[0058] Particularly, the storage device 1 is also used for storing a plurality of setting parameters of the digital photo frame (peripheral device 2). According to
[0059] In the present invention, the storage unit 14 is separated into a plurality of storage blocks 141 and one file table block 143 based on a file system, wherein the storage blocks 141 storing with at least one device accessing files is further set as a peripheral device controlling block 142. In addition, the file table block 143 is also constituted by at least one storage block 141 for storing with at least one file table. After comparing
[0060] Moreover, because at least one storage block 141 is further set as a peripheral device controlling block 142 for storing at least one device accessing files, the host electronic device 3 is able to control the peripheral device 2 to execute actions after finding the peripheral device controlling block 142 through the file table and subsequently changing or editing contents of the device accessing file. Herein, the said host electronic device 3 does not limited to be a laptop computer, but can also be a portable electronic device, a server device, a smart phone, a tablet PC, a smart watch, a desk computer, or an industrial computer.
[0061] To more clearly explain how the host electronic device 3 controls the peripheral device 2. After a communication channel is established between an (USB) I/O interface 31 of the host electronic device 3 and the second (USB) communication interface 22 of the peripheral device 2, the device accessing file of monitor.xml can be easily found out from the storage device 1. Next, the storage block 141 storing with the device accessing file of monitor.xml would be set as a peripheral device controlling block by an operating system 32 of the host electronic device 3 and its file system. Thus, by using a text editor program installed in the operating system of the host electronic device 3, it is able to change or edit a plurality setting parameters of the digital photo frame (peripheral device 2), like brightness and contrast. Moreover, after the setting parameters written in the monitor.xml are changed, microprocessor 20 immediately executes corresponding setting or adjusting to brightness and contrast of the digital photo frame (peripheral device 2). On the other hand, an image and video studio program can also be simultaneously installed in the operating system of the host electronic device 3, and used for accessing image and video files stored in the digital photo frame (peripheral device 2). Of course, through the image and video studio program, some local image and video files stored in at least one storage device 33 of the host electronic device 3 can be transmitted to the digital photo frame, so as to display these local images or videos by the digital photo frame.
[0062] In summary, even if the host electronic device 3 does not installed with driver software of the digital photo frame (peripheral device 2), the host electronic device 3 still can control the digital photo frame (peripheral device 2) by using the text editor program and the image/video studio program installed in its operating system based on this novel peripheral device controlling method. Herein, the text editor program and/or the image and video studio program can be regarded as an application program of accessing device file, which is mainly used for accessing the contents of the device accessing file. Moreover, is not used for approaching a limitation in the practice of the storage device 1 even though
[0063]
[0064] Furthermore, please refer to
[0065] After a first communication channel is established between the first communication unit 12 of the storage device 1 and the first communication interface 21 of the peripheral device 2 as well as a second communication channel is established between an (USB) I/O interface 31 of the host electronic device 3 and the second communication unit 13 of the storage device 1, the device accessing file of serial.io can be easily found out from the storage device 1. Next, the storage block 141 storing with the device accessing file of serial.io would be set as a peripheral device controlling block 142 by an operating system 32 of the host electronic device 3 and its file system. Thus, by using an editor program (i.e., an application program of accessing device file) installed in the operating system 32 of the host electronic device 3, it is able to change or edit contents of the device accessing file of serial.io. Therefore, after the contents of the serial.io are changed, microprocessor 20 immediately drives the label printer (i.e., the peripheral device 2) executes corresponding actions; for example, printing a receipt.
[0066] In summary, even if the host electronic device 3 does not installed with driver software of the label printer, the host electronic device 3 still can control the label printer by using the editor program (i.e., the application program of accessing device file) installed in its operating system 32 based on this novel peripheral device controlling method. Therefore, through above descriptions, the peripheral device controlling method by using storage device and the storage device capable of controlling peripheral devices proposed by the present invention have been introduced completely and clearly; in summary, the present invention includes the advantages of:
[0067] (1) The present invention mainly provides a storage device 1 capable of controlling peripheral devices, which comprises a micro processing unit 11, a first communication unit 12 and a storage unit 14. Particularly, the storage unit 14 is separated into a plurality of storage blocks 141 and one file table block 143 based on a file system, and one of the storage blocks 141 storing with device accessing files is further set to be a peripheral device controlling block 142. After connecting the storage device 1 to a peripheral device 2 and a host electronic device 3, the host electronic device 3 can control the peripheral device 2 through changing contents of the device accessing files. Thus, for the peripheral device manufactures, it merely needs to develop driver software of this storage device 1 and an application program for accessing the device accessing file, but does not need to develop corresponding peripheral device driver softwares compatible with various host operating systems, such as Windows and iOS.
[0068] (2) On the other hand, even if the host electronic device 3 does not installed with driver software of the label printer, the host electronic device 3 still can control the label printer by using the editor program (i.e., the application program of accessing device file) installed in its operating system 32 based on this novel peripheral device controlling method.
[0069] The above description is made on embodiments of the present invention. However, the embodiments are not intended to limit scope of the present invention, and all equivalent implementations or alterations within the spirit of the present invention still fall within the scope of the present invention.