CN102890636A - Firmware upgrade method and system under Android system - Google Patents

Firmware upgrade method and system under Android system Download PDF

Info

Publication number
CN102890636A
CN102890636A CN2011102039731A CN201110203973A CN102890636A CN 102890636 A CN102890636 A CN 102890636A CN 2011102039731 A CN2011102039731 A CN 2011102039731A CN 201110203973 A CN201110203973 A CN 201110203973A CN 102890636 A CN102890636 A CN 102890636A
Authority
CN
China
Prior art keywords
flush bonding
data
bonding module
upgrade
upgrading
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2011102039731A
Other languages
Chinese (zh)
Inventor
陈颖
李晓锋
康华
胡景龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 by ZTE Corp filed Critical ZTE Corp
Priority to CN2011102039731A priority Critical patent/CN102890636A/en
Priority to PCT/CN2011/079474 priority patent/WO2012155412A1/en
Publication of CN102890636A publication Critical patent/CN102890636A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a firmware upgrade method and system under an Android system. The method comprises the steps as follows: building a data channel between a client and an embedded module, wherein the data channel is used for carrying out firmware upgrade on the embedded module in the client, and writing the upgrade data into the embedded module through the data channel. According to the firmware upgrade method and system, the situation that the embedded module is taken out form the client can be avoided; firmware upgrade can be simply and reliably implemented, and the upgrade cost is reduced.

Description

