Summary of the invention
In order to solve above-mentioned technical problem, a kind of application process and system of data acquisition standard card are provided, its purpose is, at every profession and trade business demand characteristics (information updating, information demonstration, the information input, information sends, and tabulation is selected, and voice are dialled and cried) and STK/UTK card technical characterstic, provide general STK/UTK application menu to satisfy industry-by-industry individual business demand, and mechanism reasonable in design guarantee the integrality of business datum.
The invention provides a kind of application process of data acquisition standard card, comprising:
Step 1 is stored menu as variable, and utilizes the address of variable to set up relation between the menu; Comprise type of variables in the variable;
Step 2, the data acquisition standard card is handled variable according to relation between type of variables, the menu and user's operation, finishes all operations until the user.
Type of variables is true list items, and tabulation is selected, text display, and input, note sends, and shared tabulation demonstration or voice are dialled and are cried;
Type of variables is that the variable of true list items also comprises following parameter: DCS, the address of menu content and follow-up variable;
The variable that type of variables is selected for tabulation also comprises following parameter: the address of α identification item, follow-up variable and first end mark or first continue the addressing sign;
Type of variables is that the variable of text display also comprises following parameter: the address of coded format, menu content, follow-up variable and second end mark or second continue the addressing sign;
Type of variables also comprises following parameter for the variable of input: minimum input length, maximum input length, coded format, the address of α sign and follow-up variable;
Type of variables is that the variable that note sends also comprises following parameter: send the address of variable, the address of server and the address of follow-up variable;
Type of variables is that the variable that shared tabulation shows also comprises following parameter: the address of follow-up variable;
Type of variables is that voice are dialled the variable that cries and also comprised following parameter: the address of being variable and follow-up variable dialled in voice.
Also be provided with variable-length in the variable.
This application process also comprises:
Step 3 during the descending renewal card of server variable menu, is provided with a serial number with each bar data SMS, and in the end a data SMS is provided with the termination sign;
Step 4, data acquisition standard card are received when having the last item data SMS that stops sign, judge whether to receive all data SMSs, if the data acquisition standard card confirms to receive the data SMS success to server; If server does not receive the data acquisition standard card at the appointed time and sends confirmation, then server issues query statement, the data acquisition standard card is uploaded to server with the note sequence number data acquisition system of being received, server is reissued the data SMS that the data acquisition standard card does not receive, after the data acquisition standard card receives successfully, confirm to receive the data SMS success to server.
This application process also comprises:
Step 5, when the data acquisition standard card sends data SMS, mark maximum note bar number, current note sequence number and batch number in the data SMS content;
Step 6 after server receives data SMS, judges that all data SMSs of same batch arrive, if, send confirmation to the data acquisition standard card, otherwise notification data collection standard card is reissued the data SMS that server does not receive, execution in step 7;
Step 7, after server receives the data SMS that the data acquisition standard card reissues, send confirmation to the data acquisition standard card, after the data acquisition standard card receives the confirmation information, the maximum note bar of data acquisition standard is counted zero clearing, and note transmission sign is resetted.
This application process also comprises:
Step 8, the user repays the data SMS that will not send by data and is sent to server.
The invention provides a kind of application system of data acquisition standard card, comprise server and data acquisition standard card,
The data acquisition standard card is used for menu is stored as variable, and utilizes the address of variable to set up relation between the menu; Comprise type of variables in the variable; Operation according to relation between type of variables, the menu and user is handled variable, finishes all operations until the user.
Instruction type is true list items, and tabulation is selected, text display, and input, note sends, and shared tabulation demonstration or voice are dialled and are cried;
Type of variables is that the variable of true list items also comprises following parameter: DCS, the address of menu content and follow-up variable;
The variable that type of variables is selected for tabulation also comprises following parameter: the address of α identification item, follow-up variable and first end mark or first continue the addressing sign;
Type of variables is that the variable of text display also comprises following parameter: the address of coded format, menu content, follow-up variable and second end mark or second continue the addressing sign;
Type of variables also comprises following parameter for the variable of input: minimum input length, maximum input length, coded format, the address of α sign and follow-up variable;
Type of variables is that the variable that note sends also comprises following parameter: send the address of variable, the address of server and the address of follow-up variable;
Type of variables is that the variable that shared tabulation shows also comprises following parameter: the address of follow-up variable;
Type of variables is that voice are dialled the variable that cries and also comprised following parameter: the address of being variable and follow-up variable dialled in voice.
Also be provided with variable-length in the variable.
Server when being used for descending renewal card variable menu, is provided with a serial number with each bar data SMS, and in the end a data SMS is provided with and stops sign;
The data acquisition standard card is used to receive when having the last item data SMS that stops sign, judges whether to receive all data SMSs, if the data acquisition standard card confirms to receive the data SMS success to server; Also be used for the note sequence number data acquisition system of being received being uploaded to server according to query statement; After the data SMS success that reception server is reissued, confirm to receive the data SMS success to server;
Server when also being used for not receiving the affirmation information of data acquisition standard card transmission at the appointed time, issues query statement; Also be used to reissue the data SMS that the data acquisition standard card does not receive.
The data acquisition standard card is used for when sending data SMS, mark maximum note bar number, current note sequence number and batch number in the data SMS content; After receiving the confirmation information, the maximum note bar of data acquisition standard is counted zero clearing, and note transmission sign is resetted;
Server after being used to receive data SMS, judges that all data SMSs of same batch arrive, if send confirmation to the data acquisition standard card, otherwise notification data collection standard card is reissued the data SMS that server does not receive; After receiving the data SMS that the data acquisition standard card reissues, send confirmation to the data acquisition standard card.
The data acquisition standard card also is used for repaying the data SMS that will not send for the user by data and is sent to server.
The invention provides general STK/UTK application menu and satisfy industry-by-industry individual business demand, and can make the integrality that guarantees business datum, reduce the cost of STK/UTK application and development.
Embodiment
The present invention gathers together them with Variable Control according to the general character of data acquisition application and the flexibility of data acquisition flow, makes this data acquisition standard STK card can be applied to the data acquisition industry.Guarantee by the note up-downgoing, solved the problem of data disappearances; The menu information variable design reduces follow-up renewal menu data amount, has card that standard card uses and puts on market in advance and become possibility.
The menu information variable design carries out variable design with data acquisition flow and data item, promptly is composition variable, also is follow-up process control variables.Variable can upgrade with online mode or note, the data acquisition application card that so just can accomplish different enterprises uses with a collection of standard card production, and after producing, renewal by the later stage realizes personalized demand, as the different data acquisition application card different flow processs and different image data items are arranged, so just reduced the card production procedure, and the cost of developing different application for the different data acquisition card.
In the processing of variable, the pointer form has been adopted in the connection of each instruction in the data acquisition flow, following subitem is provided in the variant content of each flow process, the first, instruction type, second, order parameter, the 3rd, the address of next variable in the flow process, current business operating process variable order in the program.Above-mentioned several subitem can change to some extent according to the difference of types of variables.Like this, whenever program is carried out this position, just can know and what to do now and finish after this step, where read the content that next step will be carried out again.Perhaps the user selects rollback, goes in proper order to judge that according to current flow process variable where reading variable obtains the content that rollback ends.
Carry out data acquisition by note, it is the difficult problem of industry that the note success rate does not reach 100% always, and standard card is used by having solved this problem with server interaction mechanism.
Cause data acquisition to be interrupted for running into accident in the middle of user's logging data gatherer process, the situation that the data of input do not send, this card has one to repay mechanism, with input and the storage that sends is not in card, the user selects " data are repaid ", just these data is sent.
The application process of a kind of data acquisition standard card provided by the invention as shown in Figure 3, comprising:
Step 31 is provided with instruction type and follow-up variable corresponding address in menu suction parameter variable, instruction type, command content and next variable or next variable corresponding address are set in follow-up variable;
Step 22, the data acquisition standard card obtains menu suction parameter variable according to the address of menu suction parameter variable, to menu suction parameter variable with follow-up variable is handled or menu suction parameter variable, follow-up variable and next variable of needing to handle are handled, dispose until all variablees.
The system that said method relates to comprises server 41 and data acquisition standard card 42 as shown in Figure 4.The data acquisition standard card is used for menu is stored as variable, and utilizes the address of variable to set up relation between the menu; Comprise type of variables in the variable; Operation according to relation between type of variables, the menu and user is handled variable, finishes all operations until the user.
The application menu of STK/UTK card, be made up of a plurality of menus, menu component type commonly used has list option (SELECT ITEM), text display (DISPLAY TEXT), content input (GETINPUT), information sends (SEND SMS), calls (SETUP CALL); List option, text display and content input can be described as the process item, and information to send and call be result items.
Among the present invention with STK/UTK card menu variable design, menu is formed (list option, text display, content input, an information transmission, call) all be to exist in the renewable variable space of card with variable, each variable is by the 0x0000h of the two bytes variable sequence number sign to 0xFFFFh; Each variable is by variable-length (first byte), and types of variables identifies (byte), and variable particular content and follow-up variable are formed, and variable-length is a types of variables sign (byte), the byte total length of variable particular content and follow-up variable.
Concrete variable-definition:
True list items types of variables sign 0x0Fh: the 3rd byte is DCS (Data codingscheme, a data coding scheme), and the centre is the title content, and last two bytes are follow-up address of variable.The α identification item also is classified as true list items, is that the follow-up address of variable of α identification item is nonsensical in process, so be decided to be 0x0000h, the DCS of α identification item also has any different with true list items and is 0x40h or 0x80h.
(select item) types of variables sign 0x01h is selected in tabulation: the 3rd, 4 byte that this parameter item is first is α identification item (identification item of Listed Items), and follow-up per two bytes are the address of variable of a true list items.Last two bytes, if be 0x0XXXh, expression is finished; If be 0xFXXXh (the 0xF000h-0xFFFFh variable will not use), the outcome variable 0x0XXXh that expression 0xFXXXh subtracts 0xF000h is combined into the tabulation selection parameter item (problem of consideration STK application space with this variable, each variable-length is 23 bytes, tabulation choice variable definition like this, can only show at most that in a variable 10 variablees add a α identification item, and in the practical application, each list option may be far longer than 10 variablees, in selecting, tabulation increases this parameter like this), follow-up tabulation selects the 0x0XXXh variable not have application identities, promptly from the 2nd byte, per two bytes are represented the variable sequence number of a true list items.
Text display (Display TEXT) types of variables sign 0x02h: second variant content is DCS (0x04h or 0x08h), subsequent byte is concrete displaying contents, last two bytes are follow-up address of variable, if follow-up address of variable is 0xFXXXh, expression 0xFXXXh subtracts outcome variable 0x0XXXh (variable first byte length of 0xF000h, last two byte cascades sign, middle be displaying contents) together form same displaying contents with this variable, last shows that latter two byte of variable is follow-up address of variable.
Input (Get Input) types of variables sign 0x03h: the minimum input of the 3rd byte length (1 byte), the maximum input of the 4th byte length (1 byte), coding (the 0x00h of the 5th byte user input content, 0x01h, 0x03h, 0x04h), the 6th byte α sign particular content coding (containing DCS coding 0x04h or 0x08h), last two bytes are follow-up address of variable.
Note sends (Send SMS) types of variables sign 0x04h: the variable ID of the 3rd byte for sending, and subsequent byte is a destination address, last two bytes are the follow-up address of variable after being sent completely.
Shared tabulation shows variable: types of variables sign 0x05h, if in menu, the actual products item is shared at plural function items, and this variable the 3rd, 4 byte is the follow-up variable of a function, and the 5th, 6 byte is the follow-up address of variable of the 2nd function items, and the rest may be inferred.
Voice are dialled and are (Setup Call): types of variables sign 0x06h dials for voice since the 3rd byte and is variable, and last two bytes are the follow-up address of variable after finishing.
Be elaborated below in conjunction with accompanying drawing.
Menu example among the embodiment provided by the invention describes according to this example as shown in Figure 1 below.
Variable is specifically defined
0xFFFFh:, after demonstration is finished, will select the content of input to send to the backstage Control Parameter for selecting input.
0xFFFEh: for the user selects, after demonstration is finished, the control sign that does not have data to send.
Variable-definition:
608001 (being used for storage of variables) of variable space AID (Application ID);
Variable 0000:050100130012;
The implication of each parameter is as follows in the variable 0000:
05: the first byte, length
01: the types of variables sign, represent that this variable is " tabulation is selected ";
0013: the α identification item;
The 0012:0x0012h variable is concrete option content;
Variable 0001:100F08798F4E3495E873897C736CB90009;
The implication of each parameter is as follows in the variable 0001:
0001: address of variable;
10: the first bytes, the length of this variable (not containing itself)
0F: the types of variables sign, represent that this variable is " true list items ";
08: the DCS coding of true list items;
798F4E3495E873897C736CB9: particular content " good fortune is corn oil near the house ";
0009: follow-up address of variable;
Variable 0002:140F08798F4E3495E873897C7380DA82BD6CB9000A;
Variable 0003:100F08798F4E3495E8829D9EBB6CB90000B;
Variable 0004:120F08592971368C3772698C03548C6CB9000C;
Variable 0005:120F08798F4E3495E8847582B17C7D6CB9000D;
Variable 0006:120F08798F4E3495E87A3B82B199997C73000E;
Variable 0007:160F08798F4E3495E84E1C53174F188D2859277C73000F;
Variable 0008:0C0F808BA28D274E0A62A50000;
Variable 0009:100208003500355143002F003553470010;
The implication of each parameter is as follows in the variable 0009:
0009: address of variable;
10: the first bytes, the variable-length of this variable (not containing itself);
02: the types of variables sign, represent that this variable is " text display ";
08: the DCS of displaying contents;
003500355143002F00355347: concrete displaying contents " 55 yuan/5 liters ";
0010: follow-up address of variable;
Variable 000A:100208003500355143002F003553470010;
Variable 000B:100208003700305143002F003553470010;
Variable 000C:100208003400305143002F003553470010;
Variable 000D:100208003700385143002F003553470010;
Variable 000E:100208003200325143002F0031003065A40010;
Variable 000F:100208003200355143002F0031003065A40010;
Variable 0010:0F0301040008657091CFFFFF;
Variable 0011:1101000800010002000300040005F014;
The implication of each parameter is as follows in the variable 0011:
0011: address of variable;
11: the first bytes, the variable-length of this variable (not containing itself);
01: the types of variables sign, represent that this variable is " tabulation is selected ";
0008: variant content is the α identification item;
0,001 0,002 0,003 0,004 0005: the content composition variable tabulation of variable;
F014:0014 variable and 0011 variable are formed variable list jointly, and particular content is 0,001 00,020,003 0,004 0,005 0,006 0007
Variable 0012:0C0F088BA28D274E0A62A50011;
Variable 0013:0C0F809500552E7BA15BB60000;
Variable 0014:0400060007;
In variable 608001, there is menu suction parameter variable 0000;
Variable 0000:050100130012;
According to definition and user's operation of above-mentioned variable, the display interface on the terminal screen is shown in Fig. 2 a-Fig. 2 h:
1), at first program reads the variable 0000 of 608001 variable spaces, obtaining data is 0100130012, is judged as list option by types of variables sign 01, and the content of 0013 variable is the α identification item, and 0012 variable is the option content;
2), read variable 0013 and variable 0012 variable in 608001 spaces, obtain data 0F809500552E7BA15BB6,0F088BA28D274E0A62A50011, the a indications that variable 0013 this tabulation is selected, second byte is DCS 0x80h, so latter two byte 0000 of variable is not a subsequent instruction addresses, and is nonsensical.Show that as Fig. 2 a 0011 4) in use;
3), select " order reports ", program is by continuing to read 0011 variable, obtain data 01000800010002000300040005F014, be judged as list option by types of variables sign 01, option data is 000800010002000300040005F014, judge that latter two byte is F014, expression " variable of 0x0014h as a result of 0xF014h-0xF000h variable therewith constitutes list option jointly; read the 0x0014h variable; obtain 0500060007; 05 be length; from latter two byte 0007; non-0XFXXXh variable, represents that this list option finishes to this, with 0011 000800010002000300040005 and 0014 00060007 composition list option parameter 00080001000200030004000500060007 jointly ".
4), the program branch is clipped to 4) 000800010002000300040005 variable in reading of data (every screen only shows 5 options), mobile phone screen displaying contents such as Fig. 2 b;
As selecting " following one page ", mobile phone screen displaying contents such as Fig. 2 c;
Option wherein " good fortune is rice fragrance of a flower rice near the house ", variable data is 0F08798F4E3495E87A3B82B199997C73000E, suppose then this item of user's choosing, next step reads the 000E variable program, and data are 0208003200325143002F0031003065A40010;
6), the sign of the types of variables by the 000E variable 02, differentiating is to show variable, video data is 08003200325143002F0031003065A4, follow-up variable is 0010; Shown in Fig. 2 d;
7), by after " cancellation ", get back to Fig. 2 e; The flow process of cancellation configures in program, is automatically retracted back into a selective listing instruction.
8), by " affirmations ", program reads 0010 variable, data are 0301040008657091CFFFFF, it is input type that types of variables identifies 03, follow-up free of data acquisition instructions.
9), after the user imports quantity,, enter fixedly " continuing input " and " transmission immediately " option of flow process of program by confirming." continuation input " and " sending immediately " also all preset flow process in program, user's choosing " continues to import ", and program can jump to the first step of notebook data collecting flowchart again; " send immediately " and then can change the note transmission flow over to, the explanation that detailed process is seen below.Shown in Fig. 2 f;
10) if, user choosing " continues input ", flow process enters 4), continue circulation; Shown in Fig. 2 g;
11) if, the user selects " sending immediately ", program enters and sends the note flow process; Shown in Fig. 2 h;
12) in the note flow process, the note that will send is earlier preserved, and prepares against when retransmitting and uses, and issue of bidding documents on the information of card is known being changed to 1 simultaneously, more maximum note bar number is added one, at this moment just the data of operating before the user is sent to the backstage.These two operations before sending are in order to do assurance to card data is up.The backstage after having received the note of sending out on the card empties these two flag bits.If it is clear that these two flag bits do not have always, card can point out the user to retransmit note.The user directly enters the repeating transmission menu, and point is retransmitted and got final product.
Fill by the above-mentioned type variable and to form menu, determine the program trend by the follow-up variable index of selected menu variable.Entering standard card uses, at first use and read entry variable, handle (as showing by this types of variables indication, input etc.), then by the last follow-up variable of two bytes of this variable, continuing to read variable and enter processing, is that 0xFFFFh forms the data transmission up to follow-up variable, and perhaps 0xFFFEh stops rollback.
The invention provides variable data and upgrade the mechanism of assurance.During the descending renewal card of server variable menu, each bar data SMS will have a serial number, as 01,02,03..., during the last item data SMS, be numbered NNFF (the maximum bar number of NN can not surpass 0xFEh), when card is received the last item note, judge whether automatically all to receive from 01 to NN note bar number, as receive, send successful information to background server is arranged; Do not receive in official hour as server and successfully to confirm the result, can issue query statement, card is uploaded to server with the note sequence number data acquisition system of being received automatically, by the sequence number data acquisition system, server just knows which bar information standard card does not receive, can reissue automatically, after standard card receives successfully, up successful result.
The invention provides the standard card data uplink and guarantee mechanism.It is up to use continuous many notes for standard card, mark has maximum note bar number and current note sequence number in short message content, and batch number (the up batch number of same continuous note is identical), after server receives, judge whether that same batch of all notes all arrive, as lack any bar, issue the trigger data note, after card was received, the note that server requirement is heavily reported sent once more automatically, after successfully receiving as server, to issue successfully and confirm, maximum note bar in the card is counted zero clearing, reach card note transmission sign and reset, the mobile phone interface demonstration " server receives successfully! "." server receives successfully can to point out the user after server is received if the wall scroll note data is same! ", do not show this information as the user terminal interface, can carry out data by menu in the program and heavily report, heavily Bao data are identical with former data content.
The invention provides data and repay mechanism.User's typing is selected in the middle of the logging data gatherer process, the content of the operating process of program recording user and selection input, cause data acquisition to be interrupted when running into accident, the data of input do not send, this program provides the data organization repaying that mechanism will be imported and do not send to send to backstage newspaper server, the user selects " data are repaid " option operations, just these data is sent.
Those skilled in the art can also carry out various modifications to above content under the condition that does not break away from the definite the spirit and scope of the present invention of claims.Therefore scope of the present invention is not limited in above explanation, but determine by the scope of claims.