CN107315975A - Principal and subordinate's cooperative control system and method in a kind of large-scale card maker of IC-card - Google Patents
Principal and subordinate's cooperative control system and method in a kind of large-scale card maker of IC-card Download PDFInfo
- Publication number
- CN107315975A CN107315975A CN201710402263.9A CN201710402263A CN107315975A CN 107315975 A CN107315975 A CN 107315975A CN 201710402263 A CN201710402263 A CN 201710402263A CN 107315975 A CN107315975 A CN 107315975A
- Authority
- CN
- China
- Prior art keywords
- card
- data
- fifo
- write
- card unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K1/00—Methods or arrangements for marking the record carrier in digital fashion
- G06K1/12—Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching
- G06K1/128—Methods or arrangements for marking the record carrier in digital fashion otherwise than by punching by electric registration, e.g. electrolytic, spark erosion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/28—Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
Abstract
The invention discloses principal and subordinate's cooperative control system in a kind of large-scale card maker of IC-card and method, system includes:The concurrent unit of main frame, FIFO, write card unit and database server, and the industrial ethernet switch for interconnection;The concurrent units of FIFO and write card unit and constituted by embedded processor system, and be connected by FIFO, main frame as system main control end, the concurrent units of FIFO and card unit is write as the slave of system, host computer broadcast technology and unicast technique send COS data APDU orders and individuation data APDU orders to each slave.The present invention, which can solve the problem that, reads and writes the problem of data are slow in current card production course, so as to greatly improve overall fabrication benefit.
Description
Technical field
The present invention relates to IC-card fabrication technical field, principal and subordinate's collaboration in more particularly to a kind of large-scale card maker of IC-card is controlled
System and method processed.
Background technology
IC-card can be divided into logic encryption card and CPU card by its institutional framework.CPU card is also referred to as smart card, integrated in its card
Microprocessor, memory and chip operating system COS (Card Operation system) are carried in circuit, equipped with COS's
Equivalent to one microcomputer of CPU card, not only with data storage function, while having command process and data security protecting
Etc. function.IC-card as described below refers both to CPU card.IC-card due to its intrinsic information security, be easy to carry, fairly perfect standard
The advantages of change, more and more applied in fields such as authentication, telecommunications, bank, public transport, parking lot managements, and
The demand of this more and more not exclusively IC-cards is more and more, and for individual IC-card, it is more in order to realize
Card application demand, COS function is also increasingly stronger, so that COS size is increasing, COS development and change are similar to PC
The size of the upgrading of operating system on machine, such as Window7 is bigger than XP 5-10 times.
Fabrication is IC-card initialization, and every card needs write-in COS data and individuation data, the COS of every card during fabrication
Data are all identicals, and individuation data is different.But COS data volumes are far longer than individuation data amount, so writing COS's
Speed determines the speed of fabrication, and large-sized COS make it that (i.e. card initialization, IC is downloaded to by COS for the fabrication of an IC-card
Card) time is longer, seriously governs the card release amount hourly of large-scale clip making machine.
In order to improve clip making machine card release amount hourly, clip making machine is configured with an IC-card read write line group of planes, usual quantity at present
For a 32,64,128 read write line group of planes, and the read write line in a group of planes is then the SCM system of no operating system, read write line and master
Connected between machine using serial ports.Although main frame can control multiple read write lines to carry out COS write-ins simultaneously, the data of serial ports are passed
Defeated speed is slow, parallel processing capability is not high enough, and serial communication both sides line is fixed in addition, can only can not use many using single host
Host mode so that current card producing system is difficult to the demand for meeting current market.
There is provided it is a kind of can the large-scale card producing system and method for high speed write COS to IC-card have important practical significance.
The content of the invention
Because COS packets are far longer than individuation data bag, therefore the speed of fabrication is mainly determined by the speed for writing COS
It is fixed.It is a primary object of the present invention to the shortcoming and deficiency for overcoming prior art, there is provided in a kind of large-scale card maker of IC-card
Principal and subordinate's cooperative control system, for writing COS data, the system uses concurrent reading and writing, then still point-to-point for individuation data,
It can solve the problem that and the problems such as COS data speed packets are slow, parallel processing capability is weak is write present in current card production course, so as to carry significantly
High overall fabrication benefit.
Another object of the present invention is to provide the principal and subordinate in a kind of large-scale card maker of the IC-card based on said system association
Same control method, it has, and fabrication efficiency high, scalability be strong, data security is high, portable good, easily operated excellent
Point.
The purpose of the present invention is realized by following technical scheme:A kind of principal and subordinate collaboration control in the large-scale card maker of IC-card
System processed, including:The concurrent unit of main frame, interchanger, database server, FIFO and write card unit;The direct-connected interchanger of main frame;
Interchanger by network interface respectively the external concurrent units of multiple FIFO, multiple write card unit and database server;One FIFO
Concurrent unit connects a network interface of interchanger, while the other end of a concurrent unit of FIFO connects n again writes card unit, this n
It is individual to write card unit while being connected with interchanger;Main frame the concurrent units of FIFO and writes card unit conduct as the main control end of system
Slave, by group of switches into one large-scale cascade group system together with database server;Host computer broadcast technology and
Unicast technique realizes the control and management to each slave by interchanger.
It is preferred that, concurrent units of FIFO and to write card unit be the embedded microprocessor system based on (SuSE) Linux OS.
It is preferred that, the concurrent units of FIFO include FIFO drivers, and FIFO drivers are the circuits of a single input and multi-output
Module, the circuit module include high speed microprocessors sys, FIFO write signals drive module, data fifo stream drive module,
FIFO reset drives module and FIFO full signal drive module, high speed microprocessors sys connect from different drive modules respectively
Connect, each drive module drives including multichannel, writing card unit with n respectively is connected;
The concurrent units of FIFO input receive the network data from main frame, then by high speed microprocessors sys at
Reason, high speed microprocessors sys are driven to multiple card unit F IFO memory modules of writing by FIFO resets multichannel and send reset letter
Number, then by FIFO full signal multichannel drive receive each write card unit return come reset message;Then through FIFO
Write signal multichannel, which drives, to be write card unit toward each and sends FIFO write signals, and receives each to write card unit more by FIFO full signal
Road driving returns to the message of coming;When each writes the non-full message of card unit return, then high speed microprocessors sys pass through FIFO
Data multiplex is driven, and card unit transmission data are write toward each.
It is preferred that, the card unit of writing using arm processor as core, the external interface module of arm processor, 7816 modules,
FIFO memory module, DMA (Direct Memory Access) module, reseting module, crystal oscillator module, power module, TF
(Trans-Flash) card module, USB module, serial port module, indicating lamp module and buzzer module;
Wherein interface module is used for network service;
The fractionation that 7816 modules are used between CPU parallel bus signal and the agreement serial signal of IC-card 7816 is real with combining
Now with the read-write operation of card;
FIFO memory module is used to receive the COS data APDU (Application that the concurrent units of FIFO are sended over
Protocol Data Unit) order, then it is transmitted directly to by dma module in internal memory;
TF card modules are used for the program and ephemeral data of storage system;
USB module is used for the programming of system firmware;
Serial port module is used for mistake and debugged;
Indicating lamp module and buzzer module are then used for the state for showing current system.
Principal and subordinate's cooperative control method in a kind of large-scale card maker of IC-card based on said system, main frame is by broadcasting skill
Art sends to each slave and instructed, and realizes multiple slaves while receiving instruction, and performs corresponding task, task bag according to instruction
Include fabrication and node status information;By using broadcast technology, FIFO technologies and DMA technology, individuation data is realized
APDU orders and COS data APDU orders are alternately read and write.
Specifically, for COS data APDU orders, main frame is transmitted through next data and is transmitted to FIFO simultaneously by broadcast by interchanger
Bill member, the concurrent units of FIFO transmit data to and write card unit with organizing remaining, realize data sharing;Write card unit and pass through FIFO
Memory module receives data and is transferred to via dma module in internal memory;Transmit the specific steps of COS data APDU orders such as
Under:
(1) main frame reads the COS packets of IC-card from database server;
(2) main frame carries out CRC check to the COS packets that read, successful then perform next step, otherwise re-reads
COS packets;
(3) an APDU order in COS packets is sent to the concurrent units of FIFO by main frame using broadcast technology;
(4) the concurrent units of FIFO by the APDU orders received while being sent to the FIFO memory for respectively writing card unit;
(5) the FIFO memory module for writing card unit is received after APDU orders, using DMA data transfer technology, by data
It is transmitted directly to write in card element memory;
(6) write card unit and CRC check is carried out to the APDU orders received, verify successfully then to write by 7816 modules and block
Piece, otherwise abandons data, stores COS failed download marks, waits host query;
(7) the last item APDU orders of COS packets are judged whether to;It is no, turn to step (3) and read next
APDU orders;It is then to complete COS and download, storage COS downloads Success Flag, waits host query;
(8) host query respectively writes the COS of card unit and downloads success/failure flag, the IC-cards of failure flags is done throwing card or
Mend card processing.
Specifically, for the individuation data APDU orders of fabrication, main frame obtains individuation data bag from database, gone forward side by side
Unicast is sent to correspondence and writes card unit after row encryption;Write card unit and receive and decoded after data, card is then write again;Transmission
Individuation data APDU orders are comprised the following steps that:
(1) main frame reads individuation data bag from database server;
(2) main frame carries out CRC check to the individuation data bag that reads, successful then perform next step, otherwise reads again
Take individuation data bag;
(3) main frame is sent to from the one APDU order of taking-up of individuation data bag and writes card unit;
(4) write card unit the APDU orders received to be decrypted and CRC check operation, successful then progress APDU orders
Writing operation, otherwise this of request repeat APDU orders.
(5) the last item APDU orders of individuation data bag are judged whether to, it is no, turn under step (3) reading
One APDU order;It is then to complete individuation data bag and download.
(6) judge whether the download of COS packets completes;That then current IC-card fabrication terminates, no, continue waiting for until
The download of COS packets terminates.
It is preferred that, system obtains data from database and carries out list in LAN after AES in main frame
Broadcast, be just decrypted and write on card after card unit receives the data of encryption when writing;In system power failure, the data are sold automatically
Ruin.
It is preferred that, the operating procedure for writing card unit is specific as follows:(1) system electrification.
(2) complete after system configuration, start card producing system.Card producing system includes 4 threads.Thread 1 is heartbeat thread, fixed
When to main frame send heartbeat message, tell main frame currently to write card unit fault-free.Thread 2 is network interface watcher thread, is waited from net
Mouth receives data or order.Thread 3 is command process thread, for handling the information that main frame is sended over.Thread 4 is to write card
Thread, for realizing the read-write operation with card.
(3) order to be received such as.
(4) COS data APDU orders are write when receiving, then starts and write COS data threads;The thread waits COS data first
APDU orders are transferred to after internal memory by above-mentioned mechanism, are then carried out CRC check to COS data APDU orders, are only worked as data
Just it is inserted into after correct and writes card queue, writing operation is carried out by writing card line journey;Mistake then return to step (3).
(5) receive when writing individuation data APDU orders, individuation data thread is write in startup;The thread waits individual character first
Change data command receive individuation data APDU orders from network interface, then individuation data APDU orders are decrypted with
CRC check is operated, and is just inserted data into after individuation data APDU order successful decryptions and is write card queue, row write is sticked into by writing
Card operation;Decryption failure return to step (3).
(6) after receiving reading and writing card location mode order, start transmission and write card location mode thread.Write card location mode
Thread includes writing whether card unit works, and whether working condition is correct, CPU running statuses, internal storage state etc..Prepare
After data, the thread will write card location mode group bag and be sent to main frame.
(7) step (3) is continued executing with.
The present invention compared with prior art, has the following advantages that and beneficial effect:
1st, main frame sends instruction by broadcast mode to each slave in the present invention, realizes multiple slaves while receiving to refer to
Order, starts simultaneously at progress fabrication flow, improves fabrication speed.
2nd, by the present invention in that with broadcast technology, FIFO technologies and DMA technology, realizing individuation data and COS data
Alternately read and write, accelerate fabrication speed.
3rd, child nodes of the present invention use multithreading, both can be with Real-time Feedback fabrication state, while can connect parallel
The individuation data APDU orders that the COS data APDU orders sent by the concurrent units of FIFO and main frame are sent are received, for COS
CRC check is implemented in data APDU orders, and then carries out encryption and decryption and verification operation for individuation data APDU orders, improves system
System security.
4th, the present invention is directly interacted using the ARM embedded devices based on Linux by 7816 interfaces with card, directly
Connect from bottom and interacted with card, directly enhance the efficiency of fabrication.
Brief description of the drawings
Fig. 1 is the overall system architecture figure in embodiment 1.
Fig. 2 is the structure chart of the concurrent units of FIFO in embodiment 1.
Fig. 3 is the structure chart for writing card unit in embodiment 1.
Fig. 4 is the flow chart for transmitting COS data APDU orders in embodiment 2 between main frame and slave.
Fig. 5 is the flow chart for transmitting individuation data APDU orders in embodiment 2 between main frame and slave.
Fig. 6 is the program flow diagram that card unit is write in embodiment 2.
Embodiment
With reference to embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited
In this.
Embodiment 1
A kind of principal and subordinate's cooperative control system in large-scale card maker of IC-card, such as Fig. 1, including main frame, EPA are handed over
Change planes, database server, the concurrent units of FIFO and write card unit.The concurrent units of FIFO and write card unit and be all based on
The embedded microprocessor system of (SuSE) Linux OS.Main frame is Industrial PC Computer, direct-connected interchanger;Interchanger by network interface outside
Connect the concurrent units of multiple FIFO, it is multiple write card unit, and for preserving the database server of all data.One FIFO is simultaneously
One network interface of bill member connection interchanger, therefore multiple network interfaces of interchanger can connect the concurrent units of multiple FIFO, simultaneously
The concurrent unit other ends of one FIFO connect again multiple writes card unit.The output of the concurrent units of FIFO is connected to each and write on card unit
FIFO memory module.The system multiple concurrent units of FIFO and writes card unit work by main control end of the main frame as system
For the slave of system, by group of switches into one large-scale cascade group system together with database server.Host computer is wide
Broadcast the control and management of technology and unicast technique by interchanger realization to each slave.
Described IC-card includes CPU card and storage card, is divided into contact again and contactless by its communication interface mode.
Fig. 2 is the structure chart of the concurrent units of FIFO.The concurrent units of FIFO include FIFO drivers, and FIFO drivers are one
The circuit module of single input and multi-output, the circuit module includes high speed microprocessors sys, FIFO write signals drive module, FIFO
Data flow driven module, FIFO reset drives module and FIFO full signal drive module, high speed microprocessors sys respectively with
Different drive module connections, each drive module drives including multichannel, and writing card unit with n respectively is connected.FIFO and bill
The major function of member is to receive the network data from interchanger in input, is then handled by high speed microprocessors sys,
High speed microprocessors sys are driven to multiple card unit F IFO memory modules of writing by FIFO resets multichannel and send reset signal,
Then by FIFO full signal multichannel drive receive each write card unit return come reset message;Write letter then through FIFO
Number multichannel, which drives, to be write card unit toward each and sends FIFO write signals, and is received each and write card unit and driven by FIFO full signal multichannel
It is dynamic to return to the message of coming;When each writes the non-full message of card unit return, then high speed microprocessors sys pass through data fifo
Multichannel is driven, and card unit transmission data are write toward each.
Fig. 3 is the structure chart for writing card unit.Card unit is write using arm processor as core, the external network interface card mould of arm processor
Block, 7816 modules, FIFO memory module, dma module, reseting module, crystal oscillator module, power module, TF card modules, USB moulds
Block, serial port module, indicating lamp module and buzzer module.
Wherein interface module is used for network service;
The fractionation that 7816 modules are used between CPU parallel bus signal and the agreement serial signal of IC-card 7816 is real with combining
Now with the read-write operation of card;Embeded processor based on (SuSE) Linux OS simulates connecing for 7816 agreements using signal wire
Mouthful, directly interacted from bottom with card, improve the efficiency of card read-write.
FIFO memory module is used to receive the COS data APDU orders that the concurrent units of FIFO are sended over, and then passes through
Dma module is transmitted directly in internal memory;
TF card modules are used for the program and ephemeral data of storage system;
USB module is used for the programming of system firmware;
Serial port module is used for mistake and debugged;
Indicating lamp module and buzzer module are then used for the state for showing current system.
Main frame is mainly responsible for release tasks, configuration node information, and grasps child status information in real time, and specific work
Work is implemented to be completed by writing card unit, therefore can design a friendly man-machine interface so that the system has preferable operation
Property.
Embodiment 2
Principal and subordinate's cooperative control method in a kind of large-scale card maker of IC-card of system based in embodiment 1, main frame leads to
Cross broadcast technology and send instruction to each slave, realize multiple slaves while receiving instruction, and corresponding appoint is performed according to instruction
Business.Task include fabrication and feedback node status information (state of the currently embedded formula processor system of feedback, including:Whether
In fabrication, the progress of fabrication, heartbeat message, error message etc.).
For COS data APDU orders, main frame reads the COS packets of IC-card first from database server, from COS
Packet takes out COS data APDU orders one by one, and COS data APDU orders then are transmitted into the concurrent units of FIFO by broadcast,
The concurrent units of FIFO transmit data to and write card unit with organizing remaining, realize data sharing.Write card unit and pass through FIFO memory
Module receives data and is transferred to via dma module in internal memory.Remaining utilization rate for writing card unit CPU is so reduced, while can
To avoid because network reason causes data transmission efficiency low, so that each node can receive master while data sharing
Instruction or personal data that machine is sended over.
For the individuation data APDU orders of fabrication, main frame obtains individuation data bag from database first, from individual character
Change packet and take out APDU orders one by one, and be sent to using unicast after being encrypted and correspondingly write card unit.Card unit is write to receive
Decoded after data, card is then write again.
By using broadcast technology, FIFO technologies and DMA technology, individuation data APDU orders and COS data are realized
APDU orders are alternately read and write, and improve the efficiency of fabrication.
Fig. 4 is the flow chart that COS data APDU orders are transmitted between main frame and slave, and step is as follows:
(1) main frame reads the COS packets of IC-card from database server;
(2) main frame carries out CRC check to the COS packets that read, successful then perform next step, otherwise re-reads
COS packets;
(3) an APDU order in COS packets is sent to the concurrent units of FIFO by main frame using broadcast technology;
(4) the concurrent units of FIFO by the APDU orders received while being sent to the FIFO memory for respectively writing card unit;
(5) card unit F IFO memory modules are write to receive after APDU orders, it is using DMA data transfer technology, data are straight
Connect to be transferred to and write in card element memory;
(6) write card unit and CRC check is carried out to the APDU orders received, verify successfully then to write by 7816 modules and block
Piece, otherwise abandons data, stores COS failed download marks, waits host query.
(7) the last item APDU orders of COS packets are judged whether to, it is no, turn to step (3) and read next
APDU orders;It is then to complete COS and download, storage COS downloads Success Flag, waits host query.
(8) host query respectively writes the COS of card unit and downloads success/failure flag, the IC-cards of failure flags is done throwing card or
Mend card processing.
Fig. 5 is the flow chart that individuation data APDU orders are transmitted between main frame and node, and step is as follows:
(1) main frame reads individuation data bag from database server;
(2) main frame carries out CRC check to the individuation data bag that reads, successful then perform next step, otherwise reads again
Take individuation data bag;
(3) main frame is sent to from the one APDU order of taking-up of individuation data bag and writes card unit;
(4) write card unit the APDU orders received to be decrypted and CRC check operation, successful then progress APDU orders
Writing operation, otherwise this of request repeat APDU orders.
(5) the last item APDU orders of individuation data bag are judged whether to, it is no, turn under step (3) reading
One APDU order;It is then to complete individuation data bag and download.
(6) judge whether the download of COS packets completes;That then current IC-card fabrication terminates, no, continue waiting for until
The download of COS packets terminates.
System obtains data from database and carries out unicast in LAN after AES in main frame, when writing card
Unit is received just to be decrypted after the data of encryption and write with after CRC check on card;In system power failure, the data are sold automatically
Ruin;Data security is high.
Fig. 6 is the program flow diagram for writing card unit, specific as follows:
(1) system electrification.
(2) complete after system configuration, start card producing system.Card producing system includes 4 threads.Thread 1 is heartbeat thread, fixed
When to main frame send heartbeat message, tell main frame currently to write card unit fault-free.Thread 2 is network interface watcher thread, is waited from net
Mouth receives data or order.Thread 3 is command process thread, for handling the information that main frame is sended over.Thread 4 is to write card
Thread, for realizing the read-write operation with card.
(3) order to be received such as.
(4) COS data APDU orders are write when receiving, then starts and write COS data threads;The thread waits COS data first
APDU orders are transferred to after internal memory by above-mentioned mechanism, are then carried out CRC check to COS data APDU orders, are only worked as data
Just it is inserted into after correct and writes card queue, writing operation is carried out by writing card line journey;Mistake then return to step (3).
(5) receive when writing individuation data APDU orders, individuation data thread is write in startup;The thread waits individual character first
Change data command receive individuation data APDU orders from network interface, then individuation data APDU orders are decrypted with
CRC check is operated, and is just inserted data into after individuation data APDU order successful decryptions and is write card queue, row write is sticked into by writing
Card operation;Decryption failure return to step (3).
(6) after receiving reading and writing card location mode order, start transmission and write card location mode thread.Write card location mode
Thread includes writing whether card unit works, and whether working condition is correct, CPU running statuses, internal storage state etc..Prepare
After data, the thread will write card location mode group bag and be sent to main frame.
(7) step (3) is continued executing with.
Above-described embodiment is preferably embodiment, but embodiments of the present invention are not by above-described embodiment of the invention
Limitation, other any Spirit Essences without departing from the present invention and the change made under principle, modification, replacement, combine, simplification,
Equivalent substitute mode is should be, is included within protection scope of the present invention.
Claims (9)
1. principal and subordinate's cooperative control system in a kind of large-scale card maker of IC-card, it is characterised in that including:Main frame, interchanger, number
According to storehouse server, the concurrent units of FIFO and write card unit;The direct-connected interchanger of main frame;Interchanger distinguishes external multiple by network interface
The concurrent units of FIFO, multiple write card unit and database server;The concurrent units of one FIFO connect a net of interchanger
Mouthful, while the other end of a concurrent unit of FIFO, which connects n, writes card unit again, this n are write card unit while being connected with interchanger;
Main frame the concurrent units of FIFO and writes card unit as slave as the main control end of system, passes through together with database server
Group of switches is into one large-scale cascade group system;Host computer broadcast technology and unicast technique are realized to each by interchanger
The control and management of slave.
2. principal and subordinate's cooperative control system in the large-scale card maker of IC-card according to claim 1, it is characterised in that FIFO
Concurrent unit and to write card unit be the embedded microprocessor system based on (SuSE) Linux OS.
3. principal and subordinate's cooperative control system in the large-scale card maker of IC-card according to claim 1, it is characterised in that FIFO
Concurrent unit includes FIFO drivers, and FIFO drivers are the circuit modules of a single input and multi-output, and the circuit module includes
High speed microprocessors sys, FIFO write signals drive module, data fifo stream drive module, FIFO reset drives module and
FIFO full signal drive module, high speed microprocessors sys are connected from different drive modules respectively, and each drive module includes
Multichannel drives, and writing card unit with n respectively is connected;
The concurrent units of FIFO receive the network data from main frame in input, are then handled by high speed microprocessors sys,
High speed microprocessors sys are driven to multiple card unit F IFO memory modules of writing by FIFO resets multichannel and send reset signal,
Then by FIFO full signal multichannel drive receive each write card unit return come reset message;Write letter then through FIFO
Number multichannel, which drives, to be write card unit toward each and sends FIFO write signals, and is received each and write card unit and driven by FIFO full signal multichannel
It is dynamic to return to the message of coming;When each writes the non-full message of card unit return, then high speed microprocessors sys pass through data fifo
Multichannel is driven, and card unit transmission data are write toward each.
4. principal and subordinate's cooperative control system in the large-scale card maker of IC-card according to claim 1, it is characterised in that described
Card unit is write using arm processor as core, the external interface module of arm processor, 7816 modules, FIFO memory module, DMA moulds
Block, reseting module, crystal oscillator module, power module, TF card modules, USB module, serial port module, indicating lamp module and buzzer mould
Block;
Wherein interface module is used for network service;
7816 modules are used for fractionation between CPU parallel bus signal and the agreement serial signal of IC-card 7816 and combined, realize with
The read-write operation of card;
FIFO memory module is used to receive the COS data APDU orders that the concurrent units of FIFO are sended over, and then passes through DMA moulds
Block is transmitted directly in internal memory;
TF card modules are used for the program and ephemeral data of storage system;
USB module is used for the programming of system firmware;
Serial port module is used for mistake and debugged;
Indicating lamp module and buzzer module are then used for the state for showing current system.
5. principal and subordinate's cooperative control method in a kind of large-scale card maker of IC-card of system based on described in claim 1, it is special
Levy and be, main frame is sent to each slave by broadcast technology and instructed, and realizes multiple slaves while receiving instruction, and according to instruction
Corresponding task is performed, task includes fabrication and node status information;By using broadcast technology, FIFO technologies and DMA
Technology, realizes that individuation data APDU orders and COS data APDU orders are alternately read and write.
6. method according to claim 5, it is characterised in that for COS data APDU orders, main frame is transmitted through by interchanger
The data come are transmitted to the concurrent units of FIFO by broadcast, and the concurrent units of FIFO transmit data to and write card unit with organizing remaining, reality
Existing data sharing;Card unit is write to receive data by FIFO memory module and be transferred in internal memory via dma module;Transmission
COS data APDU orders are comprised the following steps that:
(1) main frame reads the COS packets of IC-card from database server;
(2) main frame carries out CRC check to the COS packets that read, successful then perform next step, otherwise re-reads COS numbers
According to bag;
(3) an APDU order in COS packets is sent to the concurrent units of FIFO by main frame using broadcast technology;
(4) the concurrent units of FIFO by the APDU orders received while being sent to the FIFO memory for respectively writing card unit;
(5) the FIFO memory module for writing card unit is received after APDU orders, using DMA data transfer technology, data are direct
It is transferred to and writes in card element memory;
(6) write card unit and CRC check is carried out to the APDU orders received, verify and successfully then write card by 7816 modules, it is no
Data are then abandoned, COS failed download marks are stored, host query is waited;
(7) the last item APDU orders of COS packets are judged whether to;It is no, turn to step (3) and read next APDU
Order;It is then to complete COS and download, storage COS downloads Success Flag, waits host query;
(8) host query respectively writes the COS download success/failure flags of card unit, makees throwing card to the IC-card of failure flags or mends card
Processing.
7. method according to claim 5, it is characterised in that for the individuation data APDU orders of fabrication, main frame from
Database obtain individuation data bag, and be encrypted rear unicast be sent to correspondence write card unit;Card unit is write to receive after data
Decoded, card is then write again;Transmit comprising the following steps that for individuation data APDU orders:
(1) main frame reads individuation data bag from database server;
(2) main frame carries out CRC check to the individuation data bag that reads, successful then perform next step, otherwise re-reads individual
Property packet;
(3) main frame is sent to from the one APDU order of taking-up of individuation data bag and writes card unit;
(4) write card unit the APDU orders received are decrypted and CRC check operation, it is successful then progress APDU orders write card
Operation, otherwise this of request repeat APDU orders;
(5) the last item APDU orders of individuation data bag are judged whether to, it is no, turn to step (3) and read next
APDU orders;It is then to complete individuation data bag and download.
(6) judge whether the download of COS packets completes;It is that then current IC-card fabrication terminates, no, continues waiting for until COS numbers
Terminate according to the download of bag.
8. method according to claim 7, it is characterised in that system obtains data and in main frame by adding from database
Unicast is carried out after close algorithm in LAN, is just decrypted and writes on card after card unit receives the data of encryption when writing;
In system power failure, the data auto-destruct.
9. method according to claim 5, it is characterised in that the operating procedure for writing card unit is specific as follows:
(1) system electrification;
(2) complete after system configuration, start card producing system, card producing system includes 4 threads;Thread 1 be heartbeat thread, regularly to
Main frame sends heartbeat message, tells main frame currently to write card unit fault-free;Thread 2 is network interface watcher thread, and wait connects from network interface
Receive data or order;Thread 3 is command process thread, for handling the information that main frame is sended over;Thread 4 is to write card line
Journey, for realizing the read-write operation with card;
(3) order to be received such as;
(4) COS data APDU orders are write when receiving, then starts and write COS data threads;The thread waits COS data APDU first
Order is transferred to after internal memory by above-mentioned mechanism, then CRC check is carried out to COS data APDU orders, only when data are correct
Just it is inserted into after errorless and writes card queue, writing operation is carried out by writing card line journey;Mistake then return to step (3).
(5) receive when writing individuation data APDU orders, individuation data thread is write in startup;The thread number to be personalized such as first
Individuation data APDU orders are received from network interface according to order, then individuation data APDU orders are decrypted and CRC schools
Operation is tested, is just inserted data into after individuation data APDU order successful decryptions and writes card queue, row write card behaviour is sticked into by writing
Make;Decryption failure return to step (3);
(6) after receiving reading and writing card location mode order, start transmission and write card location mode thread;Write card location mode thread
Including writing whether card unit is working, whether working condition is correct, CPU running statuses and internal storage state;Data are prepared
Afterwards, the thread will write card location mode group bag and be sent to main frame;
(7) step (3) is continued executing with.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710402263.9A CN107315975B (en) | 2017-06-01 | 2017-06-01 | Principal and subordinate's cooperative control system and method in a kind of IC card large size card maker |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710402263.9A CN107315975B (en) | 2017-06-01 | 2017-06-01 | Principal and subordinate's cooperative control system and method in a kind of IC card large size card maker |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107315975A true CN107315975A (en) | 2017-11-03 |
CN107315975B CN107315975B (en) | 2019-08-20 |
Family
ID=60182209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710402263.9A Expired - Fee Related CN107315975B (en) | 2017-06-01 | 2017-06-01 | Principal and subordinate's cooperative control system and method in a kind of IC card large size card maker |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107315975B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109920129A (en) * | 2019-01-29 | 2019-06-21 | 深圳市锐明技术股份有限公司 | Driver's IC card remote writing-card method, monitoring and scheduling host and terminal device |
CN114116567A (en) * | 2021-11-29 | 2022-03-01 | 辽宁神州北斗科技有限公司 | Big data calculation analysis system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547437A (en) * | 2009-04-30 | 2009-09-30 | 东信和平智能卡股份有限公司 | A telecom intelligent card, an air card writing system and an air card writing method |
CN106156817A (en) * | 2016-07-12 | 2016-11-23 | 沈阳友联电子装备有限公司 | The write of a kind of IC-card data and the Apparatus for () and method therefor of laser marking |
CN106203574A (en) * | 2016-06-24 | 2016-12-07 | 恒宝股份有限公司 | A kind of smart card and write card mode |
-
2017
- 2017-06-01 CN CN201710402263.9A patent/CN107315975B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547437A (en) * | 2009-04-30 | 2009-09-30 | 东信和平智能卡股份有限公司 | A telecom intelligent card, an air card writing system and an air card writing method |
CN106203574A (en) * | 2016-06-24 | 2016-12-07 | 恒宝股份有限公司 | A kind of smart card and write card mode |
CN106156817A (en) * | 2016-07-12 | 2016-11-23 | 沈阳友联电子装备有限公司 | The write of a kind of IC-card data and the Apparatus for () and method therefor of laser marking |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109920129A (en) * | 2019-01-29 | 2019-06-21 | 深圳市锐明技术股份有限公司 | Driver's IC card remote writing-card method, monitoring and scheduling host and terminal device |
CN114116567A (en) * | 2021-11-29 | 2022-03-01 | 辽宁神州北斗科技有限公司 | Big data calculation analysis system and method |
Also Published As
Publication number | Publication date |
---|---|
CN107315975B (en) | 2019-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105005546B (en) | A kind of asynchronous AXI bus structures of built-in intersection point queue | |
US9594720B2 (en) | Interface between a bus and a inter-thread interconnect | |
KR101502610B1 (en) | 50 Gb/s ETHERNET USING SERIALIZER/DESERIALIZER LANES | |
CN102057363B (en) | Direct data transfer between slave devices | |
CN105144637B (en) | Interface arrangement and method for exchanging user data | |
US8127059B1 (en) | Apparatus for interconnecting hosts with storage devices | |
CN1595381B (en) | Bridge controllers, bridge and method for operating the bridge | |
CN107203484A (en) | A kind of PCIe based on FPGA and SRIO bus bridge systems | |
US6775719B1 (en) | Host-fabric adapter and method of connecting a host system to a channel-based switched fabric in a data network | |
CN103874984B (en) | Can virtualize and forward compatibility hardware-software in terface | |
CN108595353A (en) | A kind of method and device of the control data transmission based on PCIe buses | |
CN104484301B (en) | A kind of IO bus units based on FPGA with self-recognition function | |
CN108897703A (en) | A kind of high speed data transmission system and method based on PCIE | |
CN107202977A (en) | A kind of total system and software design approach based on VPX platforms | |
CN113227991B (en) | Alternative protocol selection | |
CN103797435B (en) | Method for controlling the affairs between two integrated circuits to exchange | |
KR101679333B1 (en) | Method, apparatus and system for single-ended communication of transaction layer packets | |
CN109558371A (en) | Serial connection between Management Controller and microcontroller | |
CN105897471A (en) | Out-of-band management system and out-of-band management method | |
CN101957808A (en) | Communication method among various CPUs (Central Processing Units), system and CPU | |
CN107315975A (en) | Principal and subordinate's cooperative control system and method in a kind of large-scale card maker of IC-card | |
CN108600017A (en) | Multi-protocols serial ports expansion method | |
CN104899170A (en) | Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame | |
CN109104275A (en) | A kind of HSM equipment | |
CN106302071A (en) | A kind of adapter, the network equipment and the method for port configuration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190820 |
|
CF01 | Termination of patent right due to non-payment of annual fee |