Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of ad data exchange method, and it is mutual for carry out ad data between a server end and a user side.For example, in the equipment such as network television system that, the method can provide for wired interactive TV, IPTV and video website, carry out ad data mutual.The method is by the ad data of timing update server end, and regularly the ad data of renewal is turned back in user side, while making user send triggering signal (as zapping, adjusting volume) to user side at any time, this user side all decision-making in time goes out corresponding advertisement and identifier, and from server end, obtain corresponding ad material by this advertisement and identifier, thereby reduce the data processing pressure of server end, and user can watch the ad material of renewal at any time.
Refer to Fig. 1, the flow chart of the ad data exchange method 100 that it provides for one embodiment of the invention.This server end using in the method 100 is provided with database, stores ad material and the corresponding ad data of user side in this database.In the present embodiment, when server end and user side are all in running order, this server end is at the upper ad data that stores the current period while once operating, and described user side also stores the handbill of current period.And when this server end is when starting first, the countless certificates of buffer memory of server end, now can obtain the ad data of current period immediately from database, and are stored in buffer area by the data format of reserving in advance, and are set to current effective buffer memory.Equally, user side is first during starting up, also without the handbill of current period, now can be immediately to the handbill of server end request current time.The method comprises the following steps:
Step 101, server end generates at least ad data of next period according to the first timing signal, to upgrade the ad data of current period.
Step 103, user side is according to second timing signal transmitting terminal request signal to server, and this second timing signal is the signal of output in the current period, and is later than the first timing signal for generating.
Step 105, server end, according to the ad data of this terminal request signal and this next period, generates and exports the handbill of next period to described user side.
Step 107, user side, according to the 3rd timing signal, switches to the handbill of described next period the handbill of current period, and described the 3rd timing signal is later than second timing signal and produces.
Step 109, user side is according to information such as the time of a user request signal, channel and advertisement positions, from the handbill of this current period, decision-making goes out the advertisement and identifier (ID) of corresponding time, described advertisement and identifier is the corresponding ad material unique identification in server end, for example, described advertisement and identifier can be the particular code of user side, or the use code made by oneself of user, etc.
Step 111, user side is sent to described server end by described advertisement and identifier.
Step 113, server end goes out the ad material corresponding to described advertisement and identifier according to this advertisement and identifier decision-making.
Step 115, server end sends this ad material to user side and shows.
Refer to Fig. 2 to Fig. 4, described server end is specifically carried out following steps:
Step 201: export this first timing signal.In present embodiment, described server end is equipped with first timer, and the time point that this first timer is set according to user is exported this first timing signal.In the present embodiment, described the first timing signal is the timing signal that present clock arrives integral point, the timing signal of exporting for example, during for arrival 8:00:00.Be appreciated that in other embodiments, user can arrange the moment of described the first timing signal according to specific needs, for example, can be set to arrive the timing signal of the least bit, or the timing signal of other non-integral points or the least bit.
Step 203 according to this first timing signal, obtains at least ad data of next period from the database of server end.Described next period, followed by the time point of this current period, for example, supposes that the current period is 7:00:00~8:00:00, and next period is 8:00:00~9:00:00.Described ad data is the waiting data of the ad material to be shown that extracts from described database according to demand of server end, for example, described waiting data be included in what advertisement position, what channel, what time period, what group shows what ad material etc.In present embodiment, for the ad data that can upgrade in time in server, this server end equipment also comprises the first buffer area, the second buffer area, described the first buffer area is used for according to the ad data of last period of certain data structure storage (as 6:00:00~7:00:00), described the second buffer area is used for according to the ad data of current period of predetermined data structure storage (as 7:00:00~8:00:00), and described data structure as shown in Figure 3.
Step 205: according to described the first timing signal, the ad data of described the first buffer area is emptied.In present embodiment, when clock arrives 7:00:00, empty the ad data of the 6:00:00-7:00:00 of described the first buffer area, and the ad data of the 7:00:00~8:00:00 of the second buffer area is switched to the ad data of current period.
Step 207: according to this first timing signal, obtain the ad data of next period (8:00:00-9:00:00), and by the advertisement data store of described next period in described the first buffer area being cleared, thereby make server end can again store the ad data of current period and next period.For example, while supposing to arrive 4:00:00, carry out buffer memory switching, and the ad data of first buffer area storage 3:00:00~4:00:00 (last period), the second buffer area storage current period of 4:00:00~5:00:00() ad data, while arriving 4:00:00, the ad data of the 3:00:00~4:00:00 of the first buffer area storage need to be removed, and the ad data of 4:00:00-5:00:00 is switched to the ad data of current period, then from database, read the ad data of 5:00:00~6:00:00 and deposit in the first buffer area being cleared, thus, the ad data of server end can upgrade in time.
Step 209: receive the terminal request signal sending from user side.Described terminal request signal is used for to server request handbill, and described terminal request signal comprises Media Access Control address (MAC) address, IP address or the sequence number etc. of this user side.Described handbill is the affiliated group information according to user side, extracts a certain data format of the json(that belongs to the data of this grouping and be assembled into from the ad data of server) object.For example: server end can read 7:00:00-8:00:00 all ad datas of this hour, then the ad data of this hour is split to combination by the hierarchical structure of advertisement position-> channel-> group, thereby form the handbill of this period.As shown in Figure 4, it is the data format of each advertisement position in handbill, wherein, and h: representative hour, i.e. 4 points; G_100_1_8: represent channel (primitive network ID:100, transport stream ID:1, channel ID:8); L: represent the timetable under this channel; [0,30, [1]]: represent that 4:00 is to 4:30, corresponding ad material ID is 1; [57,60, [1,5]]: represent that 4:57 is to 5:00, ad material has two kinds can select at random, random corresponding ad material ID is in 1 or 5.
Step 211: according to the ad data of this terminal request signal and this next period, the handbill of generation defeated next period is to described user side, make the user side can be according to the temporal information of user request signal, from the handbill of this current period, decision-making goes out the advertisement and identifier of corresponding time.Described user request signal comprises the information such as channel, advertisement position and time, and described user side is according to information such as described channel, advertisement position and times, and from the handbill of current period of getting, decision-making goes out the advertisement and identifier of corresponding time point.In the present embodiment, the signal that described user request signal sends while being user's remote controller button, as, the signal when remote controller key triggers the demonstration of EPG menu, or the signal of adjustment volume.Be appreciated that the request signal sending when this user request signal can also be user's manipulator top box (STB).Described user request signal comprises the information such as channel, advertisement position, time.
Step 213: send corresponding ad material according to described advertisement and identifier.Concrete, server end is described advertisement and identifier and pre-conditioned comparing, and when described terminal request signal and this is pre-conditioned while matching, and acquisition is to ad material that should advertisement and identifier.In present embodiment, described pre-conditioned parameter of preserving in advance for server end, this parameter, corresponding to the parameter of this advertisement and identifier, for example, can be personal code work etc.Ad material in described server end has corresponding advertisement and identifier respectively, when described user side feeds back to described server end by described advertisement and identifier, described server end mates fed back advertisement and identifier with the advertisement and identifier of ad material, if can Corresponding matching, server end be directly exported corresponding ad material to described user side; If do not mated, server end is not exported ad material to described user side.
Refer to Fig. 5, user side is carried out following steps:
Step 301: export described second timing signal.In present embodiment, described user side is provided with second timer, and the time point that this second timer is set according to user is exported this second timing signal.Be appreciated that described second timing signal is starting-up signal and the predefined time signal of user of user side when user side is when being used first.In the present embodiment, described second timing signal is after present clock arrives the least bit, the signal in a certain moment before next integral point, the signal for example, during for clock arrival 7:31:00.Be appreciated that in other embodiments, described second timing signal can be any time point signal that can meet consumers' demand, for example, and 7:50,7:46 etc.
In the present embodiment, after in the present embodiment, second timing signal is set to clock and arrives the least bit, the reason of the signal in a certain moment before next integral point is: on the one hand, can provide longer time with dispersion user end the time point to server request handbill, prevent that a lot of users from sending a large amount of requests at the same time, thereby reduce to a certain extent server data processing pressure.Therefore, be appreciated that described second timing signal can also be the clock signal in half an hour that is roughly before arriving next period, for example any moment before 8:00:00, concrete as 7:31:00,7:35:00, or 7:45:00 etc.; On the other hand, make server have the sufficiently long time to obtain the ad data of next period, and data cached by complete next period of data structure building of appointment, guarantee the integrality of data; For example: front end starts to generate 8 data at 7, reserved half an hour, has enough generated, if can ask any one moment of 7, and likely 7 o'clock mistakes just request in 1 minute, now front end may also not generate the data of next hour, and it is not up-to-date imperfect causing data yet.
Step 303: according to this second timing signal, user side transmitting terminal request signal is to described server end, so that server end according to this terminal request signal, generates and exports the handbill of next period to described user side, to upgrade the handbill of current period.In present embodiment, described terminal request signal comprises the information such as IP address, Media Access Control address or sequence number.Described second timing signal is the output signal of a plurality of Preset Time points, when this second timing signal of output, the described user side comparison clock (internal clocking of user side for example, figure does not show) with the time point of second timing signal, for example, when clock arrives the time point (7:31:00) of second timing signal, export this second timing signal; When if clock does not arrive the time point of second timing signal, continue the time point of comparison clock and second timing signal.In the present embodiment, second timing signal is 7:31:00, and the last period is 6:00:00~7:00:00, and the current period is 7:00:00~8:00:00, and next period is 8:00:00~9:00:00.In addition, for the ad data that can upgrade in time in user side, user side comprises the 3rd buffer area and the 4th buffer area, described the 3rd buffer area is for storing the handbill with respect to the described current period last period more early, and described the 4th buffer area is for storing the handbill of described current period.
Step 305: user side empties the handbill of the 3rd buffer area according to this second timing signal.In the present embodiment, when clock arrives 7:31:00, empty the handbill of 6:00:00~7:00:00.
Step 307: according to this second timing signal, store the handbill of next period into described the 3rd buffer area.That is to say that every new predetermined point of time (as 7:31:00) just user side can obtain the handbill of next period (as 8:00:00~9:00:00), and is substituted in described the 3rd buffer area.
Step 309: according to the 3rd timing signal, the handbill of described next period is switched to the handbill of current period, described the 3rd timing signal is later than second timing signal and produces.In present embodiment, when clock arrives 8:00:00, during the 3rd timing signal for generating, the handbill of 8:00:00~9:00:00 is replaced to the handbill that switches to the current period.
Step 311: according to the temporal information of user request signal, decision-making goes out the advertisement and identifier of corresponding time from the handbill of this current period.In present embodiment, the signal that described user request signal sends while being user's remote controller button, as, the signal when remote controller key triggers the demonstration of EPG menu, or the signal of adjustment volume.Be appreciated that the request signal sending when this user request signal can also be user's manipulator top box (STB).More specifically, described user request signal comprises the information such as channel, advertisement position, time.In the time point of user request signal is front half an hour of current period (as 7:00:00~8:00:00) when (as 7:02:00), user side is from the handbill (being stored in the 4th buffer area) of current period, the information of carrying according to this user request signal, the advertisement and identifier of the ad material of the current period that decision-making goes out to match.Within the rear half an hour that the time point of user request signal is the current period when (as 7:33:00), the information of still carrying according to this user request signal, from store the 4th buffer area of handbill of current period (7:00:00~8:00:00), decision-making goes out the advertisement and identifier of current period, but now the handbill of next period (8:00:00~9:00:00) has been stored in the 3rd buffer area.When the time point of user request signal is the time point in next period, as 8:05:00, due to the handbill of next period (8:00:00~9:00:00), replaced with the handbill of current period, and store in the 3rd buffer area being cleared, so user side carries out decision-making according to the handbill in the 3rd buffer area.
Step 313: described advertisement and identifier is sent to described server end equipment, so that described server end equipment is according to this advertisement and identifier decision-making and export corresponding ad material.
Step 315: receive and show described ad material.In present embodiment, described user side is electrically connected to television indicator, and when receiving described ad material, described user side can be converted into displayable data format and control described television indicator and show.
In order more clearly to describe described ad data exchange method, enumerate the idiographic flow that is applied in the method in wired interactive television system below.In present embodiment, this wired interactive television system comprises remote controller, terminal TV display and Set Top Box (STB) and the webserver, and the method comprises the following steps:
Step a: the pre-stored ad data that has described current period (for example 7:00:00~8:00:00) of this webserver, and generate at least ad data of next period (for example 8:00:00~9:00:00) according to this first timing signal, and this ad data is stored according to different groups.
When step b:STB starts shooting first, in internal memory without any the handbill of period, now, according to this starting-up signal, handbill to web server requests current hour (being the current period), for example, suppose that the available machine time is 7:10:20, STB is to the handbill of web server requests 7:00:00~8:00:00;
Step c: entrained information (such as MAC Address or IP address) when the webserver is asked according to STB, inquire about the group's (being assumed to be G_A) under this STB;
Steps d: extract the ad data of G_A group all ad datas that the webserver is stored from it, and generate the handbill of the request condition that meets this STB;
Step e:STB receives and resolves the handbill returning, and then, by different advertisement positions, corresponding handbill is stored in different advertisement position arrays, and these data unifications are stored in a current cache module;
Step f: when user presses remote controller key within the current period, the advertisement and identifier that STB goes out to satisfy condition according to information decisions such as current time, channel, advertisement positions;
Step g: STB, according to this advertisement and identifier, to web server requests ad material, makes the webserver return in time corresponding ad material and shows;
Step h: when the time, continue backward, and arrive predefined point sometime, 7:31:00 for example, STB is to the handbill of next period of web server requests (8:00:00~9:00:00);
Step I: the webserver, according to the request of STB, according to the ad data of next period of storing in it, generates and export the handbill of next period to described STB;
Step j:STB resolves the handbill returning, and is stored in different advertisement position arrays by different advertisement positions, then these data unifications is stored in another cache module;
Step k: when time point arrives 8:00:00, the webserver also can generate the first timing signal, and generates the ad data of next period (9:00:00~10:00:00) according to this first timing signal.Meanwhile, it is current cache module that STB switches buffer memory by another cache module, and the handbill (7:00:00~8:00:00) of the current cache module before emptying is for depositing next hour the handbill of (9:00:00~10:00:00).
Step l: when time point arrives 8:31:00, STB sends terminal request signal, to the handbill of web server requests 9:00:00~10:00:00, and the handbill returning is deposited in the current cache module having emptied.
Repeat above-mentioned steps c~l, can regularly upgrade the handbill in STB, thereby guarantee that ad material data show in real time, and due to STB decision-making advertisement and identifier voluntarily, the ad material that need to show according to advertisement and identifier decision-making again, can reduce the decision-making pressure of server, improves systematic function.
Refer to Fig. 6, the server end equipment 400 that it provides for the embodiment of the present invention, it is for carrying out data interaction with a ustomer premises access equipment 500.This server end equipment 400 comprises the first cache module 41, the first time block 42, data generation module 43, the second cache module 44, the first replacement module 45, the first receiver module 46, the first decision-making module 47 and the first sending module 48.
Described the first cache module 41 is for storing the ad data of a last period with respect to described current period definition.Be appreciated that described the first cache module 41 is corresponding to the first above-mentioned buffer area.
Described the first time block 42 is for exporting at least one the first timing signal.
Described data generation module 43, for according to this first timing signal, obtains at least ad data of next period from the database of server end equipment 400.
Described the second cache module 44 is for storing the ad data of described current period.
Described the first replacement module 45, for according to described the first timing signal, is replaced the ad data of next period the ad data of the last period in the first cache module 41, is about to the advertisement data store of next period in described the first cache module 41.Concrete, described the first replacement module 45, according to this second timing signal, first empties the first cache module, then by the advertisement data store of next period in described the first cache module.There is complete and up-to-date ad data the buffer area that thus, can guarantee server apparatus 400.
Described the first receiver module 46 is for receiving the terminal request signal sending from ustomer premises access equipment 500, and this terminal request signal is for asking the handbill of next period.
Described the first decision-making module 47 is for according to the ad data of this terminal request signal and this next period, generate and export the handbill of next corresponding period to described ustomer premises access equipment 500, make the ustomer premises access equipment 500 can be according to the temporal information of a user request signal, from the handbill of this current period, decision-making goes out the advertisement and identifier of corresponding time.
Described the first sending module 48 is for sending corresponding ad material according to described advertisement and identifier.
Be appreciated that in other embodiments, described the first cache module 41 and the second cache module 44 can be arranged in same memory.
Refer to Fig. 7, the ustomer premises access equipment 500 that it provides for the embodiment of the present invention, this ustomer premises access equipment 500 comprises the 3rd cache module 51, the second time block 52, request module 53, the 4th cache module 54, handover module 55, the second replacement module 56, the second decision-making module 57 and the second sending module 58.
Described the 3rd cache module 51 is for storing the handbill of last period.
Described the second time block 52 is for exporting at least one second timing signal.
Described request module 53 is for according to this second timing signal, send a terminal request signal to described server end equipment 400, so that server end equipment 400 generates and export the handbill of next period to described ustomer premises access equipment 500 according to this terminal request signal.
Described the 4th cache module 54 is for storing the handbill of current period.
Described handover module 55, for according to one the 3rd timing signal, switches to the handbill of described next period the handbill of current period, and described the 3rd timing signal is later than second timing signal and produces.
Described the second replacement module 56 is for empty the 3rd cache module 51 according to this second timing signal, and the handbill of next period is stored in the 4th cache module 54.
Described the second decision-making module 57 is for according to the temporal information of a user request signal, and from the handbill of this current period, decision-making goes out the advertisement and identifier of corresponding time.
Described the second sending module 58 is for being sent to described advertisement and identifier described server end equipment 400, so that described server end equipment 400 goes out corresponding ad material according to this advertisement and identifier decision-making.
Described the second receiver module 59 is for receiving and showing described ad material.
Be appreciated that in other embodiments, described the 3rd cache module 51 and the 4th cache module 54 can be arranged in same memory.
Refer to Fig. 8, the advertisement data interactive system 600 that it provides for the embodiment of the present invention, this system 600 comprises above-mentioned server end equipment 400 and the ustomer premises access equipment 500 that at least one is above-mentioned.In the Web TV that this system 600 can provide for wired interactive TV, IPTV and video website.
In ad data exchange method provided by the invention and system thereof, server end is first according to different terminals request signal, the handbill of current period of decision-making and next period is also stored in user side, make user side again according to user request signal by local handbill decision-making advertisement and identifier, the data of update server end and user side regularly, thus guarantee that ad material data show in real time.And, by server end decision-making handbill, and in the stepped strategy mode of user side decision-making advertisement and identifier, can reduce the decision-making pressure of server, improve systematic function.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.