Summary of the invention
Present invention is primarily targeted at a kind of radio upgrade method based on FOTA server group of proposition and system, purport
Solve when carrying out software or firmware version upgrade, the problem big to the high requirement of bandwidth and power consumption.
For achieving the above object, a kind of based on FOTA server group the radio upgrade method that the present invention provides, its feature
It is, including step:
Present terminal initiates upgrade request to FOTA server group;
FOTA server group returns corresponding informance according to described upgrade request, and by UDP (User
Datagram Protocol, UDP) described corresponding informance is sent to described present terminal.
Preferably, described corresponding informance includes that difference APMB package, the difference APMB package that described FOTA server group is uploaded exist
Sent before described present terminal, need to successfully pass default testing process.
Preferably, described upgrade request sends to described FOTA clothes via the routing server in described FOTA server group
The forwarding server of business device group;Or described upgrade request is sent directly to described forwarding server.
Preferably, when described FOTA server group returns corresponding informance according to described upgrade request, including step:
Described upgrade request is sent the data server to described FOTA server group;
Described data server communicates, by described web service with the web page server in described FOTA server group
Device processes described upgrade request, and process information is back to described data server;
Described data server assembles according to described upgrade request to generate described corresponding informance and be sent to described forwarding and takes
Business device, is returned described corresponding informance by described forwarding server.
Preferably, described web page server is additionally operable to described process information be recorded data base.
For achieving the above object, the present invention also proposes a kind of radio upgrade based on FOTA server group, is applied to terminal,
It is characterized in that, including communication module and in the operating system of described communication module load FOTA client, described
FOTA client and FOTA server group are communicated by UDP (UDP).
Additionally, the present invention also provides for a kind of wireless upgrade system based on FOTA server group, it is applied to server end, bag
Include:
Forwarding server, for receiving the upgrade request that present terminal is initiated;
Data server, takes for assembling according to described upgrade request to generate described corresponding informance and be sent to described forwarding
Business device;
Described forwarding server is additionally operable to, by UDP (UDP), described corresponding informance is sent to described working as
Front terminal.
Preferably, described corresponding informance includes difference APMB package, and the difference APMB package that described forwarding server is uploaded is being sent out
Before delivering to described present terminal, need to successfully pass default testing process.
Preferably, also include routing server, for receiving described upgrade request from described present terminal and being sent to institute
State forwarding server.
Preferably, also including web page server, for communicating with described data server, processing described upgrading please
Ask, and process information is back to described data server;Described web page server is additionally operable to recorded described process information
Data base.
A kind of based on FOTA server group the radio upgrade method of present invention proposition and system thereof, can reduce terminal staging
Time power consumption, moreover it is possible to reduce upgrading time bandwidth requirement.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use
For representing the suffix explanation only for the beneficially present invention of such as " module ", " parts " or " unit " of element, itself
Not specific meaning.Therefore, " module " can mixedly use with " parts ".
Terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as mobile phone,
Smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP are (portable
Multimedia player), guider, the mobile terminal of detecting instrument etc. and such as numeral TV, desk computer etc.
Fixed terminal.
As it is shown in figure 1, the present invention proposes a kind of wireless upgrade system based on FOTA server group, it is applied to terminal 50,
Including communication module 51 and in the operating system of this communication module load FOTA client 52, this FOTA client and
FOTA server group is communicated by UDP (UDP), and above-mentioned Content of Communication includes carrying out software or firmware version
The files such as the difference bag of this upgrading or the associated documents of performance detection, such as, initiate upgrade request to FOTA server group, this
Bright middle upgrade request includes version request, difference bag request etc..
As in figure 2 it is shown, the present invention also proposes a kind of wireless upgrade system based on FOTA server group, it is applied to server
End 60, including: forwarding server 61, for receiving the upgrade request that present terminal is initiated;Data server 63, for according to liter
Level request assembles and generates corresponding informance and be sent to forwarding server;Forwarding server 61 is additionally operable to pass through UDP
(UDP) corresponding informance is sent to present terminal.
In one embodiment of the invention, it is also possible to include routing server (linkServer) 62, for from currently
Terminal receives upgrade request and is sent to forwarding server 61.Routing server 62 externally can be as FOTA server networking
Closing, be the most then responsible for the load balancing of forwarding server rank, linkServer.exe, before operation, can freely configure
The IP/Port of config.ini.IP for example, the machine public network IP.Port (port) is the PORT COM that can carry out UDP.This IP/
Port can externally expose sole inlet as whole server group.
In addition, it can include web page server (WebServer) 65, for communicating with data server 63, place
Reason upgrade request, and process information is back to data server 63;Web page server 65 is additionally operable to recorded process information
Data base 67, it is to avoid data server 63 is directly connected with data base 67.Web page server 65 is specifically for write networking
Facility information, or the state such as the nearest login time IP longitude and latitude updating this equipment;The abnormal log of write device.
In the specific implementation, above-mentioned forwarding server (ForwardServer) 61 may be used for upwards heart beating, and report is at present
Load;It is additionally operable to respond all kinds of requests including upgrade request of self terminal, and those requests are forwarded to data clothes
Business device 63.Before ForwardServer.exe runs, can freely configure the IP/Port of config.ini.IP will be as book server
Communication bindings IP.Port (port) is UDP PORT COM, for this server communication bundling port.This address is only to route service
Device and data server expose, and the outside this address that obtains must obtain real-time address by routing server.
Data server (DataServer) 63 may be used for upwards heart beating, report load at present, responds from forwarding clothes
All kinds of requests of business device 61, it is provided that required business datum;Can be also used for communicating with web page server 65, obtain and update
Corresponding data.Before DataServer.exe runs, can freely configure the IP/Port of config.ini.IP will be as book server
Communication bindings IP.Port (port) is for can carry out UDP PORT COM, for this server communication bundling port.This address is only to turning
Sending out server 61 to expose, exterior terminal will not directly communicate with this address.
Above-mentioned corresponding informance includes the difference APMB package for carrying out software or firmware version upgrade, it is preferable that forward clothes
The difference APMB package that business device 61 is uploaded was sending before present terminal, needed to successfully pass default testing process;If this is poor
Subpackage file is not over default testing process, then detection upgraded version is the most correct, if correctly, execution is preset the most again
Testing process;If version error, then wrong version is deleted.
As it is shown on figure 3, the present invention also provides for a kind of radio upgrade method based on FOTA server group, including step:
S10, present terminal initiate upgrade request to FOTA server group;
S20, FOTA server group returns corresponding informance according to upgrade request, and is incited somebody to action by UDP (UDP)
Corresponding informance is sent to present terminal.
Wherein, in step slo, upgrade request can send to FOTA via the routing server in FOTA server group
The forwarding server of server group;Upgrade request can also be sent directly to forwarding server.
When upgrade request can send the forwarding to FOTA server group via the routing server in FOTA server group
During server;Routing server externally can close as FOTA server networking, internally can be responsible for forwarding server rank
Load balancing.Now, whole WeFOTA server zone externally exposes address and is: 114.XX.XX.XX port:40000, meets
Any business of FOTA agreement, all can send address UDP request to this address, routing server return a band and forward service
The packet of device address information.
Corresponding informance in step S20 includes difference APMB package, and the difference APMB package that FOTA server group is uploaded is sending
Before present terminal, need to successfully pass default testing process.
As shown in Figure 4, when FOTA server group returns corresponding informance according to upgrade request, including step:
S21, upgrade request is sent to the data server in FOTA server group;
S22, data server communicate with the web page server in FOTA server group, web page server process and rise
Level request, and process information is back to data server;
S23, data server assemble according to upgrade request and generate corresponding informance and be sent to forwarding server, forwarding take
Business device returns corresponding informance.
Wherein, web page server is additionally operable to process information be recorded data base.
In the step s 21, forwarding server after receiving the upgrade request of self terminal, according to corresponding agreement, parse
Necessary information, and re-group package, send to data server;
In step S22, data server receives after the request of forwarding server, according to corresponding agreement, parses
Necessary information, communicates with web page server;The version request from data server, difference bag is processed by web page server
Process information is also back to data server by the upgrade request such as request;Web page server can also be by Content of Communication write networking
Facility information, or the state such as the nearest login time IP longitude and latitude updating this equipment, it is also possible to the abnormal day of write device
Will.
In step S23, after forwarding server receives corresponding informance, necessary information, group can be parsed according to agreement
Bag, sends the response that final corresponding informance is asked as present terminal to present terminal.
Present terminal in above-mentioned steps S1 and step S2 terminal 50 the most as shown in Figure 1, FOTA server group can
To be the wireless upgrade system 60 based on FOTA server group being applied to server end as shown in Figure 2.
The radio upgrade method based on FOTA server group of present invention offer and system thereof, by FOTA (firmware-
Over-the-air technology) wireless update technology, is again service packs (difference bag) upgrade technique and User Datagram Protocol
View (UDP) combines, and when using the service of FOTA radio upgrade, only need to download the least difference bag, can be easily accomplished system
Repair and optimize such that it is able to efficiently completing the upgrading of communication module remote online;Can be with Remote configuration communication module parameter;More
Power consumption can also saved while supporting big concurrent online upgrading.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row
Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and
And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device
Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this
The process of key element, method, article or device there is also other identical element.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this
Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills
Art field, is the most in like manner included in the scope of patent protection of the present invention.