Summary of the invention
Fundamental purpose of the present invention is for providing a kind of update method of the advertisement of starting shooting, the smooth broadcasting of the advertisement of guaranteeing to start shooting.
The present invention proposes a kind of update method of the advertisement of starting shooting, and comprises step:
Start advertisement is stored to respectively to first memory and second memory;
When needs upgrade start when advertisement, respectively to the start shooting Data Update of advertisement of described first memory and second memory.
Preferably, describedly respectively the start shooting step of Data Update of advertisement of described first memory and second memory is specifically comprised:
To the described first memory Data Update of advertisement of starting shooting, and judge and upgrade whether success; In the time being updated successfully, identifying described first memory is success status, and to the start shooting Data Update of advertisement of described second memory; In the time that renewal is unsuccessful, identifying described first memory is status of fail.
Preferably, described and described second memory is started shooting after the step of Data Update of advertisement and also comprised:
By the data conversion storage of the start advertisement of upgrading in described first memory to second memory;
Judge that whether unloading is successful; In the time of unloading success, identifying described second memory is success status; In the time that unloading is unsuccessful, identifying described second memory is status of fail.
Preferably, described update method also comprises:
In the time loading start advertisement, judge whether the state of first memory is success status; In the time being success status, from described first memory, load start advertisement; In the time being not success status, from second memory, load start advertisement.
The present invention also proposes a kind of updating device of the advertisement of starting shooting, and is connected respectively with first memory and second memory, and described updating device comprises:
Ad storage unit, for being stored to respectively first memory and second memory by start advertisement;
Data updating unit, for upgrading start when advertisement when needs, respectively to the start shooting Data Update of advertisement of described first memory and second memory.
Preferably, described data updating unit specifically for:
To the described first memory Data Update of advertisement of starting shooting, and judge and upgrade whether success; In the time being updated successfully, identifying described first memory is success status, and to the start shooting Data Update of advertisement of described second memory; In the time that renewal is unsuccessful, identifying described first memory is status of fail.
Preferably, described data updating unit also specifically for:
The data conversion storage of the start advertisement of upgrading in described first memory, to second memory, and is judged to whether success of unloading; In the time of unloading success, identifying described second memory is success status; In the time that unloading is unsuccessful, identifying described second memory is status of fail.
Preferably, described updating device also comprises:
Loading unit, in the time loading start advertisement, judges whether the state of first memory is success status; In the time being success status, from described first memory, load start advertisement; In the time being not success status, from second memory, load start advertisement.
The present invention separately proposes a kind of ad system, comprises the updating device of first memory, second memory and start advertisement; The updating device of described start advertisement comprises:
Ad storage unit, for being stored to respectively first memory and second memory by start advertisement;
Date read-write cell, for upgrading start when advertisement when needs, respectively to the start shooting Data Update of advertisement of described first memory and second memory.
The present invention upgrades the start advertisement of this first memory and second memory storage respectively, avoid in the time that first memory and second memory are upgraded simultaneously, occur that unexpected (such as power-off) causes data to be made mistakes, and the advertisement that makes to start shooting can not normal play, there is mosaic effect when playing or play unsuccessfully etc.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
With reference to Fig. 1, an embodiment of the update method of a kind of advertisement of starting shooting of the present invention is proposed.The method can comprise:
Step S10, start advertisement is stored to respectively to first memory and second memory;
Step S11, upgrade start when advertisement when needs, respectively to the start shooting Data Update of advertisement of described first memory and second memory.
In the present embodiment, apply the ad system of above-mentioned update method, need to arrange at least two storeies, i.e. first memory and second memory.Above-mentioned start advertisement can be stored in respectively in this first memory and second memory, while loading start advertisement, can from this first memory and second memory, load respectively.In the present embodiment preferred version, this first memory can be main storer, and this second memory can be shelf storage.Starting ad system, when loading start advertisement is play, first loading from first memory, if load the unsuccessful second memory that reads again.Simultaneously, in the time that needs upgrade start advertisement, can upgrade the start advertisement of this first memory and second memory storage respectively, avoid in the time that first memory and second memory are upgraded simultaneously, occur that unexpected (such as power-off) causes data to be made mistakes, and the advertisement that makes to start shooting can not normal play, there is mosaic effect when playing or play unsuccessfully etc.
With reference to Fig. 2, in another embodiment of the present invention, above-mentioned steps S11 specifically comprises:
Step S12, to the above-mentioned first memory Data Update of advertisement of starting shooting, and judge and upgrade whether success; In the time being updated successfully, carry out step S13; In the time that renewal is unsuccessful, carry out step S14;
Step S13, to identify above-mentioned first memory be success status, and to the start shooting Data Update of advertisement of above-mentioned second memory;
Step S14, to identify above-mentioned first memory be status of fail.
In the time that needs upgrade (replacing) to start advertisement, can first upgrade the start advertisement in first memory, will be stored in the data erase of the start advertisement in first memory and write the start advertisement that needs renewal.And then the data content of first memory is carried out to CRC (Cyclic Redundancy Check, cyclic redundancy check (CRC) code) verification judge and upgrade whether success; Be updated successfully, the state that identifies this first memory is success status; Otherwise the state that identifies this first memory is status of fail.When this first memory or second memory are in success status, ad system can load start advertisement from this first memory or second memory; When this first memory or second memory are in status of fail, ad system can not be from this first memory or second memory carrying advertisement.
After above-mentioned steps S13, also comprise:
Step S15, by the data conversion storage of the start advertisement of upgrading in above-mentioned first memory to second memory;
Step S16, judge whether success of unloading; In the time of unloading success, carry out step S17; In the time that unloading is unsuccessful, carry out step S18;
Step S17, to identify above-mentioned second memory be success status;
Step S18, to identify above-mentioned second memory be status of fail.
After start advertisement in above-mentioned first memory is updated successfully, can upgrade the start advertisement in second memory.Can the data of the start advertisement of having upgraded in this first memory are a to this second memory in unloading (copying).This unloading can be first will to be stored in the data erase of the start advertisement in second memory, then by a the data Replica of the start advertisement of having upgraded in first memory and write in second memory.Then the data content of second memory being carried out to CRC check and judge that whether this unloading is successful, as unloading success, is success status by the status indicator of this second memory; Otherwise, be status of fail by the status indicator of this second memory.Only have and work as being updated successfully of above-mentioned first memory, just second memory is upgraded, so can guarantee to have at least a storer normally to work.Even if it is unsuccessful to be that first memory upgrades, this second memory can provide the start advertisement before not upgrading, and meets the demand that the advertisement of starting shooting when ad system starts is play.
Meanwhile, in the time that first memory and/or second memory are designated status of fail, produce cue and carry out alarm, such as producing the alarm signal of word, image or sound.Especially in the time that first memory and second memory are all designated status of fail, need carry out high severity alarm.
With reference to Fig. 3, in another embodiment of the present invention, after above-mentioned steps, also comprise:
Step S20, loading start when advertisement, judge whether the state of first memory is success status; In the time being success status, carry out step S21; In the time being not success status, carry out step S22;
Step S21, loading start advertisement from above-mentioned first memory;
Step S22, loading start advertisement from above-mentioned second memory.
While needing to load start advertisement after ad system starts, especially when after start advertisement is upgraded, (after above-mentioned steps S17) loads the start advertisement after upgrading for the first time, first inquire about above-mentioned first memory, whether the state that judges this first memory is success status, in this way, can from this first memory, load start advertisement plays; Otherwise, from second memory, load start advertisement and play.The above-mentioned mode that can load respectively by first memory and second memory start advertisement, can strengthen the stability of ad system, even if can not can not load start advertisement from first memory, also can from second memory, load.
With reference to Fig. 4, the present invention also proposes an a kind of embodiment of updating device 30 of the advertisement of starting shooting.This updating device 30, is connected with first memory and second memory respectively, and this updating device 30 comprises: ad storage unit 31 and data updating unit 32; This ad storage unit 31, for being stored to respectively first memory and second memory by start advertisement; This data updating unit 32, for upgrading start when advertisement when needs, respectively to the start shooting Data Update of advertisement of described first memory and second memory.
In the present embodiment, apply the ad system of above-mentioned updating device 30, need to arrange at least two storeies, i.e. first memory and second memory, this updating device 30 is connected with first memory and second memory respectively.Above-mentioned start advertisement can be stored in respectively in this first memory and second memory by ad storage unit 31, while loading start advertisement, can from this first memory and second memory, load respectively.In the present embodiment preferred version, this first memory can be main storer, and this second memory can be shelf storage.Starting ad system, when loading start advertisement is play, first loading from first memory, if load the unsuccessful second memory that reads again.Simultaneously, in the time that needs upgrade start advertisement, can upgrade the start advertisement of this first memory and second memory storage respectively by data updating unit 32, avoid in the time that first memory and second memory are upgraded simultaneously, occur that unexpected (such as power-off) causes data to be made mistakes, and the advertisement that makes to start shooting can not normal play, there is mosaic effect when playing or play unsuccessfully etc.
Above-mentioned data updating unit 32 specifically for: to the described first memory Data Update of advertisement of starting shooting, and judge and upgrade whether success; In the time being updated successfully, identifying described first memory is success status, and to the start shooting Data Update of advertisement of described second memory; In the time that renewal is unsuccessful, identifying described first memory is status of fail.
In the time that needs upgrade (replacing) to start advertisement, above-mentioned data updating unit 32 can first be upgraded the start advertisement in first memory, will be stored in the data erase of the start advertisement in first memory and write the start advertisement that needs renewal.And then the data content of first memory is carried out to CRC check judge and upgrade whether success; Be updated successfully, the state that identifies this first memory is success status; Otherwise the state that identifies this first memory is status of fail.When this first memory or second memory are in success status, ad system can load start advertisement from this first memory or second memory; When this first memory or second memory are in status of fail, ad system can not be from this first memory or second memory carrying advertisement.
Above-mentioned data updating unit 32 also specifically for: the data conversion storage of the start advertisement of upgrading in described first memory, to second memory, and is judged to whether success of unloading; In the time of unloading success, identifying described second memory is success status; In the time that unloading is unsuccessful, identifying described second memory is status of fail.
After start advertisement in above-mentioned first memory is updated successfully, data updating unit 32 can be upgraded the start advertisement in second memory.Can the data of the start advertisement of having upgraded in this first memory are a to this second memory in unloading (copying).This unloading can be first will to be stored in the data erase of the start advertisement in second memory, then by a the data Replica of the start advertisement of having upgraded in first memory and write in second memory.Then the data content of second memory being carried out to CRC check and judge that whether this unloading is successful, as unloading success, is success status by the status indicator of this second memory; Otherwise, be status of fail by the status indicator of this second memory.Only have and work as being updated successfully of above-mentioned first memory, just second memory is upgraded, so can guarantee to have at least a storer normally to work.Even if it is unsuccessful to be that first memory upgrades, this second memory can provide the start advertisement before not upgrading, and meets the demand that the advertisement of starting shooting when ad system starts is play.
Meanwhile, in the time that first memory and/or second memory are designated status of fail, data updating unit 32 can produce cue and carry out alarm, such as producing the alarm signal of word, image or sound.Especially in the time that first memory and second memory are all designated status of fail, need carry out high severity alarm.
With reference to Fig. 5, above-mentioned updating device 30 also comprises: loading unit 33, in the time loading start advertisement, judges whether the state of first memory is success status; In the time being success status, from described first memory, load start advertisement; In the time being not success status, from second memory, load start advertisement.
While needing to load start advertisement after ad system starts, especially while loading the start advertisement after upgrading for the first time after start advertisement is upgraded, above-mentioned loading unit 33 is first inquired about above-mentioned first memory, whether the state that judges this first memory is success status, in this way, can from this first memory, load start advertisement plays; Otherwise, from second memory, load start advertisement and play.The above-mentioned mode that can load respectively by first memory and second memory start advertisement, can strengthen the stability of ad system, even if can not can not load start advertisement from first memory, also can from second memory, load.
With reference to Fig. 6, the present invention also proposes a kind of ad system, comprises the updating device 30 of first memory 41, second memory 42 and start advertisement; The updating device 30 of described start advertisement comprises: ad storage unit 31 and data updating unit 32; This ad storage unit 31, for being stored to start advertisement respectively first memory 41 and second memory 42; This date read-write cell, for upgrading start when advertisement when needs, respectively to the start shooting Data Update of advertisement of described first memory 41 and second memory 42.
The updating device 30 of the start advertisement in the present embodiment can, described in above-described embodiment, not repeat them here.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.