RU2546565C2 - Reader operation specification assignment method and reader - Google Patents

Reader operation specification assignment method and reader Download PDF

Info

Publication number
RU2546565C2
RU2546565C2 RU2012128982/08A RU2012128982A RU2546565C2 RU 2546565 C2 RU2546565 C2 RU 2546565C2 RU 2012128982/08 A RU2012128982/08 A RU 2012128982/08A RU 2012128982 A RU2012128982 A RU 2012128982A RU 2546565 C2 RU2546565 C2 RU 2546565C2
Authority
RU
Russia
Prior art keywords
cop
reader
state
passive
puts
Prior art date
Application number
RU2012128982/08A
Other languages
Russian (ru)
Other versions
RU2012128982A (en
Inventor
Кай Ма
Чэньцзе Юй
Original Assignee
Зте Корпорейшн
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 Зте Корпорейшн filed Critical Зте Корпорейшн
Publication of RU2012128982A publication Critical patent/RU2012128982A/en
Application granted granted Critical
Publication of RU2546565C2 publication Critical patent/RU2546565C2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

FIELD: physics, computer engineering.
SUBSTANCE: invention relates to the method of reader operation specification assignment (SOR) and the reader. The method includes the following stages, according to which: the reader creates SOR (S202); the reader transfers SOR from one state into another, and the set of states includes disconnected, remote, passive states, readiness state and active state when SOR is in a passive state, the reader considers that the initialization condition is valid, the SOR has no advantage of execution and the reader resources are busy, the reader transfers SOR into readiness state; when SOR is in readiness state, the reader considers that its resources are free, the reader transfers SOR to active state and executes SOR (S204).
EFFECT: improvement of the reader functioning when specifications are conflicting, and prevents loss by the initiated specifications of possibility of execution.
9 cl, 6 dwg

Description

Настоящее изобретение относится к области средств связи, а именно к способу назначения спецификаций операций ридера (СОР) и ридеру.The present invention relates to the field of communications, and in particular to a method for assigning specifications of a reader operation (COP) and a reader.

Уровень техникиState of the art

Низкоуровневый протокол для ридеров (НУПР) был выпущен в апреле 2007 компанией Electronic Product Code global (EPC global), которая является некоммерческой организацией по стандартизации, основанной совместно двумя крупными организациями по стандартизации EAN и UCC. Этот протокол обеспечивает возможность контроля операций радиоинтерфейса и параметров команд протокола радиоинтерфейса, и предоставляет возможность доступа к низкоуровневым операциям чтения.The Low Level Protocol for Readers (ISM) was released in April 2007 by Electronic Product Code global (EPC global), a nonprofit standardization organization founded jointly by two major standardization organizations, EAN and UCC. This protocol provides the ability to control the operations of the radio interface and the parameters of the commands of the protocol of the radio interface, and provides access to low-level read operations.

В низкоуровневом протоколе для ридеров СОР, которая содержит четыре состояния -удаленное, отключенное, пассивное, активное, в основном используется для операций контроля счета и радиочастотного мониторинга ридера. На Фиг.1 представлена схема, поясняющая процесс смены состояний СОР в соответствии с применяемыми в настоящее время технологиями НУПР. При создании новой СОР, ее состоянием является отключенное состояние. При получении инструкции активации (ENABLE_ROSPEC), состояние СОР становится пассивным. В этот момент СОР ожидает условие инициации, которым может быть входной сигнал общего назначения, сигнал таймера или инструкция. Когда приходит условие активации СОР, ее состояние переходит в активное состояние для выполнения операций счета и радиочастотного мониторинга. После этого состояние СОР возвращается в пассивное, и ожидается следующее условие активации. Каждая СОР имеет свой атрибут приоритета, и СОР с более высоким приоритетом исполняется в первую очередь.In the low-level protocol for СOP readers, which contains four states - remote, disabled, passive, active, it is mainly used for account control operations and radio frequency monitoring of the reader. Figure 1 presents a diagram explaining the process of changing the state of the COP in accordance with the currently used technologies of SRM. When creating a new COP, its state is a disabled state. Upon receipt of the activation instruction (ENABLE_ROSPEC), the state of the COP becomes passive. At this point, the COP expects an initiation condition, which may be a general-purpose input signal, a timer signal, or an instruction. When the condition for activation of the COP comes, its state goes into an active state for performing counting operations and radio frequency monitoring. After this, the COP state returns to passive, and the next activation condition is expected. Each COP has its own priority attribute, and a COP with a higher priority is executed first.

Существующие технологии имеют следующую проблему: в наборе переходов состояний, показанных на Фиг.1, неизбежен конфликт, когда одна СОР получает условие активации в пассивном состоянии, она не получает преимущество исполнения, если непосредственно предшествующая СОР с более высоким приоритетом еще занимает ресурсы ридера, и такая ситуация не может быть разрешена в существующем НУПР.Existing technologies have the following problem: in the set of state transitions shown in Fig. 1, a conflict is inevitable when one COP gets an activation condition in a passive state, it does not get an execution advantage if the immediately preceding COP with a higher priority still takes up reader resources, and such a situation cannot be resolved in the existing SLM.

Сущность изобретенияSUMMARY OF THE INVENTION

Настоящее изобретение предоставляет ридер и способ диспетчеризации спецификаций операций ридера (СОР) для решения описанной выше проблемы, когда непосредственно предшествующая СОР с более высоким приоритетом еще занимает ресурсы ридера, СОР с более низким приоритетом не получает приоритета при получении условия инициализации.The present invention provides a reader and a method for dispatching reader operation specification (COP) specifications to solve the problem described above, when the immediately preceding COP with a higher priority still takes up reader resources, a COP with a lower priority does not receive priority upon receipt of an initialization condition.

В свете вышесказанного предоставляется способ назначений СОР в соответствии с подходом настоящего изобретения.In light of the foregoing, a method for assigning COPs in accordance with the approach of the present invention is provided.

Способ назначений СОР включает следующее: ридер создает СОР; ридер переводит СОР из одного состояния в другое; набор состояний включает отключенное, удаленное, пассивное состояния, состояние готовности и активное состояние, причем, когда СОР, находясь в пассивном состоянии, получает условие инициализации и не имеет преимущества исполнения, и ресурсы ридера заняты, то ридер переводит СОР в состояние готовности; когда ресурсы ридера освобождаются, ридер переводит СОР из состояния готовности в активное состояние и исполняет СОР.The method of assigning a COP includes the following: a reader creates a COP; the reader transfers the COP from one state to another; a set of states includes a disconnected, remote, passive state, a ready state, and an active state, and when the COP, being in a passive state, receives an initialization condition and does not have an execution advantage, and the reader resources are busy, the reader puts the COP in a ready state; when the reader resources are freed, the reader transfers the COP from the ready state to the active state and executes the COP.

Предпочтительно, чтобы этап планировки ридером изменений состояний СОР также включал следующее: при создании СОР, ридер переводит СОР в отключенное состояние; когда СОР находится в отключенном состоянии, ридер в соответствии с полученной инструкцией активации СОР переводит СОР в пассивное состояние; когда СОР находится в пассивном состоянии, ридер в соответствии с полученной инструкцией деактивации СОР переводит СОР в отключенное состояние; когда СОР находится в отключенном, пассивном состояниях, в состоянии готовности или в активном состоянии, ридер после удаления СОР, переводит СОР в удаленное состояние; когда СОР находится в состоянии готовности, если ридер считает, что пришло условие окончания СОР, ридер переводит СОР в пассивное состояние; когда СОР находится в пассивном состоянии, если ридер считает, что пришло условие инициализации СОР и ресурсы ридера свободны или СОР имеет преимущество выполнения, ридер переводит СОР в активное состояние; когда СОРPreferably, the stage of planning by the reader for changes in the state of the COP is also to include the following: when creating the COP, the reader puts the COP in the off state; when the COP is in the off state, the reader, in accordance with the received instructions for activating the COP, puts the COP in a passive state; when the COP is in a passive state, the reader, in accordance with the received instructions for deactivating the COP, puts the COP in an off state; when the COP is in a disconnected, passive state, in a ready state or in an active state, the reader, after removing the COP, transfers the COP to a remote state; when the COP is in a ready state, if the reader believes that the condition for the end of the COP has arrived, the reader puts the COP in a passive state; when the COP is in a passive state, if the reader considers that the condition for initializing the COP has arrived and the resources of the reader are free or the COP has an execution advantage, the reader puts the COP in an active state; when COP

находится в активном состоянии, если ридер считает, что СОР выполнена, или ему необходимы ресурсы, или пришло условие окончания СОР, ридер переводит СОР в пассивное состояние.It is in an active state, if the reader believes that the COP is completed, or it needs resources, or the condition for the end of the COP is received, the reader puts the COP in a passive state.

Предпочтительно, чтобы образ действий ридера при решении имеет ли СОР преимущество выполнения включал следующее: если другая СОР, имеющая тот же или более высокий приоритет, занимает ресурсы ридера, ридер считает, что СОР не имеет преимущества выполнения; если другая СОР, имеющая более низкий высокий приоритет, занимает ресурсы ридера, ридер считает, что СОР имеет преимущества выполнения.It is preferable that the reader’s course of action when deciding whether the COP has the execution advantage include the following: if another COP having the same or higher priority takes up the reader’s resources, the reader considers that the COP has no execution advantage; if another COP that has a lower priority takes up the reader’s resources, the reader considers that the COP has performance advantages.

Предпочтительно, чтобы этап планировки ридером изменений состояний СОР также включал следующее: когда СОР находится в активном состоянии, если ридер считает, что снова пришло условие инициализации СОР, ридер увеличивает на 1 значение счетчика условий инициализации, если ридер считает, что текущее исполнение СОР завершено, то ридер исполняет СОР снова, причем количество исполнения СОР равно значению счетчика условий инициализации.It is preferable that the stage of planning by the reader for changes in the state of the COP should also include the following: when the COP is in an active state, if the reader believes that the initialization condition for the COP has again arrived, the reader increases by 1 the value of the counter of initialization conditions, if the reader considers that the current execution of the COP is completed, then the reader executes the COP again, and the amount of COP execution is equal to the value of the initialization conditions counter.

Предпочтительно, чтобы перед этапом увеличения значения счетчика условий инициализации, способ также включал следующее: ридер определяет, достигло ли значение счетчика условий инициализации заранее установленного порога; если порог достигнут, то ридер игнорирует условие инициализации, которое приходит снова.Preferably, before the step of increasing the value of the counter of the initialization conditions, the method also includes the following: the reader determines whether the counter value of the initialization conditions has reached a predetermined threshold; if the threshold is reached, then the reader ignores the initialization condition, which comes again.

Предпочтительно, чтобы этап планировки ридером изменений состояний СОР также включал следующее: когда СОР находится в состоянии готовности или активном состоянии, если ридер считает, что снова пришло условие окончания СОР, ридер уменьшает на 1 значение счетчика условий инициализации.It is preferable that the stage of planning by the reader for changes in the state of the COP should also include the following: when the COP is in a ready state or in an active state, if the reader considers that the condition for the end of the COP has again arrived, the reader decreases the value of the counter of initialization conditions by 1.

Предпочтительно, чтобы атрибут, приоритет и текущее состояние СОР сохранялись в энергонезависимой среде ридера, и этап планировки ридером изменений состояний СОР также включал рестарт ридера; если СОР находится в состоянии готовности или активном состоянии перед рестартом ридера, ридер после своего рестарта переводит СОР сразу в пассивное состояние; если СОР находится в отключенном, пассивном или удаленном состояниях перед рестартом ридера, ридер после своего рестарта переводит СОР в то состояние, в котором СОР была до рестарта ридера.Preferably, the attribute, priority, and current state of the COP will be stored in a non-volatile environment of the reader, and the stage of planning by the reader for changes in the status of the COP will also include restarting the reader; if the COP is in a ready state or an active state before restarting the reader, the reader after its restart puts the COP in a passive state immediately; if the COP is in a disconnected, passive or remote state before the reader is restarted, the reader, after its restart, transfers the COP to the state in which the COP was before the reader restarted.

Предпочтительно, чтобы множество СОР создавалось в ридере, и ридерPreferably, a plurality of COPs are created in the reader and the reader

обеспечивался очередью отключенного состояния, соответствующей отключенному состоянию, очередью пассивного состояния, соответствующей пассивному состоянию, и очередью состояния готовности, соответствующей состоянию готовности; и чтобы этап планировки ридером изменений состояний СОР также включал следующее: когда ридер сознает одну СОР, ридер помещает СОР в очередь отключенного состояния; когда СОР находится в очереди отключенного состояния, ридер в соответствии с полученной инструкцией активации СОР забирает СОР из очереди отключенного состояния и помещает СОР в очередь пассивного состояния; когда СОР находится в очереди пассивного состояния, ридер в соответствии с инструкцией деактивации СОР, забирает СОР из очереди пассивного состояния и помещает СОР в очередь отключенного состояния; когда СОР находится в очереди пассивного состояния, если ридер считает, что пришло условие инициализации СОР, СОР имеет преимущество исполнения и ресурсы ридера заняты, то ридер забирает СОР из очереди пассивного состояния и помещает СОР в очередь состояния готовности; когда СОР находится в очереди состояния готовности, если ридер считает, что пришло условие окончания СОР, то ридер забирает СОР из очереди состояния готовности и помещает СОР в очередь пассивного состояния; когда СОР находится в очереди пассивного состояния, если ридер считает, что пришло условие инициализации СОР и ресурсы ридера свободны, или СОР имеет преимущество исполнения, то ридер забирает СОР из очереди пассивного состояния и исполняет СОР; когда ридер считает, что его ресурсы свободны, ридер забирает СОР с наибольшим приоритетом из очереди состояния готовности и исполняет СОР; когда ридер считает, что исполнение СОР завершено, или ресурсы ридера необходимы для СОР с более высоким приоритетом, или пришло условие завершения СОР, ридер помещает СОР в очередь пассивного состояния.provided with a disabled state queue corresponding to the disabled state, a passive state queue corresponding to the passive state, and a ready state queue corresponding to the ready state; and so that the reader’s planning stage for changes in the state of the COP will also include the following: when the reader recognizes one COP, the reader places the COP in the disabled state queue; when the COP is in the disabled state queue, the reader, in accordance with the received activation instruction, takes the COP from the disabled state queue and puts the COP in the passive state queue; when the COP is in the passive state queue, the reader, in accordance with the instructions for deactivating the COP, takes the COP from the passive state queue and puts the COP in the disabled state queue; when the СOP is in the passive state queue, if the reader considers that the СOP initialization condition has arrived, the СOP has a performance advantage and the reader resources are busy, then the reader takes the СОР from the passive state queue and puts the СOP in the standby state queue; when the COP is in the queue of the ready state, if the reader considers that the condition for the end of the COP is arrived, the reader takes the COP from the queue of the ready state and puts the COP in the passive state queue; when the СOP is in the passive state queue, if the reader considers that the СOP initialization condition has arrived and the resources of the reader are free, or the СOP has a performance advantage, the reader takes the ССО from the passive state queue and executes the ССО; when the reader believes that its resources are free, the reader takes the COP with the highest priority from the ready state queue and executes the COP; when the reader considers that the COP is completed, or the reader’s resources are needed for the COP with a higher priority, or the condition for the completion of the COP is received, the reader puts the COP in a passive state queue.

В свете вышесказанного предоставляется ридер в соответствии с подходом настоящего изобретения.In light of the foregoing, a reader is provided in accordance with the approach of the present invention.

Ридер в соответствии с настоящим изобретением содержит:The reader in accordance with the present invention contains:

модуль создания СОР, предназначенный для создания СОР;a COP module for creating a COP;

модуль назначений, предназначенный для планирования перехода СОР из одного состояния в другое; набор состояний включает отключенное, удаленное, пассивноеassignment module for planning the transition of COP from one state to another; set of states includes disabled, remote, passive

состояния, состояние готовности и активное состояние, причемstate, state of readiness and active state, and

когда СОР находится в пассивном состоянии, если пришло условие инициализации СОР, СОР не имеет преимущества исполнения и ресурсы ридера заняты, модуль назначений переводит СОР в состояние готовности; когда СОР находится в состоянии готовности, если ресурсы ридера свободны, то модуль назначений переводит СОР в активное состояние и исполняет СОР.when the COP is in a passive state, if the condition for the initialization of the COP has come, the COP has no performance advantage and the reader resources are busy, the assignment module puts the COP in a ready state; when the COP is in a ready state, if the reader resources are free, then the assignment module puts the COP in an active state and executes the COP.

Предпочтительно, чтобы ридер также содержал: модуль удаления, предназначенный для удаления СОР;Preferably, the reader also contains: a removal module for removing COP;

когда модуль создания СОР создает СОР, модуль назначений переводит СОР в отключенное состояние; когда СОР находится в отключенном состоянии модуль назначений переводит СОР в пассивное состояние в соответствии с полученной инструкцией активации СОР; когда СОР находится в пассивном состоянии модуль назначений переводит СОР в отключенное состояние в соответствии с полученной инструкцией деактивации СОР; когда СОР находится в отключенном, пассивном состояниях, состоянии готовности или активном состоянии, модуль назначений переводит СОР в удаленное состояние после того как модуль удаления удалил СОР; когда СОР находится в состоянии готовности, если пришло условие окончания СОР, модуль назначений переводит СОР в пассивное состояние; когда СОР находится в пассивном состоянии, если пришло условие инициализации СОР и ресурсы ридера свободны или СОР имеет преимущество исполнения, модуль назначений переводит СОР в активное состояние; когда СОР находится в активном состоянии, и если СОР выполнена, или ресурсы ридера необходимы СОР с более высоким приоритетом, или пришло условие окончания СОР, модуль назначений переводит СОР в пассивное состояние.when the COP module creates the COP, the assignment module puts the COP in the off state; when the COP is in the off state, the assignment module puts the COP in a passive state in accordance with the received instructions for activating the COP; when the COP is in a passive state, the assignment module puts the COP in an off state in accordance with the received instruction to deactivate the COP; when the COP is in an off, passive, ready, or active state, the assignment module puts the COP in a remote state after the removal module has removed the COP; when the COP is in a ready state, if the condition for the end of the COP has come, the assignment module puts the COP in a passive state; when the COP is in a passive state, if the condition for the initialization of the COP has come and the resources of the reader are free or the COP has a performance advantage, the assignment module puts the COP in an active state; when the COP is in an active state, and if the COP is completed, or the resources of the reader need a COP with a higher priority, or the condition for the end of the COP is received, the assignment module puts the COP in a passive state.

Так как добавлено состояние готовности, когда приходит условие инициализации СОР в пассивном состоянии, если предыдущая СОР с большим приоритетом еще занимает ресурсы ридера, СОР в пассивном состоянии сначала переводится в состояние готовности, и переводится в активное состояние, когда ресурсы ридера свободны. Настоящее изобретение решает проблемы современных технологий, когда при получении условия инициализации СОР, она не получает преимущество исполнения, если непосредственно предшествующая СОР с более высоким приоритетом еще занимает ресурсы ридера, и нетуSince the ready state is added, when the condition for initializing the COP in a passive state arrives, if the previous COP with a high priority still occupies the reader's resources, the COP in a passive state is first put into a ready state and is put into an active state when the reader resources are free. The present invention solves the problems of modern technologies, when upon receipt of the initialization condition for the COP, it does not get the advantage of execution if the immediately preceding COP with a higher priority still occupies the reader’s resources, and there is no

решения, что делать в такой ситуации. Решение настоящего изобретения улучшает функционирование ридера, когда спецификации конфликтуют, и предотвращает потерю последующими спецификациями возможности исполнения.Decisions what to do in such a situation. The solution of the present invention improves the functioning of the reader when specifications conflict, and prevents subsequent specifications from losing performance.

Краткое описание чертежейBrief Description of the Drawings

Чертежи, предоставленные для дальнейшего понимания настоящего изобретения и формирования части спецификации, используются скорее для объяснения настоящего изобретения совместно с его реализациями, чем для его ограничения.The drawings provided to further understand the present invention and form part of the specification are used to explain the present invention in conjunction with its implementations rather than to limit it.

Фиг.1 - набор переходов между состояниями СОР в соответствии с существующей технологией НУПР;Figure 1 - a set of transitions between the states of the COP in accordance with the existing technology LPR;

Фиг.2 - блок схема, поясняющая способ назначений СОР в соответствии с реализацией настоящего изобретения;FIG. 2 is a flowchart illustrating a method for assigning a COP in accordance with an embodiment of the present invention; FIG.

Фиг.3 - набор переходов между состояниями СОР в соответствии с предпочтительной реализацией настоящего изобретения;Figure 3 is a set of transitions between the states of the COP in accordance with a preferred implementation of the present invention;

Фиг.4 - диаграмма состояний СОР до и после рестарта ридера в соответствии с предпочтительной реализацией настоящего изобретения;4 is a state diagram of a COP before and after restarting a reader in accordance with a preferred embodiment of the present invention;

Фиг.5 - схема реализации назначений состояний СОР в соответствии с предпочтительной реализацией настоящего изобретения;5 is a diagram of the implementation of state assignments of COP in accordance with a preferred implementation of the present invention;

Фиг.6 - структурная диаграмма ридера в соответствии с реализацией настоящего изобретения;6 is a structural diagram of a reader in accordance with the implementation of the present invention;

Примеры осуществления изобретенияExamples of carrying out the invention

Настоящее изобретение детально описывается ниже в отношении сопровождающих чертежей и реализаций. Следует пояснить, что реализации и характеристики в реализациях могут быть взаимно соединены до тех пор, пока это возможно.The present invention is described in detail below with respect to the accompanying drawings and implementations. It should be clarified that implementations and characteristics in implementations can be interconnected as long as possible.

На Фиг.2 представлена блок схема, поясняющая способ назначений СОР в соответствии с реализацией настоящего изобретения; способ включает следующие этапыFigure 2 presents a block diagram explaining the method of assigning COP in accordance with the implementation of the present invention; the method includes the following steps

Этап S202: ридер создает СОР;Step S202: the reader creates a COP;

Этап S204: ридер назначает смену состояния СОР (как показано на Фиг.3); набор состояний включает отключенное, удаленное, пассивное состояния, состояние готовностиStep S204: the reader assigns a change of state to the COP (as shown in FIG. 3); set of states includes disconnected, remote, passive states, ready state

• и активное состояние, причем• and an active state, and

когда СОР, находясь в пассивном состоянии, получает условие инициализации и не имеет преимущества, и ресурсы ридера заняты, то ридер переводит СОР в состояние готовности;when the COP, being in a passive state, receives an initialization condition and does not have an advantage, and the reader resources are busy, the reader puts the COP in a ready state;

когда ресурсы ридера освобождаются, ридер переводит СОР из состояния готовности в активное состояние и исполняет СОР.when the reader resources are freed, the reader transfers the COP from the ready state to the active state and executes the COP.

В соответствии с реализацией изобретения, так как введено состояние готовности, то когда приходит условие инициализации СОР, которое находится в пассивном состоянии, если предыдущая СОР с более высоким приоритетом еще занимает ресурсы ридера, СОР в пассивном состоянии может сначала перейти в состояние готовности, и по освобождении ресурсов ридера перейти в активное состояние.In accordance with the implementation of the invention, since the ready state is entered, when the condition for initializing the COP is in a passive state, if the previous COP with a higher priority still occupies the reader's resources, the COP in a passive state can first go into a ready state, and release the reader resources to go into an active state.

Настоящее изобретение решает проблемы современных технологий, когда при получении условия инициализации СОР, она не получает преимущество исполнения, если непосредственно предшествующая СОР с более высоким приоритетом еще занимает ресурсы ридера, и нету решения, что делать в такой ситуации. Введением промежуточного состояния готовности СОР, настоящее изобретения, основываясь на существующем стандарте НУПР, улучшает функционирование ридера, когда спецификации конфликтуют, и предотвращает потерю последующими спецификациями возможности исполнения.The present invention solves the problems of modern technologies, when upon receipt of the initialization condition for the COP, it does not get the advantage of execution if the immediately preceding COP with a higher priority still occupies the reader's resources, and there is no decision what to do in such a situation. By introducing an intermediate state of readiness for COP, the present invention, based on the existing ISM standard, improves reader performance when specifications conflict, and prevents subsequent specifications from losing performance.

Предпочтительно, чтобы как показано на Фиг.3 этап S204 включал:Preferably, as shown in FIG. 3, step S204 includes:

при создании СОР, ридер переводит СОР в отключенное состояние;when creating a COP, the reader puts the COP in an off state;

когда СОР находится в отключенном состоянии, ридер в соответствии с полученной инструкцией активации СОР (ENABLE_ROSPEC) переводит СОР в пассивное состояние;when the COP is in the off state, the reader, in accordance with the received COP activation instruction (ENABLE_ROSPEC), puts the COP in a passive state;

когда СОР находится в пассивном состоянии, ридер в соответствии с полученной инструкцией деактивации СОР (DISABLE_ROSPEC) переводит СОР в отключенное состояние;when the COP is in a passive state, the reader, in accordance with the received instruction to deactivate the COP (DISABLE_ROSPEC), puts the COP in an off state;

когда СОР находится в отключенном, пассивном состояниях, в состоянии готовности или в активном состоянии, ридер после удаления СОР, переводит СОР в удаленное состояние;when the COP is in a disconnected, passive state, in a ready state or in an active state, the reader, after removing the COP, transfers the COP to a remote state;

когда СОР находится в состоянии готовности, если ридер считает, что пришло условие окончания СОР, ридер переводит СОР в пассивное состояние;when the COP is in a ready state, if the reader believes that the condition for the end of the COP has arrived, the reader puts the COP in a passive state;

когда СОР находится в пассивном состоянии, если ридер считает, что пришло условие инициализации СОР и ресурсы ридера свободны или СОР имеет преимущество выполнения, ридер переводит СОР в активное состояние;when the COP is in a passive state, if the reader considers that the condition for initializing the COP has arrived and the resources of the reader are free or the COP has an execution advantage, the reader puts the COP in an active state;

когда СОР находится в активном состоянии, если ридер считает, что СОР выполнена, или ему необходимы ресурсы, или пришло условие окончания СОР, ридер переводит СОР в пассивное состояние.when the COP is in an active state, if the reader believes that the COP is completed, or it needs resources, or the condition for the end of the COP is received, the reader puts the COP in a passive state.

Выше, способ определения ридером имеет ли СОР преимущество исполнения или нет, заключается в следующем:Above, the way the reader determines whether the COP has a performance advantage or not is as follows:

если другая СОР, имеющая тот же или более высокий приоритет, занимает ресурсы ридера, то ридер считает, что данная СОР не имеет преимущества исполнения;if another COP, having the same or higher priority, occupies the resources of the reader, then the reader considers that this COP has no performance advantage;

если другая СОР, имеющая более низкий приоритет, занимает ресурсы ридера, то ридер считает, что данная СОР имеет преимущество исполнения.if another COP that has a lower priority takes up the resources of the reader, then the reader considers that this COP has a performance advantage.

Это предпочтительное осуществление изобретения предоставляет особую реализацию решения всех переходом между состояниями СОР, вследствие добавления состояния готовности. Как показано на Фиг.3, состояние готовности введено между пассивным и активным состояниями СОР. Когда инициализированной СОР не удается занять ресурсы ридера (т.е. процессор ридера) чтобы перейти в активное состояние, СОР переходит в состояние готовности и ожидает, когда ресурсы освободятся, чтобы перейти в активное состояние и быть исполненной. Для совместимости с интерфейсом существующего стандартного НУПР состояние готовности является скрытым состоянием. То есть состояние уже является активным с точки зрения очереди состояния, но исполнение еще реально не началось. Однако, с точки зрения отклика состояние, это то же самое, что и активное состояние, т.е. при получении сообщения об удалении, СОР переходит в удаленное состояние (т.е. СОР удаляется). Когда приходит условие окончания СОР, подобное условию окончания СОР в активном состоянии, СОР переходит в пассивное состояние, даже если СОР не была исполнена. Модель предоставляет дополнительную технологию разрешения конфликта между различными СОР без внешних изменений исходного интерфейса сообщений протокола.This preferred embodiment of the invention provides a particular implementation of the solution to all transitions between the states of the COP due to the addition of a ready state. As shown in FIG. 3, a ready state is entered between the passive and active states of the COP. When the initialized COP fails to take up the resources of the reader (i.e., the processor of the reader) in order to enter the active state, the COP enters the ready state and waits for the resources to free up in order to enter the active state and be executed. For compatibility with the interface of an existing standard SSD, the ready state is a hidden state. That is, the state is already active from the point of view of the state queue, but execution has not really begun yet. However, from the point of view of the response, a state is the same as an active state, i.e. upon receipt of a deletion message, the COP is transferred to the remote state (i.e., the COP is deleted). When the condition for the end of the COP comes in, similar to the condition for the end of the COP in the active state, the COP goes into a passive state, even if the COP was not executed. The model provides additional technology for resolving conflict between different COPs without external changes to the original protocol message interface.

Предпочтительно, чтобы этап S204 также включал:Preferably, step S204 also includes:

когда СОР находится в состоянии готовности или активном состоянии, если ридерwhen the COP is in a ready state or an active state if the reader

считает, что снова пришло условие инициализации СОР, ридер увеличивает на 1 значение счетчика условий инициализации;considers that the СOP initialization condition has come again, the reader increases the value of the counter of initialization conditions by 1;

если ридер считает, что текущее исполнение СОР завершено, то ридер исполняет СОР снова, причем количество исполнения СОР равно значению счетчика условий инициализации. Если СОР, имеющая более высокий приоритет, инициализируется для исполнения, преимущество исполнения сохранится и в процессе повтора исполнения.if the reader considers that the current execution of the COP is completed, then the reader performs the COP again, and the amount of COP performance is equal to the value of the initialization conditions counter. If a COP with a higher priority is initialized for execution, the advantage of the execution will continue in the process of repeating the execution.

Выше, перед тем как ридер увеличит значение счетчика условий инициализации, способ может также включать следующие этапы:Above, before the reader increases the value of the initialization conditions counter, the method may also include the following steps:

ридер определяет, достигло ли значение счетчика условий инициализации заранее установленного порога;the reader determines whether the counter value of the initialization conditions has reached a predetermined threshold;

если порог достигнут, то ридер игнорирует условие инициализации, которое приходит снова.if the threshold is reached, then the reader ignores the initialization condition, which comes again.

В данной реализации накопление условий инициализации позволяет СОР полностью реагировать на каждое условие инициализации. Когда приходит условие инициализации, такое как GPI сигнал или начальное сообщение, если СОР находится в пассивном состоянии, то СОР исполняется или переходит в состояние готовности. Однако, если СОР, находясь в состоянии готовности или активном состоянии, снова получает условие инициализации, что не описано в существующем НУПР, ожидается, что эта инициализация может быть сохранена и отложена для последующего исполненной, вместо игнорирования многих условий инициализации. Для ридера выполняется расширенная конфигурация данной реализации, которая позволяет накапливать условия инициализации, т.е. если СОР, находясь в состоянии готовности или активном состоянии, снова получает условие инициализации, СОР будет снова выполнена непосредственно после текущего исполнения, только если не придет новая СОР с более высоким приоритетом. Условия инициализации могут накапливаться, также максимальное число условий инициализации (выше, порог) может изменяться, и условия инициализации не будут накапливаться при превышении порога.In this implementation, the accumulation of initialization conditions allows the COP to fully respond to each initialization condition. When an initialization condition such as a GPI signal or an initial message arrives, if the COP is in a passive state, then the COP is executed or goes into a ready state. However, if the COP is in the ready state or active state and again receives the initialization condition, which is not described in the existing LPR, it is expected that this initialization can be saved and delayed for subsequent execution, instead of ignoring many initialization conditions. For the reader, an extended configuration of this implementation is performed, which allows you to accumulate initialization conditions, i.e. if the COP is in the ready state or active state and again receives the initialization condition, the COP will be executed again immediately after the current execution, only if a new COP with a higher priority does not arrive. The initialization conditions can accumulate, also the maximum number of initialization conditions (above the threshold) can change, and the initialization conditions will not accumulate if the threshold is exceeded.

Предпочтительно, чтобы этап S204 также включал:Preferably, step S204 also includes:

когда СОР находится в состоянии готовности или активном состоянии, если ридер считает, что снова пришло условие окончания СОР, ридер уменьшает на 1 значениеwhen the COP is in a ready state or an active state, if the reader believes that the condition for the end of the COP has come again, the reader decreases by 1 value

счетчика условий инициализации.initialization conditions counter.

На основе накопления условий инициализации, данная реализация изобретения предлагает накопление условий окончания. Если определенная СОР накопила п условий инициализации, то при получении условия окончания от п отнимается 1. Когда п становится равным 0, то СОР переходит в пассивное состояние.Based on the accumulation of initialization conditions, this implementation of the invention proposes the accumulation of end conditions. If a certain COP has accumulated n initialization conditions, then upon receipt of the termination condition, subtracts from n. When n becomes equal to 0, then the COP goes into a passive state.

Предпочтительно, чтобы, как показано на Фиг.4, атрибут, приоритет и текущее состояние СОР сохранялись в энергонезависимой среде ридера. Этап S204 также включает:Preferably, as shown in FIG. 4, the attribute, priority and current status of the COP is stored in a non-volatile reader environment. Step S204 also includes:

рестарт ридера;restart reader;

если СОР находится в состоянии готовности или активном состоянии перед рестартом ридера, ридер после своего рестарта переводит СОР сразу в пассивное состояние; одновременно СОР ожидает прихода условия инициализации, например, условие инициализации периодично, и СОР автоматически начинает работать, когда приходит условие инициализации;if the COP is in a ready state or an active state before restarting the reader, the reader after its restart puts the COP in a passive state immediately; at the same time, the COP awaits the initialization condition, for example, the initialization condition is periodic, and the COP automatically starts when the initialization condition arrives;

если СОР находится в отключенном, пассивном или удаленном состояниях перед рестартом ридера, ридер после своего рестарта переводит СОР в то состояние, в котором СОР была до рестарта ридера.if the COP is in a disconnected, passive or remote state before the reader is restarted, the reader, after its restart, transfers the COP to the state in which the COP was before the reader restarted.

В данном осуществлении изобретения может быть реализованы персистентность СОР и разумное восстановление рабочего состояния после плановой или случайной перезагрузки. Случайная перезагрузка, например выключение питания, может возникнуть в течение исполнения СОР, для избежание переконфигурирования СОР при каждой перезагрузке, реализация настоящего изобретения предлагает решение персистентности СОР, т.е. определение атрибута и исполняемое состояние (т.е. текущее состояние) СОР могут быть сохранены в энергонезависимой среде. После перезагрузки ридера, СОР, которая до этого была в состоянии готовности или активном состоянии, перейдет в пассивное состояние и будет ожидать условие инициализации. СОР в других состояниях сохранит свое состояние.In this embodiment of the invention, the persistence of the COP and a reasonable restoration of the working state after a planned or accidental reboot can be realized. An accidental reboot, such as turning off the power, may occur during the execution of the COP, in order to avoid reconfiguration of the COP during each reboot, the implementation of the present invention provides a solution to the persistence of the COP, i.e. attribute definition and executable state (i.e., current state) of the COP can be stored in a non-volatile environment. After the reader is rebooted, the COP, which was previously in a ready state or an active state, will go into a passive state and will wait for an initialization condition. COP in other states will retain its state.

На Фиг.5 представлена схема реализации назначений состояний СОР в соответствии с предпочтительной реализацией настоящего изобретения;Figure 5 presents a diagram of the implementation of state assignments of COP in accordance with a preferred implementation of the present invention;

Как показано на Фиг.5, множество СОР создаются в ридере, и ридер обеспечиваетсяAs shown in FIG. 5, a plurality of COPs are created in a reader, and a reader is provided.

очередью отключенного состояния, соответствующей отключенному состоянию, очередью пассивного состояния, соответствующей пассивному состоянию, и очередью состояния готовности, соответствующей состоянию готовностиthe disabled state queue corresponding to the disabled state, the passive state queue corresponding to the passive state, and the ready state queue corresponding to the ready state

Этап S204 также включает:Step S204 also includes:

когда ридер сознает одну СОР, ридер помещает СОР в очередь отключенного состояния;when the reader recognizes one COP, the reader places the COP in the disabled state queue;

когда СОР находится в очереди отключенного состояния, ридер в соответствии с полученной инструкцией активации СОР забирает СОР из очереди отключенного состояния и помещает СОР в очередь пассивного состояния;when the COP is in the disabled state queue, the reader, in accordance with the received activation instruction, takes the COP from the disabled state queue and puts the COP in the passive state queue;

когда СОР находится в очереди пассивного состояния, ридер в соответствии с инструкцией деактивации СОР, забирает СОР из очереди пассивного состояния и помещает СОР в очередь отключенного состояния;when the COP is in the passive state queue, the reader, in accordance with the instructions for deactivating the COP, takes the COP from the passive state queue and puts the COP in the disabled state queue;

когда СОР находится в очереди пассивного состояния, если ридер считает, что пришло условие инициализации СОР, СОР имеет преимущество исполнения и ресурсы ридера заняты, то ридер забирает СОР из очереди пассивного состояния и помещает СОР в очередь состояния готовности;when the СOP is in the passive state queue, if the reader considers that the СOP initialization condition has arrived, the СOP has a performance advantage and the reader resources are busy, then the reader takes the СОР from the passive state queue and puts the СOP in the standby state queue;

когда СОР находится в очереди состояния готовности, если ридер считает, что пришло условие окончания СОР, то ридер забирает СОР из очереди состояния готовности и помещает СОР в очередь пассивного состояния;when the COP is in the queue of the ready state, if the reader considers that the condition for the end of the COP is arrived, the reader takes the COP from the queue of the ready state and puts the COP in the passive state queue;

когда СОР находится в очереди пассивного состояния, если ридер считает, что пришло условие инициализации СОР и ресурсы ридера свободны, или СОР имеет преимущество исполнения, то ридер забирает СОР из очереди пассивного состояния и исполняет СОР;when the СOP is in the passive state queue, if the reader considers that the СOP initialization condition has arrived and the resources of the reader are free, or the СOP has a performance advantage, the reader takes the ССО from the passive state queue and executes the ССО;

когда ридер считает, что его ресурсы свободны, ридер забирает СОР с наибольшим приоритетом из очереди состояния готовности и исполняет СОР;when the reader believes that its resources are free, the reader takes the COP with the highest priority from the ready state queue and executes the COP;

когда ридер считает, что исполнение СОР завершено, или ресурсы ридера необходимы для СОР с более высоким приоритетом, или пришло условие завершения СОР, ридер помещает СОР в очередь пассивного состояния.when the reader considers that the COP is completed, or the reader’s resources are needed for the COP with a higher priority, or the condition for the completion of the COP is received, the reader puts the COP in a passive state queue.

В реализации настоящего изобретения в качестве структуры данных используются очереди для сохранения СОР в НУПР и реализации завершенного решения назначений СОР, тем самым решая проблемы существующих технологий, которые не способны обеспечить характерные способы назначений и детальные способы работы. Одновременно может существовать множество СОР в различных состояниях, и как показано на Фиг.5, управление этими СОР осуществляется при помощи очередей в соответствии с предпочтительной реализацией. Существует три очереди в системе назначений спецификаций ридера: очередь отключенного состояния, очередь пассивного состояния, очередь состояния готовности. Когда новая СОР добавляется ридеру, ридер первоначально помещает СОР в отключенное состояние. При получении инструкции активации ридер переводит СОР из очереди отключенного состояния в очередь пассивного состояния. При получении условия инициализации СОР, находящейся в пассивном состоянии, если ридер считает, что СОР с большим приоритетом занимает ресурсы ридера, данная СОР помещается в очередь состояния готовности. СОР в состоянии готовности расположены в соответствии со своим приоритетов, от большего к меньшему. После завершения работы СОР в активном состоянии, и освобождения ресурсов ридера, исполняется первая СОР в очереди состояния готовности. Если в процессе ожидания приходит условие окончания определенной СОР или число накопленных условий инициализации становится равным нулю, СОР снова переводится из очереди состояния готовности в очередь пассивного состояния.In the implementation of the present invention, queues are used as the data structure for storing the RNS in the NLR and implementing the complete solution of the RLR appointments, thereby solving the problems of existing technologies that are not able to provide typical methods of assignments and detailed ways of working. At the same time, there can be many COPs in various states, and as shown in FIG. 5, these COPs are controlled by queues in accordance with a preferred embodiment. There are three queues in the reader specification assignment system: the disabled state queue, the passive state queue, and the ready state queue. When a new COP is added to the reader, the reader initially puts the COP in an off state. Upon receipt of the activation instruction, the reader transfers the COP from the disconnected state queue to the passive state queue. Upon receipt of the initialization condition for a COP that is in a passive state, if the reader considers that the COP with high priority occupies the resources of the reader, this COP is placed in the ready state queue. COPs in a state of readiness are arranged according to their priorities, from larger to smaller. After the work of the COP in the active state, and the release of the resources of the reader, the first COP in the queue of the ready state is executed. If in the process of waiting a condition comes to an end for a particular COP or the number of accumulated initialization conditions becomes zero, the COP is again transferred from the ready state queue to the passive state queue.

На Фиг.6 представлена структурная диаграмма ридера в соответствии с реализацией настоящего изобретения. Ридер содержит: Figure 6 presents the structural diagram of the reader in accordance with the implementation of the present invention. Reader contains:

модуль создания СОР 10, предназначенный для создания СОР;a COP 10 creation module for creating a COP;

модуль назначений 20, предназначенный для планирования перехода СОР из одного состояния в другое; набор состояний включает отключенное, удаленное, пассивное состояния, состояние готовности и активное состояние, причемassignment module 20, designed to plan the transition of the COP from one state to another; the set of states includes disconnected, remote, passive states, a ready state, and an active state, moreover

когда СОР находится в пассивном состоянии, если пришло условие инициализации СОР, СОР не имеет преимущества исполнения и ресурсы ридера заняты, модуль назначений 20 переводит СОР в состояние готовности, когда СОР находится в состоянии готовности, если ресурсы ридера свободны, то модуль назначений 20 переводит СОР в активное состояние и исполняет СОР.when the COP is in a passive state, if the condition for initializing the COP is received, the COP has no performance advantage and the reader resources are busy, assignment module 20 puts the COP in a ready state, when the COP is ready, if the reader resources are free, then assignment module 20 transfers the COP into an active state and performs COP.

Предпочтительно, чтобы ридер также содержал: модуль удаления 30, предназначенный для удаления СОР;Preferably, the reader also comprises: a removal module 30 for removing COP;

когда модуль создания СОР 10 создает СОР, модуль назначений 20 переводит СОР в отключенное состояние; когда СОР находится в отключенном состоянии модуль назначений 20 переводит СОР в пассивное состояние в соответствии с полученной инструкцией активации СОР; когда СОР находится в пассивном состоянии модуль назначений 20 переводит СОР в отключенное состояние в соответствии с полученной инструкцией деактивации СОР; когда СОР находится в отключенном, пассивном состояниях, состоянии готовности или активном состоянии, модуль назначений 20 переводит СОР в удаленное состояние после того как модуль удаления 30 удалил СОР; когда СОР находится в состоянии готовности, если пришло условие окончания СОР, модуль назначений 20 переводит СОР в пассивное состояние; когда СОР находится в пассивном состоянии, если пришло условие инициализации СОР и ресурсы ридера свободны или СОР имеет преимущество исполнения, модуль назначений 20 переводит СОР в активное состояние; когда СОР находится в активном состоянии, и если СОР выполнена, или ресурсы ридера необходимы СОР с более высоким приоритетом, или пришло условие окончания СОР, модуль назначений 20 переводит СОР в пассивное состояние.when the COP 10 creation module creates the COP, the assignment module 20 puts the COP in an off state; when the COP is in the off state, the assignment module 20 puts the COP in a passive state in accordance with the received instructions for activating the COP; when the COP is in a passive state, the assignment module 20 puts the COP in an off state in accordance with the received instruction to deactivate the COP; when the COP is in an off, passive, ready, or active state, the assignment module 20 puts the COP in a remote state after the removal module 30 has removed the COP; when the COP is in a ready state, if the condition for the end of the COP has come, the assignment module 20 puts the COP in a passive state; when the COP is in a passive state, if the initial condition for the COP has arrived and the resources of the reader are free or the COP has a performance advantage, assignment module 20 puts the COP in an active state; when the COP is in an active state, and if the COP is completed, or the resources of the reader need a COP with a higher priority, or the condition for the end of the COP is received, the assignment module 20 puts the COP in a passive state.

Ридер в представленной выше реализации использует способ назначений СОР, описанный на Фиг.2-5, для назначений созданных СОР.The reader in the above implementation uses the method of assigning COPs described in FIGS. 2-5 for assignments created by the COP.

Как можно заметить из описанного выше, реализация настоящего изобретения реализует следующие технические эффекты:As can be seen from the above, the implementation of the present invention implements the following technical effects:

(1) посредством добавления состояния готовности при назначении СОР, улучшен способ работы ридера при конфликтах, и инициализированные СОР не теряют возможности исполнения;(1) by adding a state of readiness when assigning a COP, the way the reader works in case of conflict is improved, and initialized COPs do not lose the ability to execute;

(2) условия инициализации накапливаются, что позволяет СОР полностью отвечать каждому условию инициализации;(2) initialization conditions are accumulated, which allows the COP to fully meet each initialization condition;

(3) возможна реализация персистентности СОР и рабочие состояния могут быть разумно восстановлены при плановой или случайной перезагрузке ридера;(3) it is possible to realize the persistence of COP and working conditions can be reasonably restored during a planned or accidental reboot of the reader;

(4) НУПР может нести больше функций и быть более гибким.(4) SSR can carry more functions and be more flexible.

Очевидно, специалисты в данной области должны понимать, что упомянутые выше модули и этапы настоящего изобретения могут быть реализованы при помощи счетных устройств общего назначений, могут быть интегрированы в одно счетное устройство или быть распределены по сети, состоящей из множества счетных устройств. С другой стороны, модули и этапы настоящего изобретения могут быть реализованы при помощи исполняемого программного кода счетного устройства. Следовательно, они могут храниться в устройстве хранений и исполняться счетным устройством, или сделаны в виде интегральной схемы соответственно, или множество модулей и этапов могут быть реализованы в одной интегральной схеме. Поэтому настоящим изобретением не ограничивается любая частная комбинация аппаратуры и программного обеспечения.Obviously, specialists in this field should understand that the above modules and steps of the present invention can be implemented using general-purpose counting devices, can be integrated into a single counting device, or distributed over a network consisting of many counting devices. On the other hand, the modules and steps of the present invention can be implemented using executable program code of a counting device. Therefore, they can be stored in the storage device and executed by a counting device, or made in the form of an integrated circuit, respectively, or many modules and steps can be implemented in one integrated circuit. Therefore, the present invention is not limited to any particular combination of hardware and software.

Описанное выше является только предпочтительной реализацией настоящего изобретения, которая не ограничивает настоящее изобретение. Для специалистов в данной области настоящее изобретение может иметь множество вариаций и изменений. Любое изменение, эквивалентная замена, улучшение и т.д., сделанное по принципу настоящего изобретения, включается в сферу охраны настоящего изобретения.The above is only a preferred implementation of the present invention, which does not limit the present invention. For specialists in this field the present invention may have many variations and changes. Any change, equivalent replacement, improvement, etc. made according to the principle of the present invention is included in the scope of protection of the present invention.

Claims (9)

1. Способ назначений спецификации операций ридера (СОР), отличающийся тем, что
ридер создает СОР, которая включает в себя атрибут и приоритет;
ридер переводит СОР из одного состояния в другое; набор состояний включает отключенное, удаленное, пассивное состояния, состояние готовности и активное состояние, причем
когда СОР, находясь в пассивном состоянии, получает условие инициализации и не имеет преимущества исполнения, и ресурсы ридера заняты, то ридер переводит СОР в состояние готовности;
когда ресурсы ридера освобождаются, ридер переводит СОР из состояния готовности в активное состояние и исполняет СОР,
при этом атрибут, приоритет и текущее состояние СОР хранятся в энергонезависимой среде ридера и этап планировки ридером изменений состояний СОР включает:
рестарт ридера;
если СОР находится в состоянии готовности или активном состоянии перед рестартом ридера, ридер после своего рестарта переводит СОР сразу в пассивное состояние;
если СОР находится в отключенном, пассивном или удаленном состояниях перед рестартом ридера, ридер после своего рестарта переводит СОР в то состояние, в котором СОР была до рестарта ридера.
1. The method of assignment specification of reader operations (COP), characterized in that
the reader creates a COP, which includes the attribute and priority;
the reader transfers the COP from one state to another; the set of states includes disconnected, remote, passive states, a ready state, and an active state, moreover
when the COP, being in a passive state, receives an initialization condition and has no performance advantage, and the reader resources are busy, the reader puts the COP in a ready state;
when the reader’s resources are released, the reader transfers the COP from the ready state to the active state and executes the COP,
wherein the attribute, priority and current state of the COP is stored in a non-volatile environment of the reader and the stage of planning by the reader of changes in the status of the COP includes:
restart reader;
if the COP is in a ready state or an active state before restarting the reader, the reader after its restart puts the COP in a passive state immediately;
if the COP is in a disconnected, passive or remote state before the reader is restarted, the reader, after its restart, transfers the COP to the state in which the COP was before the reader restarted.
2. Способ по п. 1, отличающийся тем, что этап планировки ридером изменений состояний СОР содержит:
при создании СОР ридер переводит СОР в отключенное состояние;
когда СОР находится в отключенном состоянии, ридер в соответствии с полученной инструкцией активации СОР переводит СОР в пассивное состояние;
когда СОР находится в пассивном состоянии, ридер в соответствии с полученной инструкцией деактивации СОР переводит СОР в отключенное состояние;
когда СОР находится в отключенном, пассивном состояниях, в состоянии готовности или в активном состоянии, ридер после удаления СОР переводит СОР в удаленное состояние;
когда СОР находится в состоянии готовности, если ридер считает, что пришло условие окончания СОР, ридер переводит СОР в пассивное состояние;
когда СОР находится в пассивном состоянии, если ридер считает, что пришло условие инициализации СОР и ресурсы ридера свободны или СОР имеет преимущество выполнения, ридер переводит СОР в активное состояние;
когда СОР находится в активном состоянии, если ридер считает, что СОР выполнена, или ему необходимы ресурсы, или пришло условие окончания СОР, ридер переводит СОР в пассивное состояние.
2. The method according to p. 1, characterized in that the stage of planning by the reader of changes in the state of the COP includes:
when creating a COP, the reader puts the COP in an off state;
when the COP is in the off state, the reader, in accordance with the received instructions for activating the COP, puts the COP in a passive state;
when the COP is in a passive state, the reader, in accordance with the received instructions for deactivating the COP, puts the COP in an off state;
when the COP is in a disconnected, passive state, in a ready state, or in an active state, the reader, after removing the COP, puts the COP in a remote state;
when the COP is in a ready state, if the reader believes that the condition for the end of the COP has arrived, the reader puts the COP in a passive state;
when the COP is in a passive state, if the reader considers that the condition for initializing the COP has arrived and the resources of the reader are free or the COP has an execution advantage, the reader puts the COP in an active state;
when the COP is in an active state, if the reader believes that the COP is completed, or it needs resources, or the condition for the end of the COP is received, the reader puts the COP in a passive state.
3. Способ по п. 2, отличающийся тем, что образ действий ридера при решении, имеет ли СОР преимущество выполнения, включает:
если другая СОР, имеющая тот же или более высокий приоритет, занимает ресурсы ридера, ридер считает, что СОР не имеет преимущества выполнения;
если другая СОР, имеющая более низкий высокий приоритет, занимает ресурсы ридера, ридер считает, что СОР имеет преимущества выполнения.
3. The method according to p. 2, characterized in that the mode of action of the reader when deciding whether the COP has the advantage of performing includes:
if another COP, having the same or higher priority, occupies the resources of the reader, the reader considers that the COP has no performance advantage;
if another COP that has a lower priority takes up the reader’s resources, the reader considers that the COP has performance advantages.
4. Способ по п. 2, отличающийся тем, что этап планировки ридером изменений состояний СОР включает:
когда СОР находится в активном состоянии, если ридер считает, что снова пришло условие инициализации СОР, ридер увеличивает на 1 значение счетчика условий инициализации
если ридер считает, что текущее исполнение СОР завершено, то ридер исполняет СОР снова, причем количество исполнения СОР равно значению счетчика условий инициализации.
4. The method according to p. 2, characterized in that the stage of planning by the reader of changes in the state of the COP includes:
when the COP is in the active state, if the reader believes that the condition for initializing the COP has again arrived, the reader increases the value of the counter of initialization conditions by 1
if the reader considers that the current execution of the COP is completed, then the reader performs the COP again, and the amount of COP performance is equal to the value of the initialization conditions counter.
5. Способ по п. 4, отличающийся тем, что перед этапом увеличения значения
счетчика условий инициализации, способ включает:
ридер определяет, достигло ли значение счетчика условий инициализации заранее установленного порога;
если порог достигнут, то ридер игнорирует условие инициализации, которое приходит снова.
5. The method according to p. 4, characterized in that before the step of increasing the value
initialization conditions counter, the method includes:
the reader determines whether the counter value of the initialization conditions has reached a predetermined threshold;
if the threshold is reached, then the reader ignores the initialization condition, which comes again.
6. Способ по п. 5, отличающийся тем, что этап планировки ридером изменений состояний СОР включает:
когда СОР находится в состоянии готовности или активном состоянии, если ридер считает, что снова пришло условие окончания СОР, ридер уменьшает на 1 значение счетчика условий инициализации.
6. The method according to p. 5, characterized in that the stage of planning by the reader of changes in the state of the COP includes:
when the COP is in the ready state or active state, if the reader believes that the condition for the end of the COP has again arrived, the reader reduces the value of the initialization conditions counter by 1.
7. Способ по пп. 1-6, отличающийся тем, что множество СОР создается в ридере, и ридер обеспечивается очередью отключенного состояния, соответствующей отключенному состоянию, очередью пассивного состояния, соответствующей пассивному состоянию, и очередью состояния готовности, соответствующей состоянию готовности;
этап планировки ридером изменений состояний СОР включает:
когда ридер сознает одну СОР, ридер помещает СОР в очередь отключенного состояния;
когда СОР находится в очереди отключенного состояния, ридер в соответствии с полученной инструкцией активации СОР забирает СОР из очереди отключенного состояния и помещает СОР в очередь пассивного состояния;
когда СОР находится в очереди пассивного состояния, ридер, в соответствии с инструкцией деактивации СОР, забирает СОР из очереди пассивного состояния и помещает СОР в очередь отключенного состояния;
когда СОР находится в очереди пассивного состояния, если ридер считает, что пришло условие инициализации СОР, СОР имеет преимущество исполнения и ресурсы ридера заняты, то ридер забирает СОР из очереди пассивного состояния и помещает СОР в очередь состояния готовности;
когда СОР находится в очереди состояния готовности, если ридер считает, что
пришло условие окончания СОР, то ридер забирает СОР из очереди состояния готовности и помещает СОР в очередь пассивного состояния;
когда СОР находится в очереди пассивного состояния, если ридер считает, что пришло условие инициализации СОР и ресурсы ридера свободны, или СОР имеет преимущество исполнения, то ридер забирает СОР из очереди пассивного состояния и исполняет СОР;
когда ридер считает, что его ресурсы свободны, ридер забирает СОР с наибольшим приоритетом из очереди состояния готовности и исполняет СОР;
когда ридер считает, что исполнение СОР завершено, или ресурсы ридера необходимы для СОР с более высоким приоритетом, или пришло условие завершения СОР, ридер помещает СОР в очередь пассивного состояния.
7. The method according to PP. 1-6, characterized in that a plurality of COPs is created in the reader, and the reader is provided with a disabled state queue corresponding to the disabled state, a passive state queue corresponding to the passive state, and a ready state queue corresponding to the ready state;
The stage of planning by the reader for changes in the state of the COP includes:
when the reader recognizes one COP, the reader places the COP in the disabled state queue;
when the COP is in the disabled state queue, the reader, in accordance with the received activation instruction, takes the COP from the disabled state queue and puts the COP in the passive state queue;
when the COP is in the passive state queue, the reader, in accordance with the instructions for deactivating the COP, takes the COP from the passive state queue and puts the COP in the disabled state queue;
when the СOP is in the passive state queue, if the reader considers that the СOP initialization condition has arrived, the СOP has a performance advantage and the reader resources are busy, then the reader takes the СОР from the passive state queue and puts the СOP in the standby state queue;
when the COP is in the readiness queue if the reader considers that
the condition for the end of the COP is received, the reader takes the COP from the queue of the ready state and puts the COP in the queue of the passive state;
when the СOP is in the passive state queue, if the reader considers that the СOP initialization condition has arrived and the resources of the reader are free, or the СOP has a performance advantage, the reader takes the ССО from the passive state queue and executes the ССО;
when the reader believes that its resources are free, the reader takes the COP with the highest priority from the ready state queue and executes the COP;
when the reader considers that the COP is completed, or the reader’s resources are needed for the COP with a higher priority, or the condition for the completion of the COP is received, the reader puts the COP in a passive state queue.
8. Ридер, отличающийся тем, что он содержит:
модуль создания СОР, предназначенный для создания спецификации операций ридера (СОР), которая включает в себя атрибут и приоритет;
энергонезависимую среду, сконфигурированную для хранения атрибута, приоритета и текущего состояния СОР; и
модуль назначений, предназначенный для планирования перехода СОР из одного состояния в другое; набор состояний включает отключенное, удаленное, пассивное состояния, состояние готовности и активное состояние, причем
когда СОР находится в пассивном состоянии, если пришло условие инициализации СОР, СОР не имеет преимущества исполнения и ресурсы ридера заняты, модуль назначений переводит СОР в состояние готовности; когда СОР находится в состоянии готовности, если ресурсы ридера свободны, то модуль назначений переводит СОР в активное состояние и исполняет СОР; и
этап планировки модулем назначений изменений состояний СОР, который включает:
рестарт ридера;
если СОР находится в состоянии готовности или активном состоянии перед рестартом ридера, ридер после своего рестарта переводит СОР сразу в
пассивное состояние;
если СОР находится в отключенном, пассивном или удаленном состояниях перед рестартом ридера, ридер после своего рестарта переводит СОР в то состояние, в котором СОР была до рестарта ридера.
8. Reader, characterized in that it contains:
module for creating COP, designed to create a specification of reader operations (COP), which includes an attribute and priority;
non-volatile environment configured to store the attribute, priority and current state of the COP; and
assignment module for planning the transition of COP from one state to another; the set of states includes disconnected, remote, passive states, a ready state, and an active state, moreover
when the COP is in a passive state, if the condition for the initialization of the COP has come, the COP has no performance advantage and the reader resources are busy, the assignment module puts the COP in a ready state; when the COP is in a ready state, if the reader's resources are free, then the assignment module puts the COP in an active state and executes the COP; and
the stage of planning by the module of assignments of changes in the state of COP, which includes
restart reader;
if the COP is in a ready state or is active before restarting the reader, the reader after its restart transfers the COP to immediately
passive state;
if the COP is in a disconnected, passive or remote state before the reader is restarted, the reader, after its restart, transfers the COP to the state in which the COP was before the reader restarted.
9. Ридер по п. 8, отличающийся тем, что ридер содержит:
модуль удаления, предназначенный для удаления СОР;
когда модуль создания СОР создает СОР, модуль назначений переводит СОР в отключенное состояние; когда СОР находится в отключенном состоянии модуль назначений переводит СОР в пассивное состояние в соответствии с полученной инструкцией активаций СОР; когда СОР находится в пассивном состоянии модуль назначений переводит СОР в отключенное состояние в соответствии с полученной инструкцией деактивации СОР; когда СОР находится в отключенном, пассивном состояниях, состоянии готовности или активном состоянии, модуль назначений переводит СОР в удаленное состояние после того как модуль удаления удалил СОР; когда СОР находится в состоянии готовности, если пришло условие окончания СОР, модуль назначений переводит СОР в пассивное состояние; когда СОР находится в пассивном состоянии, если пришло условие инициализации СОР и ресурсы ридера свободны или СОР имеет преимущество исполнения, модуль назначений переводит СОР в активное состояние; когда СОР находится в активном состоянии, и если СОР выполнена, или ресурсы ридера необходимы СОР с более высоким приоритетом, или пришло условие окончания СОР, модуль назначений переводит СОР в пассивное состояние.
9. The reader according to claim 8, characterized in that the reader contains:
a removal module for removing COP;
when the COP module creates the COP, the assignment module puts the COP in the off state; when the COP is in the off state, the assignment module puts the COP in a passive state in accordance with the received instructions for the activation of the COP; when the COP is in a passive state, the assignment module puts the COP in an off state in accordance with the received instruction to deactivate the COP; when the COP is in an off, passive, ready, or active state, the assignment module puts the COP in a remote state after the removal module has removed the COP; when the COP is in a ready state, if the condition for the end of the COP has come, the assignment module puts the COP in a passive state; when the COP is in a passive state, if the condition for the initialization of the COP has come and the resources of the reader are free or the COP has a performance advantage, the assignment module puts the COP in an active state; when the COP is in an active state, and if the COP is completed, or the resources of the reader need a COP with a higher priority, or the condition for the end of the COP is received, the assignment module puts the COP in a passive state.
RU2012128982/08A 2009-12-11 2010-04-23 Reader operation specification assignment method and reader RU2546565C2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200910246266.3 2009-12-11
CN 200910246266 CN102096604B (en) 2009-12-11 2009-12-11 Reader and RO (Read Only) rule scheduling method thereof
PCT/CN2010/072144 WO2010148760A1 (en) 2009-12-11 2010-04-23 Reader operation (ro) spec scheduling method and reader thereof

Publications (2)

Publication Number Publication Date
RU2012128982A RU2012128982A (en) 2014-01-20
RU2546565C2 true RU2546565C2 (en) 2015-04-10

Family

ID=43385923

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2012128982/08A RU2546565C2 (en) 2009-12-11 2010-04-23 Reader operation specification assignment method and reader

Country Status (3)

Country Link
CN (1) CN102096604B (en)
RU (1) RU2546565C2 (en)
WO (1) WO2010148760A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678542B (en) * 2013-12-02 2017-10-17 电子科技大学 A kind of strategy being scheduled to reader dynamic parallel collection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230970B1 (en) * 1995-06-07 2001-05-15 E-Comm, Incorporated Low-power hand-held transaction device
CN101334830A (en) * 2008-07-23 2008-12-31 云南昆船设计研究院 Self-adapting binary tree multi- label collision intermediation method for RFID system
RU80255U1 (en) * 2008-10-13 2009-01-27 Борис Алексеевич Хозяинов LABEL FOR IDENTIFICATION OF OBJECTS WITH RADIO INTERFACE

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470795B (en) * 2007-12-27 2012-04-25 华为技术有限公司 Communication method and apparatus in wireless radio frequency recognition system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230970B1 (en) * 1995-06-07 2001-05-15 E-Comm, Incorporated Low-power hand-held transaction device
CN101334830A (en) * 2008-07-23 2008-12-31 云南昆船设计研究院 Self-adapting binary tree multi- label collision intermediation method for RFID system
RU80255U1 (en) * 2008-10-13 2009-01-27 Борис Алексеевич Хозяинов LABEL FOR IDENTIFICATION OF OBJECTS WITH RADIO INTERFACE

Also Published As

Publication number Publication date
RU2012128982A (en) 2014-01-20
CN102096604B (en) 2013-06-12
CN102096604A (en) 2011-06-15
WO2010148760A1 (en) 2010-12-29

Similar Documents

Publication Publication Date Title
US9501319B2 (en) Method and apparatus for scheduling blocking tasks
WO2017152633A1 (en) Port binding implementation method and device
US9411646B2 (en) Booting secondary processors in multicore system using kernel images stored in private memory segments
US10782999B2 (en) Method, device, and single-tasking system for implementing multi-tasking in single-tasking system
CN102200916B (en) Electronic equipment, configurable member and method for storing configuration information of configurable member
US20180004570A1 (en) Method For Organizing Tasks In The Nodes Of A Computer Cluster, Associated Task Organizer And Cluster
CN104508634A (en) Dynamic resource allocation for virtual machines
US9218201B2 (en) Multicore system and activating method
CN106776395B (en) A kind of method for scheduling task and device of shared cluster
CN111857946A (en) Location-based virtualized workload placement
CN105359101A (en) System management interrupt handling for multi-core processors
CN110362394B (en) Task processing method and device, storage medium and electronic device
EP3499373A1 (en) Method and apparatus for processing process
RU2546565C2 (en) Reader operation specification assignment method and reader
CN113918336A (en) FreeRTOS task running method and device based on multi-core CPU
CN112965755B (en) Initialization method and device of multi-core processor, electronic equipment and storage medium
CN112214291A (en) Task scheduling method and device
CN110888834B (en) Method and system for dynamically reconstructing FPGA function in PCIE equipment
CN106972963B (en) Service module starting control method and starting control method after crash restart
US9244736B2 (en) Thinning operating systems
CN116166413A (en) Lifecycle management for workloads on heterogeneous infrastructure
CN114416322A (en) Task scheduling method and device based on double linked lists, electronic equipment and storage medium
JP2002157279A (en) Data collecting device
CN115408064A (en) Method, server and related equipment for supporting kernel online update
US20140298352A1 (en) Computer with plurality of processors sharing process queue, and process dispatch processing method