Summary of the invention
In order to solve above-mentioned technical problem, a kind of application process and system of data collection standard card are provided, its purpose is, for every profession and trade business demand characteristics (information updating, information demonstration, input information, information sends, and list is selected, and voice dial) and STK/UTK card technical characterstic, provide general STK/UTK application menu to satisfy industry-by-industry individual business demand, and the integrality of mechanism business datum reasonable in design.
The invention provides a kind of application process of data collection standard card, comprising:
Step 1 is stored menu as variable, and utilizes the address of variable to set up relation between menu; Comprise type of variables in variable;
Step 2, data collection standard card is processed variable according to the relation between type of variables, menu and user's operation, until the user completes all operations.
Type of variables is true list items, and list is selected, text display, and input, note sends, and shares list demonstration or voice and dials;
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;
Type of variables is that the variable that list is selected also comprises following parameter: the address of α identification item, follow-up variable and the 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 the 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 also comprises following parameter for the variable that shares the list demonstration: the address of follow-up variable;
Type of variables is that the variable that voice dial also comprises following parameter: voice dial the address of variable and follow-up variable.
Also be provided with variable-length in variable.
This application process also comprises:
Step 3 during the descending renewal card of server variable menu, arranges a serial number with each data note, and in the end a data note arranges the termination sign;
When step 4, data collection standard card are received with the last item data SMS that stops identifying, judge whether to receive all data SMSs, if so, data collection standard card is confirmed the success of receive data note to server; If server does not receive at the appointed time data collection standard card and sends confirmation, server issues query statement, data collection standard card is uploaded to server with the note sequence number data acquisition system of receiving, server is reissued the data SMS that data collection standard card does not receive, after data collection standard card receives successfully, confirm the success of receive data note to server.
This application process also comprises:
Step 5, when data collection standard card sends data SMS, mark maximum note 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 data collection standard card, reissue the data SMS that server does not receive, execution in step 7 otherwise notification data gathers standard card;
Step 7, after server receives the data SMS that data collection standard card reissues, send confirmation to data collection standard card, after data collection standard card receives the confirmation information, with the zero clearing of the maximum note number of data acquisition standard, and note transmission sign is resetted.
This application process also comprises:
Step 8, the user repays by data the data SMS that will not send and is sent to server.
The invention provides a kind of application system of data collection standard card, comprise server and data collection standard card,
Data collection standard card is used for menu is stored as variable, and utilizes the address of variable to set up relation between menu; Comprise type of variables in variable; According to the relation between type of variables, menu and user's operation, variable is processed, until the user completes all operations.
Instruction type is true list items, and list is selected, text display, and input, note sends, and shares list demonstration or voice and dials;
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;
Type of variables is that the variable that list is selected also comprises following parameter: the address of α identification item, follow-up variable and the 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 the 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 also comprises following parameter for the variable that shares the list demonstration: the address of follow-up variable;
Type of variables is that the variable that voice dial also comprises following parameter: voice dial the address of variable and follow-up variable.
Also be provided with variable-length in variable.
Server when being used for descending renewal card variable menu, arranges a serial number with each data note, and in the end a data note arranges the termination sign;
Data collection standard card when being used for receiving the last item data SMS that identifies with termination, judges whether to receive all data SMSs, and if so, data collection standard card is confirmed the success of receive data note to server; Also be used for according to query statement, the note sequence number data acquisition system of receiving being uploaded to server; After the data SMS success that reception server is reissued, confirm the success of receive data note to server;
Server when also being used for not receiving at the appointed time the confirmation information of data collection standard card transmission, issues query statement; Also be used for reissuing the data SMS that data collection standard card does not receive.
Data collection standard card is used for when sending data SMS, mark maximum note number, current note sequence number and batch number in the data SMS content; After receiving the confirmation information, with the zero clearing of the maximum note number of data acquisition standard, and note transmission sign is resetted;
Server after being used for receiving data SMS, judges that all data SMSs of same batch arrive, and if so, sends confirmation to data collection standard card, reissues otherwise notification data gathers standard card the data SMS that server does not receive; After receiving the data SMS that data collection standard card reissues, send confirmation to data collection standard card.
Data collection standard card also is used for repaying by data the data SMS that will not send for the user 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 shortage of data; The menu information variable design reduces follow-up renewal menu data amount, and putting on market in advance with the card of standard card application becomes possibility.
The menu information variable design carries out variable design with data acquisition flow and data item, is namely composition variable, is also the subsequent processes 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 the Extraordinary 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, in data acquisition flow, the pointer form has been adopted in the connection of each instruction, 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 flow process, current business operating process variable order in 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 now what to be done, and after finishing this step, more where read the content that next step will be carried out.Perhaps the user selects rollback, goes sequentially to judge that according to current flow process variable where reading variable obtains the content that rollback stops.
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, the data that with input and not do not send are stored in card, the user selects " data are repaid ", just these data is sent.
The application process of a kind of data collection standard card provided by the invention as shown in Figure 3, comprising:
Step 31 arranges instruction type and address corresponding to follow-up variable in menu suction parameter variable, instruction type, command content and next variable or address corresponding to next variable are set in follow-up variable;
Step 32, data collection 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 processed or to menu suction parameter variable, follow-up variable and need next variable to be processed to process, until all variablees are disposed.
The system that said method relates to comprises server 41 and data collection standard card 42 as shown in Figure 4.Data collection standard card is used for menu is stored as variable, and utilizes the address of variable to set up relation between menu; Comprise type of variables in variable; According to the relation between type of variables, menu and user's operation, variable is processed, until the user completes all operations.
The application menu of STK/UTK card, be comprised 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.
In the present invention with STK/UTK card menu variable design, menu forms (list option, text display, content input, an information transmission, call) be all 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 (the first byte), types of variables sign (byte), variable particular content and follow-up variable form, and variable-length is 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 coding scheme, data coding scheme), the centre is the title content, 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, therefore 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 list: the 3rd, 4 byte that this parameter item is first is α identification item (identification item of Listed Items), and follow-up every two bytes are the address of variable of a true list items.last two bytes, if be 0x0XXXh, expression is completed, if for the 0xFXXXh(0xF000h-0xFFFFh variable will not use), the outcome variable 0x0XXXh that expression 0xFXXXh subtracts 0xF000h is combined into list and selects parameter item (to consider the problem of STK application space together with this variable, each variable-length is 23 bytes, list choice variable definition like this, can only show at most that in a variable 10 variablees add a α identification item, and in practical application, each list option may be far longer than 10 variablees, in selecting, list increases like this this parameter), follow-up list selects the 0x0XXXh variable there is no application identities, namely from the 2nd byte, every two bytes represent the variable sequence number of a true list items.
Text display (Display TEXT) types of variables sign 0x02h: the 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 the first byte length of 0xF000h, last two byte cascade signs, 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 destination address, last two bytes are the follow-up address of variable after being sent completely.
Share list and show variable: types of variables sign 0x05h, if in menu, the actual products item shares at plural function items, and this variable the 3rd, 4 byte is a follow-up variable of function, and the 5th, 6 byte is the 2nd follow-up address of variable of function items, and the rest may be inferred.
Voice dial (Setup Call): types of variables sign 0x06h dials variable since the 3rd byte for voice, and last two bytes are the follow-up address of variable after completing.
Be elaborated below in conjunction with accompanying drawing.
Menu example in embodiment provided by the invention as shown in Figure 1, the below describes according to this example.
Variable is specifically defined
0xFFFFh: for selecting input, after demonstration is completed, will select the content of input to send to the Background control parameter.
0xFFFEh: for the user selects, after demonstration is completed, the control sign that does not have data to send.
Variable-definition:
Variable space AID(Application ID) 608001(is used for storage of variables);
Variable 0000:050100130012;
In variable 0000, the implication of each parameter is as follows:
05: the first byte, length
01: the types of variables sign represents that this variable is " list selection ";
0013: the α identification item;
The 0012:0x0012h variable is concrete option content;
Variable 0001:100F08798F4E3495E873897C736CB90009;
In variable 0001, the implication of each parameter is as follows:
0001: address of variable;
10: the first bytes, the length of this variable (not containing itself)
0F: the types of variables sign represents 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;
In variable 0009, the implication of each parameter is as follows:
0009: address of variable;
10: the first bytes, the variable-length of this variable (not containing itself);
02: the types of variables sign represents 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;
In variable 0011, the implication of each parameter is as follows:
0011: address of variable;
11: the first bytes, the variable-length of this variable (not containing itself);
01: the types of variables sign represents that this variable is " list selection ";
0008: variant content is the α identification item;
00010002000300040005: the content composition variable list of variable;
The common composition variable list of F014:0014 variable and 0011 variable, particular content is 0,001 00,020,003 0,004 0,005 0,006 0007
Variable 0012:0C0F088BA28D274E0A62A50011;
Variable 0013:0C0F809500552E7BA15BB60000;
Variable 0014:0400060007;
There is menu suction parameter variable 0000 in variable 608001;
Variable 0000:050100130012;
According to definition and user's operation of above-mentioned variable, the display interface on terminal screen is as shown in Fig. 2 a-Fig. 2 h:
1), at first program reads the variable 0000 of 608001 variable spaces, obtaining data is 0100130012, identifies 01 by types of variables and is judged as list option, 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 list is selected, second byte is DCS 0x80h, so latter two byte 0000 of variable is not subsequent instruction addresses, and is nonsensical.Show as Fig. 2 a, 0011 4) in use;
3), select " order reports ", program is by continuing to read 0011 variable, obtain data 01000800010002000300040005F014, identify 01 by types of variables and be judged as list option, option data is 000800010002000300040005F014, judgement latter two byte is F014, " variable of 0x0014h as a result of 0xF014h-0xF000h variable therewith consists of list option jointly in expression, read the 0x0014h variable, obtain 0500060007, 05 is length, from latter two byte 0007, non-zero XFXXXh variable, represent that this list option completes to this, with 0011 000800010002000300040005 and 0014 the 00060007 common list option parameter 00080001000200030004000500060007 that forms ".
4), program divide be clipped to 4) 000800010002000300040005 variable in reading out data (every screen only shows 5 options), mobile phone screen displaying contents such as Fig. 2 b;
As selecting " lower 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 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, the demonstration data are 08003200325143002F0031003065A4, follow-up variable is 0010; As shown in Fig. 2 d;
7), by after " cancellation ", get back to Fig. 2 e; The flow process of cancelling sets in program, is automatically retracted back into a selective listing instruction.
8), by " confirmations ", program reads 0010 variable, data are 0301040008657091CFFFFF, it is input type that types of variables identifies 03, follow-up countless according to acquisition instructions.
9), after the user inputs quantity, by confirming, enter fixedly " continuing input " and " transmission immediately " option of flow process of program." continuation input " and " sending immediately " also all preset flow process in program, user's choosing " continues to input ", and program can jump to the first step of notebook data collecting flowchart again; " send immediately " and can change the note transmission flow over to, process in detail the explanation that sees below.As shown in Fig. 2 f;
10) if, user choosing " continues input ", flow process enters 4), continue circulation; As shown in Fig. 2 g;
11) if, the user selects " sending immediately ", program enters and sends the note flow process; As shown in Fig. 2 h;
12) in the note flow process, the note that first will send is preserved, and prepares against when retransmitting and uses, and issue of bidding documents on the information of card is known being set to 1 simultaneously, more maximum note number is added one, at this moment just the data that operate 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 these two flag bits are always unclear, 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.
Filled by the above-mentioned type variable and form menu, come the determine procedures trend by the follow-up variable index of selected menu variable.The Engage of standard card is used, at first use and read entry variable, process (as showing by this types of variables indication, input etc.), then by the two last follow-up variablees of byte of this variable, continue to read variable and enter processing, form the data transmission until follow-up variable is 0xFFFFh, 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 data note will have a serial number, as 01,02,03 ... during the last item data SMS, be numbered NNFF (the maximum number of NN can not surpass 0xFEh), when card was received the last item note, whether automatic decision was all received from 01 to NN note number, as receive, send successful information to background server is arranged; Do not receive in setting time as server and successfully confirm result, can issue query statement, card is uploaded to server with the note sequence number data acquisition system of receiving automatically, by the sequence number data acquisition system, server just knows which bar information standard card does not receive, can automatically reissue, after standard card receives successfully, up successful result.
The invention provides the standard card data uplink and guarantee mechanism.use continuous many notes for standard card up, mark has maximum note 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 is received, automatically the note of server requirement heavily being reported sends again, after successfully receiving as server, to issue successfully and confirm, with maximum note number zero clearing in card, and card note transmission sign resets, mobile phone interface shows that " 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 program and heavily report, heavily the data of newspaper are identical with former data content.
The invention provides data and repay mechanism.In the middle of user's typing Select input data acquisition, 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 Organization of Data repaying that mechanism will be inputted 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 determined by the scope of claims.