1. Field of the Invention
The present invention relates to a method for a host end fixedly naming a common serial port device, and more particularly to a method provided for users to fixedly name a common serial port device through a driver program in a host end, when the common serial port device is coupled to the host end.
2. Description of Related Art
As computer technologies are developed rapidly, the trend of computers tends to have more powerful functions, a faster speed, and a smaller size, and thus the number of COM ports available for connecting peripheral devices becomes less, and the transmission interface is substantially divided into two types, namely a parallel transmission and a serial transmission, wherein the parallel transmission (such as the parallel port, IDE and PCMCIA, etc) has the feature of a fast transmission speed but involves many transmission circuits, and the cost becomes very high. On the other hand, the serial transmission (such as the serial port, USB and IEEE 1394, etc) is slow, and thus the parallel transmission specification such an Integrated Drive Electronics interface (IDE) having the features of a fast transmission speed, an easy installation, a mature technology is commonly used, and the IDE is applied extensively for massive storage devices in the occasions of accessing data between a main system and a hard disk drive or accessing data between a main system or an optical disk drive. Further, the common serial bus port includes USB and IEEE 1394, and they are the present popular serial transmission specifications having the features of simultaneously accessing several common serial port devices, hot swap, plug and play, and multi-node serial functions. The transmission rate of the common serial port is increased rapidly, such that the common serial port has become a major specification used for the computer peripheral devices and electronic data transmissions between the computer peripheral devices and the electronic products. For example, portable common serial port devices are generally comprised of peripheral devices including a storage device (such as portable disk and an external hard disk, etc), a pointer input device (such as a mouse, a joystick and an external keyboard), an audio/video device (a MP3 (MPEG Layer 3), a digital camera, a digital camcorder, etc.), a communication device (a mobile phone), a personal digital assistant (PDA) and an expansion device (such as a hub, an external floppy disk drive, an external optical disk drive and a card reader, etc). The non-portable common serial port devices are generally comprise of peripheral devices including a printer, a scanner or a keyboard, and almost cover all peripheral devices. Since the number of COM ports of a computer available for connecting peripheral devices becomes less, therefore a hub is needed to connect the increased number of peripheral devices, and the peripheral devices can be connected to a computer by connectors of the same specification. Therefore, the common serial port has become a popular connecting interface, and the peripheral device with a common serial port interface are used extensively and become indispensable to students, professionals, and general publics.
Further, the present audio/video device (such as MP3, PDA, digital camera or digital camcorder, etc) or the communication device (such as mobile phone) usually installs a memory card, and different manufacturers provide memory cards with different models, types, sizes, and specifications. At present, the memory cards include the specifications of Multimedia Card (MMC), Compact Flash Card (CF), Smart Media Card (SMC), Memory Stick (MS), Secure Digital Memory Card (SD), XD, etc. Since the memory cards are introduced to the market, the memory cards become a favorite product as well as an indispensable tool to consumers, and the memory cards have been used generally for the electronic products, and thus the demand for various different card readers corresponding to different memory cards is increased greatly.
Referring to
At present, most of the computer users have more than one computer, and when the user operates a computer, there are many peripheral devices occupying the COM ports and the number of COM ports available for connecting peripheral devices is decreased greatly. Thus, it is necessary to use a hub of the common serial port to connect the increased number of peripheral devices. As science and technology advances, electronic products tend to be light, thin, short and compact, and come with a multifunctional design. To save the using space in an electronic product and miniaturize the electronic product, a card connector for installing different memory cards is provided for the audio/video devices and the communication devices. The use of each common serial port of a hub and each slot of a card reader makes the host end to produce a corresponding disk path, and thus the number of disk paths produced by the host end is increased greatly, and thus the disk paths cannot be found easily. A pointer input device at the manager of the host end also has many unidentified common serial ports.
If an executable program or a hyperlink file having a fixed path is stored in a portable storage device such as a USB flash disk or an external hard disk drive, the host end will produce a disk path with a serial number for each time when the portable storage device is inserted. If the serial numbers of the executable program or hyperlink file of the disk path and the fixed path are different, the operating system will not be able to connect the execute program or hyperlink file for the operation, and the portable storage device including the will be unable to be installed to the host end.
Therefore, finding a way to solve the problem and provide convenience and consistency for the use of a common serial port device, while naming the common serial port connected to the host end according to the general naming rule (naming by the serial numbers) has been deep-rooted and becomes an important issue to computer manufacturers.
Therefore, it is a primary objective of the present invention to name a common serial port device from a driver program installed in a host end and store the name, when the common serial port device is coupled to the host end, such that when the common serial port device is coupled to the host end again for the next time, the corresponding fixed names of the host end and the common serial port device can be generated.
Referring to
Referring to
At step 301, the common serial port device 2 is coupled to the host end 1.
At step 302, the host end 1 checks whether or not a previously name record of the common serial port device 2 exists; if yes, carry out step 303; if no, carry out step 304.
At step 303, the host end 1 loads the name record of the common serial port device 2, and carry out step 308.
At step 304, the host end 1 names the common serial port device 2 by a serial number.
At step 305, check whether or not a user sets a user-defined name for the common serial port device 2; if yes, carry out step 306; if no, carry out step 307.
At step 306, record the user-defined name to the memory 21 of the common serial port device 2, and carry out step 308.
At step 307, record the serial number name to the memory 21 of the common serial port device 2, and carry out step 308.
At step 308, end the naming process.
Referring to
Further, if the common serial port device 2 is a portable storage device such as a portable disk or an external hard disk, a communication device or a personal digital assistant (PDA) and stores an executable program or a hyperlink file having a fixed path, the host end 1 will produce a disk path with a fixed name after the common serial port device 2 is inserted each time, so that the executable program or the hyperlink file in the common serial port device 2 can be connected to the host end 1 directly by a operating system, and the common serial port device 2 will become a storage device fixedly installed to the host end 1, so as to shorten the time of searching for the common serial port device 2.
Further, if the common serial port device 2 is a peripheral device, such as a card connector or a hub and stores an executable program or a hyperlink file having a fixed path, when each slot of the card reader and each common serial port of the hub are used, the greatly increased quantity of disk paths of the host end 1 will produce corresponding disk paths with fixed names, and thus the host end 1 can easily find an actual disk path of each common serial port device 2.
Further, if the common serial port device 2 is a device such as a mouse, a joystick, an external keyboard, a printer, a scanner or a keyboard and stores a fixed path, a manager of the host end 1 will have a common serial port corresponding to the fixed name. The method not only fully complies with the requirements of the current technology, such that the naming of the host end 1 complies with the user's operating habit and the naming process has the least influence to the installation process of the original common serial port device 2 that will insure a success of the installation of the common serial port device 2, but also improves the convenience of using the common serial port device 2.
In addition, if the common serial port device 2 is a storage device such as a portable disk or an external hard disk, and is connected to a host end 1 without installing a driver program, the content of the common serial port device 2 already having a driver program cannot be read from a disk path of the host end 1, and the present invention also can set the disk path of the host end 1 by a serial number to read the content of the common serial port device 2 having the driver program.
The common serial port for connecting the foregoing host end 1 and the common serial port device 2 is a universal serial bus (USB) interface or an IEEE 1394 interface.
The foregoing common serial port device 2 is substantially divided into a portable type and a non-portable type. The portable common serial port device is a peripheral device such as a storage device (a portable disk or an external hard disk), a pointer input device (a mouse, a joystick or an external keyboard), an audio/video device (a MP3 (MPEG Layer 3), a digital camera or a digital camcorder), a communication device (a mobile phone), a personal digital assistant (PDA) and an expansion device (a hub, an external floppy disk device, an external optical disk drive or a card reader). The non-portable common serial port device is a peripheral device such as a printer, a scanner or a keyboard.
Further, the memory 21 of the foregoing common serial port device 2 is a non-volatile memory such as a flash memory (flash), an electrically programmable read only memory (EROM), an electrically erasable read only memory (EEROM), an erasable programmable read only memory (EPROM) or an electrically erasable programmable read only memory (EEPROM), or a volatile memory such as a random access memory (RAM), a synchronous dynamic random access memory (SDRAM), a dynamic random access memory (DRAM) or a double data rate synchronous dynamic random access memory (DDR-SDRAM).
Therefore, the method for a host end 1 fixedly naming a common serial port device 2 according to the invention is the most economic, direct, and effective method that has the following advantages.
(1) Most economic, no additional hardware (such as a press key) is needed.
(2) Most direct, the naming of the host end 1 complies with the user's operating habits and meets with the current technologies, and the naming process has the least influence to the installation process of the original common serial port device 2.
(3) Most effective, the present invention follows the installation process of the host end 1 and the specification of the common serial port device 2, and thus will not cause a failure of installing the common serial port device 2. The invention also can improve the convenience of using the common serial port device 2.
While the invention has been described in conjunction with a specific best mode, it is to be understood that many alternatives, modifications, and variations will be apparent to those skilled in the art in light of the foregoing description. Accordingly, it is intended to embrace all such alternatives, modifications, and variations in which fall within the spirit and scope of the included claims. All matters set forth herein or shown in the accompanying drawings are to be interpreted in an illustrative and non-limiting sense.