CN101630355A - Method and device for distributing radio frequency identification (RFID) labels - Google Patents

Method and device for distributing radio frequency identification (RFID) labels Download PDF

Info

Publication number
CN101630355A
CN101630355A CN200810135875A CN200810135875A CN101630355A CN 101630355 A CN101630355 A CN 101630355A CN 200810135875 A CN200810135875 A CN 200810135875A CN 200810135875 A CN200810135875 A CN 200810135875A CN 101630355 A CN101630355 A CN 101630355A
Authority
CN
China
Prior art keywords
processing
message
queue
information
threads
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
Application number
CN200810135875A
Other languages
Chinese (zh)
Other versions
CN101630355B (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.)
ZTE Intelligent IoT Technology Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008101358757A priority Critical patent/CN101630355B/en
Publication of CN101630355A publication Critical patent/CN101630355A/en
Application granted granted Critical
Publication of CN101630355B publication Critical patent/CN101630355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for distributing RFID labels, which are used for solve the problem that in the prior art, in an environment with large data volume and high concurrency, the RFID labels cannot be distributed in time and generate blockage so that the distribution efficiency is reduced. When acquiring a message carrying RFID label information from a reader, the method comprises the following steps: firstly, determining processing operations corresponding to the message according to the content of the message; secondly, caching the processing operations in a thread pool, and performing the processing operations on the message and caching the information acquired after the processing into a message queue when the processing operations are distributed to processing threads; and finally, performing one or more distribution threads to distribute the information acquired after the processing to one or more modules. The method can eliminate the blockage of the distribution, reduce the time for the distribution, and improve the efficiency for the distribution.

Description

