CN101969430A - Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data - Google Patents
Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data Download PDFInfo
- Publication number
- CN101969430A CN101969430A CN2010102933132A CN201010293313A CN101969430A CN 101969430 A CN101969430 A CN 101969430A CN 2010102933132 A CN2010102933132 A CN 2010102933132A CN 201010293313 A CN201010293313 A CN 201010293313A CN 101969430 A CN101969430 A CN 101969430A
- Authority
- CN
- China
- Prior art keywords
- data
- mobile
- message
- residue
- receive
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6405—Multicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/64315—DVB-H
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/64322—IP
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses an analytic method of the IP (Internet Protocol) data of a mobile phone television service, comprising the following steps that: an IP data analyzing module carries out splicing processing on IP data from a television equipment layer, processes an IP message obtained through the splicing processing to obtain mobile phone television data and sends to a television service layer. The invention also discloses a mobile phone television system for analyzing the IP data of the mobile phone television service and a device for analyzing the IP data of the mobile phone television service. The invention receives and processes the IP data reported by the television equipment layer by directly utilizing the IP data analyzing module without virtualizing a television service network card used for receiving the IP data on the television service layer, is not limited by whether a TCP/IP (Transmission Control Protocol/Internet Protocol) protocol stack of the television service layer supports a multicasting form or not and can realize the mobile phone television service on a mobile terminal even if the TCP/IP protocol stack of the television service layer does not support the multicasting form; and therefore, the invention provides a technical support for the extensive use of the mobile phone television service.
Description
Technical field
The present invention relates to field of mobile phone, relate in particular to the analytic method of IP data in a kind of mobile phone TV services and be used to resolve mobile TV system, the device of IP data.
Background technology
Along with the progress in epoch and the development of technology, portable terminal, more and more as the function of mobile phone.Now, mobile phone has risen a brand-new function-mobile TV again.Mobile TV carries out transfer of data by the ground digital television broadcast network.The mobile TV system roughly can be divided into three layers: user interface (UI) layer, television services layer and television equipment layer, when the user selected channel TV reception, wherein, the UI layer is a user interface, and the user operates mobile phone accordingly by operation interface; The television services layer is also referred to as software layer, is mainly used in the transmission and the processing of the IP data of TV programme; The television equipment layer is called hardware layer again, comprises TV and drives and TV chip, and wherein TV chip is mainly used in the IP data of received television program, and the TV driving is mainly used in the IP data that will be received and reports the television services layer.
(Digital Video Broadcasting-Handheld DVB-H) is one of them of three big main flow mobile TV standards in the handheld digital video broadcasting.At present, closely related based on the mobile phone TV services of DVB-H standard and the transmission control protocol/internet protocol of mobile phone operating system (TCP/IP) protocol stack.The method of traditional realization mobile phone TV services comprises: mobile phone operating system fictionalizes the television services network interface card according to the ICP/IP protocol stack at the television services layer, the TV that is used to receive the television equipment layer drives the IP data of the TV programme that reports, and the television services layer is handled described IP data according to the ICP/IP protocol stack and obtained the mobile TV data then.Here, need to prove that the IP address that comprises in the described IP data is a multicast address.Generally, the IP address of the television services network interface card that fictionalizes also is multicast address, so the television services network interface card that fictionalizes can receive TV and drive the IP data that report.
But, if the ICP/IP protocol stack of mobile phone operating system is not supported the multicast form, then can not fictionalize the television services network interface card of supporting multicast according to the ICP/IP protocol stack at the television services layer, like this, the television services layer can't receive TV and drive the IP data that report, therefore, in this case, just can not realize mobile phone TV services based on the DVB-H standard.Owing to be subjected to the mobile phone development environmental limit, change mobile phone operating system or change ICP/IP protocol stack make it all support the multicast form, be unusual difficulty in realization, this just makes to have on the mobile phone of different mobile phone operating systems exploitation based on the mobile phone TV services of DVB-H standard particularly difficulty.
Summary of the invention
In view of this, main purpose of the present invention is the mobile TV system, the device that the analytic method of IP data in a kind of mobile phone TV services are provided and are used to resolve the IP data, can avoid the dependence of mobile phone TV services to the ICP/IP protocol stack of mobile phone operating system.
For achieving the above object, technical scheme of the present invention is achieved in that
The analytic method of IP data in a kind of mobile phone TV services, this method comprises: the IP data resolution module splices processing to the IP data from the television equipment layer, the IP message obtain is handled in splicing handled and obtain the mobile TV data and send to the television services layer.
Described the IP data are spliced processing, comprising: judge whether residue IP data are arranged in the last resolving; If have, then residue IP data in the last resolving and the current IP data that receive are spliced processing; If no, then the current IP data that receive are spliced processing.
Described residue IP data in the last resolving and the current IP data that receive are spliced before the processing, further comprise: judge whether described residue IP data comprise legal IP head, if comprise, then residue IP data in the last resolving and the current IP data that receive are spliced processing; If do not comprise, abandon the residue IP data in the last resolving, and the current IP data that receive are spliced processing.
Described residue IP data in the last resolving and the current IP data that receive are spliced processing, specifically comprise:
Can the residue IP data in A1, the last resolving of judgement become complete IP message with the current IP data splicing that receives, if can, then continue execution in step B1, if can not, then abandon the residue IP data in the last resolving, and the current IP data that receive are spliced processing;
B1, the complete IP message of extraction, the process IP message obtains the mobile TV data, and sends to the television services layer, then execution in step C1;
Can C1, the current residue IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B1, if can not, execution in step D1 then continued;
D1, the corresponding IP data of reservation are the residue IP data in this resolving, when receiving the IP data once more, the IP data that receive are spliced processing.
Described the current IP data that receive are spliced processing, specifically comprise:
Can A2, the current IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B2, if can not, execution in step D2 then continued;
B2, the complete IP message of extraction, the process IP message obtains the mobile TV data, and sends to the television services layer, then execution in step C2;
Can C2, the current residue IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B2, if can not, execution in step D2 then continued;
D2, the corresponding IP data of reservation are the residue IP data in this resolving, when receiving the IP data once more, the IP data that receive are spliced processing.
Can described judgement IP data be spliced into complete IP message, be specially: judge from the start byte of described IP data to begin whether to comprise legal IP head, if comprise, then continue to judge that whether the length of IP data is greater than the IP message length, if greater than, then extract complete IP message, if less than, then keep corresponding IP data and be the residue IP data in this resolving; If do not comprise, then keep corresponding IP data and be the residue IP data in this resolving.
The described IP message is handled obtains the mobile TV data, is specially: the IP head and User Datagram Protocol (UDP) head that remove described IP message obtain the mobile TV data.
Described mobile TV data send to the television services layer, are specially: by local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps, by the readjustment mode mobile TV data are sent to the television services layer.
Describedly the mobile TV data are sent to the television services layer with the clean culture form by local winding mode, be specially: with the IP address transition of the multicast form of IP message is the local loopback address of clean culture form, according to the local loopback address of clean culture form the mobile TV data is sent to the television services layer with the clean culture form; Perhaps, describedly the mobile TV data are sent to the television services layer, be specially: call the processing function interface of television services layer, the mobile TV data are sent to described processing function interface by the readjustment mode.
A kind of mobile TV system that is used for mobile phone TV services IP data parsing, this mobile TV system comprises: the television equipment layer is used for the IP data according to IP address received television program, and described IP data is reported the IP data resolution module; The IP data resolution module is used for the IP data that receive are spliced processing, the IP message obtain is handled in splicing handled and obtain the mobile TV data and send to the television services layer.
Described IP data resolution module is used for the mobile TV data are sent to the television services layer, is specially: by local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps, by the readjustment mode mobile TV data are sent to the television services layer.
A kind of device that is used for mobile phone TV services IP data parsing, this device comprises: concatenation unit, be used for the IP data from the television equipment layer are spliced processing, obtain the IP message; Processing unit is used for described IP message handled obtaining the mobile TV data; Transmitting element is used for the mobile TV data are sent to the television services layer.
Described concatenation unit comprises: judge module, be used to receive IP data from the television equipment layer, and whether judge has residue IP data, if having, then trigger first parsing module, if do not have, then trigger second parsing module in the last resolving; First parsing module is used for the residue IP data and the current IP data that receive of last resolving are spliced processing; Second parsing module is used for the current IP data that receive are spliced processing.
Described judge module triggers before first parsing module, is further used for: judge that whether the residue IP data in the last resolving comprise legal IP head, if comprise, then trigger first parsing module; If do not comprise, then trigger second parsing module.
Described transmitting element is used for the mobile TV data are sent to the television services layer, is specially: by local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps, by the readjustment mode mobile TV data are sent to the television services layer.
Method of the present invention, device and mobile TV system, be directly to utilize the reception of IP data resolution module and handle the IP data that the television equipment layer reports, and need not fictionalize the television services network interface card that is used to receive the IP data at the television services layer, no longer be subjected to the ICP/IP protocol stack of television services layer whether to support the restriction of multicast form, and having simplified design greatly based on the portable terminal of mobile phone TV services, the present invention program can be conveniently used on the portable terminal.
In addition, the IP data resolution module makes the processing of mobile phone TV services no longer be subjected to the ICP/IP protocol stack of television services layer whether to support the restriction of multicast form particularly by local winding mode or readjustment mode.Therefore, when the ICP/IP protocol stack of television services layer is not supported the multicast form, also can on portable terminal, realize mobile phone TV services, for the extensive use of mobile phone TV services provides technical support.
Description of drawings
Fig. 1 is the mobile TV system configuration schematic diagram among the present invention;
Fig. 2 is the process of analysis figure of IP data in the mobile phone TV services among the present invention;
Fig. 3 is the structural representation of IP data resolution module among the present invention.
Embodiment
Basic thought of the present invention is: the IP data resolution module splices processing to the IP data from the television equipment layer, the IP message obtain is handled in splicing handled and obtain the mobile TV data and send to the television services layer.
Particularly, after the user starts mobile phone TV services by the UI layer, television services course television equipment layer configuration of IP address; The television equipment layer receives the IP data from the TV programme of described IP address, and described IP data are reported the IP data resolution module; The IP data resolution module becomes complete one by one IP message with described IP data splicing, obtains the mobile TV data and sends to the television services layer after described IP message is handled.
Introduce among the present invention the IP data parsing method that is adopted in detail and the mobile TV system that is used for the IP data parsing below in conjunction with accompanying drawing.
Fig. 1 among the present invention based on the mobile TV system block diagram of DVB-H standard, as shown in Figure 1, the mobile TV system comprises: UI layer, television services layer, IP data resolution module and television equipment layer.Wherein, the UI layer is a user interface, and the user operates portable terminal accordingly by operation interface; The television services layer is mainly used in the processing of mobile TV data; The IP data resolution module is used for the processing of IP data of TV programme and the transmission of mobile TV data; The television equipment layer comprises TV and drives and TV chip, and wherein TV chip is mainly used in the IP data of received television program, and the TV driving is mainly used in the IP data that will be received and reports the IP data resolution module.
Among the present invention program, the television equipment layer is used for the IP data according to IP address received television program, and described IP data are reported the IP data resolution module; The IP data resolution module is used for the IP data that receive are spliced processing, splicing is handled obtaining the mobile TV data and sending to the television services layer after the IP message that obtains is handled.
The IP data resolution module is used for the mobile TV data are sent to the television services layer, is specially: by local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps, by the readjustment mode mobile TV data are sent to the television services layer.
The IP data resolution module is used for the IP data that receive are spliced processing, is specially: judge whether residue IP data are arranged in the last resolving; If have, then residue IP data in the last resolving and the current IP data that receive are spliced processing; If no, then the current IP data that receive are spliced processing.
In addition, the television services layer is used for to television equipment layer configuration of IP address, and the mobile TV data are handled.The television services floor also is used for IP address that the user is selected and IP version and number is notified to the IP data resolution module.
Particularly, after the user starts mobile phone TV services by the UI layer, the rating process of mobile TV comprises: the television services layer triggers the mobile TV broadcasted content of the TV chip reception DVB-H standard of television equipment layer, DVB-H can be OMA BACST or IP data broadcasting (IPDC), described mobile TV broadcasted content is reported to the television services layer through the TV driving of television equipment layer, electron service instruction (ESG) module by the television services layer receives and handles ESG information, comprises the channel associated description information in the ESG information; The player of television services layer receives the channel information that the user selects by the UI layer, player by with the ESG module obtain IP address and IP version number alternately.Player number is notified to the IP data resolution module with described IP address and IP version, disposes described IP address to TV chip simultaneously, and TV chip begins to receive the IP data from the TV programme of described IP address.The IP data that TV chip received report the IP data resolution module by the TV driving and resolve.
After the IP data resolution module receives the IP data, judge whether residue IP data are arranged in the last resolving; If have, then residue IP data in the last resolving and the current IP data that receive are spliced processing; If no, then the current IP data that receive are spliced processing.
Residue IP data in the last resolving and the current IP data that receive are spliced processing, specifically may further comprise the steps:
Can the residue IP data in A1, the last resolving of judgement become complete IP message with the current IP data splicing that receives, if can, then continue execution in step B1, if can not, then abandon the residue IP data in the last resolving, and the current IP data that receive are spliced processing;
B1, the complete IP message of extraction, the process IP message obtains the mobile TV data, and sends to the television services layer, then execution in step C1;
Can C1, the current residue IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B1, if can not, execution in step D1 then continued;
D1, the corresponding IP data of reservation are the residue IP data in this resolving, when receiving the IP data once more, the IP data that receive are spliced processing.
The current IP data that receive are spliced processing, specifically may further comprise the steps:
Can A2, the current IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B2, if can not, execution in step D2 then continued;
B2, the complete IP message of extraction, the process IP message obtains the mobile TV data, and sends to the television services layer, then execution in step C2;
Can C2, the current residue IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B2, if can not, execution in step D2 then continued;
D2, the corresponding IP data of reservation are the residue IP data in this resolving, when receiving the IP data once more, the IP data that receive are spliced processing.
Fig. 2 among the present invention based on the process of analysis schematic diagram of IP data in the mobile phone TV services of DVB-H standard, as shown in Figure 2, this method comprises the steps:
Step 101: obtain TV and drive the IP data that report;
Be specially, after the user selects certain TV programme of determining by the UI layer, as mentioned above, IP address that the player of television services floor is selected the user and IP version number are notified to the IP data resolution module, simultaneously dispose described IP address to TV chip, TV chip receives the IP data from the TV programme of described IP address from digital TV broadcasting network, and the IP data that receive are sent to TV drive, TV drives at regular intervals, as 2s, report the IP data one time to the IP data resolution module, the length of the IP data that at every turn report is unfixing, as long as be no more than the maximum length of setting.The IP data resolution module receives after the IP data, begins to carry out parse operation.
Here, need to prove, because it is unfixing that TV drives the length of the IP data that report at every turn, therefore in the current IP data that report, can comprise one or more complete IP messages, the residual IP data that also can comprise the IP data place IP message that the last time reports, can also comprise and be about to more top IP data of IP data place IP message of reporting next time, for example, the current IP data that report of TV driving comprise: the residual IP data of the IP data place IP message that the last time reports, a complete IP message, and more top IP data of another other IP messages.Since TV drive report at every turn and to may not be certain be complete IP message, therefore, the IP data resolution module need become complete one by one IP message by resolving the IP data splicing that will receive, specific implementation such as following steps are described.
Whether step 102: judging has residue IP data, if having, enter step 103 in the last resolving, otherwise, enter step 107;
Be specially, the trace routine in the IP data resolution module detects in the data buffer zone of described IP data resolution module whether have the IP data.If there are the IP data in the described data buffer zone, illustrate that the IP data resolution module leaves residue IP data in last once resolving, enter step 103, if there are not the IP data in the described data buffer zone, illustrate that the IP data resolution module does not remain the IP data in last once resolving, enter step 107.
Step 103 judges that can residue IP data and the current IP data that receive be spliced into complete IP message, if can, enter step 104, otherwise, step 106 entered;
Here need to prove: the residue IP data in the last resolving are generally current more top IP data of IP data place IP message that receive, and promptly comprise the information of the IP head of IP message.For the IPv4 message, its IP head has 20 bytes, and for the IPv6 message, its IP head has 40 bytes.The IP head comprises the IP message length.For making residue IP data and the current IP data that receive can be spliced into complete IP message, the IP data that need intercept certain-length from the current IP data that receive are spliced.For ease of describing, the IP data length that needs are intercepted is designated as X.The length computation that X can be deducted residue IP data by the IP message length in the IP head of the residue IP data in the last resolving draws.After the IP data resolution module is skipped preceding X byte from the current IP data that receive, whether judge follow-up setting byte number, be legal IP head as the IP data of follow-up 20 bytes (at the IPv4 message) or follow-up 40 bytes (at IPv6), Rule of judgment is as follows:
The first, judge whether to comprise legal IP version number.
Here, need point out the preceding setting bit (bits) of first byte of IP message position, as the IP version of preceding 4 bit position assigned ip messages number.If the IPv4 message, then the value of preceding 4 bit positions of first byte is 4; If the IPv6 message, then the value of preceding 4 bit positions of first byte is 6.At this moment, the IP data resolution module is according to the IP version of player notice number, whether the value that detects preceding 4 bits positions of first byte after X the byte of the current IP data that receive is corresponding IP version number, if, the IP data that setting byte number after the X byte of the current IP data that receive then is described comprise legal IP version number, may be legal IP heads.
The second, judge the MTU whether the IP message length allows less than Ethernet.
Because the IP head the 3rd to nybble, i.e. the 17th to 32bits value representation IP message length.So the IP data resolution module is resolved X byte the 3rd value to nybble afterwards of the current IP data that receive.If the IP message length value that parsing obtains, then illustrates the IP data of the X byte setting byte number afterwards of the current IP data that receive less than the MTU that Ethernet allows and may belong to legal IP head; If the IP message length value that parsing obtains, then illustrates the IP data of the X byte setting byte number afterwards of the current IP data that receive greater than the MTU that Ethernet allows and does not belong to legal IP head.
Three, judge whether the IP address is correct.
Need to prove, in step 101, it is to make the IP data resolution module confirm whether the IP data of being resolved are the needed IP data of player that player will need the IP address of the IP data that receive and IP version number to notify described IP data resolution module, purpose.Because the IP address is left in four bytes of the 16th byte (at the IPv4 message) of IP message or 24 bytes (at the IPv6 message) beginning, therefore the IP data resolution module needs according to desired location after the X byte of the IP version number current IP data that receive of parsing, as the IP address that comprises in four bytes after the 16th or 24 bytes, whether the IP address that obtains is resolved in judgement correct, promptly whether identical with the IP address of player notice, if it is identical, the IP data that the X byte setting byte number afterwards of the current IP data that receive is described may belong to legal IP head, and the current IP data that receive are the needed IP data of player.
If the IP data of the setting byte number after current X byte of IP data that receives satisfy above three conditions simultaneously, the IP data that X the byte setting byte number afterwards of the current IP data that receive is described are legal IP heads, at this moment, residue IP data in the last resolving can be spliced into a complete IP message with preceding X byte of the current IP data that receive, and enter step 104.
If the IP data of the setting byte number after current X byte of IP data that receives can not satisfy above three conditions simultaneously, promptly as long as do not satisfy arbitrary condition in described three conditions, the IP data that X the byte setting byte number afterwards of the current IP data that receive then is described are not legal IP heads, at this moment, residue IP data in the last resolving can not obtain a complete IP message with preceding X byte splicing of the current IP data that receive, enter step 106 this moment, directly abandons the residue IP data in the last resolving.
Before whether the IP data of judging the follow-up setting byte number of residue IP data are legal IP head, can judge further whether residue IP data comprise legal IP head, promptly judge from the start byte of residue IP data and begin whether to comprise legal IP head, the concrete processing as described in first three Rule of judgment, if comprise, then continue to judge whether the IP data of follow-up setting byte number are the IP head; If do not comprise, can enter step 106.
Step 104: extract complete IP message;
Be specially, the IP data resolution module becomes a complete IP message with residue IP data splicing in the last resolving before the current IP extracting data that receives after X byte.
Step 105: the process IP message obtains the mobile TV data, and sends to player, enters step 108 then;
The IP data resolution module need be with the data content in the spliced IP message, be that the mobile TV data send to player, the IP head of IP message and User Datagram Protocol (UDP) head are nonsensical for player, so in this step, IP head and UDP head that the IP data resolution module need remove the IP message obtain the mobile TV data, and the destination interface information of extraction UDP head correspondence, because different port, can distinguish different mobile TV data from same IP address, when for example playing the TV programme of certain channel, though the mobile TV data are from same IP address, voice data wherein and video data are on different port.
When the IP data resolution module sends the mobile TV data to player, because the television services layer comes deal with data according to the ICP/IP protocol stack, if the ICP/IP protocol stack is not supported the multicast form, the television services layer is to handle the data of multicast form so, therefore, after the IP data resolution module removes the IP head and UDP head of IP message, by local winding mode the mobile TV data are sent to the television services layer with the clean culture form, be specially: the local loopback address that the IP address of IP message is replaced with the clean culture form, as 127.0.0.1, be the IP address of clean culture form with the IP address transition of multicast form promptly by local winding mode, afterwards, because the current IP address after the conversion is the clean culture form, therefore the IP data resolution module sends to player with the mobile TV data with the clean culture form according to the destination slogan information of current IP address and extraction.
In this step, when the IP data resolution module sends the mobile TV data to player, can also send mobile TV data by the readjustment mode to player according to the destination slogan information of extracting for: IP data resolution module, be that the IP data resolution module is not handled multicast address, but call the processing function interface of player, the mobile TV data are sent to this processing function interface, make no matter whether the ICP/IP protocol stack supports the multicast form, player can both correctly receive the mobile TV data that the IP data resolution module sends, and then the mobile TV data that receive are handled.
By above processing, whether the ICP/IP protocol stack that just can break away from the television services layer supports the restriction of multicast form, even the ICP/IP protocol stack is supported the clean culture form, also can realize mobile phone TV services.
Step 106: abandon the residue IP data in the last resolving.
Step 107: judge that can the current IP data that receive be spliced into a correct IP message, if can, enter step 109, if can not enter step 110;
Owing to do not remain the IP data in the resolving last time or abandoned residue IP data in resolving last time before, can the IP data that only need to judge current reception this moment be spliced into a correct IP message, promptly judges from the start byte of the IP data of current reception to begin whether to comprise legal IP head.
Step 108: judge that can the current residue IP data that receive be spliced into a correct IP message, promptly judge from the start byte of the residue IP data of current reception to begin whether to comprise legal IP head, if can, step 109 entered, if can not, enter step 110;
If residue IP data were arranged in the resolving last time, since before the current part IP data that receive are become a complete IP message with residue IP data splicing in the last time resolving, need this moment to judge that can the current residue IP data that receive be spliced into a correct IP message, judged promptly that from the current IP extracting data that receives can the IP data after the X byte be spliced into the correct IP message subsequent treatment, can pass through repeated execution of steps 108~step 109, the IP data that can be spliced into a complete IP message in the current IP data that receive are spliced, to obtain complete one by one IP message.
If do not remain IP data in the resolving last time, after the current IP data splicing that receives become a complete IP message, can continue execution by step 108~step 109, the IP data that can be spliced into a complete IP message in the current residue IP data that receive are spliced, to obtain complete one by one IP message.
For step 107 and step 108, particularly, start byte from the IP data of current judgement, according to aforementioned three Rule of judgment, whether the IP data of judging the preceding setting byte number of this part IP data satisfy aforementioned three conditions simultaneously, if: the IP data that the preceding setting byte number of this part IP data then is described are legal IP heads, enter step 108; If can not satisfy aforementioned three conditions simultaneously, illustrate that then the IP data of the preceding setting byte number of this part IP data are not legal IP heads, enter step 110.
Step 109: whether the length of IP data of judging current judgement greater than the IP message length that obtains, if greater than, enter step 104, if less than, step 110 entered;
Here, according to judged result before, when the IP data of the preceding setting byte number of the IP data of current judgement are legal IP head, according to the IP message length that comprises in this IP head, if the length of the IP data of current judgement is greater than the IP message length, explanation can go out a complete IP message from the IP extracting data of current judgement, enters step 104; If the length of the IP data of current judgement, illustrates the length of the not enough complete IP message of length of current IP data less than the IP message length, can not therefrom extract complete IP message, enter step 110.
Step 110: keep corresponding IP data for the residue IP data in this resolving, enter step 101, wait for receiving the IP data IP data parsing process of beginning next round.
When the user selects to withdraw from mobile phone TV services by the UI layer, no longer receive mobile TV data after the parsing by player notice IP data resolution module, therefore, the IP data resolution module finishes entire I P data parsing process, the IP data of notifying TV chip not need again received television program simultaneously.
In more than describing, the parse operation of being done at the IP data that once receive is the one parsing process.In addition, player receives that the processing after the mobile TV data is same as the prior art, does not repeat them here.
Fig. 3 is the structural representation of IP data resolution module among the present invention, as shown in Figure 3, the IP data resolution module comprises concatenation unit, processing unit and transmitting element, wherein, concatenation unit is used for the IP data from the television equipment layer are spliced processing, obtains the IP message; Processing unit is used for described IP message handled and obtains the mobile TV data; Transmitting element is used for the mobile TV data are sent to the television services layer.
Wherein, concatenation unit comprises judge module, first parsing module and second parsing module, wherein,
Judge module is used to receive the IP data from the television equipment layer, and whether judge has residue IP data, if having, then trigger first parsing module, if do not have, then trigger second parsing module in the last resolving;
First parsing module is used for the residue IP data of last resolving and the current IP data that receive are spliced processing;
Second parsing module is used for the current IP data that receive are spliced processing.
Judge module triggers before first parsing module, is further used for: judge that whether the residue IP data in the last resolving comprise legal IP head, if comprise, then trigger first parsing module; If do not comprise, then trigger second parsing module.
Described first parsing module comprises: first judges that submodule, first extracts submodule and first and keeps submodule, wherein,
First judges submodule, be used for judging that can the residue IP data of last resolving become complete IP message with the current IP data splicing that receives, if can, then trigger first and extract submodule, if can not, then abandon the residue IP data in the last resolving, and trigger described second parsing module; Also be used for triggering, judge that can the current residue IP data that receive be spliced into complete IP message according to the first extraction submodule, if can, then trigger first once more and extract submodule, if can not, then trigger first and keep submodule;
First extracts submodule, is used to extract complete IP message, and sends to described processing unit, triggers first then and judges submodule;
First keeps submodule, is used for keeping the residue IP data of corresponding IP data for this resolving.
Described second parsing module comprises: second judges that submodule, second extracts submodule and second and keeps submodule, wherein,
Second judges submodule, is used to judge that can the current IP data that receive be spliced into complete IP message, if can, then trigger second and extract submodule, if can not, then trigger second and keep submodule; Also be used for triggering, judge that can the current residue IP data that receive be spliced into complete IP message according to the second extraction submodule, if can, then trigger second once more and extract submodule, if can not, then trigger second and keep submodule;
Second extracts submodule, is used to extract complete IP message, and sends to described processing unit, triggers second then and judges submodule;
Second keeps submodule, is used for keeping the residue IP data of corresponding IP data for this resolving.
Transmitting element is used for the mobile TV data are sent to the television services layer, is specially: by local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps, by the readjustment mode mobile TV data are sent to the television services layer.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.
Claims (15)
1. the analytic method of IP data in the mobile phone TV services, it is characterized in that, this method comprises: the IP data resolution module splices processing to the IP data from the television equipment layer, the IP message obtain is handled in splicing handled and obtain the mobile TV data and send to the television services layer.
2. method according to claim 1 is characterized in that, described the IP data is spliced processing, comprising:
Judge whether residue IP data are arranged in the last resolving;
If have, then residue IP data in the last resolving and the current IP data that receive are spliced processing;
If no, then the current IP data that receive are spliced processing.
3. method according to claim 2, it is characterized in that, described residue IP data in the last resolving and the current IP data that receive are spliced before the processing, further comprise: judge whether described residue IP data comprise legal IP head, if comprise, then residue IP data in the last resolving and the current IP data that receive are spliced processing; If do not comprise, abandon the residue IP data in the last resolving, and the current IP data that receive are spliced processing.
4. method according to claim 2 is characterized in that, described residue IP data in the last resolving and the current IP data that receive is spliced processing, specifically comprises:
Can the residue IP data in A1, the last resolving of judgement become complete IP message with the current IP data splicing that receives, if can, then continue execution in step B1, if can not, then abandon the residue IP data in the last resolving, and the current IP data that receive are spliced processing;
B1, the complete IP message of extraction, the process IP message obtains the mobile TV data, and sends to the television services layer, then execution in step C1;
Can C1, the current residue IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B1, if can not, execution in step D1 then continued;
D1, the corresponding IP data of reservation are the residue IP data in this resolving, when receiving the IP data once more, the IP data that receive are spliced processing.
5. according to claim 2,3 or 4 described methods, it is characterized in that, described the current IP data that receive spliced processing, specifically comprise:
Can A2, the current IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B2, if can not, execution in step D2 then continued;
B2, the complete IP message of extraction, the process IP message obtains the mobile TV data, and sends to the television services layer, then execution in step C2;
Can C2, the current residue IP data that receive of judgement be spliced into complete IP message, if can, then continue execution in step B2, if can not, execution in step D2 then continued;
D2, the corresponding IP data of reservation are the residue IP data in this resolving, when receiving the IP data once more, the IP data that receive are spliced processing.
6. method according to claim 5 is characterized in that, can described judgement IP data be spliced into complete IP message, is specially:
Judgement begins whether to comprise legal IP head from the start byte of described IP data,
If comprise, whether the length that then continues to judge the IP data greater than the IP message length, if greater than, then extract complete IP message, if less than, corresponding IP data then kept and be the residue IP data in this resolving;
If do not comprise, then keep corresponding IP data and be the residue IP data in this resolving.
7. method according to claim 1 is characterized in that, the described IP message is handled obtains the mobile TV data, is specially: the IP head and User Datagram Protocol (UDP) head that remove described IP message obtain the mobile TV data.
8. according to claim 1 to 4 or 7 arbitrary described methods, it is characterized in that described mobile TV data send to the television services layer, are specially:
By local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps,
By the readjustment mode mobile TV data are sent to the television services layer.
9. method according to claim 8 is characterized in that,
Describedly the mobile TV data are sent to the television services layer with the clean culture form by local winding mode, be specially: with the IP address transition of the multicast form of IP message is the local loopback address of clean culture form, according to the local loopback address of clean culture form the mobile TV data is sent to the television services layer with the clean culture form; Perhaps,
Describedly the mobile TV data are sent to the television services layer, be specially: call the processing function interface of television services layer, the mobile TV data are sent to described processing function interface by the readjustment mode.
10. a mobile TV system that is used for mobile phone TV services IP data parsing is characterized in that, this mobile TV system comprises:
The television equipment layer is used for the IP data according to IP address received television program, and described IP data are reported the IP data resolution module;
The IP data resolution module is used for the IP data that receive are spliced processing, the IP message obtain is handled in splicing handled and obtain the mobile TV data and send to the television services layer.
11. system according to claim 10 is characterized in that, described IP data resolution module is used for the mobile TV data are sent to the television services layer, is specially:
By local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps,
By the readjustment mode mobile TV data are sent to the television services layer.
12. a device that is used for mobile phone TV services IP data parsing is characterized in that, this device comprises:
Concatenation unit is used for the IP data from the television equipment layer are spliced processing, obtains the IP message;
Processing unit is used for described IP message handled obtaining the mobile TV data;
Transmitting element is used for the mobile TV data are sent to the television services layer.
13. device according to claim 12 is characterized in that, described concatenation unit comprises:
Judge module is used to receive the IP data from the television equipment layer, and whether judge has residue IP data, if having, then trigger first parsing module, if do not have, then trigger second parsing module in the last resolving;
First parsing module is used for the residue IP data and the current IP data that receive of last resolving are spliced processing;
Second parsing module is used for the current IP data that receive are spliced processing.
14. device according to claim 13, it is characterized in that described judge module triggers before first parsing module, is further used for: judge whether the residue IP data in the last resolving comprise legal IP head, if comprise, then trigger first parsing module; If do not comprise, then trigger second parsing module.
15. according to the arbitrary described device of claim 12 to 14, it is characterized in that, described transmitting element is used for the mobile TV data are sent to the television services layer, is specially: by local winding mode the mobile TV data are sent to the television services layer with the clean culture form; Perhaps, by the readjustment mode mobile TV data are sent to the television services layer.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010293313.2A CN101969430B (en) | 2010-09-25 | 2010-09-25 | Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data |
PCT/CN2011/078860 WO2012037845A1 (en) | 2010-09-25 | 2011-08-24 | Analysis method for ip data, mobile television system and device for analyzing ip data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010293313.2A CN101969430B (en) | 2010-09-25 | 2010-09-25 | Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101969430A true CN101969430A (en) | 2011-02-09 |
CN101969430B CN101969430B (en) | 2014-08-13 |
Family
ID=43548534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010293313.2A Expired - Fee Related CN101969430B (en) | 2010-09-25 | 2010-09-25 | Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101969430B (en) |
WO (1) | WO2012037845A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012037845A1 (en) * | 2010-09-25 | 2012-03-29 | 中兴通讯股份有限公司 | Analysis method for ip data, mobile television system and device for analyzing ip data |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112468859B (en) * | 2020-11-30 | 2023-06-16 | 深圳乐播科技有限公司 | Screen service publishing method, device and storage medium |
CN117389935B (en) * | 2023-12-11 | 2024-03-08 | 井芯微电子技术(天津)有限公司 | Protocol conversion system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070277210A1 (en) * | 2006-05-24 | 2007-11-29 | Newport Media, Inc. | System and method for statistical multiplexing of video channels for DVB-H mobile TV applications |
CN101212267A (en) * | 2007-12-21 | 2008-07-02 | 北京创毅视讯科技有限公司 | FTP service data based method, system, and device for broadcast system |
CN101277443A (en) * | 2008-04-14 | 2008-10-01 | 中国网络通信集团公司 | Method and terminal for playing flow medium |
CN101312476A (en) * | 2007-05-23 | 2008-11-26 | 中兴通讯股份有限公司 | Mobile phone, mobile phone television control apparatus and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969430B (en) * | 2010-09-25 | 2014-08-13 | 中兴通讯股份有限公司 | Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data |
-
2010
- 2010-09-25 CN CN201010293313.2A patent/CN101969430B/en not_active Expired - Fee Related
-
2011
- 2011-08-24 WO PCT/CN2011/078860 patent/WO2012037845A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070277210A1 (en) * | 2006-05-24 | 2007-11-29 | Newport Media, Inc. | System and method for statistical multiplexing of video channels for DVB-H mobile TV applications |
CN101312476A (en) * | 2007-05-23 | 2008-11-26 | 中兴通讯股份有限公司 | Mobile phone, mobile phone television control apparatus and method |
CN101212267A (en) * | 2007-12-21 | 2008-07-02 | 北京创毅视讯科技有限公司 | FTP service data based method, system, and device for broadcast system |
CN101277443A (en) * | 2008-04-14 | 2008-10-01 | 中国网络通信集团公司 | Method and terminal for playing flow medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012037845A1 (en) * | 2010-09-25 | 2012-03-29 | 中兴通讯股份有限公司 | Analysis method for ip data, mobile television system and device for analyzing ip data |
Also Published As
Publication number | Publication date |
---|---|
WO2012037845A1 (en) | 2012-03-29 |
CN101969430B (en) | 2014-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100414902C (en) | Packet identifier search filtering | |
KR101075861B1 (en) | Service discovery section for mapping channel identifier to packet identifier | |
EP1474875B1 (en) | Method and device for filter monitoring for ip multicast services | |
CN101803427A (en) | Access network handover for a mobile television system | |
US8539532B2 (en) | Retransmission manager and method of managing retransmission | |
CN101969430A (en) | Analytic method of IP (Internet Protocol) data as well as mobile phone television system and device for analyzing IP data | |
CN101729755B (en) | Multimedia terminal | |
JP2008271294A (en) | Channel selection information transmitting apparatus, method, and program | |
CN111193966A (en) | Audio data transmission method and device, computer equipment and storage medium | |
CN113170219A (en) | Apparatus and method for tuner control through middleware | |
KR20090066043A (en) | Device and method for saving power in digital broadcasting receiver | |
CN101534430B (en) | Method for handling abnormal situations in playing of mobile TV and mobile terminal | |
EP2408201A1 (en) | System and method for sharing multimedia broadcasting program | |
JP5054664B2 (en) | Receiving terminal that receives header compressed packets | |
CN102724232A (en) | UDP-based network subtitle generator method and network subtitle generator system | |
JP5725746B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
JP5765895B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
CN101340305A (en) | Multicast method, system and access apparatus of specific source | |
JP2009033759A (en) | Channel selection information communication apparatus, method and program | |
CN1728826A (en) | Method for management of auxiliary programs and corresponding receiver and system | |
CN101742241A (en) | Method for controlling set-top box service, set-top box, server and system | |
JP4548533B2 (en) | Communication apparatus, method and program | |
JP5321535B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM | |
CN114374855B (en) | Live broadcast screen diagnosis method, device, equipment and readable storage medium | |
CN101997872A (en) | Method for reducing transmit jitter of code streams of streaming media and streaming media server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140813 Termination date: 20200925 |
|
CF01 | Termination of patent right due to non-payment of annual fee |