This Application claims priority to Taiwan Patent Application No. 092112801 entitled “Apparatus and Method for Data Refreshing,” filed on May 12, 2003.
The present invention generally relates to a method and apparatus of data updating for an embedded system is provided.
Embedded systems, such as information appliances, smart mobile phones and personal digital assistants, are more user-oriented than other consumer electronics. Embedded systems here refer to custom-made systems that combine software and hardware for specific purposes. In the past, when an embedded system needs some update or maintenance, the chip in the system have to be taken out and data has to be rewritten onto the memory of the chip.
However, as the functions of the embedded system multiply, a greater amount of data is stored in the memory, which means more mistakes may occur. Also, to satisfy consumers' demand for value-added functions and new information, the data in the memory needs to be updated more frequently. The conventional way of recycling the chips and re-writing them again is inconvenient for consumers and costly for the producers.
The present invention provides an apparatus and a method for easily and conveniently updating data in an embedded system. Users can easily correct the information stored in the embedded system and add new functions to it by themselves.
The method of data updating in the present invention includes transmitting the new data to the embedded system via the data transmission line or the peripheral without re-writing all of the data in the memory. This method only has to overwrite part of the data or add the new data to the memory.
Data Updating Apparatus 1
An apparatus for updating data in the memory of an embedded system is provided in the present invention. The apparatus includes a first processor, a transmission line and a second processor. The data transmission line has a first end and a second end. The first end is connected to the first processor and the second end is connected to the second processor. The second processor is connected to the memory. The first processor is used for retrieving new data. The transmission line is used for receiving the new data from the first processor and transmits it to the second processor. The second processor is used for writing the new data into the memory.
The first processor in the present invention can be a computer, and it can retrieve the new data from various sources, including but not limited to, the Internet, optical disks, floppies and other data storage media. The transmission line can be, but is not limited to, an RS232 or a USB transmission line. Both the second processor and the memory are part of the embedded system.
Data Updating Apparatus 2
Another apparatus for updating data in the memory of an embedded system is also provided in the present invention. The apparatus includes a first processor, a transmission line, a peripheral and a second processor. The data transmission line has a first end and a second end. The first end is connected to the first processor and the second end is connected to the peripheral. The peripheral is connected to the second processor. The second processor is connected to the memory. The first processor is used for retrieving new data. The transmission line is used for receiving the new data from the first processor and transmitting it to the peripheral. The peripheral transmits the new data to the second processor. The second processor writes the new data into the memory.
The first processor in the present invention can be a computer, and it can retrieve the new data from various sources, including but not limited to, the Internet, optical disks, floppies or other data storage media. The transmission line can be, but is not limited to, an RS232 or a USB transmission line. The peripheral can be a power charger. Both the second processor and the memory are part of the embedded system.
Data Updating Method
A method for updating data of an embedded system is provided in the present invention. The data has an end address and a plurality of application programs arranged in order. The method includes the following steps: retrieving an application program update; searching for the corresponding application program within the plurality of application programs in the system; retrieving a first address and a second address of the corresponding application program when the corresponding application program is found; obtaining the length value that is the length between the second address and the end address; overwriting the data stored in the area between the first address and the end address; adding the length value to the first address to obtain a third address; writing the application program update into the data area starting from the third address.
In the aforementioned steps, if the corresponding application program is not found, the application program update is written onto the memory starting from the end address.
The first processor 104 of the apparatus 100 can be a computer, and it can retrieve the new data from various sources, including but not limited to, the Internet, optical disks, floppies or other data storage media. The transmission line 106 can be an RS232 or a USB transmission line. Both the second processor 112 and the memory 102 are part of the embedded system 114.
The peripheral 216 in the embodiment 200 can be connected to the second processor 112 by wireless transmission. The peripheral 216 includes a power charger to charge the embedded system 114.
The embodiment of the data updating method is used for updating data of the embedded system. We assume that the data has an end address A and a plurality of application programs, AP1, AP2, AP3 and AP4. The plurality of application programs are arranged in order and stored in the memory.
First, please refer to
Please refer to
As shown in
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not to be limited to the discovered embodiments. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
92112801 | May 2003 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5226129 | Ooi et al. | Jul 1993 | A |
5835911 | Nakagawa et al. | Nov 1998 | A |
6446237 | Menon | Sep 2002 | B1 |
6463501 | Kern et al. | Oct 2002 | B1 |
6519144 | Henrie et al. | Feb 2003 | B1 |
7039657 | Bish et al. | May 2006 | B1 |
20040031030 | Kidder et al. | Feb 2004 | A1 |
20040097127 | Smith et al. | May 2004 | A1 |
Number | Date | Country |
---|---|---|
1297206 | May 2001 | CN |
Number | Date | Country | |
---|---|---|---|
20040230969 A1 | Nov 2004 | US |