The distribution method of radio frequency identification (RFID) labels and device
Technical field
The present invention relates to the digital communication technology field, relate in particular to a kind of radio-frequency (RF) identification (RadioFrequency Identification, RFID) distribution method of label and device.
Background technology
At global product electronic code administrative center (Electronic Product Code Global, EPC global) in the system framework, in order to obtain the convenient RFID label that uses, can be at reader and product electronic code (Electronic Product Code, EPC) the RFID middleware that increase is carried out encoding and decoding and the RFID label carried out real time filtering and grouping the RFID label between the information service system.
Wherein, the RFID middleware can connect the reader of a plurality of variety classeses, different model simultaneously, and these readers all can send the message of carrying the RFID label to the RFID middleware.And,, also may have of the reader execution concurrence operation of a plurality of modules to being connected in RFID middleware inside.In order to guarantee the accuracy of the communication between RFID middleware and the reader, can be in advance a unique identification be set for each reader and RFID middleware respectively, when between RFID middleware and reader, sending message, sign that can intended receiver, thus guarantee that message accurately arrives the destination.
Because the RFID middleware mainly is to finish label data transfer framework (Tag DataTranslation, abbreviate TDT as) label codec functions and application level incident (Application Level Event in the standard, abbreviate ALE as) real time filtering and the block functions of label in the standard, therefore, the distribution performance to the RFID middleware requires very high.
Below the concept term that above relates to is made an explanation:
RFID: a kind of contactless automatic identification technology, by the automatic recognition objective object of radiofrequency signal and obtain related data, identification work is not subjected to manual intervention, can be applicable to various rugged surroundings.
The global management organization of EPC global:EPC, it is under the jurisdiction of International Article Numbering Association, is standardization body that global user participates in, neutral, non-profit-making.It is organized at the coding of 103 countries and regions, the whole world by International Article Numbering Association and promotes and implement EPC work, mainly comprises: promote the EPC standard; Management EPC global network; Implement the popularization of EPC system.
EPC: its carrier is the RFID electronic tag, transmits information by the internet.The purpose of EPC is that each part list product sets up the whole world, open sign standard, realize in the global range to the tracking of single products with review, thereby effectively improve the supply chain management level, reduce logistics cost.
ALE: its incident is in application but not frontier area, is used to provide the standard interface of service layer to come the data through edge filter are handled again.
TDT: provide a kind of and dissimilar EPC label datas have been carried out different manifestations is inter-step freely changes the mechanism.
The RFID middleware: the system of the ALE among the EPC global realizes, realizes all the elements of retraining in the ALE standard comprising functions such as filtrations, grouping, realized that in addition the label of arranging in the TDT agreement decodes functions such as stable verification.
At present, the RFID middleware to the distribution method of RFID label is: when the message that receives from reader, determine the processing operation of this message by the content that comprises in this message, carry out this processing operation then, obtain the information after the processing, one of module that needs this information is then called this information and is handled, after this resume module is intact, need this information of module invokes of this information to handle by another again, carry out successively, need the module of this information all to handle up to all and be over, return again and wait for the following a piece of news that receives reader.
When reader increases to the data volume that the RFID middleware sends, or a plurality of reader is when the RFID middleware sends message, and blocking just may appear in this single-threaded processing mode, and many possibly of message can't in time be handled.And,, therefore work as the chronic of certain resume module bar information because this method also adopts single-threaded ways of distribution when label distribution, or when information is more, also can occur blocking, cause the RFID label not distribute in time, reduce the efficient of RFID label distribution.
Summary of the invention
In view of this, the invention provides a kind of distribution method of RFID label, be used for solving prior art, in the environment of big data quantity, high concurrency, the RFID label can not in time be distributed, and produces to block the lower problem of distribution efficient.
A kind of distribution method of RFID label is provided according to an aspect of the present invention.
Distribution method according to RFID label of the present invention comprises: obtain the message that carries the RFID label information from reader, according to the content of message, determine the processing operation of message correspondence; Processing is operated in thread pool carry out buffer memory, when handling operated allocated, message is carried out the processing operation to the processing thread, and the information that processing obtains carried out buffer memory in message queue, wherein, handle operation and comprise the encoding and decoding processing, information comprises the RFID label information after the encoding and decoding; By carrying out one or more dispatch threads, give one or more modules with the distribution of information that processing obtains, wherein, each dispatch thread all is numbered sign with the module of correspondence.
A kind of dispensing device of RFID label is provided according to a further aspect in the invention.
Dispensing device according to RFID label of the present invention comprises: determination module, be used to obtain the message that carries the RFID label information from reader, and according to the content of message, determine the processing operation of message correspondence; First processing module is used for that processing is operated in thread pool and carries out buffer memory, for this handles the operated allocated processing threads, and message is carried out this processing operate, and wherein, handles operation and comprises the encoding and decoding processing; Second processing module is used for that first processing module is handled the information that obtains and carries out buffer memory in message queue, and wherein, information comprises the RFID label information after the encoding and decoding; Distribution module is used for by carrying out one or more dispatch threads, and the distribution of information that the processing of the second processing module buffer memory is obtained is to one or more modules, and wherein, each dispatch thread all is numbered sign with the module of correspondence.
The present invention comes concurrently message to be handled by the rational management of thread pool, solve the distribution that exists in the prior art and blocked, distributed inefficient problem, than prior art, can be fast, effectively, in real time the RFID label information is handled and is distributed, reduce the needed time of distribution, improve the efficient of distribution.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Figure 1A is the structural representation according to the dispensing device of the RFID label of the embodiment of the invention;
Figure 1B is the structural drawing of the dispensing device of RFID label according to the preferred embodiment of the invention;
Fig. 2 is a kind of synoptic diagram of structure of dispensing device that is used to realize the RFID label according to the embodiment of the invention;
Fig. 3 is the process flow diagram according to the distribution method of the RFID label of the embodiment of the invention;
Fig. 4 is the process flow diagram according to the specific implementation process of the distribution method of the RFID label of the embodiment of the invention.
Embodiment
In the embodiment of the invention, when the message of obtaining from reader, at first according to the content of this message, determine the processing operation of this message correspondence, then this processing is operated in buffer memory in the thread pool, wait for the allocation process thread, when being assigned to processing threads, this message is carried out corresponding processing operation, and the information that processing obtains carried out buffer memory in message queue, wait for the processing of dispatch thread,, give one or more modules the distribution of information that processing obtains by carrying out one or more dispatch threads.
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Figure 1A is the structural drawing according to the dispensing device of the RFID label of the embodiment of the invention, and Figure 1B is the structural drawing of the dispensing device of RFID label according to the preferred embodiment of the invention.
Shown in Figure 1A, comprise according to the dispensing device of the RFID label of the embodiment of the invention: determination module 10, first processing module 12, second processing module 14 and distribution module 16.Below further combined with accompanying drawing above-mentioned each module is described.
(1) determination module 10, are used to obtain the message that carries the RFID label information from reader, and according to the content of message, determine the processing operation of message correspondence.
Particularly, shown in Figure 1B, determination module 10 can comprise: obtain submodule 100 and definite submodule 102.Wherein,
Obtain submodule 100, be used to obtain content from the message of reader.
Determine submodule 102, and obtain submodule 100 and be connected, be used for, determine that the processing corresponding with the content of obtaining the message that submodule 100 obtains operate according to content of setting up in advance and the corresponding relation of handling operation.
(2) first processing modules 12 are connected with determination module 10, are used for that the processing that determination module 10 is determined is operated in thread pool and carry out buffer memory, are processing operated allocated processing threads, and message is carried out this processing operation (comprising the encoding and decoding processing).
Particularly, shown in Figure 1B, first processing module 12 can comprise: judge submodule 120, distribution sub module 122 and sub module stored 124.Wherein,
Judge submodule 120, be used for operating in after the thread formation carries out buffer memory, judge the current the processing threads whether free time is arranged in the processing that determination module 10 is determined.
Distribution sub module 122 is connected with judging submodule 120, is used for judging that submodule 120 determines currently when idle processing threads is arranged, and be processing operated allocated processing threads.
Sub module stored 124 is connected with judging submodule 120, is used for putting into the processing queue of thread pool judging that submodule 120 determines currently when not having idle processing threads with handling operation, waits for the thread distribution.
Further, sub module stored 124 can comprise judging unit 1240 and expansion unit 1242 again.Wherein,
Judging unit 1240, be used for will handle the operation put into the processing queue of thread pool before, whether the judgment processing formation full.
Expansion unit 1242 is connected with judging unit 1240, is used for expanding the capacity of processing queue according to default parameter when judging unit 1240 determines that processing queue has expired, increases the quantity of processing threads, and the retention time under the idle condition of processing threads.
(3) second processing modules 14 are connected with first processing module 12, are used for that first processing module 12 is handled the information that obtains (comprise encoding and decoding after RFID label information) and carry out buffer memory in message queue.
Further, shown in Figure 1B, dispensing device according to the RFID label of the embodiment of the invention can also comprise: recycling module 18, be connected with second processing module 14, the information that is used in second processing module 14 processing being obtained is after buffer memory is carried out in message queue, and the processing threads of operation is handled in recycling.
(4) distribution module 16, be connected with second processing module 14, be used for by carrying out one or more dispatch threads, the distribution of information that the processing of second processing module, 14 buffer memorys is obtained is to one or more modules, wherein, each dispatch thread all is numbered sign with the module of correspondence.
Particularly, shown in Figure 1B, distribution module 16 can comprise one of following or its combination: expansion submodule 160 and reclaim submodule 162.Wherein,
Expansion submodule 160, the information that is used for comprising when message queue surpasses predetermined threshold, or the distribution processor time of one of them information surpass the schedule time during threshold value, carry out the operation that increases dispatch thread quantity.
Reclaim submodule 162, be used for surpassing the schedule time during threshold value, the dispatch thread of free time is carried out recovery or union operation when the time of dispatch thread free time.
In specific implementation process, this device can be realized by the device among Fig. 2 20.This device comprises: network element communication module 200, general adaptation engine 202, task processing threads pond 204, unblock data queue module 206 and message processing module 208.Wherein,
Network element communication module 200, what be equivalent among Figure 1B cover half piece 10 really obtains submodule 100, is used for carrying out with reader 22 interactive module of indifference communication mode, obtains the message that reader 22 sends.
General adaptation engine 202, be connected with network element communication module 200, be equivalent among Figure 1B really cover half piece 10 stator modules 102 really, the content that is used for the message obtained according to network element communication module 202, obtain the type and the version of the reader that sends this message, and command code that carry out to handle operation, carry out then adaptive, the processing operation of obtaining this message correspondence.
Task processing threads pond 204, be connected with general adaptation engine 202, be equivalent to first processing module 12 among Figure 1A and Figure 1B, thread pool is put in the processing operation that is used for general adaptation engine 202 is obtained, for handling the operated allocated processing threads, and message is carried out this processing operate, and the size of processing threads quantity and wait processing queue can be dynamically adjusted in task processing threads pond 204 according to current treatment capacity.
Unblock data queue module 206, be connected with task processing threads pond 204, be equivalent to second processing module and distribution module among Figure 1A and Figure 1B, the information cache that is used for obtaining after the 204 execution processing operations of task processing threads pond is in message queue, and, the distribution of information that obtains is given the module of this information of processing by carrying out one or more dispatch threads.
Message processing module 208 is connected with unblock data queue module 206, is used for the information that task processing threads pond 204 obtains is handled, and may comprise particularly: check module, be used for according to rule information being divided into groups, being filtered; Writing module is used for write operation is carried out in each data field of label.Except that these two modules, message processing module can also comprise other module.
Engage above-mentioned device below, the distribution method of the RFID label that the embodiment of the invention is provided is elaborated, as shown in Figure 3, the main flow process according to the distribution method of the RFID label of the embodiment of the invention comprises following processing (step S300-step S304):
Step S300: obtain the message that carries the RFID label information,, determine the processing operation of this message correspondence according to the content of this message from reader;
Step S302: the processing of determining among the step S300 is operated in thread pool carry out buffer memory, when this handles operated allocated to the processing thread, the message of obtaining is carried out this processing operation, and the information that processing obtains is carried out buffer memory in message queue; Wherein, message queue is with the relatively also unblock formation of exchange (Compare And Set abbreviates CAS as) algorithm realization, and the CAS algorithm can be realized the failure of a thread or hang up failure or the hang-up that does not influence other threads.And, in message queue, each information of preservation with its from the unique identification of reader corresponding;
Step S304:, give one or more modules with the distribution of information that processing obtains by carrying out one or more dispatch threads.
Below further describe each details of above-mentioned processing.
(1) step S300
Before the processing of carrying out step S300, reader sends radiofrequency signal, the information of reading tag, send the message that is packaged with label information to the RFID middleware then, simultaneously, the content of this message includes but not limited to following information: the type of reader, the version number of reader and the command code of handling the processing operation of this message.
In specific implementation process, among the step S300, the processing of determining message is operated this step and can be comprised following processing:
(1) obtains the content of described message.When obtaining the message that reader sends, at first from this message, parse the content of this message, thereby obtain sending type, the version number of the reader of this message, and/or command code.Wherein, command code is that the code of handling operation is carried out in indication.
(2), determine the processing operation corresponding with the content of this message according to content of setting up in advance and the corresponding relation of handling operation.Wherein, content is to set up according to the pattern of setting with the corresponding relation of handling operation, comprise the type according to reader, the version of reader, and/or command code is determined corresponding process operations.
(2) step S302
In this step, thread pool is realized according to predefined strategy, it provides the caching mechanism of handling operation, comprise that enlivening thread (promptly handles the thread of the processing operation of putting into thread pool, below be called processing threads) and deposit operation wait for the formation (promptly deposit the formation of the processing operation of waiting for scheduling, below be called processing queue) of scheduling; And thread pool can be according to configuration, changes the quantity of wherein active processing threads and deposits the size of the processing queue of the operation of waiting for scheduling.
Like this, in step S300, successfully obtain the processing operation of (determining) message after, in step S302, at first should handle operation and put into thread pool, the next message of main processing threads wait reception.
Thread pool is at first judged the current idle processing threads that whether has when receiving the processing operation, and takes appropriate measures according to the result who judges, based on this, step S302 specifically can comprise following processing:
Step 1: judge the current idle processing threads that whether has, if any, enter step 6, otherwise, step 2 continued.
Step 2: judge whether current processing queue is full, if, then continue step 3, otherwise, step 5 entered.
Step 3:, expand the capacity of processing queue according to default parameter.Full when processing queue, then need according to default parameter, the upper limit of formation is promoted, expanding the capacity of processing queue, otherwise, can't put into processing queue with handling operation.
Step 4: increase the quantity of processing threads, and the retention time of processing threads under idle condition.If current processing queue is full, illustrate that then the quantity of current pending processing operation has surpassed predetermined threshold value, must increase the quantity of current processing threads, with the pending task of timely processing, reduce task etc. the pending time.
Step 5: should handle operation and put into processing queue, and wait for scheduling.
Processing threads is according to the principle of first in first out (First In First Out abbreviates FIFO as), and the task in the processing queue is left in scheduling in one by one, and after the task before this processing operation all is scheduled execution, this processing operation will be assigned to processing threads.
Step 6: processing threads is handled operation types according to this, and message is carried out corresponding process operations, and the information that processing obtains is put into message queue; Wherein, the processing operation that message is advanced to carry out comprises: encoding and decoding are handled; Correspondingly, the information that obtains comprises the RFID label information after the encoding and decoding.
In specific implementation process, for ensure and reader between reliable transmission, processing threads can earlier carry out pre action according to handling operation types, is that the information that obtains increases general message header, and after processing, carry out post action, increase the information that guarantees reliability transmission.
Finishing corresponding process operations when processing threads is, reclaims this processing threads, to handle the next operation of handling.
(3) step S304
After information before leaving the information that step S302 obtains in the message queue in is all handled, by one or more dispatch threads that are numbered sign with RFID middleware internal module, this information is distributed, thereby can guarantee that the needed information of each module can not blocked by other module.
In specific implementation process, the information content that comprises in message queue surpasses predetermined threshold, or distribution processor time of one of them information is surpassed the schedule time during threshold value, can increase the quantity of dispatch thread, to reduce the obstruction of information processing; And have idle thread in the dispatch thread that ought distribute, and the idle time surpass the schedule time during threshold value, can merge or reclaim dispatch thread.
The process flow diagram of a preferred embodiment of the distribution method of the RFID label that Fig. 4 provides for the embodiment of the invention.In conjunction with Fig. 2, as shown in Figure 4, mainly may further comprise the steps:
Step S400: the network element communication module obtains the message that reader sends, and after testing, this message is sent to general adaptation engine; Wherein, comprise the RFID label information that reader reads in this message.
Step S402: general adaptation engine reads the content of this message from this message, and according to content of setting up in advance and the corresponding relation of handling operation, determines the processing operation corresponding with the content of this message.
In specific operation process, may there be situation about obtaining less than the operational processes corresponding with message content, in this case, flow process directly finishes, and this message is not processed, and waits for receiving next message.
Step S404: the thread pool in task processing threads pond is put in the processing operation that general adaptation engine will be determined.After will handling operation and putting into thread pool, main processing threads begins wait for to receive next message, can guarantee the unblock of receiving thread.
Step S406: the current idle thread that whether has is judged in task processing threads pond, if, then enter step S416, otherwise, step S408 continued.
Step S408: judge whether current processing queue is full, if, continue step S410, otherwise, step S414 entered.
Step S410:, expand the capacity of processing queue according to the parameter of setting.Wherein, what place in the processing queue pending task such as is, promptly handles operation.
Step S412: increase the quantity of processing threads, and the time-to-live of handling the processing threads under the idle condition.Wherein, the time-to-live of processing threads is meant that processing threads is in idle condition and just reclaims after how long, i.e. the retention time of processing threads under idle condition.
Because processing queue has been full, illustrate that current pending task quantity is more, therefore, need to increase the quantity of processing threads, the quantity of pending task such as to reduce.
Step S414: will handle operation and put into processing queue, and wait pending.When the task before coming this processing operation in the processing queue has all been carried out, this processing operation will be assigned to processing threads.
Step S416: processing threads is carried out this processing operation according to handling operation types to message.Particularly, processing threads carries out pre action according to its action type (forward direction, reverse message) earlier, and carries out post action after processing, as to forward direction message, can increase the universal information head in pre action.
Step S418: the information cache that processing is obtained reclaims the processing threads of carrying out this time processing in message queue.
Step S420:, give one or more modules with the distribution of information that processing obtains by carrying out one or more dispatch threads.Wherein, each dispatch thread all is numbered sign with the module of correspondence.
In specific implementation process, can be as the case may be, be that each resume module is distributed a dispatch thread, also can the shared dispatch thread of a plurality of resume module, or a plurality of dispatch thread is carried out a resume module.
And, as mentioned above, the information that comprises in message queue surpasses predetermined threshold, or distribution processor time of one of them information surpassed the schedule time during threshold value, can increase the quantity of dispatch thread,, and have idle thread in the dispatch thread that ought distribute with the obstruction of minimizing information processing, and the idle time surpasses the schedule time during threshold value, can merge or reclaims dispatch thread.
In the embodiment of the invention, when the message of obtaining from reader,, determine the processing operation of this message correspondence at first according to the content of this message, then this processing is operated in buffer memory in the thread pool, wait for the allocation process thread, when being assigned to processing threads, this message is carried out processing behaviour, and the information that processing obtains carried out buffer memory in message queue, wait for the processing of dispatch thread,, give one or more modules the distribution of information that processing obtains by carrying out one or more dispatch threads.By the present invention, can be fast, effectively, in real time label information is handled, is distributed, thereby reduce the obstruction of RFID label distribution, reduce the needed time of distribution, improve the efficient of distribution, reach the purpose of unblock, the processing of high-performance ground, distribution label, and then improve the overall performance of RFID middleware.And the embodiment of the invention can dynamically be adjusted the quantity of processing threads and dispatch thread according to current treatment capacity, therefore, can adapt to big data quantity to greatest extent, and the environment of high concurrency guarantees the clog-free forwarding of data.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. the distribution method of a radio frequency identification (RFID) labels is characterized in that, comprising:
Obtain the message that carries the RFID label information,, determine the processing operation of described message correspondence according to the content of described message from reader;
Described processing is operated in thread pool carry out buffer memory, when described processing operated allocated when handling thread, described message is carried out described processing operation, and the information that processing obtains carried out buffer memory in message queue, wherein, described processing operation comprises the encoding and decoding processing, and described information comprises the RFID label information after the encoding and decoding;
By carrying out one or more dispatch threads, give one or more modules with the distribution of information that described processing obtains, wherein, each dispatch thread all is numbered sign with the module of correspondence.
2. method according to claim 1 is characterized in that, the processing operation of described definite described message correspondence specifically comprises:
Obtain the content of described message;
According to content of setting up in advance and the corresponding relation of handling operation, determine the processing operation corresponding with the content of described message.
3. method according to claim 2 is characterized in that, described content comprises one of following and combination in any: the type of described reader, the version of described reader and the command code of handling operation.
4. method according to claim 1 is characterized in that, described processing is operated in carry out in the thread pool after the buffer memory, and described method also comprises:
Judging the current idle processing threads that whether has, if having, then directly is described processing operated allocated processing threads; Otherwise,
The processing queue of putting into described thread pool is operated in described processing, wait for that thread distributes.
5. method according to claim 4 is characterized in that,
Described processing operation is put into before the processing queue of described thread pool, and described method also comprises: judge whether described processing queue is full;
If described processing queue less than, the processing queue of then described processing operation being put into described thread pool is specially: described processing queue is directly put in described processing operation;
If described to go out processing queue full, then the processing queue that described thread pool is put in described processing operation is specially: expand the capacity of described processing queue according to default parameter; Increase the quantity of processing threads, and the retention time of processing threads under idle condition; Described processing queue is put in described processing operation.
6. method according to claim 1 is characterized in that, the described information that processing is obtained is carried out buffer memory in message queue after, described method also comprises:
Recycle the processing threads of described processing operation.
7. according to each described method in the claim 1 to 6, it is characterized in that,, carry out one of following operation or its combination for described dispatch thread:
Surpass the schedule time during threshold value when time of dispatch thread free time, carry out the recovery or the union operation of idle described dispatch thread;
The information content that comprises in message queue surpasses predetermined threshold, or distribution processor time of one of them information is surpassed the schedule time during threshold value, carries out the operation that increases dispatch thread quantity.
8. a RFID label distribution device is characterized in that, comprising:
Determination module is used to obtain the message that carries the RFID label information from reader, according to the content of described message, determines the processing operation of described message correspondence;
First processing module is used for that described processing is operated in thread pool and carries out buffer memory, is described processing operated allocated processing threads, and described message is carried out described processing operation, and wherein, described processing operation comprises the encoding and decoding processing;
Second processing module is used for that described first processing module is handled the information that obtains and carries out buffer memory in message queue, and wherein, described information comprises the RFID label information after the encoding and decoding;
Distribution module is used for by carrying out one or more dispatch threads, and the distribution of information that the described processing of the described second processing module buffer memory is obtained is to one or more modules, and wherein, each dispatch thread all is numbered sign with the module of correspondence.
9. device according to claim 8 is characterized in that, described determination module comprises:
Obtain submodule, be used to obtain the content of described message;
Determine submodule, be used for, determine the processing operation corresponding with the content of described message according to content of setting up in advance and the corresponding relation of handling operation.
10. device according to claim 8 is characterized in that, described first processing module comprises:
Judge submodule, be used for judging the current the processing threads whether free time is arranged described processing being operated in after the thread formation carries out buffer memory;
Distribution sub module is used for determining at described judgement submodule current when idle processing threads is arranged, and is described processing operated allocated processing threads;
Sub module stored is used for determining at described judgement submodule current when not having idle processing threads, and the processing queue of described thread pool is put in described processing operation, waits for that thread distributes.
11. device according to claim 10 is characterized in that, described sub module stored comprises:
Judging unit is used for judging whether described processing queue is full before the processing queue of described thread pool is put in described processing operation;
Expansion unit is used for expanding the capacity of described processing queue according to default parameter when described judging unit determines that described processing queue has expired, increases the quantity of processing threads, and the retention time under the idle condition of processing threads.
12. device according to claim 8 is characterized in that, described device also comprises:
Recycling module, the information that is used in described second processing module processing being obtained recycle the processing threads of described processing operation after buffer memory is carried out in message queue.
13. device according to claim 8 is characterized in that, described distribution module comprises one of following or its combination:
The expansion submodule, the information that is used for comprising when message queue surpasses predetermined threshold, or the distribution processor time of one of them information surpass the schedule time during threshold value, carry out the operation that increases dispatch thread quantity;
Reclaim submodule, be used for surpassing the schedule time during threshold value, the described dispatch thread of free time is carried out recovery or union operation when the time of dispatch thread free time.
CN2008101358757A 2008-07-16 2008-07-16 Method and device for distributing radio frequency identification (RFID) labels Active CN101630355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101358757A CN101630355B (en) 2008-07-16 2008-07-16 Method and device for distributing radio frequency identification (RFID) labels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101358757A CN101630355B (en) 2008-07-16 2008-07-16 Method and device for distributing radio frequency identification (RFID) labels

