Background technology
Existing general SIM (Universal SIM, abbreviation USIM) cartoon is crossed general SIM application toolkit (Universal SIM Application Tool, be called for short USAT) instruct and send the request of carrying out certain action to terminal, carry out the demonstration of content of multimedia by videotex " DISPLAY TEXT " and play sound " PLAY TONE " in the USAT instruction, specifically can be referring to relevant criterion, as 3GPPTS31.101 and TS31.111.
The content of their storages comprises respectively:
1. videotex (DISPLAY TEXT) instruction
The USIM application is based on Universal Integrated Circuit Card (Universal Integrated CircuitCard is called for short UICC), and platform is realized, is one of application on UICC.UICC is by " DISPLAYTEXT " command request terminal videotex message and icon, and the priority of definition message and the form of text string, as shown in Table 1.
Table one " DISPLAY TEXT " storage data content
Information field |
M/O/C |
Min |
Length |
Active UICC order label | M |
Y | |
1 |
Length (A+B+C+D+E+F) |
M | Y | | |
1 or 2 |
Command context |
M |
Y |
A |
Device identification |
M |
Y |
B |
Text string |
M |
Y |
C |
The icon sign |
O |
N |
D |
The summary responses parameter |
O |
N |
E |
Continue to show time variable |
O |
N |
F |
Wherein describe part M/O/C (Mandatory/Optional/Conditional) and represent that this parameter is necessary, optionally or with good conditionsi; Optionally data item length can be zero, promptly can not comprise byte, and essential data item should comprise enforceable data content.Min (Minimum Set) but represent that whether this parameter is that the recipient receives and the call parameter of the most basic command format of normal process.Command context is meant that " Display Text " orders the order details of self, comprises command number, command type, order qualifier etc.; Device identification is used for identifying the source device and the target device of this instruction; Icon identifies the position of a certain picture in the corresponding primary image file, can find and load corresponding image information by this sign, and detailed content can be referring to standard 3GPP TS31.101 and 3GPPTS31.111.The image file essential information is stored in the primary image file (EFIMG), corresponding graph image of each record of EFIMG, and this image is by the recording mechanism sign of EFIMG, as shown in Table 2.
Table two primary image file (EFIMG) storage data content
Access consideration wherein: read (READ), upgrading (UPDATE), deexcitation (DEACTIVATE), activate (ACTIVATE) and be respectively operation to this field, its operating right is respectively individual identification password (PIN) and document creation person (Administration, be called for short ADM), ADM represents that this authority controlled by the document creation person.Each iamge description, as the 3rd byte (the 4th byte) the identification image coded format in image 1 (2-10 byte) description, coding ' 11 ' be the primary image coded format, coding ' 21 ' be the color image encoding form.Reserve bytes 9n+2 specifically can be referring to the related description among the standard 3GPP TS31.101.Existing image file is only supported colored and these two kinds of forms of primary image.
2. (PLAY TONE) instruction plays sound
UICC is by PLAY TONE command request terminal plays sound, as shown in Table 3.
Table three " PLAY TONE " storage data content
Information field |
M/O/C |
Min |
Length |
Active UICC order label | M |
Y | |
1 |
Length (A+B+C+D+E+F) |
M | Y | | |
1 or 2 |
Command context |
M |
Y |
A |
Device identification |
M |
Y |
B |
Character mark |
O |
N |
C |
Tone |
O |
N |
D |
Duration |
O |
N |
E |
The icon sign |
O |
N |
F |
Table three is similar with table one memory contents, and just table three is to sound, and table one is the stored information of text and picture material.Wherein character mark is meant the information that is presented on the user interface; Icon sign, device identification and relevant implications such as M/O/C/Min are identical with table one, repeat no more.
Terminal and usim card realize that the process of text and picture display function is in the prior art:
1.USIM card sends " Display Text " instruction;
2. terminal analysis is somebody's turn to do the information field of order, judges whether and need Show Picture; When not needing to Show Picture, direct videotex information; Otherwise execution in step 3;
3. (the icon identification field comprises two parameters: icon qualifier and icon identifier to read icon qualifier in the icon sign, respectively take a byte, wherein whether first bit representation shows with text string in the icon qualifier) value to be to judge whether icon can show together with text string, be then to add text string execution in step 4 afterwards, otherwise direct execution in step 4;
4. the icon sign is pointed to EF
ImgIn a record, the example of a graph image of each recording indexes;
5. by EF
ImgIndex read the picture example that the manipulative indexing file is deposited, Show Picture.
Terminal and usim card realize that the process of sound-playing function is in the prior art: audio files is stored in terminal, terminal is play corresponding sound according to the sound type that requires in instructing (the tone field in " Play Tone " order comprises a parameter declaration sound type) after receiving " PLAY TONE " instruction, will not give unnecessary details.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art;
Existing usim card display media content is limited: the video class file only comprises the file of primary image coded format and the file of color image encoding form; The audio class file only comprises 14 class sound, comprise 8 class telephone signal tones and all sound of 6 Terminal Types such as ringing tone, short message prompt tones such as dialing tone, busy tone, demonstration or result of broadcast are very undesirable, as: the picture chromatic number is limited, only be 256 chromatic graph sheets, the 65536 chromatic graph sheets of generally supporting with at present general terminal have bigger gap; Only can show static images, not support the animated format picture to show; Audio file is supported fixedly sound of 14 classes, and audio-frequency function can not be independent, need realize on terminal-based.Terminal and usim card can only realize that alternately simple audio frequency and image show.
Summary of the invention
First aspect of the present invention provides a kind of method for displaying content of multimedia based on usim card, in order to solve existing usim card with the terminal demonstration or result of broadcast is undesirable, the usim card audio-frequency function can not be independent, problem such as need on terminal-based, realize, display media content is limited, realize the demonstration of various media contents, strengthen the effect of multimedia display, promote the independence of card on this function simultaneously, reduce dependence for terminal.
Second aspect of the present invention provides a kind of usim card, and existing usim card audio-frequency function need be realized on terminal in order to solve, audio-frequency function problem independently not, the independence during realization usim card play multimedia content.
In order to realize first aspect of the present invention, the method for displaying content of multimedia based on usim card of some execution modes of the present invention comprises:
Step 1.USIM card sends and comprises the content of multimedia display message that whether needs displaying video and audio file sign;
Step 2. obtains the information whether the needs terminal shows Voice ﹠ Video according to described whether needs displaying video and audio file sign, and reads the memory location that needs the Voice ﹠ Video file that shows in the described content of multimedia display message;
Step 3. judges whether the video file that needs in the usim card to show comprises sound, is then to set the not sound of displaying audio file, execution in step 4; Otherwise setting video file and audio file together plays;
Step 4. reads and shows the audio frequency that (in the usim card) needs show and/or the audio frequency and/or the video content of video file corresponding stored position.
The technical scheme of first aspect of the present invention embodiment has following advantage or beneficial effect:
Memory location by increasing audio frequency that the sign whether need displaying video and audio file and needs show and/or video file in the content of multimedia display message is with the demonstration of support content of multimedia, comprise text, audio file and video file, support multiple form, dissimilar media file, effectively promoted display effect.Can effectively solve the existing content of multimedia of realizing and show the phenomenon that the support media form is less, type is limited, display effect is undesirable and restricted by terminal.
Second aspect of the present invention comprises by the usim card of other embodiment:
Memory module is connected with processing module, and storage is used for the related data information of play multimedia content; The related data information of described play multimedia content comprises the memory location of the Voice ﹠ Video file that the sign that whether needs displaying video and audio file and needs show;
Processing module links to each other with memory module, is used for sending the content of multimedia display message to terminal, and the audio frequency and/or the video content of corresponding stored position read in the memory location of the Voice ﹠ Video file of Xian Shiing as required.
In the technique scheme, the audio frequency by increasing the sign whether need displaying video and audio file and needs demonstration in usim card and/or the memory location of video file are to support the demonstration of various forms, dissimilar content of multimedia, comprise text, audio file and video file, can effectively promote display effect.The audio-frequency function that efficiently solves existing usim card is subjected to the phenomenon of terminal restriction.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Embodiment
Referring to Fig. 1, be method for displaying content of multimedia embodiment one flow chart of first aspect present invention based on usim card.Present embodiment comprises:
Step 1.USIM card sends and comprises the content of multimedia display message that whether needs displaying video and audio file sign;
Step 2. obtains the information whether the needs terminal shows audio frequency and/or video according to described displaying video and audio file sign, and reads and need the audio frequency that shows and/or the memory location of video file in the described content of multimedia display message;
Step 2 ' judge whether needs display video and audio frequency simultaneously according to described displaying video and audio file sign, be execution in step 3 then, otherwise execution in step 4;
Step 3. judges whether video file comprises sound in the usim card, is then to set the not sound of displaying audio file, execution in step 4; Otherwise setting video file and audio file together plays;
Step 4. reads and shows needs the audio frequency that shows and/or the audio frequency and/or the video content of video file corresponding stored position in the usim card.
The memory location of present embodiment by the audio frequency that increases the sign whether need displaying video and audio file and needs show in the content of multimedia display message and/or video file is with the demonstration of support content of multimedia, comprise text, audio file and video file, support multiple form, dissimilar media file, effectively promoted display effect.In usim card and the terminal interaction process, video file can not only comprise image but also comprise sound, perhaps only comprises image in the present embodiment.When needs simultaneously playing video file and audio file, and video file is when comprising image and sound, the sound in the terminal disregards audio file, the only sound of playing video file and image; When video file only comprises image, can play demonstration with audio file.
Fig. 2 is method for displaying content of multimedia embodiment two flow charts of first aspect present invention based on usim card.Fig. 2 and Fig. 1 embodiment are similar, and something in common repeats no more, and comprise also among Fig. 2 embodiment that response message that step 5:USIM card returns according to terminal obtains the content of multimedia result displayed and handles accordingly according to display result.Specifically can comprise following any one:
(1) the response message acquisition demonstration content of multimedia that returns according to terminal is lost, and then usim card continues execution in step 2, shows content of multimedia again;
(2) response message of returning according to terminal obtains content of multimedia demonstration failure, need contain retry, and then usim card continues execution in step 1 behind setting-up time, shows the trial of content of multimedia again;
(3) response message of returning according to terminal obtains content of multimedia demonstration failure, is unworthy the information of retry, the usim card end operation.
Certainly; above-mentioned situation is just given an example to the several of terminal response message; those of ordinary skills should understand; according to different needs; can also set the terminal response message of other types; usim card also can be carried out corresponding different processing according to various dissimilar response messages, and it all should be within technical solution of the present invention scope required for protection.
Before step 2, also comprise, need to judge whether display video and/or audio frequency,, then only do text display and handle if do not need in display video and the audio frequency each.Videotex can be realized by aforementioned " DISPLAY TEXT " order.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 3 is the present invention second fermentation usim card embodiment one schematic diagram.Present embodiment comprises:
Memory module is connected with processing module, and storage is used for the related data information of play multimedia content; The related data information of described play multimedia content comprises sign and the audio frequency of needs demonstration and/or the memory location of video file that whether needs displaying video and audio file;
Processing module links to each other with memory module, is used for sending the content of multimedia display message to terminal, and the audio frequency and/or the video content of corresponding stored position read in the memory location of audio frequency of Xian Shiing and/or video file as required.
Wherein memory module is stored the related data information of play multimedia content, and the inventor sums up the related data information of content of multimedia in realizing process of the present invention, with original demonstration content of multimedia, compare as table two, increased new identification information, see Table four and table five.
Command header stored information in the table four content of multimedia display message
CLA |
INS |
P1 |
P2 |
P3 |
A0 |
12 |
00 |
00 |
lgth |
Table four is five byte command sign indicating numbers, in order to distinguish existing play command, abbreviates the content of multimedia display message as " Play Multimedia ", and wherein CLA is the abbreviation of " Class " in the table four, the expression classification; INS presentation code indication (Instruction); P1, P2P and 3 expression parameters, table four are the general format of Application Protocol Data Unit (Application Protocol Data Unit the is called for short APDU) order of UICC, describe 102.221 10.1 joints referring to relevant criterion ETSI in detail.
Parameter/data store organisation in the table five content of multimedia display message
Wherein, the SIM card Command Flags can set up on their own as required, as being set at " D0 " in the present embodiment; The key data information that increases in the present embodiment comprises:
1. order detail section:
The priority that the 1st bit-identify display message of " order qualifier " is carried out;
Whether the 2nd bit-identify of " order qualifier " needs playing video file, if this position 1, then " video file " field is necessary field, if this position 0, then " video file " field does not exist;
Whether the 3rd bit-identify of " order qualifier " needs displaying audio file, if this position 1, then " audio file " field is necessary field, if this position 0, then " audio file " field does not exist.
2. vedio/audio file part:
" audio file " field has been indicated the memory location of the audio file that terminal need play, and supports the form of various files, as .mp3 .wma etc.If a plurality of audio files are arranged, play until All Files successively in order and finish;
" video file " field has been indicated the memory location of the video file that terminal need play, and supports the form of various files, as .swf .rm etc.If a plurality of video files are arranged, play until All Files successively in order and finish.
By table five and table four as can be known, the content of multimedia display message of storing in the usim card of present embodiment has increased sign and the audio frequency of needs demonstration and/or the memory location of video file that whether needs displaying video and audio file, to support the demonstration of various forms, dissimilar content of multimedia, comprise text, audio file and video file, can effectively promote display effect.The audio-frequency function that efficiently solves existing usim card is subjected to the phenomenon of terminal restriction.
Fig. 4 is the present invention second fermentation usim card embodiment two schematic diagrames.Fig. 4 embodiment comprises the further refinement of processing module among Fig. 3 embodiment:
The terminal response submodule links to each other with processing sub, is used for judging again that according to the response message of terminal play multimedia content or retry send content of multimedia display message or end operation;
Processing sub is connected with terminal response submodule and memory module, carries out corresponding processing according to the result of terminal response submodule with memory module.
The embodiment of method for displaying content of multimedia in the comparison diagram 2, usim card carries out different processing according to the response of terminal, the inventor carries out in the procedure of content of multimedia demonstration at realization a first aspect of the present invention usim card and terminal, not only the related data information of content of multimedia is summed up, also the memory contents of the message of terminal response has been carried out corresponding memory contents according to table four and table five and summed up, as shown in Table 6.
The memory contents and the structure of table six terminal response information
Repeat no more with table five same section, the different demonstration execution result of the value representation that the result queue part is different wherein specifically can comprise following several:
(1) result queue is ' 00 ' expression command execution success;
(2) result queue is ' 01 ' expression fill order, and part is understood;
(3) result queue is ' 02 ' expression fill order, and drop-out is arranged;
(4) result queue is the active SIM card session that ' 10 ' expression user stops;
(5) result queue has been finished for ' 0X ' and ' 1X ' expression order;
(6) result queue be ' 20 ' expression ME is current can not processing command;
(7) result queue is told SIM card for ' 2X ' expression and is waited a moment and have an opportunity to answer this order of retry
(8) result queue exceeds the ability of terminal for ' 30 ' expression order
(9) result queue is ' 32 ' expression terminal inapprehensible order data, as audio or video file path mistake or the audio or video form that can't discern occurs;
(10) result queue is unworthy with identical command retry for ' 3X ' expression SIM card, because can only obtain same response.Yet whether want retry to determine by SIM card.
Above-mentioned situation is just given an example to the several of terminal response message; those of ordinary skills should understand; according to different needs, can also comprise other result and the respective operations that need carry out of SIM card, it all should be within technical solution of the present invention scope required for protection.
In sum, technique scheme increases new multimedia content to improve the deficiency based on the content of multimedia demonstration of usim card, has following advantage:
1. the form and the type of usim card demonstration content of multimedia have been expanded, can show in theory or the video and the audio file of all forms of playback terminal support, no longer be confined to dot matrix image encoding file (fundamental sum colour) and 14 class audio files, show same cover width thereby make the card-like multimedia display can reach terminal multi-media;
2. promoted the content of multimedia display effect,, can support polychrome to count picture, improved fidelity and color sense that video shows as showing static images and dynamic animation;
3. realize that for card calls the internal file storage sound playing provides approach, make sound store be no longer dependent on terminal, improve the independence of card on this function realizes;
4. realized the demonstration versatile and flexible of usim card content of multimedia, horn of plenty and the value-added service of the expansion card class resource that provides the foundation.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.