CN104573443A - Method for optimizing service terminal processing requests of element intensive type identity card reading system - Google Patents
Method for optimizing service terminal processing requests of element intensive type identity card reading system Download PDFInfo
- Publication number
- CN104573443A CN104573443A CN201410843278.5A CN201410843278A CN104573443A CN 104573443 A CN104573443 A CN 104573443A CN 201410843278 A CN201410843278 A CN 201410843278A CN 104573443 A CN104573443 A CN 104573443A
- Authority
- CN
- China
- Prior art keywords
- identity information
- service terminal
- read request
- sam
- information read
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/0008—General problems related to the reading of electronic memory record carriers, independent of its reading method, e.g. power transfer
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a method for optimizing service terminal processing requests of an element intensive type identity card reading system. The method includes detecting user connection by a service terminal through a detecting mechanism, and setting connection information into a failure connection array if the user connection is cut off; firstly checking whether connection of current identity information reading requests exists in the failure connection array or not by the service terminal when the service terminal detects idle SAM_V safety modules; stopping distributing SAM_V safety modules, directly abandoning the identity information reading requests if the current identity information reading requests exist in the failure connection array, and continuously processing successive identity reading requests; distributing SAM_V safety modules for the identity information reading requests if the current identity information reading requests do not exist in the failure connection array. By the method, failure data can be found and abandoned in time, resource waste caused by occupation of the SAM_V modules is avoided, the integral performance of the reading system is improved and reading access speed is increased.
Description
Technical field
The present invention relates to the optimization method of a kind of key element intensive I.D. reading system service terminal process request.
Background technology
At present, in conventional I.D. reading machine, its inside is made up of a SAM_V security module and a radio-frequency module, and radio-frequency module monopolizes SAM_V module, understands ID (identity number) card information.But, then SAM_V security module is separated with radio-frequency module in the intensive I.D. reading system of key element, carries out having communicated the mutual of SAM_V and radio-frequency module each via a processing terminal via network, thus complete the deciphering of ID (identity number) card information.Because a SAM_V can complete the I.D. decoding request to multiple radio-frequency module, therefore the service terminal of the intensive I.D. reading system of key element can control multiple SAM_V security module, responds the I.D. decoding concurrent request of thousands of up to a hundred radio-frequency modules.
At the intensive I.D. reading system of key element, in order to improve the treatment effeciency of service terminal, and allow user when sending read request, feel that SAM_V is being oneself service, instead of in all occupied situation of all SAM_V, directly refusing the read request of user, needing the concurrent I.D. read request to pouring in service terminal to rank, by special scheduling thread I.D. read request processed and distribute idle SAM_V security module and read to complete I.D..
In an intensive I.D. reading system of highly busy key element, because a large number of users has initiated I.D. read request simultaneously, cause and overstock a large amount of of the I.D. read request waiting in line idle SAM_V security module, these I.D. read request can not be processed in time.Now, the user initiating I.D. read request because wait for the long period, may think that system goes wrong, and hard closing user software, or the network being disconnected same service terminal because of the labile factor of network connects.The I.D. read request that now this user sends above in fact lost efficacy, but scheduling thread does not also know that I.D. read request lost efficacy, also distribute SAM_V security module step-by-step for the I.D. read request in queuing up, only have when I.D. read request is processed, and searching card/card command is sent to the SAM_V security module of distribution, SAM_V security module need by radio service interface and radio-frequency module mutual time, now need the radio-frequency module by network, the instruction of SAM_V security module being transmitted to the network other end, just find that network connects invalid, waste resource the most in short supply in the intensive I.D. reading system of key element like this " SAM_V security module ", cause great waste.
Summary of the invention
According to above deficiency of the prior art, the problem to be solved in the present invention is: provide one can Timeliness coverage abandon fail data, avoid the wasting of resources taking SAM_V module and cause, improve the overall performance of the intensive I.D. reading system of key element, accelerate the optimization method of the key element intensive I.D. reading system service terminal process request of reading access speed.
The technical solution adopted for the present invention to solve the technical problems is:
The optimization method of described key element intensive I.D. reading system service terminal process request, comprises the following steps:
1) a large number of users reads the information of card or card simultaneously by radio-frequency module, and the identity information read request of reading is sent to TCP/IP network by radio-frequency module processing terminal;
2) the identity information read request received is sent to service terminal by TCP/IP network, service terminal is ranked to received identity information read request, wait for idle SAM_V security module, simultaneously, service terminal is detected by the connection of testing mechanism to user, if detect, user connects disconnection, then this link information being put into lost efficacy connects queue;
3), when service terminal detects available free SAM_V security module, first service terminal checks the connection of losing efficacy and connecting and whether there is current identity information read request in queue;
Exist if current identity information read request has connected in queue in inefficacy, then do not need to distribute SAM_V security module, directly this identity information read request is abandoned, continue the follow-up I.D. read request of process;
Not existing if current identity information read request connects in queue in inefficacy, is then that this identity information read request distributes SAM_V security module;
4) carry out information interaction by network and radio-frequency module after SAM_V security module receives identity information read request, identity information is decoded, and is shown by radio-frequency module processing terminal.
The optimization method of described key element intensive I.D. reading system service terminal process request can detect the identity information read request lost efficacy in real time and connects and abandoned or delete, avoid SAM_V security module occupied, cause certain wasting of resources, improve the access speed of network identity information reading system, improve the treatment effeciency of service terminal, there is stronger practicality.
Described step 2) in, service terminal is detected by the connection of testing mechanism to user, if detect, user connects disconnection, then this link information is directly deleted, when service terminal detects available free SAM_V security module, service terminal is directly that current identity information read request distributes SAM_V security module.
Further preferably, testing mechanism is that if detect, select returns 1 by calling select function, when detecting that recv returns 0, then detects that user connects disconnection simultaneously, and the socket corresponding to this being connected puts into connection queue of losing efficacy and manages separately.
Further preferably, testing mechanism is by calling select function, if detect, select returns 1, when detecting that recv returns 0 simultaneously, then detect that user connects disconnection, by the corresponding relation of the socket that safeguards in the queue of identity information read request and enabled instruction, search belongs to the identity information read request that this network connects, and is deleted by the identity information read request of this connection correspondence from identity information queue.
Further preferably, the list connecting queue employing STL that lost efficacy encapsulates, when inefficacy queue full, and the connection that automatic deletion was lost efficacy the earliest, and the connection of finally losing efficacy can be put into the afterbody of inefficacy queue, lost efficacy and connected the inefficacy identity information read request of queue maintenance fixed qty.
The beneficial effect that the present invention has is:
The optimization method of described key element intensive I.D. reading system service terminal process request runs into a large number of users when having initiated I.D. read request or unstable networks in the intensive I.D. reading system of key element simultaneously, can find timely and discard the I.D. read request lost efficacy, the I.D. read request avoided as having lost efficacy distributes SAM_V resource, avoid the waste of resource, can guarantee that limited SAM_V resource can be effective I.D. read request dynamic services, thus improve the overall performance of the intensive I.D. reading system of key element, accelerate the access speed of effective reading request, improve user friendly, there is stronger practicality.
Accompanying drawing explanation
Fig. 1 is network identity information reading flow figure of the present invention;
Fig. 2 is network identity information reading system schematic diagram of the present invention;
Fig. 3 is existing all-in-one card reading device schematic diagram;
Embodiment
Below in conjunction with accompanying drawing, embodiments of the invention are described further:
Embodiment 1:
As shown in Figure 1 and Figure 2, the optimization method of key element of the present invention intensive I.D. reading system service terminal process request, comprises the following steps:
1) a large number of users reads the information of card or card simultaneously by radio-frequency module, and the identity information read request of reading is sent to TCP/IP network by radio-frequency module processing terminal;
2) the identity information read request received is sent to service terminal by TCP/IP network, service terminal is ranked to received identity information read request, wait for idle SAM_V security module, simultaneously, service terminal is detected by the connection of testing mechanism to user, if detect, user connects disconnection, then this link information being put into lost efficacy connects queue;
3) when service terminal detects available free SAM_V security module, when the scheduling thread of service terminal carries out distribution SAM_V security module to identity information read request, first check the connection of losing efficacy and connecting and whether there is current identity information read request in queue;
Exist if current identity information read request has connected in queue in inefficacy, then do not need to distribute SAM_V security module, directly this identity information read request is abandoned, continue the follow-up I.D. read request of process;
Not existing if current identity information read request connects in queue in inefficacy, is then that this identity information read request distributes SAM_V security module;
4) carry out information interaction by network and radio-frequency module after SAM_V security module receives identity information read request, identity information is decoded, and is shown by radio-frequency module processing terminal;
Wherein, testing mechanism is by calling select function, if detect, select returns 1, when detecting that recv returns 0 simultaneously, then detect that user connects disconnection, socket corresponding to this being connected puts into connection queue of losing efficacy and manages separately, the list connecting queue employing STL that lost efficacy encapsulates, make it to become the container that can be safeguarded fixed qty project, when inefficacy queue full, the connection that automatic deletion was lost efficacy the earliest, and the connection of finally losing efficacy can be put into the afterbody of inefficacy queue, lost efficacy and connected the inefficacy identity information read request of queue maintenance fixed qty.
Embodiment 2:
The optimization method of key element of the present invention intensive I.D. reading system service terminal process request, comprises the following steps:
1) a large number of users reads the information of card or card simultaneously by radio-frequency module, and the identity information read request of reading is sent to TCP/IP network by radio-frequency module processing terminal;
2) the identity information read request received is sent to service terminal by TCP/IP network, service terminal is ranked to received identity information read request, wait for idle SAM_V security module, simultaneously, service terminal is detected by the connection of testing mechanism to user, if detect, user connects disconnection, then this link information directly deleted;
3), when service terminal detects available free SAM_V security module, service terminal is directly that current identity information read request distributes SAM_V security module;
4) carry out information interaction by network and radio-frequency module after SAM_V security module receives identity information read request, identity information is decoded, and is shown by radio-frequency module processing terminal;
Wherein, testing mechanism is by calling select function, if detect, select returns 1, when detecting that recv returns 0 simultaneously, then detect that user connects disconnection, by the corresponding relation of the socket that safeguards in the queue of identity information read request and enabled instruction, search belongs to the identity information read request that this network connects, and is deleted by the identity information read request of this connection correspondence from identity information queue.
When invention itself runs into high concurrent or unstable networks in key element intensive I.D. reading system, can find timely and discard the I.D. read request lost efficacy, the I.D. read request for having lost efficacy is avoided to distribute SAM_V resource, guarantee that limited SAM_V resource can be effective I.D. read request dynamic services, improve the overall performance of the intensive I.D. reading system of key element, accelerate the access speed of effective reading request, improve user friendly.
Claims (6)
1. an optimization method for key element intensive I.D. reading system service terminal process request, is characterized in that: comprise the following steps:
1) a large number of users reads the information of card or card simultaneously by radio-frequency module, and the identity information read request of reading is sent to TCP/IP network by radio-frequency module processing terminal;
2) the identity information read request received is sent to service terminal by TCP/IP network, service terminal is ranked to received identity information read request, wait for idle SAM_V security module, simultaneously, service terminal is detected by the connection of testing mechanism to user, if detect, user connects disconnection, then this link information being put into lost efficacy connects queue;
3), when service terminal detects available free SAM_V security module, first service terminal checks the connection of losing efficacy and connecting and whether there is current identity information read request in queue;
Exist if current identity information read request has connected in queue in inefficacy, then do not need to distribute SAM_V security module, directly this identity information read request is abandoned, continue the follow-up I.D. read request of process;
Not existing if current identity information read request connects in queue in inefficacy, is then that this identity information read request distributes SAM_V security module;
4) carry out information interaction by network and radio-frequency module after SAM_V security module receives identity information read request, identity information is decoded, and is shown by radio-frequency module processing terminal.
2. the optimization method of key element according to claim 1 intensive I.D. reading system service terminal process request, it is characterized in that: described step 2) in, service terminal is detected by the connection of testing mechanism to user, if detect, user connects disconnection, then this link information is directly deleted, when service terminal detects available free SAM_V security module, service terminal is directly that current identity information read request distributes SAM_V security module.
3. the optimization method of key element according to claim 1 intensive I.D. reading system service terminal process request, it is characterized in that: described testing mechanism is by calling select function, if detect, select returns 1, when detecting that recv returns 0 simultaneously, then detect that user connects disconnection, the socket corresponding to this being connected puts into connection queue of losing efficacy and manages separately.
4. the optimization method of key element according to claim 2 intensive I.D. reading system service terminal process request, it is characterized in that: described testing mechanism is by calling select function, if detect, select returns 1, when detecting that recv returns 0 simultaneously, then detect that user connects disconnection, by the corresponding relation of the socket that safeguards in the queue of identity information read request and enabled instruction, search belongs to the identity information read request that this network connects, and is deleted by the identity information read request of this connection correspondence from identity information queue.
5. the optimization method of the intensive I.D. reading system of the key element according to claim 1 or 3 service terminal process request, it is characterized in that: described inefficacy connects queue and adopts the list of STL to encapsulate, when inefficacy queue full, the connection that automatic deletion was lost efficacy the earliest, and the afterbody connection of finally losing efficacy being put into inefficacy queue.
6. the optimization method of key element according to claim 5 intensive I.D. reading system service terminal process request, is characterized in that: described inefficacy connects the inefficacy identity information read request of queue maintenance fixed qty.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410843278.5A CN104573443A (en) | 2014-12-30 | 2014-12-30 | Method for optimizing service terminal processing requests of element intensive type identity card reading system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410843278.5A CN104573443A (en) | 2014-12-30 | 2014-12-30 | Method for optimizing service terminal processing requests of element intensive type identity card reading system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104573443A true CN104573443A (en) | 2015-04-29 |
Family
ID=53089485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410843278.5A Pending CN104573443A (en) | 2014-12-30 | 2014-12-30 | Method for optimizing service terminal processing requests of element intensive type identity card reading system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104573443A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027464A (en) * | 2016-01-21 | 2016-10-12 | 李明 | Safety information control method and identity card reading terminal |
CN111651975A (en) * | 2020-04-29 | 2020-09-11 | 北京汇智凯亚信息技术有限公司 | Intelligent safety reading system suitable for mobile terminal |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863072A (en) * | 2005-08-12 | 2006-11-15 | 华为技术有限公司 | Method for client terminal applying server for serve and system thereof |
CN103559467A (en) * | 2013-11-05 | 2014-02-05 | 张良 | Second-generation resident identification card reading system |
CN103593634A (en) * | 2013-11-08 | 2014-02-19 | 国家电网公司 | Network centralized decoding system and method of identity card identifier |
-
2014
- 2014-12-30 CN CN201410843278.5A patent/CN104573443A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1863072A (en) * | 2005-08-12 | 2006-11-15 | 华为技术有限公司 | Method for client terminal applying server for serve and system thereof |
CN103559467A (en) * | 2013-11-05 | 2014-02-05 | 张良 | Second-generation resident identification card reading system |
CN103593634A (en) * | 2013-11-08 | 2014-02-19 | 国家电网公司 | Network centralized decoding system and method of identity card identifier |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027464A (en) * | 2016-01-21 | 2016-10-12 | 李明 | Safety information control method and identity card reading terminal |
CN106027464B (en) * | 2016-01-21 | 2019-10-01 | 李明 | A kind of security information control method and identity card card-reading terminal |
CN111651975A (en) * | 2020-04-29 | 2020-09-11 | 北京汇智凯亚信息技术有限公司 | Intelligent safety reading system suitable for mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107018175B (en) | Scheduling method and device of mobile cloud computing platform | |
CN104243481B (en) | A kind of method and system of power information acquisition advance data processing | |
CN109309631A (en) | A kind of method and device based on universal network file system write-in data | |
CN102761528A (en) | System and method for data management | |
EP2559313B1 (en) | Method and device of managing mtc devices in a mtc network environment | |
CN103095732A (en) | Information push system and information push method | |
CN107682460B (en) | Distributed storage cluster data communication method and system | |
US10104537B2 (en) | Terminal peripheral control method, M2M gateway, and communications system | |
US20170303065A1 (en) | Method and device for creating subscription resource | |
CN102780933A (en) | Method and television for acquiring user information | |
CN103701876A (en) | Method and device based on shared network resources | |
CN107688512A (en) | One kind optimization virtual-machine data backup method and system | |
CN104866528A (en) | Multi-platform data acquisition method and system | |
CN105681426A (en) | Heterogeneous system | |
CN111541555A (en) | Group chat optimization method and related product | |
CN204791080U (en) | Terminal and system of patrolling and examining patrol and examine | |
CN111371848A (en) | Request processing method, device, equipment and storage medium | |
CN104573443A (en) | Method for optimizing service terminal processing requests of element intensive type identity card reading system | |
CN103442028A (en) | Mobile application data pushing method based on XMPP | |
CN107329842B (en) | Method and terminal for acquiring data based on Qt signal slot mechanism | |
US10505811B2 (en) | Multi-terminal interaction relation maintenance system and method | |
CN104021196A (en) | I/O multiplexing method for System V message queue | |
CN103685017A (en) | Message forwarding method in stacking system, stacking equipment and stacking system | |
US10085175B2 (en) | Load control method and apparatus for notification messages | |
CN102831007A (en) | Accessing method for real-time processing shared resource in system and real-time processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150429 |