Publications (2)

Publication Number Publication Date
CN101630355A true CN101630355A (en) 2010-01-20
CN101630355B CN101630355B (en) 2011-09-21

Family

ID=41575459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101358757A Active CN101630355B (en) 2008-07-16 2008-07-16 Method and device for distributing radio frequency identification (RFID) labels

Country Status (1)

Country Link
CN (1) CN101630355B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248452A (en) * 2012-02-10 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method
CN104166825A (en) * 2014-07-21 2014-11-26 成都联星微电子有限公司 RFID-based document accurate positioning method
CN104780144A (en) * 2014-01-13 2015-07-15 北京兆维电子(集团)有限责任公司 Intelligent streaming media data distribution method and intelligent streaming media data distribution device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248452A (en) * 2012-02-10 2013-08-14 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method
CN103248452B (en) * 2012-02-10 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Data sending device, data receiving device, terminal and data transmission method
CN104780144A (en) * 2014-01-13 2015-07-15 北京兆维电子(集团)有限责任公司 Intelligent streaming media data distribution method and intelligent streaming media data distribution device
CN104780144B (en) * 2014-01-13 2019-03-01 北京兆维电子(集团)有限责任公司 Intelligent stream medium data distribution method and device
CN104166825A (en) * 2014-07-21 2014-11-26 成都联星微电子有限公司 RFID-based document accurate positioning method