Firmware upgrade method under the Android system and system
Technical field
The present invention relates to the communications field, firmware upgrade method and system under a kind of Android (Android) system.
Background technology
At present, the Android system is at increasing smart machine, and it is very universal for example to have become in electronic equipment for consumption, the vehicle electronic device.But the optimization of these equipment and upgrading especially embed optimization and the upgrading of flush bonding module wherein, are difficult to solve always.
In the correlation technique, flush bonding module is carried out firmware upgrade normally put it on the special chuck apparatus.USB mouth by this chuck apparatus is connected to after the PC, again by the upgrade software on the PC, this flush bonding module is upgraded.
But flush bonding module belongs to middleware, is not final product, can only be semi-manufacture.As a functional part, it needs carrier (for example client computer AP), only is installed on the carrier, could normally use.Simultaneously, in a single day flush bonding module is installed on the client computer (AP), especially has been sold in final user's the situation in this client computer, normally is difficult to take out at any time.Therefore, this will cause by chuck apparatus flush bonding module being carried out firmware upgrade and more be difficult to realization.
Summary of the invention
Thereby realize that for by chuck apparatus flush bonding module being carried out firmware upgrade in the correlation technique problem of inconvenience proposes the present invention, for this reason, fundamental purpose of the present invention is to provide firmware upgrade method and the system under a kind of Android system, to address the above problem.
To achieve these goals, according to an aspect of the present invention, provide the firmware upgrade method under a kind of Android system.
Comprise according to the firmware upgrade method under the Android system of the present invention: set up the data channel of client computer and flush bonding module, wherein data channel is used for the flush bonding module of client computer is carried out firmware upgrade; By data channel, upgrade data is write flush bonding module.
Preferably, by data channel, upgrade data is write flush bonding module comprise: dividing upgrade data is the first upgrading data packet and the second upgrading data packet; By data channel, send the first upgrading data packet to flush bonding module; Receive the first upgrade data response packet from flush bonding module, wherein the first upgrade data response packet indicates the first upgrading data packet to send successfully; By data channel, send the second upgrading data packet to flush bonding module.
Preferably, after sending the first upgrading data packet to flush bonding module, said method also comprises: if do not receive the first upgrade data response packet within the predefined time, perhaps the first upgrade data response packet indicates the first upgrading data packet to send unsuccessfully, then repeat to send the first upgrading data packet, and in the situation of the number of times that repeats to send greater than predefined transmission times, the firmware upgrade failure of flush bonding module is set.
Preferably, by data channel, upgrade data is write before the flush bonding module, said method also comprises: restart flush bonding module; Judge whether flush bonding module enters downloading mode; If the determination result is NO, the firmware upgrade failure of flush bonding module is set then.
Preferably, by data channel, upgrade data is write after the flush bonding module, said method also comprises: flush bonding module resets; Judge whether flush bonding module works; If the determination result is NO, the firmware upgrade failure of flush bonding module is set then.
Preferably, after the firmware upgrade failure that flush bonding module is set, said method also comprises: the data of the flush bonding module that will back up in advance write flush bonding module.
Preferably, by data channel, upgrade data is write before the flush bonding module, said method also comprises: receive user's upgrading order; Determine the upgrade data corresponding with the upgrading order.
To achieve these goals, according to another aspect of the present invention, provide the firmware upgrade system under a kind of Android system.
Comprise client computer and flush bonding module according to the firmware upgrade system under the Android system of the present invention, wherein client computer comprises: first sets up module, be used for the data channel between foundation and the flush bonding module, wherein data channel is used for the flush bonding module of client computer is carried out firmware upgrade; Writing module is used for by data channel upgrade data being write flush bonding module.
Preferably, writing module comprises: divide submodule, being used for dividing upgrade data is the first upgrading data packet and the second upgrading data packet; First sends submodule, is used for sending the first upgrading data packet by data channel to flush bonding module; Receive submodule, be used for receiving the first upgrade data response packet from flush bonding module, wherein the first upgrade data response packet indicates the first upgrading data packet to send successfully; Second sends submodule, is used for sending the second upgrading data packet by data channel to flush bonding module.
Preferably, above-mentioned first sends submodule also is used for not receiving the first upgrade data response packet within the predefined time, and perhaps the first upgrade data response packet indicates the first upgrading data packet to send in the failed situation, repeats to send the first upgrading data packet; Above-mentioned client computer also comprises: module is set, is used in the situation of number of times greater than predefined transmission times that the first transmission submodule repeats to send the firmware upgrade failure of flush bonding module being set.
By the present invention, adopt software approach to realize online upgrading, namely directly flush bonding module is carried out firmware upgrade by the data channel of client computer and flush bonding module, thereby can avoid from client computer, taking out flush bonding module, and can realize easy, reliably firmware upgrade, reduce upgrade cost.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is the synoptic diagram according to the firmware upgrade system under the Android system of the embodiment of the invention;
Fig. 2 is the process flow diagram according to the firmware upgrade method under the Android system of the embodiment of the invention;
Fig. 3 is the process flow diagram that creates according to the preferred embodiment of the invention the upgrade data passage;
Fig. 4 is the process flow diagram of the firmware upgrade method under the Android system according to the preferred embodiment of the invention;
Fig. 5 is the structured flowchart according to the firmware upgrade system under the Android system of the embodiment of the invention;
Fig. 6 is the structured flowchart one of the firmware upgrade system under the Android system according to the preferred embodiment of the invention;
Fig. 7 is the structured flowchart two of the firmware upgrade system under the Android system according to the preferred embodiment of the invention;
Fig. 8 is the synoptic diagram of the firmware upgrade system under the Android system according to the preferred embodiment of the invention;
Fig. 9 is the process flow diagram of realizing according to the preferred embodiment of the invention the Application Program Interface layer;
Figure 10 is the synoptic diagram of Application Program Interface according to the preferred embodiment of the invention.
Embodiment
Need to prove that in the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Fig. 1 is the synoptic diagram according to the firmware upgrade system under the Android system of the embodiment of the invention, as shown in Figure 1, flush bonding module adopts USB interface or UART interface to be connected with client computer (AP), and AP may be connected by any existing connected modes such as USB interface or Ethernets with PC.Wherein, the advantage of USB interface is that transfer rate is high, and escalation process is fast, has indirectly reduced the upgrading risk; The advantage of UART interface is that the cost of hardware design is low, and application and development is fairly simple, so be conducive to client development based on the application of UART mouth.Need to prove that the present invention can support USB mouth and UART mouth simultaneously, preferentially selects the USB mouth; If USB interface does not exist, just adopt the UART interface.
The invention provides the firmware upgrade method under a kind of Android system, Fig. 2 is the process flow diagram according to the firmware upgrade method under the Android system of the embodiment of the invention, as shown in Figure 2, comprises that following step S202 is to step S204.
Step S202 sets up the data channel between client computer and the flush bonding module, and wherein data channel is used for the flush bonding module of client computer is carried out firmware upgrade.
Step S204 by data channel, writes flush bonding module with upgrade data.
In the correlation technique, flush bonding module is carried out firmware upgrade normally put it on the special chuck apparatus, the USB mouth by this chuck apparatus is connected to after the PC, again by the upgrade software on the PC, this flush bonding module is upgraded.Because flush bonding module is difficult to take out at any time from client computer, so this firmware upgrade method is realized inconvenience.In the embodiment of the invention, adopt software approach to realize online upgrading, namely directly flush bonding module is carried out firmware upgrade by the data channel between client computer and the flush bonding module, thereby can avoid from client computer, taking out flush bonding module, and can realize easy, reliably firmware upgrade, reduce upgrade cost.
Preferably, by data channel, upgrade data is write flush bonding module comprise: dividing upgrade data is the first upgrading data packet and the second upgrading data packet; By data channel, send the first upgrading data packet to flush bonding module; Receive the first upgrade data response packet from flush bonding module, wherein the first upgrade data response packet indicates the first upgrading data packet to send successfully; By data channel, send the second upgrading data packet to flush bonding module.
Preferably, after sending the first upgrading data packet to flush bonding module, said method also comprises: if do not receive the first upgrade data response packet within the predefined time, perhaps the first upgrade data response packet indicates the first upgrading data packet to send unsuccessfully, then repeat to send the first upgrading data packet, and in the situation of the number of times that repeats to send greater than predefined transmission times, the firmware upgrade failure of flush bonding module is set.
Preferably, by data channel, upgrade data is write before the flush bonding module, said method also comprises: restart flush bonding module; Judge whether flush bonding module enters downloading mode; If the determination result is NO, the firmware upgrade failure of flush bonding module is set then.
Preferably, by data channel, upgrade data is write after the flush bonding module, said method also comprises: flush bonding module resets; Judge whether flush bonding module works; If the determination result is NO, the firmware upgrade failure of flush bonding module is set then.
Preferably, after the firmware upgrade failure that flush bonding module is set, said method also comprises: the data of the flush bonding module that will back up in advance write flush bonding module.
Preferably, by data channel, upgrade data is write before the flush bonding module, said method also comprises: receive user's upgrading order; Determine the upgrade data corresponding with the upgrading order.
Below in conjunction with Fig. 3 and Fig. 4 the implementation procedure of the embodiment of the invention is described in detail.
Fig. 3 is the process flow diagram that creates according to the preferred embodiment of the invention the upgrade data passage, as shown in Figure 3, comprises that following step S302 is to step S322.
Step S302, the constructive process of data channel drives layer at module device and realizes.
Step S304, module powers on.
Step S306, the USB port of initialization module equipment.
Step S308 judges whether client computer detects new USB device, if so, then carries out step S310, otherwise carries out step S316.
Step S310, what client computer and intermodule adopted is the USB interface passage.Client computer (Host side) can send the hub that a series of request (Resqusts) is mounted to module (Device side), sets up a communication port that connects between client computer (Host side) and the module (Device side) by hub again.Then client computer (Host side) is in the mode of control transmission (Control Transfer), by end points 0 (Endpoint 0) module (Device side) is sent various requests, module (Device side) is replied corresponding information after receiving the request that client computer (Host side) sends, and enumerates (Enumerate) operation;
Step S312, the Diag map of services is to the USB mouth.
Step S314, data channel is successfully established, and the Diag mouth is used for control port, transceiving data, and finishes.
Step S316, initialization UART port.
Step S318 judges whether UART mouth state is normal, if so, then carries out step S320, otherwise carries out step S322.
Step S320, with the Diag map of services to the UART mouth.
Step S322, data channel creates unsuccessfully, and finishes.
Fig. 4 is the process flow diagram of the firmware upgrade method under the Android system according to the preferred embodiment of the invention, as shown in Figure 4, comprises that following step S402 is to step S432.
Step S402, transmission and key-course are communicated by letter by Socket, receive the starting and upgrading instruction.
Step S404, receive the starting and upgrading instruction after, transmission and key-course call and drive layer Diag port initialization function, initialization Diag mouth are provided.
Step S406 judges whether the Diag port status is normal, if so, then carries out step S408, otherwise carries out step S432.
Step S408 makes flush bonding module equipment enter the Offline pattern by the Diag instruction.
Step S410 is restarted flush bonding module.
Step S412 makes flush bonding module equipment enter downloading mode by the Diag instruction.
Step S414 judges whether to enter downloading mode, if so, then carries out step S416, otherwise carries out step S432.
Step S416 sends the data by Diag instruction backup NV by the Diag port, needs the NV item row of backup to specify.In order to guarantee the safety of data, need before the upgrading NV data are backuped in the specified file of client computer (AP).Backup NV item tabulation and file path are determined when upgrade software dispatches from the factory.
Step S418, the upgrade data file of application interface layer appointment is read in subpackage, writes by the Diag port in the storage area of module device appointment.Put simultaneously upgrading and be masked as " just during upgrading ".The number of times of subpackage transmission is relevant with the size of upgrade data file.In the subpackage transmission course, send a packet after, must by the time receive " receiving the successful respond bag " of module side feedback after, could send next and wrap data.The overtime nonreply of module side, perhaps feedback " taking defeat " needs to retransmit current data packet.
Whether step S420 judges sending times greater than 3, if so, then carries out step S422, otherwise carries out step S432.
Whether all step S422 judges upgrade data writing module equipment, if so, then carries out step S424, otherwise returns step S418.
Step S424, after updating operation was finished, the sign of will upgrading was set to " upgrading is finished ", again reseting module.
Step S426 judges whether flush bonding module work is normal, if it is carries out step S428, otherwise carries out step S430.
Step S428, flush bonding module firmware upgrade success enters step S432.
Step S430 upgrades unsuccessfully, recovers the NV data of backup.
Step S432 reports the Application Program Interface layer with the module upgrade result, and upper layer application is presented at updating result on the interface.
Need to prove, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the process flow diagram of accompanying drawing, and, although there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
The present invention also provides the firmware upgrade system under a kind of Android system, and the firmware upgrade system under this Android system can be for the firmware upgrade method of realizing under the above-mentioned Android system.Fig. 5 is the structured flowchart according to the firmware upgrade system under the Android system of the embodiment of the invention, as shown in Figure 5, comprises client computer 52 and flush bonding module 54, and wherein client computer 52 comprises that first sets up module 522 and writing module 524.The below is described in detail its structure.
First sets up module 522, is used for the data channel between foundation and the flush bonding module 54, and wherein data channel is used for the flush bonding module of client computer is carried out firmware upgrade; Writing module 524 is connected to first and sets up module 522, is used for setting up the data channel that module 522 is set up by first, and upgrade data is write flush bonding module.
Preferably, writing module 524 comprises that dividing submodule 5242, first sends submodule 5244, receives submodule 5246 and the second transmission submodule 5248.Fig. 6 is the structured flowchart one of the firmware upgrade system under the Android system according to the preferred embodiment of the invention, below in conjunction with Fig. 6 its structure is described in detail.
Divide submodule 5242, being used for dividing upgrade data is the first upgrading data packet and the second upgrading data packet; First sends submodule 5244, is connected to divide submodule 5242, is used for sending the first upgrading data packet that division submodule 5242 is divided to flush bonding module; Receive submodule 5246, be used for receiving the first upgrade data response packet from flush bonding module, wherein the first upgrade data response packet indicates the first upgrading data packet to send successfully; Second sends submodule 5248, be connected to and receive submodule 5246 and divide submodule 5242, be used for receiving after indication the first upgrading data packet sends successful the first upgrade data response packet receiving submodule 5246, send the second upgrading data packet of division submodule 5242 divisions to flush bonding module.
Preferably, above-mentioned first sends submodule 5244 also is used for not receiving the first upgrade data response packet within the predefined time, perhaps the first upgrade data response packet indicates the first upgrading data packet to send in the failed situation, repeats to send the first upgrading data packet; Above-mentioned client computer 52 also comprises: module 526 is set, is used in the situation of number of times greater than predefined transmission times that the first transmission submodule 5244 repeats to send the firmware upgrade failure of flush bonding module being set.
Need to prove that the firmware upgrade system under the Android system of describing among the device embodiment is corresponding to above-mentioned embodiment of the method, its concrete implementation procedure had been carried out detailed description in embodiment of the method, do not repeat them here.
Be described in detail below in conjunction with the implementation procedure of example to the embodiment of the invention.
Fig. 8 is the synoptic diagram of the firmware upgrade system under the Android system according to the preferred embodiment of the invention, and as shown in Figure 8, dash area is main summary of the invention of the present invention.
The present invention adopts three layers software architecture, is respectively: data channel layer, Data Transmission Controlling layer, Application Program Interface layer.The data channel layer is in the bottom in whole software architecture, the device driver software of concrete realization merge module is in the Linux Kernel layer of Android system.The Data Transmission Controlling layer is the middle layer, is responsible for data transfer, control and various abnormality processing, communicates by function call between this layer and following " data channel layer ".The Application Program Interface layer is the superiors of software architecture, adopts the java control to realize user interface, adopts socket communication that user's event is passed to lower one deck " Data Transmission Controlling layer ".The main task of each layer is as follows:
The data channel layer will be set up the required bottom data path of firmware upgrade.Comprise the correct identification of enumerating USB mouth/UART mouth under USB device, the Android system.Flush bonding module adopts USB interface/UART mouth and client computer (AP) physical connection in this method.If physical interface adopts the USB mouth, need so to provide Android system lower module product mouth drive software, make system can correctly identify the USB mouth, and enumerate all of the port of module product: AT mouth, Modem mouth and Diag mouth.If physical interface adopts the UART mouth, need so to provide the UART mouth is mapped as the Diag mouth.Because UART is standard serial port, can directly access, so as long as the UART mouth directly is mapped as AT mouth or Diag mouth, synchronization UART mouth can only be mapped as a port, be the AT mouth or be the Diag mouth that the two can switch by order;
The Data Transmission Controlling layer, groundwork comprise the Real-Time Monitoring module device duty, be responsible for in the ascending series writing module equipment, process the various abnormality processing of whole process, guarantee the safe and reliable of firmware upgrade process, in time can't normally upgrade, also will guarantee the safety of legacy version.In upgrading unsuccessfully be that no matter which kind of reason causes, all will guarantee to use the module device of legacy version still can normally use.The operation that relates in the escalation process is: receive that starting and upgrading instruction, upgrade status report, the read/write operation of serial ports, unusual control are processed, the failed fallback mechanism of upgrading;
Application Program Interface layer, this layer realization are the user interfaces of upgrade software.Except will be for the user provides friendly, upgrades the interface easily, user interface or upgrade software start entrance, are responsible for providing user interface management, periodic refreshing display module equipment state, initiate to start upgrade, Real-Time Monitoring/demonstrations escalation process state, in time eject the abnormal information prompting frame, firmware upgrade software is installed and unload.In the Android system of client computer (AP), the firmware upgrade software of installation module product moves this firmware upgrade software, can upgrade to the firmware version of module product;
Because the method in the correlation technique is that module product is taken out from AP, put on the special chuck apparatus again and upgrade, so operability is not high.The present invention adopts the method for on-line software updating, and client computer (AP) need not to increase extra hardware unit (upgrading channel control circuit, external USB or UART interface device), thereby has reduced the cost of hardware design of client computer.Simultaneously, owing to there has not been extra hardware unit, reduced the complexity of client computer (AP) system, thereby client computer (AP) reliability improves relatively also.
Specific implementation below in conjunction with application programs contact bed and transmission and key-course is described in further detail.
The specific implementation of Application Program Interface layer and transmission and key-course is 2 process entities.
The Application Program Interface layer comprises 2 threads with the Java language implementation process: interface main thread and client data receiving thread.The task of interface main thread is: provide the user to use the interface, create client Socket link and client data receiving thread, the starting and upgrading function is provided, specifies the upgraded version data file path, shows in real time the state of escalation process, correctly shows updating result.The main task of client data receiving thread is: Real Time Monitoring socket link, when receiving new data, data retransmission is processed to the interface main thread;
Transmission and key-course also comprise 2 threads with C language implementation process: upgrading main thread and servers' data receiving thread.The main task of upgrading main thread: the control and management of upgrade port, by upgrade port upgrade data writing module equipment, real-time report upgrade status, upgrading are finished after reported result to the Application Program Interface layer.The main task of servers' data receiving thread: Real Time Monitoring socket link, when receiving new data, process to the upgrading main thread data retransmission;
In this programme, the communication between two processes adopts local Socket to connect.The data of transmitting between two processes comprise: the status information in user's upgrade, upgrade data, the escalation process and updating result information.In order to improve transfer efficiency, Socket connects " length connects " mode that adopts, and after the Socket connection creates successfully, just keeps connection status, until the program end of run always.During this period, can link transceiving data by Socket at any time;
The realization of Socket client is in the Application Program Interface layer, after having determined server end host name and port, sends " connection request " to server, and the feedback information of waiting for server.After receiving that server end allows " the connection request response " of link setup, foundation is connected with the Socket of server end;
The Socket server end is realized being placed on transmission and key-course, is responsible for monitoring the connection request in the network, when " connection request " that detect from client, sends " connection request response " to client, and foundation is connected with the Socket of client;
For timely receive data, create 2 threads, be respectively the receiving thread (being the servers' data receiving thread) of Socket server end and the receiving thread (being the client data receiving thread) of Socket client.These two threads can detect regularly whether new data are arranged on the Socket link.The setting of timer can be according to the processing power setting of client computer (AP), usually should be in 0.1 second-2 seconds scopes.This value can arrange when application program is dispatched from the factory, and defaultly is made as 1 second.
Below in conjunction with Fig. 9 and Figure 10 the specific implementation at upgrade applications interface is described in further detail.This programme is single channel upgrading tool solution, and upgrading tool and upgraded version bag separate, and upgrading tool just can be supported the AKU data of different editions after the upper successful installation of client computer (AP).The realization of Application Program Interface can be referring to accompanying drawing 10, and during implementation, user interface should possess the parts that show in the synoptic diagram.
Fig. 9 is the process flow diagram of realizing according to the preferred embodiment of the invention the Application Program Interface layer, as shown in Figure 9, comprises that following step S902 is to step S926.
Step S902, upgrading tool and upgraded version bag separate, and the realization of Application Program Interface can be referring to accompanying drawing 10.
Step S904, upgrading tool is contained on the client computer (AP) in advance as an application program of Android system.
Step S906 copies the upgraded version bag under the assigned catalogue of client computer Android system.
Step S908, operation firmware upgrade application program, the Start Button is to prohibit grey attitude.
Step S910 calls and drives the diag mouth function of state that layer provides, and obtains Diag port status information, display port state on the interface.
Step S912 judges whether Diag mouth state is normal, if so, then carries out step S914, otherwise carries out step S924.
Step S914 clicks " Software Version " button and specifies firmware version APMB package to be upgraded.
Step S916 clicks the Start Button, starts the upgrading flow process." Start " reaches " Exit " button and all prohibited ash, and instruction that the Application Program Interface layer will " start upgrading " is by passing to transmission and key-course under the socket bag.The parameter of transmitting simultaneously has: the file path of firmware upgrade version bag.
Step S918, transmission and key-course carry out corresponding updating operation after receiving " starting upgrading " instruction, and realization flow is seen step 3-1-3-12 in detail; In the escalation process, the data word joint number of transmission and the successful writing module of key-course real-time report reported 1 time in per 10 seconds, until upgrading finishes.The Application Program Interface layer also can receive the feedback information from transmission and key-course, and shows in real time the escalation process state.
Step S920 judges whether normal termination of updating operation, if so, then carries out step S922, otherwise carries out step S924.
Step S922 ejects message box, and then the success of prompting user updating operation carries out step S926.
Step S924 ejects alert box, the failure of prompting user updating operation, and provide failure cause.
Step S926, " Start " reach " Exit " button and recover effective status.
In sum, according to the abovementioned embodiments of the present invention, firmware upgrade method and system under a kind of Android system are provided.By the present invention, adopt software approach to realize online upgrading, namely directly flush bonding module is carried out firmware upgrade by the data channel between client computer and the flush bonding module, thereby can avoid from client computer, taking out flush bonding module, and can realize easy, reliably firmware upgrade, reduce upgrade cost.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and be carried out by calculation element, perhaps they are made into respectively each integrated circuit modules, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the firmware upgrade method under the Android system is characterized in that, comprising:
Set up the data channel between client computer and the flush bonding module, wherein said data channel is used for the flush bonding module of described client computer is carried out firmware upgrade;
By described data channel, upgrade data is write described flush bonding module.
2. method according to claim 1 is characterized in that, by described data channel, upgrade data is write described flush bonding module comprise:
Dividing described upgrade data is the first upgrading data packet and the second upgrading data packet;
By described data channel, send described the first upgrading data packet to described flush bonding module;
Receive the first upgrade data response packet from described flush bonding module, wherein said the first upgrade data response packet indicates described the first upgrading data packet to send successfully;
By described data channel, send described the second upgrading data packet to described flush bonding module.
3. method according to claim 2 is characterized in that, after sending described the first upgrading data packet to described flush bonding module, described method also comprises:
If within the predefined time, do not receive described the first upgrade data response packet, perhaps described the first upgrade data response packet indicates described the first upgrading data packet to send unsuccessfully, then repeat to send described the first upgrading data packet, and in the situation of the described number of times that repeats to send greater than predefined transmission times, the firmware upgrade failure of described flush bonding module is set.
4. method according to claim 1 is characterized in that, by described data channel, upgrade data is write before the described flush bonding module, and described method also comprises:
Restart described flush bonding module;
Judge whether described flush bonding module enters downloading mode;
If the determination result is NO, the firmware upgrade failure of described flush bonding module is set then.
5. method according to claim 1 is characterized in that, by described data channel, upgrade data is write after the described flush bonding module, and described method also comprises:
Described flush bonding module resets;
Judge whether described flush bonding module works;
If the determination result is NO, the firmware upgrade failure of described flush bonding module is set then.
6. each described method in 5 according to claim 3 is characterized in that after the firmware upgrade failure that described flush bonding module is set, described method also comprises: the data of the described flush bonding module that will back up in advance write described flush bonding module.
7. method according to claim 1 is characterized in that, by described data channel, upgrade data is write before the described flush bonding module, and described method also comprises:
Receive user's upgrading order;
Determine the described upgrade data corresponding with described upgrading order.
8. the firmware upgrade system under the Android system is characterized in that comprise client computer and flush bonding module, wherein said client computer comprises:
First sets up module, is used for the data channel between foundation and the flush bonding module, and wherein said data channel is used for the flush bonding module of described client computer is carried out firmware upgrade;
Writing module is used for by described data channel, and described upgrade data is write described flush bonding module.
9. system according to claim 8 is characterized in that, the said write module comprises:
Divide submodule, being used for dividing described upgrade data is the first upgrading data packet and the second upgrading data packet;
First sends submodule, is used for by described data channel, sends described the first upgrading data packet to described flush bonding module;
Receive submodule, be used for receiving the first upgrade data response packet from described flush bonding module, wherein said the first upgrade data response packet indicates described the first upgrading data packet to send successfully;
Second sends submodule, is used for by described data channel, sends described the second upgrading data packet to described flush bonding module.
10. system according to claim 9 is characterized in that,
Described first sends submodule also is used for not receiving described the first upgrade data response packet within the predefined time, perhaps described the first upgrade data response packet indicates described the first upgrading data packet to send in the failed situation, repeats to send described the first upgrading data packet;
Described client computer also comprises: module is set, is used in the situation of number of times greater than predefined transmission times that described the first transmission submodule repeats to send the firmware upgrade failure of described flush bonding module being set.
CN2011102039731A 2011-07-20 2011-07-20 Firmware upgrade method and system under Android system Pending CN102890636A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011102039731A CN102890636A (en) 2011-07-20 2011-07-20 Firmware upgrade method and system under Android system
PCT/CN2011/079474 WO2012155412A1 (en) 2011-07-20 2011-09-08 Firmware updating method and system under android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102039731A CN102890636A (en) 2011-07-20 2011-07-20 Firmware upgrade method and system under Android system

Publications (1)

Publication Number Publication Date
CN102890636A true CN102890636A (en) 2013-01-23

Family

ID=47176165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102039731A Pending CN102890636A (en) 2011-07-20 2011-07-20 Firmware upgrade method and system under Android system

Country Status (2)

Country Link
CN (1) CN102890636A (en)
WO (1) WO2012155412A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713929A (en) * 2013-12-31 2014-04-09 南京新奕天科技有限公司 Remote updating method based on on-chip Flash embedded system
CN103813207A (en) * 2014-02-27 2014-05-21 联想(北京)有限公司 Information processing method, upgrade device and upgrade card
CN104516743A (en) * 2013-09-26 2015-04-15 深圳市民德电子科技有限公司 Upgrading method and system of embedded device firmware based on ActiveX
CN106027580A (en) * 2015-03-18 2016-10-12 青岛海尔空调电子有限公司 Program remote upgrading method
CN106502741A (en) * 2016-10-24 2017-03-15 深圳创维数字技术有限公司 A kind of realization method and system of USB upgradings
CN107844307A (en) * 2017-10-16 2018-03-27 歌尔科技有限公司 The method for updating system and electronic equipment of electronic equipment
CN109683940A (en) * 2018-11-23 2019-04-26 中国船舶重工集团公司第七0七研究所 A kind of method for safely downloading of the embedded system program based on domestic processor
CN112241283A (en) * 2020-10-30 2021-01-19 深圳市广和通无线股份有限公司 Software upgrading method and device, computer equipment and storage medium
CN113064621A (en) * 2021-04-14 2021-07-02 艾体威尔电子技术(北京)有限公司 Method for upgrading password keyboard system firmware through intelligent device android system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699410B (en) * 2013-12-20 2017-05-24 北京奇虎科技有限公司 Method and device for updating application programs

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040037976A (en) * 2002-10-31 2004-05-08 엘지전자 주식회사 Method for updating firmware in mobile communication terminal
CN101030140A (en) * 2006-03-02 2007-09-05 中兴通讯股份有限公司 Device and method for on-line updating fastener programm
CN101030146A (en) * 2007-04-10 2007-09-05 北京中星微电子有限公司 Method and system for updating fastener
CN101046749A (en) * 2006-03-31 2007-10-03 联想(北京)有限公司 Chip firmware updating method
CN101105756A (en) * 2007-08-21 2008-01-16 中兴通讯股份有限公司 Multi-core terminal firmware upgrading method
CN101271396A (en) * 2008-04-15 2008-09-24 威盛电子股份有限公司 Electronic device and method for on-line updating firmware

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040037976A (en) * 2002-10-31 2004-05-08 엘지전자 주식회사 Method for updating firmware in mobile communication terminal
CN101030140A (en) * 2006-03-02 2007-09-05 中兴通讯股份有限公司 Device and method for on-line updating fastener programm
CN101046749A (en) * 2006-03-31 2007-10-03 联想(北京)有限公司 Chip firmware updating method
CN101030146A (en) * 2007-04-10 2007-09-05 北京中星微电子有限公司 Method and system for updating fastener
CN101105756A (en) * 2007-08-21 2008-01-16 中兴通讯股份有限公司 Multi-core terminal firmware upgrading method
CN101271396A (en) * 2008-04-15 2008-09-24 威盛电子股份有限公司 Electronic device and method for on-line updating firmware

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516743A (en) * 2013-09-26 2015-04-15 深圳市民德电子科技有限公司 Upgrading method and system of embedded device firmware based on ActiveX
CN103713929A (en) * 2013-12-31 2014-04-09 南京新奕天科技有限公司 Remote updating method based on on-chip Flash embedded system
CN103713929B (en) * 2013-12-31 2018-11-13 南京新奕天科技有限公司 Method for remote updating based on piece Flash embedded systems
CN103813207A (en) * 2014-02-27 2014-05-21 联想(北京)有限公司 Information processing method, upgrade device and upgrade card
CN103813207B (en) * 2014-02-27 2017-01-04 联想(北京)有限公司 A kind of information processing method, update device and upgrade card
CN106027580A (en) * 2015-03-18 2016-10-12 青岛海尔空调电子有限公司 Program remote upgrading method
CN106502741A (en) * 2016-10-24 2017-03-15 深圳创维数字技术有限公司 A kind of realization method and system of USB upgradings
CN107844307A (en) * 2017-10-16 2018-03-27 歌尔科技有限公司 The method for updating system and electronic equipment of electronic equipment
CN109683940A (en) * 2018-11-23 2019-04-26 中国船舶重工集团公司第七0七研究所 A kind of method for safely downloading of the embedded system program based on domestic processor
CN112241283A (en) * 2020-10-30 2021-01-19 深圳市广和通无线股份有限公司 Software upgrading method and device, computer equipment and storage medium
CN113064621A (en) * 2021-04-14 2021-07-02 艾体威尔电子技术(北京)有限公司 Method for upgrading password keyboard system firmware through intelligent device android system

Also Published As

Publication number Publication date
WO2012155412A1 (en) 2012-11-22

Similar Documents

Publication Publication Date Title
CN102890636A (en) Firmware upgrade method and system under Android system
CN103748569B (en) The system and method without driving operation of USB device
US8762782B2 (en) Basic input-output system circuit and method for using the same
CN103019788A (en) Remote online upgrading method based on CAN (Controller Area Network) bus
CN104899065A (en) Method and system for batch online recovery and software online upgrading
CN102081568B (en) Multi-motherboard server system
CN104040519B (en) HID I2The host computer side of C data bus is implemented
CN102984500A (en) Method and device and system for achieving compatibility among multiple video monitor equipment
CN103080905A (en) Systems and methods for intelligent and flexible management and monitoring of computer systems
CN103136012A (en) Computer system and update method of basic input-output system thereof
CN106293824A (en) A kind of from the method and device processing chip upgrade
US8225116B2 (en) Power supply system electronic card and method for supplying power to the electronic card
CN104038803A (en) Modularized smart television and interactive method applied to same
CN103019755A (en) Wireless program downloading method of plurality of central processing units (CPUs) in embedded system
CN114201197A (en) Firmware upgrading method and device, electronic equipment and readable storage medium
CN103902315A (en) System and method for online updating of multiple board cards
CN101699416B (en) Communication method and system between host computer and card reader with multiple card holders
CN102081526B (en) Basic input/output system architecture
US7890666B2 (en) Embedded protocol selection technique, related interface and computer program product
CN101695027A (en) Method, device and network equipment for upgrading distributed communication system software
CN101267351B (en) Realization method, system and device for online software upgrade based on application architecture
CN102053847B (en) Server and updating method thereof
CN106547667A (en) A kind of fault cues method and system of mobile terminal
CN106293822A (en) A kind of from the method and device processing chip upgrade
CN111427259A (en) Frame slot type main/standby switching method, intelligent device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130123

RJ01 Rejection of invention patent application after publication