1. Field of the Invention
The present invention relates to a method of updating remote programs using the bluetooth technology and, more particularly, to a method of updating remote programs using the object push profile in the object exchange protocol.
2. Description of Related Art
Along with continual progress of the science and technology, electronic products are upgraded constantly. In order to allow products having the same function to accomplish intercommunications between them, most electronic products need to update their firmware. Bluetooth products such as mobile phones, earphones, Dongles, car handsfrees, and so on similarly have the demand for updating their firmware.
In the prior art, when one wants to update the firmware of an electronic product, it is necessary to send the whole electronic product back to the factory to burn a new program code into the flash memory therein. Because the original program code can't be overwritten when making update, the old and new program codes will simultaneously occupy the memory space, hence much wasting the memory resource. Moreover, for users and the manufacturers the process of sending an electronic product back to the factory to upgrade its firmware increases the cost and takes time. Besides, if the user wants to upgrade the firmware of an electronic product, it is necessary to use application software provided by the manufacturer to reprogram the firmware via a wired transmission device like an RS232, a USB port, or a printer port. Among existent bluetooth products, only the Dongle devices allow the user to wirelessly upgrade the firmware. As shown in
Accordingly, the present invention aims to propose a method of updating firmware using the object push profile in the object exchange protocol to effectively solve the above problems in the prior art.
An object of the present invention is to provide a method of updating remote programs using the bluetooth technology. The method writes a new program code into a flash memory of a remote device using the object push profile in the object exchange protocol to save the memory space.
Another object of the present invention is to provide a method of updating firmware using the object push profile in the object exchange protocol. The method makes use of the bluetooth technology to transmit a new program code. Therefore, it is not necessary to install a USB connector on small devices like earphones.
Yet another object of the present invention is to provide a method of updating firmware using the object push profile in the object exchange protocol. The method makes use of a Dongle at the host for a bluetooth connection. It is not necessary for the host to install update software, hence much relieving the problem of compatibility.
Still yet another object of the present invention is to provide a method of updating firmware using the object push profile in the object exchange protocol. The method makes use of the object push profile to perform flow control to bluetooth wireless transmission.
To achieve the above objects, the present invention provides a method of updating firmware using the object push profile in the object exchange protocol. The method comprises the steps of: using a bluetooth transmitter installed on a host to connect a bluetooth electronic device whose firmware is to be updated, using the host to store a new program code of the firmware of the bluetooth electronic device; checking parameters in an EEPROM of the bluetooth electronic device to determine whether it is necessary to update firmware; in the bluetooth electronic device through the object push profile in the bluetooth object exchange profile if the firmware needs to be updated; reprogramming the new program code into the flash memory again if the update fails; and cutting off the bluetooth connection between the bluetooth electronic device and the host after the reprogramming action is finished.
The various objects and advantages of the present invention will be more readily understood from the following detailed description when read in conjunction with the appended drawing, in which:
The present invention provides a method of updating firmware using the object push profile (OPP) in the object exchange (OBEX) protocol. The present invention makes use of the OBEX object push profile in the bluetooth technology to write a new program code in a host into a flash memory of a bluetooth electronic device through a software procedure of the bluetooth electronic device. Moreover, the old program code will is erased to save the memory space of the flash memory as compared to the prior art.
As shown in
The new program code in the host 16 is then written into the flash memory 16 of the bluetooth electronic device 18 (Step S16), as shown in
Reference is made to
In the above update process, when the new program code is being written into the bluetooth electronic device, the bluetooth electronic device still achieves request-response with the host via the bluetooth connection. If an error or timeout occurs in any step of the update process, error handling is performed and the firmware update application program stops the update action until the next update. If this application program is closed at this time, the flash memory will no longer function, and the bluetooth electronic device automatically switches to execution with the ROM. In the prior art, the flash memory functions no matter whether the update of firmware is successful or not. If the host cuts off connection during the bluetooth connection, the bluetooth connection at the bluetooth electronic device will be automatically cut off to avoid crash of system. Before writing in the new program code, if one wants to switch the memory being executed from the flash memory to the ROM, it is necessary to first write into the EEPROM and make the bluetooth electronic device enter the deep sleep mode. The switching action is finished after the bluetooth electronic device leaves the deep sleep mode.
To sum up, the present invention provides a method of updating firmware using the object push profile in the bluetooth object exchange protocol. The method makes use of bluetooth wireless transmission to write a new program code into a flash memory of a bluetooth electronic device. Because the transmission speed of bluetooth is much larger than the write-in speed of flash memory and the object push profile provides appropriate flow control, a RAM with a smaller memory capacity can be used to accomplish write-in of flash memory. Moreover, before the new program code is written into the flash memory, the old program code will be erased, hence saving more memory space as compared to the conventional way of writing the new program code into a ROM. Because the object push profile (OPP) is used primarily for object exchange and all commercially available Dongles have this program attached thereto, extra installation is not required. In other words, a user having a Dongle can perform update of firmware without extra installation, hence resulting in much convenience is use.
Although the present invention has been described with reference to the preferred embodiment thereof, it will be understood that the invention is not limited to the details thereof. Various substitutions and modifications have been suggested in the foregoing description, and other will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the invention as defined in the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
20040181517 | Jung et al. | Sep 2004 | A1 |
20040243580 | Markki et al. | Dec 2004 | A1 |
20040243665 | Markki et al. | Dec 2004 | A1 |
20040243682 | Markki et al. | Dec 2004 | A1 |
20060053145 | Salminen et al. | Mar 2006 | A1 |
20060178214 | Lehikoinen et al. | Aug 2006 | A1 |
20060178215 | Lehikoinen et al. | Aug 2006 | A1 |
20070038735 | Tsunoda et al. | Feb 2007 | A1 |
20070067303 | Linjama et al. | Mar 2007 | A1 |
20070080934 | Chen et al. | Apr 2007 | A1 |
20070239479 | Arrasvuori et al. | Oct 2007 | A1 |
20070247449 | Mack et al. | Oct 2007 | A1 |
20070263815 | Nurmi | Nov 2007 | A1 |
Number | Date | Country | |
---|---|---|---|
20060234632 A1 | Oct 2006 | US |