Also Published As

Publication number Publication date
CN101630355B (en) 2011-09-21

Similar Documents

Publication Publication Date Title
CN101543087B (en) Method and apparatus for avoiding overpolling
CN100495424C (en) Multiple tag dynamic bit arbitration anti-collision method for RFID system
US20060280007A1 (en) Memory product controller, memory product control method, and memory product
KR101876416B1 (en) A system and method for control data of wafer carrier in buffer
CN101630355B (en) Method and device for distributing radio frequency identification (RFID) labels
CN109492724A (en) Warehouse, warehouse compartment state identification method, logistics execute system and electronic equipment
US8164424B2 (en) System and method of integrated processing of electronic tag
CN101866413A (en) Multi-label anti-collision method based on grouping mechanism and jumping dynamic binary recognition
CN109961253A (en) Management system and management method based on RFID intelligent storage
CN115687228B (en) PCIe bus-based satellite-borne solid-state storage system and method
KR100766973B1 (en) Integrated Apparatus of RFID Reading Function and Internet Communication Function and Method thereof
CN102446144A (en) Method, device and system for scheduling serial port resources
CN102034292B (en) Radio frequency identification (RFID)-based numbering method and system for business outlet/service organization
CN101324916B (en) Label recognition anti-collision method for RFID system
CN205472567U (en) Constant volume filling system based on recognition technology
CN208752652U (en) A kind of luggage far field vision patch system
CN102073832B (en) Fixed RFID reader and data storage method thereof
CN101751538A (en) RF recognition label distributing method and device thereof
CN114445011B (en) Logistics warehouse allocation system based on cloud computing
CN101464938A (en) Apparatus and method for managing user memory of RFID tag
CN100568260C (en) A plurality of reader counting electronic label methods in a kind of rfid system
CN102693582A (en) IC card data interaction method and system and method and system for downloading loss report information
CN105956506A (en) Improved RFID anti-collision method
CN100461788C (en) Method and device for connection of network proceesor schedling
CN108037942A (en) A kind of self-adapting data of embedded device recovers and update method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160905

Address after: 300308 Tianjin Airport Economic Zone, Binhai New Area seven East Road No. 2 Zhongxing Industrial Base

Patentee after: ZTE INTELLIGENT IOT TECHNOLOGY Co.,Ltd.

Address before: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee before: ZTE Corp.

CP03 Change of name, title or address

Address after: Room 401, building 12, east area, airport business park, No. 80, Huanhe North Road, free trade zone (Airport Economic Zone), Binhai New Area, Tianjin 300000

Patentee after: Gaoxing Zhilian Technology Co.,Ltd.

Address before: 300308, Zhongxing Industrial base, 2 East seven, Airport Economic Zone, Tianjin Binhai New Area

Patentee before: ZTE INTELLIGENT IOT TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CP01 Change in the name or title of a patent holder

Address after: Room 401, building 12, East Airport Business Park, 80 Huanhe North Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone)

Patentee after: Zte Intelligent Iot Technology Co.,Ltd.

Address before: Room 401, building 12, East Airport Business Park, 80 Huanhe North Road, Tianjin Binhai New Area pilot free trade zone (Airport Economic Zone)

Patentee before: Gaoxing Zhilian Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder