CN104899529B - A kind of method for writing data and user terminal - Google Patents

A kind of method for writing data and user terminal Download PDF

Info

Publication number
CN104899529B
CN104899529B CN201410490248.0A CN201410490248A CN104899529B CN 104899529 B CN104899529 B CN 104899529B CN 201410490248 A CN201410490248 A CN 201410490248A CN 104899529 B CN104899529 B CN 104899529B
Authority
CN
China
Prior art keywords
service
data
type
business
user terminal
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.)
Active
Application number
CN201410490248.0A
Other languages
Chinese (zh)
Other versions
CN104899529A (en
Inventor
张善湾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410490248.0A priority Critical patent/CN104899529B/en
Publication of CN104899529A publication Critical patent/CN104899529A/en
Application granted granted Critical
Publication of CN104899529B publication Critical patent/CN104899529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention discloses a kind of method for writing data and user terminal, wherein method includes the following steps: when data carriers card carries out business datum write-in, obtain the type of service selected at least one type of service, and the business datum inputted according to the selected type of service is obtained, at least one described type of service is pre-stored within service server;Obtain the corresponding data writing position of the selected type of service;The business datum is written by radio frequency transmission mode into the data medium card according to the data writing position.The multiple business data that data medium card can be completed by user terminal are written, and save the cost of data carriers card write-in business datum.

Description

A kind of method for writing data and user terminal
Technical field
The present invention relates to field of computer technology more particularly to a kind of method for writing data and its user terminal.
Background technique
As society enters the age of information, the application of data medium card progresses into daily life, such as: Bank card, access card etc., data medium card facilitate the carrying of user since its is small in size.
Existing data medium card needs are handled to specified service handling point, for different service types, all Corresponding data writing device data carriers card is needed to carry out the write-in of business datum, such as: bank card is needed specified The data writing device of bank such as is written at the data in bank card, by different business (such as: access card handles, Dinning card is supplemented with money) accept the corresponding fixed data write device of configuration, cause the waste of equipment, increase to data The cost of carrier card write-in business datum.
Summary of the invention
The embodiment of the present invention provides a kind of method for writing data and user terminal, can pass through user terminal and completes data and carries The multiple business data of body card are written, and save the cost of data carriers card write-in business datum.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention provides a kind of method for writing data, can wrap It includes:
When data carriers card carries out business datum write-in, the industry selected at least one type of service is obtained Service type, and the business datum inputted according to the selected type of service is obtained, at least one described type of service is preparatory It is stored in service server;
Obtain the corresponding data writing position of the selected type of service;
The business datum is written by radio frequency transmission mode to the data medium according to the data writing position In card.
Second aspect of the embodiment of the present invention provides a kind of user terminal, it may include:
Data capture unit, for obtaining at least one industry when data carriers card carries out business datum write-in Type of service selected in service type, and obtain the business datum that is inputted according to the selected type of service, it is described extremely A few type of service is pre-stored within service server;
Position acquisition unit, for obtaining the corresponding data writing position of the selected type of service;
Data write unit, for writing the business datum by radio frequency transmission mode according to the data writing position Enter into the data medium card.
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of method for writing data provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another method for writing data provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another method for writing data provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of a scenario of data write-in provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of user terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another user terminal provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of position acquisition unit provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of data write unit provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another user terminal provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another user terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The method for writing data of the embodiment of the present invention can be applied to the scene that dinning card is supplemented with money, such as: it is carried when to data When body card carries out cost data write-in, the available user of user terminal has dinner selected at least one type of service Block the type of service supplemented with money and the value data to be supplemented with money inputted, the user terminal, which obtains, is directed to what dinning card was supplemented with money The corresponding data writing position of type of service, the user terminal is by value data to be supplemented with money according to the data writing position The scene etc. into the data medium card is written by radio frequency transmission mode;It can also be applied to the field that access card is handled Scape, such as: when data carriers card carries out the write-in of gate inhibition's code data, the available user of user terminal is at least one The type of service of the setting of access card selected in type of service and gate inhibition's code data of the input, the user terminal The corresponding data writing position of type of service for access card setting is obtained, the user terminal is by gate inhibition's code data The scene etc. into the data medium card is written by radio frequency transmission mode according to the data writing position.Using user Terminal log carries out the write-in of business datum according to carrier card, carries out business handling without concentrating on service handling point, improves The efficiency of business handling, while business datum write-in is carried out using the radio frequency transmission mode of user terminal, without to user terminal Increase hardware module, saves cost.
The present embodiments relate to user terminal can be it is any have radiofrequency signal output and communication function terminal, Such as: the smart machines such as tablet computer, mobile phone, personal computer (Personal Computer, PC), laptop;It is described Data medium card can be the intelligent cards for having rf signal reception and storing data;The radio frequency transmission mode is specific For the transmission mode of near-field communication (Near Field Communication, NFC).
Below in conjunction with attached drawing 1- attached drawing 4, describe in detail to method for writing data provided in an embodiment of the present invention.
Referring to Figure 1, for the embodiment of the invention provides a kind of flow diagrams of method for writing data.As shown in Figure 1, The embodiment of the present invention the method may include following steps S101- step S103.
S101 is obtained selected at least one type of service when data carriers card carries out business datum write-in The type of service selected, and obtain the business datum inputted according to the selected type of service;
Specifically, the available user of user terminal is at least when data carriers card carries out business datum write-in Type of service selected in one type of service and the business datum inputted for the selected type of service, institute It states at least one type of service and is pre-stored within service server, it is to be understood that the business datum can be led to by user User terminal is crossed to be manually entered, such as: the type of service supplemented with money for dinning card can be manually entered the amount of money to be supplemented with money Quantity;Alternatively, the business datum can be automatically generated by the user terminal, and such as: for the service class of access card setting Type, the user terminal can obtain gate inhibition's code data automatically, and the mode of acquisition can be the user terminal to the door Prohibit management server to obtain etc..
S102 obtains the corresponding data writing position of the selected type of service;
Specifically, the corresponding data writing position of the available selected type of service of the user terminal, institute The specific writing position that data writing position is expressed as in the data medium card is stated, by card manufacturer or supplier for not Different data writing positions is arranged in same business.Can be requested in advance to application server in the user terminal and store to A few type of service and the corresponding data writing position of each type of service, when user terminal gets selected business When type, it can search and obtain the corresponding data writing position of the selected type of service;Alternatively, the user terminal The corresponding data write-in of the selected type of service can be obtained to the corresponding service server of the selected type of service Position.
The business datum is written by radio frequency transmission mode to the data S103 according to the data writing position In carrier card;
Specifically, the business datum is written by radio frequency transmission mode to the data medium card user terminal In the data writing position of piece.
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost.
Fig. 2 is referred to, for the embodiment of the invention provides the flow diagrams of another method for writing data.Such as Fig. 2 institute Show, the embodiment of the present invention the method may include following steps S201- step S206.
S201 is obtained selected at least one type of service when data carriers card carries out business datum write-in The type of service selected, and obtain the business datum inputted according to the selected type of service;
Specifically, the available user of user terminal is at least when data carriers card carries out business datum write-in Type of service selected in one type of service and the business datum inputted for the selected type of service, institute It states at least one type of service and is pre-stored within service server, it is to be understood that the business datum can be led to by user User terminal is crossed to be manually entered, such as: the type of service supplemented with money for dinning card can be manually entered the amount of money to be supplemented with money Quantity;Alternatively, the business datum can be automatically generated by the user terminal, and such as: for the service class of access card setting Type, the user terminal can obtain gate inhibition's code data automatically, and the mode of acquisition can be the user terminal to the door Prohibit management server to obtain etc..
S202 sends data write information request to the service server, so that the service server is according to The corresponding business cipher key of the selected type of service and data writing position are searched in data write information request;
Specifically, the user terminal can send data write information request, the business to the service server Server can request to search the corresponding business cipher key sum number of the selected type of service according to the data write information According to writing position.The data writing position is expressed as the specific writing position in the data medium card, by card manufacturer or Different data writing positions is arranged for different business in person supplier.The service server is by the selected business The corresponding business cipher key of type and data writing position are sent to the user terminal.
S203, the corresponding business cipher key of the selected type of service and data for receiving that the service server returns Writing position;
Specifically, the selected type of service that the user terminal receives the service server return is corresponding Business cipher key and data writing position.
It is understood that user can be using the mark (such as: instant messaging application account etc.) of user terminal in industry Preparatory registration is carried out in business server, such as: for the server of access control system, it can recorde the mark of the user terminal of resident Know, that is, indicate the user terminal mark be authorized to can data carriers card carry out gate inhibition's code data write-in.
S204 is encrypted the business datum using predetermined encryption mode;
Specifically, the user terminal can be encrypted the business datum using predetermined encryption mode, institute Stating predetermined encryption mode is the user terminal and the subsequent service processing equipment (such as: access control system etc.) for carrying out business processing Arranged, i.e., the business datum is encrypted using predetermined encryption method, then follow-up business processing equipment needs are adopted It is decrypted with corresponding clear crytpographic key, obtains the business datum.By being encrypted to business datum, it is ensured that business Safety of data during data medium card is written, while also guaranteeing business datum in the data medium card Safety.Wherein, the service processing equipment can by processing equipment that the service server manages (such as: gate inhibition The server of system --- access control system etc.).
S205 replaces institute in the data medium card using the corresponding business cipher key of the selected type of service State initial key indicated by the corresponding data writing position of selected type of service;
Specifically, the user terminal uses the corresponding business cipher key of the selected type of service, the number is replaced According to initial key indicated by the corresponding data writing position of selected type of service described in carrier card.
It is understood that the data medium card initialization when, for different in the data medium card Data writing position is respectively provided with initial key, and the initial key can be replaced modification;The business cipher key is used for table Show the unique identification of the selected type of service, while business cipher key data in replacement data carrier card are written After initial key on position, the business cipher key will be provided with non-reproduction, i.e. business cipher key cannot be replaced again It changes.
The business datum after the encryption is written in the data medium card by radio frequency transmission mode by S206 The corresponding data writing position of the selected type of service;
Specifically, the user terminal will be described in the business datum write-in after the encryption by radio frequency transmission mode The corresponding data writing position of selected type of service described in data medium card, it is to be understood that only replacing For the data writing position after the corresponding business cipher key of the selected type of service, just can to corresponding business datum into Row write enters, and further ensures the safety of business datum write-in.
It should be noted that service processing equipment will can read the data medium card in subsequent progress business processing Business datum in the specified data writing position of piece, and carry out corresponding business processing.Such as: for access control system, when When user carries out access control system unlock using the data medium card for having had been written into gate inhibition's code data, the access control system will Specified data writing position of the meeting in the data medium card obtains gate inhibition's code data, and is decrypted, verifies to it, Finally it is unlocked processing etc..
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost;By the way of obtaining business cipher key to application server online, the leakage of business cipher key is avoided, ensure that business The safety of key;Business datum is encrypted using predetermined encryption mode, and by the way of business cipher key insertion, is protected The safety of business datum write-in data medium card is demonstrate,proved.
Fig. 3 is referred to, for the embodiment of the invention provides the flow diagrams of another method for writing data.Such as Fig. 3 institute Show, the embodiment of the present invention the method may include following steps S301- step S307.
S301 sends type of service request to service server, so that the service server is according to the type of service Request generates the service lists comprising at least one type of service and the corresponding data write information of each type of service, institute Stating data write information includes business cipher key and data writing position;
S302 receives the service lists that the service server returns, and saves to the service lists;
Specifically, user terminal can request each business at least one described type of service to service server in advance The corresponding data write information of type, in request process, the service server can mark (example to the user terminal Such as: instant messaging application account) verified, determine the user terminal whether be allowed to authorization data carriers card into The write-in of row business datum, if so, the service server can be according at least one type of service and each type of service pair The data write information answered generates service lists, and the service lists are sent to the user terminal, the user terminal The service lists can be saved into being locally stored, the data write information includes business cipher key and data write-in position It sets.
S303 is obtained selected at least one type of service when data carriers card carries out business datum write-in The type of service selected, and obtain the business datum inputted according to the selected type of service;
Specifically, the available user of user terminal is at least when data carriers card carries out business datum write-in Type of service selected in one type of service and the business datum inputted for the selected type of service, institute It states at least one type of service and is pre-stored within service server, it is to be understood that the business datum can be led to by user User terminal is crossed to be manually entered, such as: the type of service supplemented with money for dinning card can be manually entered the amount of money to be supplemented with money Quantity;Alternatively, the business datum can be automatically generated by the user terminal, and such as: for the service class of access card setting Type, the user terminal can obtain gate inhibition's code data automatically, and the mode of acquisition can be the user terminal to the door Prohibit management server to obtain etc..
S304 obtains the corresponding business cipher key of the selected type of service and data write-in in the service lists Position;
Specifically, the user terminal can obtain the selected business in the service lists being locally stored The corresponding business cipher key of type and data writing position.
S305 is encrypted the business datum using predetermined encryption mode;
Specifically, the user terminal can be encrypted the business datum using predetermined encryption mode, institute Stating predetermined encryption mode is the user terminal and the subsequent service processing equipment (such as: access control system etc.) for carrying out business processing Arranged, i.e., the business datum is encrypted using predetermined encryption method, then follow-up business processing equipment needs are adopted It is decrypted with corresponding clear crytpographic key, obtains the business datum.By being encrypted to business datum, it is ensured that business Safety of data during data medium card is written, while also guaranteeing business datum in the data medium card Safety.Wherein, the service processing equipment can by processing equipment that the service server manages (such as: gate inhibition The server of system --- access control system etc.).
S306 replaces institute in the data medium card using the corresponding business cipher key of the selected type of service State initial key indicated by the corresponding data writing position of selected type of service;
Specifically, the user terminal uses the corresponding business cipher key of the selected type of service, the number is replaced According to initial key indicated by the corresponding data writing position of selected type of service described in carrier card.
It is understood that the data medium card initialization when, for different in the data medium card Data writing position is respectively provided with initial key, and the initial key can be replaced modification;The business cipher key is used for table Show the unique identification of the selected type of service, while business cipher key data in replacement data carrier card are written After initial key on position, the business cipher key will be provided with non-reproduction, i.e. business cipher key cannot be replaced again It changes.
The business datum after the encryption is written in the data medium card by radio frequency transmission mode by S307 The corresponding data writing position of the selected type of service;
Specifically, the user terminal will be described in the business datum write-in after the encryption by radio frequency transmission mode The corresponding data writing position of selected type of service described in data medium card, it is to be understood that only replacing For the data writing position after the corresponding business cipher key of the selected type of service, just can to corresponding business datum into Row write enters, and further ensures the safety of business datum write-in.
It should be noted that service processing equipment will can read the data medium card in subsequent progress business processing Business datum in the specified data writing position of piece, and carry out corresponding business processing.Such as: for access control system, when When user carries out access control system unlock using the data medium card for having had been written into gate inhibition's code data, the access control system will Specified data writing position of the meeting in the data medium card obtains gate inhibition's code data, and is decrypted, verifies to it, Finally it is unlocked processing etc..
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost;By the way that the corresponding data write information of each type of service is stored in advance, business cipher key can be obtained with offline mode And the write-in of business cipher key and business datum is carried out, improve the data write efficiency of data medium card;Using predetermined encryption Mode encrypts business datum, and by the way of business cipher key insertion, ensure that data medium is written in business datum The safety of card.
A specific example will be quoted below to be situated between to the process of method for writing data provided in an embodiment of the present invention It continues.
Fig. 4 is referred to, for the embodiment of the invention provides the schematic diagram of a scenario that data are written.As shown in figure 4, when needs pair When data medium card carries out the write-in of gate inhibition's code data, it is selected at least one type of service that user terminal obtains user The type of service selected is the type of service of access card setting, while the user terminal obtains inputted gate inhibition's code data, Business cipher key transmitted by the entrance guard management server and gate inhibition's code data can be stored in advance in the user terminal Data writing position, or the number of business cipher key and gate inhibition's code data can be obtained to the entrance guard management server online According to writing position, the user terminal can be encrypted gate inhibition's code data using predetermined encryption mode.Institute It states user terminal and the initial key on data writing position described in the data medium card is replaced with into the business cipher key, And gate inhibition's code data after the encryption is written to data described in the data medium card after replacement and is written On position.It is described when user carries out access control system unlock using the data medium card for having had been written into gate inhibition's code data Access control system will obtain gate inhibition's code data in the specified data writing position in the data medium card, and carry out to it Decryption, verifying, are finally unlocked processing.
Below in conjunction with attached drawing 5- attached drawing 9, describe in detail to user terminal provided in an embodiment of the present invention.It needs It is bright, the attached user terminal shown in Fig. 9 of attached drawing 5-, the method for executing Fig. 1-embodiment illustrated in fig. 4 of the present invention, in order to just In explanation, only parts related to embodiments of the present invention are shown, disclosed by specific technical details, please refers to Fig. 1-of the present invention Embodiment shown in Fig. 4.
Fig. 5 is referred to, for the embodiment of the invention provides a kind of structural schematic diagrams of user terminal.As shown in figure 5, this hair The user terminal 1 of bright embodiment may include: data capture unit 11, position acquisition unit 12 and data write unit 13。
Data capture unit 11, for obtaining at least one when data carriers card carries out business datum write-in Type of service selected in type of service, and obtain the business datum inputted according to the selected type of service;
In the specific implementation, the data capture unit 11 can be with when data carriers card carries out business datum write-in Obtain user's type of service selected at least one type of service and defeated for the selected type of service institute The business datum entered, at least one described type of service are pre-stored within service server, it is to be understood that the business number According to can be manually entered by user by user terminal, such as: the type of service supplemented with money for dinning card, it can be defeated manually Enter the dollar amount to be supplemented with money;Alternatively, the business datum can be automatically generated by the data capture unit 11, and such as: needle To the type of service of access card setting, the user terminal can obtain gate inhibition's code data automatically, and the mode of acquisition can be The user terminal obtains etc. to the entrance guard management server.
Position acquisition unit 12, for obtaining the corresponding data writing position of the selected type of service;
In the specific implementation, the corresponding data of the available selected type of service of the position acquisition unit 12 are write Enter position, the data writing position is expressed as the specific writing position in the data medium card, by card manufacturer or confession Answer quotient that different data writing positions is set for different business.It can be in advance to application server in the user terminal 1 At least one type of service and the corresponding data writing position of each type of service are requested and store, when the data acquisition list When member 11 gets selected type of service, the position acquisition unit 12 can search and obtain the selected business The corresponding data writing position of type;Alternatively, the position acquisition unit 12 can be corresponding to the selected type of service Service server obtains the corresponding data writing position of the selected type of service.
Data write unit 13, for the business datum to be passed through radio frequency transmission mode according to the data writing position Write-in is into the data medium card;
In the specific implementation, the business datum is written by radio frequency transmission mode to described the data write unit 13 In the data writing position of data medium card.
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost.
Fig. 6 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another user terminal.As shown in fig. 6, this The user terminal 1 of inventive embodiments may include: data capture unit 11, position acquisition unit 12, data write unit 13 and DEU data encryption unit 14.
Data capture unit 11, for obtaining at least one when data carriers card carries out business datum write-in Type of service selected in type of service, and obtain the business datum inputted according to the selected type of service;
In the specific implementation, the data capture unit 11 can be with when data carriers card carries out business datum write-in Obtain user's type of service selected at least one type of service and defeated for the selected type of service institute The business datum entered, at least one described type of service are pre-stored within service server, it is to be understood that the business number According to can be manually entered by user by user terminal, such as: the type of service supplemented with money for dinning card, it can be defeated manually Enter the dollar amount to be supplemented with money;Alternatively, the business datum can be automatically generated by the data capture unit 11, and such as: needle To the type of service of access card setting, the user terminal can obtain gate inhibition's code data automatically, and the mode of acquisition can be The user terminal obtains etc. to the entrance guard management server.
Position acquisition unit 12, for obtaining the corresponding data writing position of the selected type of service;
In the specific implementation, the corresponding data of the available selected type of service of the position acquisition unit 12 are write Enter position, the data writing position is expressed as the specific writing position in the data medium card, by card manufacturer or confession Answer quotient that different data writing positions is set for different business.The position acquisition unit 12 can be to the selected industry The corresponding service server of service type obtains the corresponding data writing position of the selected type of service.
Specifically, please also refer to Fig. 7, for the embodiment of the invention provides the structural schematic diagrams of position acquisition unit.Such as Shown in Fig. 7, the position acquisition unit 12 may include:
Transmission sub-unit 121 is requested, for sending data write information request to the service server, so that the industry Business server searches the corresponding business cipher key of the selected type of service and data according to data write information request Writing position;
In the specific implementation, the request transmission sub-unit 121 can send data write information to the service server Request, the service server can request the lookup selected type of service corresponding according to the data write information Business cipher key and data writing position.The data writing position is expressed as the specific write-in position in the data medium card It sets, different data writing positions is set for different business by card manufacturer or supplier.The service server is by institute It states the corresponding business cipher key of selected type of service and data writing position is sent to the user terminal 1.
Receiving subelement 122, it is corresponding for receiving the selected type of service that the service server returns Business cipher key and data writing position;
In the specific implementation, the receiving subelement 122 receives the selected business that the service server returns The corresponding business cipher key of type and data writing position.
It is understood that user can be using the mark (such as: instant messaging application account etc.) of user terminal 1 in industry Preparatory registration is carried out in business server, such as: for the server of access control system, it can recorde the user terminal 1 of resident Mark, that is, indicate the user terminal 1 mark be authorized to can data carriers card carry out gate inhibition's code data write-in.
DEU data encryption unit 14, for the business datum to be encrypted using predetermined encryption mode;
In the specific implementation, the DEU data encryption unit 14 can add the business datum using predetermined encryption mode Close processing, service processing equipment that the predetermined encryption mode, which is the user terminal 1, carries out business processing with subsequent (such as: Access control system etc.) arranged, i.e., the business datum is encrypted using predetermined encryption method, then follow-up business is handled Equipment needs to be decrypted using corresponding clear crytpographic key, obtains the business datum.It, can by being encrypted to business datum To guarantee safety of business datum during data medium card is written, while also guaranteeing business datum in the data Safety in carrier card.Wherein, the processing equipment that the service processing equipment can be managed by the service server (such as: the server of access control system --- access control system etc.).
Data write unit 13, for the business datum to be passed through radio frequency transmission mode according to the data writing position Write-in is into the data medium card;
In the specific implementation, the business datum is written by radio frequency transmission mode to described the data write unit 13 In the data writing position of data medium card.
Specifically, please also refer to Fig. 8, for the embodiment of the invention provides the structural schematic diagrams of data write unit.Such as Shown in Fig. 8, the data write unit 13 may include:
Key replaces subelement 131, for using the corresponding business cipher key of the selected type of service, described in replacement Initial key indicated by the corresponding data writing position of selected type of service described in data medium card;
In the specific implementation, the key replacement subelement 131 uses the corresponding business of the selected type of service close Key is replaced initial close indicated by the corresponding data writing position of selected type of service described in the data medium card Key.
It is understood that the data medium card initialization when, for different in the data medium card Data writing position is respectively provided with initial key, and the initial key can be replaced modification;The business cipher key is used for table Show the unique identification of the selected type of service, while business cipher key data in replacement data carrier card are written After initial key on position, the business cipher key will be provided with non-reproduction, i.e. business cipher key cannot be replaced again It changes.
Subelement 132 is written in data, for the business datum after the encryption to be written by radio frequency transmission mode The corresponding data writing position of selected type of service described in the data medium card;
In the specific implementation, data write-in subelement 132 is by radio frequency transmission mode by the industry after the encryption The corresponding data writing position of selected type of service described in the data medium card is written in data of being engaged in, it is possible to understand that It is, only the data writing position after replacing with the corresponding business cipher key of the selected type of service, it just can be to phase The business datum answered is written, and the safety of business datum write-in is further ensured.
It should be noted that service processing equipment will can read the data medium card in subsequent progress business processing Business datum in the specified data writing position of piece, and carry out corresponding business processing.Such as: for access control system, when When user carries out access control system unlock using the data medium card for having had been written into gate inhibition's code data, the access control system will Specified data writing position of the meeting in the data medium card obtains gate inhibition's code data, and is decrypted, verifies to it, Finally it is unlocked processing etc..
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost;By the way of obtaining business cipher key to application server online, the leakage of business cipher key is avoided, ensure that business The safety of key;Business datum is encrypted using predetermined encryption mode, and by the way of business cipher key insertion, is protected The safety of business datum write-in data medium card is demonstrate,proved.
Fig. 9 is referred to, for the embodiment of the invention provides the structural schematic diagrams of another user terminal.As shown in figure 9, this The user terminal 1 of inventive embodiments may include: data capture unit 11, position acquisition unit 12, data write unit 13, DEU data encryption unit 14, request transmitting unit 15 and storage unit 16;Wherein, data capture unit 11, data write unit 13 and the specific structure of DEU data encryption unit 14 may refer to the description of embodiment illustrated in fig. 6, herein without repeating.
Request transmitting unit 15, for sending type of service request to service server, so that the service server root It is requested according to the type of service, generating includes at least one type of service and the corresponding data write information of each type of service Service lists, the data write information includes business cipher key and data writing position;
Storage unit 16, the service lists returned for receiving the service server, and to the service lists It is saved;
In the specific implementation, the user terminal 1 can request at least one described business to the service server in advance The corresponding data write information of each type of service in type, in request process, the request transmitting unit 15 takes to business Be engaged in device send type of service request, the service server can to the user terminal 1 mark (such as: instant messaging is answered With account etc.) it is verified, determine whether the user terminal 1 is allowed to authorization data carriers card and carries out business datum Write-in, if so, the service server can be written according at least one type of service and the corresponding data of each type of service Information generates service lists, and the service lists are sent to the user terminal 1, and the storage unit 16 can will be described Service lists are saved into being locally stored, and the data write information includes business cipher key and data writing position.
Position acquisition unit 12, for obtaining the corresponding data writing position of the selected type of service;
In the specific implementation, the position acquisition unit 12 can obtain the institute in the service lists being locally stored The corresponding business cipher key of the type of service of selection and data writing position.
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost;By the way that the corresponding data write information of each type of service is stored in advance, business cipher key can be obtained with offline mode And the write-in of business cipher key and business datum is carried out, improve the data write efficiency of data medium card;Using predetermined encryption Mode encrypts business datum, and by the way of business cipher key insertion, ensure that data medium is written in business datum The safety of card.
Referring to Figure 10, for the embodiment of the invention provides the structural schematic diagrams of another user terminal.As shown in Figure 10, The user terminal 1000 may include: at least one processor 1001, such as CPU, at least one network interface 1004, user Interface 1003, memory 1005, at least one communication bus 1002.Wherein, communication bus 1002 for realizing these components it Between connection communication.Wherein, user interface 1003 may include display screen (Display), keyboard (Keyboard), optional user Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include having for standard Line interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to non-labile Memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 1005 optionally can also be to Few one is located remotely from the storage device of aforementioned processor 1001.As shown in Figure 10, depositing as a kind of computer storage medium It may include operating system, network communication module, Subscriber Interface Module SIM and data write-in application program in reservoir 1005.
In user terminal 1000 shown in Fig. 10, network interface 1004 is mainly used for service server, with the business Server carries out data communication;And user interface 1003 is mainly used for providing the interface of input for user;And processor 1001 can And specifically to execute following steps for calling the data stored in memory 1005 that application program is written:
When data carriers card carries out business datum write-in, the industry selected at least one type of service is obtained Service type, and the business datum inputted according to the selected type of service is obtained, at least one described type of service is preparatory It is stored in service server;
Obtain the corresponding data writing position of the selected type of service;
The business datum is written by radio frequency transmission mode to the data medium according to the data writing position In card.
In one embodiment, the processor 1001 obtains the corresponding data of the selected type of service in execution When writing position, following steps are specifically executed:
Data write information request is sent to the service server, so that the service server is write according to the data Enter information request and searches the corresponding business cipher key of the selected type of service and data writing position;
The corresponding business cipher key of the selected type of service for receiving that the service server returns and data write-in Position.
In one embodiment, the processor 1001 when data carriers card carry out business datum write-in before, Also execute following steps:
Type of service request is sent to service server, so that the service server is requested according to the type of service, Generate the service lists comprising at least one type of service and the corresponding data write information of each type of service, the data It includes business cipher key and data writing position that information, which is written,;
The service lists that the service server returns are received, and the service lists are saved.
In one embodiment, the processor 1001 obtains the corresponding data of the selected type of service in execution When writing position, following steps are specifically executed:
The corresponding business cipher key of the selected type of service and data writing position are obtained in the service lists.
In one embodiment, the processor 1001 is obtaining the corresponding data write-in of the selected type of service After position, following steps are also executed:
The business datum is encrypted using predetermined encryption mode.
In one embodiment, the processor 1001 is being executed the business datum according to the data writing position When being written by radio frequency transmission mode into the data medium card, following steps are specifically executed:
Using the corresponding business cipher key of the selected type of service, replace selected described in the data medium card Initial key indicated by the corresponding data writing position of the type of service selected;
The business datum after the encryption is written described in the data medium card by radio frequency transmission mode The corresponding data writing position of selected type of service.
In one embodiment, the radio frequency transmission mode is specially the transmission mode of NFC.
In embodiments of the present invention, when data carriers card carries out business datum write-in, user terminal is available The type of service selected at least one type of service, and obtain the business number inputted according to the type of service of selection According at least one type of service is pre-stored within service server, and obtains the corresponding data write-in of selected type of service Finally business datum is written by radio frequency transmission mode into the data medium card according to data writing position for position. The write-in that multiple business data are carried out using user terminal data carriers card clicks through industry business without concentrating on service handling It handles, reduces the waste to fixed data write device, saved the cost of data carriers card write-in business datum, together The radio frequency transmission mode of Shi Caiyong user terminal carries out business datum write-in, without increasing hardware module to user terminal, saves Cost;By the way of obtaining business cipher key to application server online, the leakage of business cipher key is avoided, ensure that business The safety of key;By the way that the corresponding data write information of each type of service is stored in advance, industry can be obtained with offline mode Business key and the write-in for carrying out business cipher key and business datum, improve the data write efficiency of data medium card;Using pre- If cipher mode encrypts business datum, and by the way of business cipher key insertion, ensure that number is written in business datum According to the safety of carrier card.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (12)

1. a kind of method for writing data characterized by comprising
User terminal sends type of service request to service server, so that the service server is asked according to the type of service It asks, generates the service lists comprising at least one type of service and the corresponding data write information of each type of service, it is described Data write information includes business cipher key and data writing position;
The user terminal receives the service lists that the service server returns, and protects to the service lists It deposits;
When data carriers card carries out business datum write-in, the user terminal obtains user at least one described business Type of service selected in type, and the business datum that user is inputted according to the selected type of service is obtained, it is described At least one type of service is pre-stored within the service server;
The user terminal obtains the corresponding data writing position of the selected type of service;
The business datum is written by radio frequency transmission mode to described the user terminal according to the data writing position In data medium card.
2. the method according to claim 1, wherein described obtain the corresponding number of the selected type of service According to writing position, comprising:
Data write information request is sent to the service server, is believed so that the service server is written according to the data The corresponding business cipher key of the selected type of service and data writing position are searched in breath request;
The corresponding business cipher key of the selected type of service and data writing position for receiving that the service server returns.
3. the method according to claim 1, wherein described obtain the corresponding number of the selected type of service According to writing position, comprising:
The corresponding business cipher key of the selected type of service and data writing position are obtained in the service lists.
4. according to the method in claim 2 or 3, which is characterized in that the acquisition selected type of service is corresponding Data writing position after, further includes:
The business datum is encrypted using predetermined encryption mode.
5. according to the method described in claim 4, it is characterized in that, described be written position according to the data for the business datum It sets and is written by radio frequency transmission mode into the data medium card, comprising:
Using the corresponding business cipher key of the selected type of service, replace selected described in the data medium card Initial key indicated by the corresponding data writing position of type of service;
It will be selected described in the business datum write-in data medium card after the encryption by radio frequency transmission mode The corresponding data writing position of the type of service selected.
6. according to the method described in claim 5, it is characterized in that, the radio frequency transmission mode is specially near-field communication NFC Transmission mode.
7. a kind of user terminal characterized by comprising
Request transmitting unit, for sending type of service request to service server, so that the service server is according to Type of service request generates the business comprising at least one type of service and the corresponding data write information of each type of service List, the data write information include business cipher key and data writing position;
Storage unit, the service lists returned for receiving the service server, and the service lists are protected It deposits;
Data capture unit, for obtaining user described at least one when data carriers card carries out business datum write-in Type of service selected in a type of service, and obtain the business number that user is inputted according to the selected type of service According at least one described type of service is pre-stored within the service server;
Position acquisition unit, for obtaining the corresponding data writing position of the selected type of service;
Data write unit, for by the business datum according to the data writing position by radio frequency transmission mode be written to In the data medium card.
8. user terminal according to claim 7, which is characterized in that the position acquisition unit includes:
Transmission sub-unit is requested, for sending data write information request to the service server, so that the business service Device searches the corresponding business cipher key of the selected type of service according to data write information request and position is written in data It sets;
Receiving subelement, the corresponding business cipher key of the selected type of service for receiving that the service server returns With data writing position.
9. user terminal according to claim 7, which is characterized in that the position acquisition unit is specifically used in the industry The corresponding business cipher key of the selected type of service and data writing position are obtained in business list.
10. user terminal according to claim 8 or claim 9, which is characterized in that further include:
DEU data encryption unit, for the business datum to be encrypted using predetermined encryption mode.
11. user terminal according to claim 10, which is characterized in that the data write unit includes:
Key replaces subelement, for using the corresponding business cipher key of the selected type of service, replaces the data and carries Initial key indicated by the corresponding data writing position of selected type of service described in body card;
Subelement is written in data, for the data to be written in the business datum after the encryption by radio frequency transmission mode The corresponding data writing position of selected type of service described in carrier card.
12. user terminal according to claim 11, which is characterized in that the radio frequency transmission mode is specially the biography of NFC Defeated mode.
CN201410490248.0A 2014-09-23 2014-09-23 A kind of method for writing data and user terminal Active CN104899529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410490248.0A CN104899529B (en) 2014-09-23 2014-09-23 A kind of method for writing data and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410490248.0A CN104899529B (en) 2014-09-23 2014-09-23 A kind of method for writing data and user terminal

Publications (2)

Publication Number Publication Date
CN104899529A CN104899529A (en) 2015-09-09
CN104899529B true CN104899529B (en) 2019-02-15

Family

ID=54032189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410490248.0A Active CN104899529B (en) 2014-09-23 2014-09-23 A kind of method for writing data and user terminal

Country Status (1)

Country Link
CN (1) CN104899529B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004090633A (en) * 2002-08-16 2004-03-25 Paxar Corp Portable printer with rfid reading/writing function
KR20060035946A (en) * 2004-10-21 2006-04-27 박수영 Information reading device for processing input information together with position of information source, and information management server for managing the same
CN101667257A (en) * 2009-08-20 2010-03-10 北京握奇数据系统有限公司 Empty card for wireless card writing, wireless card writing server and method
CN102054190A (en) * 2009-10-30 2011-05-11 中国移动通信集团公司 Smart card, card writing terminal and method for card personalization over the air
CN102083058A (en) * 2009-11-27 2011-06-01 中国移动通信集团山东有限公司 Smart card, card writing system and method and self-help account opening server
CN103164719A (en) * 2011-12-15 2013-06-19 国民技术股份有限公司 System and method for multi-type intelligent card safe reading and writing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004090633A (en) * 2002-08-16 2004-03-25 Paxar Corp Portable printer with rfid reading/writing function
KR20060035946A (en) * 2004-10-21 2006-04-27 박수영 Information reading device for processing input information together with position of information source, and information management server for managing the same
CN101667257A (en) * 2009-08-20 2010-03-10 北京握奇数据系统有限公司 Empty card for wireless card writing, wireless card writing server and method
CN102054190A (en) * 2009-10-30 2011-05-11 中国移动通信集团公司 Smart card, card writing terminal and method for card personalization over the air
CN102083058A (en) * 2009-11-27 2011-06-01 中国移动通信集团山东有限公司 Smart card, card writing system and method and self-help account opening server
CN103164719A (en) * 2011-12-15 2013-06-19 国民技术股份有限公司 System and method for multi-type intelligent card safe reading and writing

Also Published As

Publication number Publication date
CN104899529A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN103620629B (en) Transfer information processing method and equipment
CN104182874B (en) Multi-use card device, system and card information loading method
CN112823335A (en) System and method for password authentication of contactless cards
EP3816909A1 (en) Payment processing method for offline scenario, server, and readable storage medium
EP3041189A1 (en) Communication control apparatus, authentication device, central control apparatus and communication systems
KR20160042865A (en) System and method for initially establishing and periodically confirming trust in a software application
JP2022502888A (en) Systems and methods for cryptographic authentication of non-contact cards
CN112602104A (en) System and method for password authentication of contactless cards
EP3007066A1 (en) Method for using shared device in apparatus capable of operating two operating systems
Alattar et al. Host-based card emulation: Development, security, and ecosystem impact analysis
JP2022501872A (en) Systems and methods for cryptographic authentication of non-contact cards
US20170076285A1 (en) Payment Method and Apparatus and Payment Factor Processing Method and Apparatus
US20220069629A1 (en) Using the nfc field from a phone to power card to phone bluetooth communications
US9021504B2 (en) Method and device for automatically selecting an application that can be implemented by said device
KR20070030231A (en) Method of choosing one of a multitude of data sets being registered with a device and corresponding device
CN102694795A (en) Method of using application service in offline situations
CN103544114A (en) Multiple M1 card control system based on single CPU card and control method thereof
JP5982422B2 (en) Method for encrypting and decrypting files using telephone numbers
CN112639785A (en) System and method for signaling potential attacks on contactless cards
CN106779672A (en) The method and device that mobile terminal safety pays
CN106779711A (en) Safe payment method and device based on eID
CN115552440A (en) Augmented reality card activation experience
CN101841806A (en) Service card information processing method, device and system and communication terminal
CN104899529B (en) A kind of method for writing data and user terminal
CN113169873A (en) System and method for password authentication of contactless cards

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant