KR20140009733A - Rfid task scheduling device and task scheduling method - Google Patents
Rfid task scheduling device and task scheduling method Download PDFInfo
- Publication number
- KR20140009733A KR20140009733A KR1020120076285A KR20120076285A KR20140009733A KR 20140009733 A KR20140009733 A KR 20140009733A KR 1020120076285 A KR1020120076285 A KR 1020120076285A KR 20120076285 A KR20120076285 A KR 20120076285A KR 20140009733 A KR20140009733 A KR 20140009733A
- Authority
- KR
- South Korea
- Prior art keywords
- task
- tasks
- highest priority
- write
- rfid
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K17/00—Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
- G06K17/0003—Automatic card files incorporating selecting, conveying and possibly reading and/or writing operations
- G06K17/0009—Automatic card files incorporating selecting, conveying and possibly reading and/or writing operations with sequential access selection of a record carrier from the card-file, e.g. relative movement between selecting device and card-file
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/067—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
- G06K19/07—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
- G06K19/0723—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips the record carrier comprising an arrangement for non-contact communication, e.g. wireless communication circuits on transponder cards, non-contact smart cards or RFIDs
-
- 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/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10009—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation sensing by radiation using wavelengths larger than 0.1 mm, e.g. radio-waves or microwaves
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Toxicology (AREA)
- Health & Medical Sciences (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Computer Hardware Design (AREA)
- Computer Networks & Wireless Communication (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Embodiments of the present invention relate to a task scheduling apparatus and a task scheduling method.
Radio frequency identification (RFID) middleware may be understood as relay software for performing a specific purpose between an RF device (RFID reader and RFID tag) and an application (client). In order to effectively implement such RFID middleware, writing tasks executing application level event (ALE) writing application programming interfaces (ALEs) need to have exclusive access to the RFID reader. In addition, since the ALE specification, which is an existing RFID middleware standard, does not consider scheduling ALE tasks, it is difficult to meet a deadline for tasks having a temporal constraint property.
SUMMARY An embodiment of the present invention is to provide an RFID task scheduling apparatus and a task scheduling method capable of effectively implementing an RFID middleware.
In order to solve the above technical problem, according to an aspect of the embodiments of the present invention, the step of receiving a task (task) from the client, the step of transitioning the received task to the ready to run, and the type of the ongoing task And transmitting a new task to the RFID reader according to the task having the highest priority among the tasks currently in progress and the tasks switched to the ready state.
According to another aspect of the present embodiment, when the task in progress is a writing task, the task having the highest priority may be transmitted to the RFID reader after the task in progress is finished.
According to another feature of the present embodiment, if the task currently in progress is a reading task and the task having the highest priority is a read task, the read has a higher priority than the write task having the highest priority before the end of the task currently in progress. The task can be sent to the RFID reader.
According to another feature of the present embodiment, when the task currently in progress is a read task and the task having the highest priority is a write task, the task having the highest priority may be transmitted to the RFID reader after the task in progress is finished.
According to another feature of this embodiment, the task scheduling method may be applied to the RFID middleware.
In order to solve the above technical problem, according to another aspect of the embodiments of the present invention, a task receiving unit for receiving a task (task) from the client, a step switching unit for switching the received task into a ready state, and the ongoing According to the type of the task and the task having the highest priority among the tasks that are switched to the ready state, including a scheduler for determining whether to send a new task to the RFID reader, and a transmitter for transmitting a new task to the RFID reader, Provides a task scheduling device.
According to another aspect of the present embodiment, if the task in progress is a writing task, the scheduler may transmit the task having the highest priority to the RFID reader after the task in progress is finished.
According to another feature of this embodiment, the scheduler has priority over the write task with the highest priority before the end of the currently in progress task if the task currently in progress is a reading task and the task with the highest priority is a read task. Can send a high read task to the RFID reader.
According to another feature of the present embodiment, if the task currently in progress is a read task and the task having the highest priority is a write task, the scheduler may transmit the task having the highest priority to the RFID reader after the task in progress is finished. have.
According to another feature of the present embodiment, the task scheduling apparatus may be applied to a server including an RFID middleware.
By the above configuration, it is possible to effectively implement the RFID middleware.
1 is a diagram schematically showing the configuration of an RFID system.
2 is a block diagram illustrating a configuration of a task scheduling apparatus according to an exemplary embodiment.
3 is a diagram illustrating a flow of tasks according to an exemplary embodiment.
4 is a flowchart illustrating a task scheduling method according to an exemplary embodiment.
FIG. 5 is a flowchart illustrating a method of transitioning a task to an execution state queue according to scheduling in FIG. 4.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. Referring to the accompanying drawings, the same or corresponding components are denoted by the same reference numerals, .
1 is a diagram schematically showing the configuration of an RFID system.
Referring to FIG. 1, the RFID system may include a
The
RFID middleware is software that collects, filters, and summarizes the information of a large number of tags delivered from a plurality of
On the other hand, the
The
The
2 is a block diagram showing the configuration of a
2 and 3, the
The
The
The task scheduling method of the
First, each symbol used to describe a task scheduling method is defined.
S: set of read and write tasks that are requested but not completed by
ri : i-th read task
wi : i-th write task
Prio (): task priority
Sready : A set of all tasks ready to run
S r ready : A collection of read tasks ready to run as a subset of S ready .
S w ready : a subset of write tasks ready to run as a subset of S ready
r top : Highest priority read task in S r ready
w top : Highest priority write task in S r ready
S running : set of all running tasks
S r running : A set of read tasks running as a subset of S running
S w running : a subset of write tasks running as a subset of S running
(A write task is running when the S w is not an empty set because it can be executed concurrently with other tasks in a particular time S w is running only has only one write task.)
Scheduling by the
Case 1: Read tasks are running (S r running ≠
The scheduling algorithm is executed when another read task is inserted into the ready queue. However, if the write task is running, you do not need to reschedule other tasks. This is because, if a write task is running, other higher priority tasks cannot execute even if they are ready.Case 2: If no task is running (S running =
When another read or write task is ready, the scheduling algorithm is executed.Case 3: Scheduling occurs when the execution of all currently running tasks is completed. That is, S running =
If it is.A more specific situation will be explained using an example.
S r ready = {r2, r3, r4}, S w ready = {w1, w2}
S r running = {r1}, S w running =
,Prio (r1)> Prio (w1)> Prio (r2)> Prio (r3)> Prio (w2)> Prio (r4)
At this time, when two new tasks r5 and r6 arrive and are ready, S r ready = {r2, r3, r4, r5, r6}. If Prio (r5)> Prio (w1)> Prio (r6), the read task r5 can be executed immediately. Therefore, S r running = {r1, r5}.
When the execution of r1 and r5 is completed, the
The
4 is a flowchart illustrating a task scheduling method according to an exemplary embodiment.
Referring to FIG. 4, the
The
The tasks are transferred to the execution status queue according to the scheduling result (S5), and the
5 is a flowchart illustrating a task scheduling method of the present invention. 5 illustrates step S5 of FIG. 4 in more detail.
Referring to FIG. 5, it is first determined whether there is a read task being executed (S51). If there is no read task being executed, it is determined whether there is a write task being executed (S54). If there is a write task running, the task scheduling is terminated because no additional task is executed.
On the other hand, if it is determined in step S54 that there is no write task being executed, it is determined whether a task having the highest priority, that is, the highest priority in the ready state queue is a read task (S55). If the highest priority task is not a read task, that is, if the highest priority task is a write task, the write task is transferred to the execution state queue so as to be in the running state (S56).
If it is determined that there is a read task being executed in step S51 or if it is determined in step S55 that the highest priority task is a read task, it is determined whether there is a read task having a higher priority than the write task having the highest priority among the write tasks in the ready state. (S52). If such a read task exists, all read tasks having a higher priority than the write task having the highest priority are transferred to the execution state queue so as to be in the execution state (S53). On the other hand, if such a read task does not exist, the task scheduling is terminated.
To effectively implement RFID middleware, write tasks that execute ALE writing APIs must have exclusive access to the RFID reader. In general, this requires a difficult and complex locking mechanism to be used. In this process, a problem such as deadlock may occur due to an incorrect locking. The ALE standard allows more than one client application to request parallel read and write requests to an RFID reader. In addition, even one RFID client can simultaneously generate multiple requests for one RFID reader. However, while read tasks may be allowed to access the RFID reader at the same time, if one write task is writing data to the RFID tag via the RFID reader, other read tasks or write tasks may be used for reliable reading and writing of data. You must wait until the current data record is completed and a locking mechanism is used that is difficult to program.
Meanwhile, ALE-based middleware tasks may optionally have periodicity and strict deadlines. For example, one ALE task may perform a client command that reads tag data every 9 minutes starting at 9:00 am and reports newly added tag data within 5 seconds. However, the ALE specification, which is an existing RFID middleware standard, does not consider scheduling ALE tasks, so it is difficult to meet deadlines for tasks having a temporal constraint.
According to embodiments of the present invention, it is possible to solve the above problems without using a complicated locking mechanism to effectively implement the RFID middleware.
The specific acts described in the present invention are, by way of example, not intended to limit the scope of the invention in any way. For brevity of description, descriptions of conventional electronic configurations, control systems, software, and other functional aspects of such systems may be omitted. Also, the connections or connecting members of the lines between the components shown in the figures are illustrative of functional connections and / or physical or circuit connections, which may be replaced or additionally provided by a variety of functional connections, physical Connection, or circuit connections. Also, unless explicitly mentioned, such as " essential ", " importantly ", etc., it may not be a necessary component for application of the present invention.
The use of the terms " above " and similar indication words in the specification of the present invention (particularly in the claims) may refer to both singular and plural. In addition, in the present invention, when a range is described, it includes the invention to which the individual values belonging to the above range are applied (unless there is contradiction thereto), and each individual value constituting the above range is described in the detailed description of the invention The same. Finally, the steps may be performed in any suitable order, unless explicitly stated or contrary to the description of the steps constituting the method according to the invention. The present invention is not necessarily limited to the order of description of the above steps. The use of all examples or exemplary language (e.g., etc.) in this invention is for the purpose of describing the invention in detail and is not to be construed as a limitation on the scope of the invention, It is not. It will also be appreciated by those skilled in the art that various modifications, combinations, and alterations may be made depending on design criteria and factors within the scope of the appended claims or equivalents thereof.
1 Task Scheduling Device (Server)
11 receiver
12-stage switch
13 scheduler
14 transmitter
Claims (10)
Transitioning the received task to a ready state for execution;
Determining a type of task currently in progress; And
And transmitting the new task to the RFID reader according to a task having a highest priority among tasks currently in progress and tasks which have been switched to the ready state for execution.
If the current ongoing task is a writing task,
And after the current task ends, transmitting the task having the highest priority among the tasks in the ready state to the RFID reader.
If the current task is a reading task and a read task having a higher priority than the write task having the highest priority among the write tasks in the ready state exists,
And transmitting a read task having a higher priority than the write task having the highest priority to the RFID reader before the current task is finished.
If the currently in progress task is a reading task and the task having the highest priority among the tasks in the ready state is a write task,
And after the current task ends, transmitting the write task having the highest priority to the RFID reader.
The task scheduling method is characterized in that applied to the RFID middleware.
A step switching unit for switching the received task to a ready state for execution;
A scheduler for determining whether to transmit the new task to an RFID reader according to a type of a task currently in progress and a type of a task having a highest priority among tasks switched to the ready state for execution; And
And a transmitter for transmitting the new task to the RFID reader.
The scheduler comprising:
If the current ongoing task is a writing task,
And after the current task is finished, transmitting the task having the highest priority among the tasks in the ready state to the RFID reader.
The scheduler comprising:
If the current task is a reading task and a read task having a higher priority than the write task having the highest priority among the write tasks in the ready state exists,
And transmitting a read task having a higher priority than the write task having the highest priority to the RFID reader before the current task is finished.
The scheduler comprising:
If the currently in progress task is a reading task and the task having the highest priority among the tasks in the ready state is a write task,
And after the current task ends, transmitting the write task having the highest priority to the RFID reader.
The task scheduling apparatus may be applied to a server including an RFID middleware.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120076285A KR20140009733A (en) | 2012-07-12 | 2012-07-12 | Rfid task scheduling device and task scheduling method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120076285A KR20140009733A (en) | 2012-07-12 | 2012-07-12 | Rfid task scheduling device and task scheduling method |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20140009733A true KR20140009733A (en) | 2014-01-23 |
Family
ID=50142756
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020120076285A KR20140009733A (en) | 2012-07-12 | 2012-07-12 | Rfid task scheduling device and task scheduling method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20140009733A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104915256A (en) * | 2015-06-05 | 2015-09-16 | 惠州Tcl移动通信有限公司 | Method and system for realizing real-time scheduling of task |
WO2019066166A1 (en) * | 2017-09-27 | 2019-04-04 | 주식회사 포에스텍 | Middleware server and method for processing data thereof |
-
2012
- 2012-07-12 KR KR1020120076285A patent/KR20140009733A/en not_active Application Discontinuation
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104915256A (en) * | 2015-06-05 | 2015-09-16 | 惠州Tcl移动通信有限公司 | Method and system for realizing real-time scheduling of task |
WO2019066166A1 (en) * | 2017-09-27 | 2019-04-04 | 주식회사 포에스텍 | Middleware server and method for processing data thereof |
CN111279665A (en) * | 2017-09-27 | 2020-06-12 | 株式会社飞思特 | Middleware server and method for processing data thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100476868C (en) | Rf-tag reading system and rf-tag reader/writer control system, and interference avoidance method thereof | |
US20110173254A1 (en) | System and method for scheduling device management | |
WO2009038247A1 (en) | Time slot allocation apparatus and method for preventing collisions between time slots in tdma-based rfid network | |
CN103888441A (en) | Information transmitting method between application and protocol stack and processing device | |
CN102630315A (en) | Method and system for processing data for preventing deadlock | |
CN105095684A (en) | Automatic triaging method for hospital | |
CN110609755A (en) | Message processing method, device, equipment and medium for cross-block chain node | |
CN111722944B (en) | NIO-based AIRT-ROS communication method and system | |
EP2945298A1 (en) | Communication method and apparatus for nfc device, and nfc device | |
KR20150001146A (en) | Storage system and Operating method thereof | |
KR20140009733A (en) | Rfid task scheduling device and task scheduling method | |
CN111052083B (en) | Method and apparatus for managing scheduling of services during startup | |
CN113641472A (en) | Method and device for realizing different conversion and same sharing of distributed application | |
US20080178182A1 (en) | Work state returning apparatus, work state returning method, and computer product | |
CN102884541A (en) | Method for managing communication between electronic device (such as non-contact chip card) and communication apparatus (such as reader) and corresponding electronic device | |
US20120158824A1 (en) | Apparatus and method for distributed processing of radio frequency identification (rfid) middleware | |
CN107172656B (en) | Non-blocking request processing method and device | |
KR100945563B1 (en) | System and Method for RFID Middleware Based on ALE Standard Specification | |
US20150140928A1 (en) | Method, apparatus, and terminal device for controlling near field communication radio frequency discovery | |
CN105405087A (en) | Hospital automatic triage method | |
KR101921313B1 (en) | Method for operating relation server and system using the same | |
CN105009097A (en) | Message transmission device, message transmission method, and message transmission program | |
JP6213746B2 (en) | Optimizing discovery of data network devices to reduce data transfer capacity | |
CN112019452B (en) | Method, system and related device for processing service requirement | |
CN111224861B (en) | Method, system, equipment and storage medium for opening instant message service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E601 | Decision to refuse application |