CN113256879B - Medium processing method and device - Google Patents

Medium processing method and device Download PDF

Info

Publication number
CN113256879B
CN113256879B CN202110287978.0A CN202110287978A CN113256879B CN 113256879 B CN113256879 B CN 113256879B CN 202110287978 A CN202110287978 A CN 202110287978A CN 113256879 B CN113256879 B CN 113256879B
Authority
CN
China
Prior art keywords
medium
critical
queue
media
node sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110287978.0A
Other languages
Chinese (zh)
Other versions
CN113256879A (en
Inventor
梁观德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Yihua Information Technology Co ltd
Shenzhen Yihua Computer Technology Co ltd
Shenzhen Yihua Computer Co Ltd
Original Assignee
Nanjing Yihua Information Technology Co ltd
Shenzhen Yihua Computer Technology Co ltd
Shenzhen Yihua Computer Co Ltd
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 Nanjing Yihua Information Technology Co ltd, Shenzhen Yihua Computer Technology Co ltd, Shenzhen Yihua Computer Co Ltd filed Critical Nanjing Yihua Information Technology Co ltd
Priority to CN202110287978.0A priority Critical patent/CN113256879B/en
Publication of CN113256879A publication Critical patent/CN113256879A/en
Application granted granted Critical
Publication of CN113256879B publication Critical patent/CN113256879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/10Mechanical details
    • G07D11/16Handling of valuable papers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/20Controlling or monitoring the operation of devices; Data handling
    • G07D11/22Means for sensing or detection
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D11/00Devices accepting coins; Devices accepting, dispensing, sorting or counting valuable papers
    • G07D11/50Sorting or counting valuable papers
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a medium processing method and a medium processing device, wherein the method is applied to financial self-service equipment, and the financial self-service equipment comprises a medium storage device and a medium transmission channel; a media storage device comprising a handover node sensor and a disconnection node sensor, the method comprising: detecting triggering a temporary shutdown mechanism for a medium storage device, and determining a critical medium; acquiring an operation queue and a recovery queue of the medium; and processing the operation queue and the recovery queue according to the triggering relation between the critical medium and the handover node sensor. By adopting different processing modes for the medium objects in the operation queue and the recovery queue according to different triggering relations between the critical medium and the handover node sensor, the missing medium is detected and processed when the financial self-service equipment is temporarily stopped, and the accuracy of the final medium counting of the financial self-service equipment is ensured.

Description

Medium processing method and device
Technical Field
The invention relates to the technical field of financial equipment, in particular to a medium processing method and a medium processing device.
Background
Currently, financial self-service devices play a vital role in daily life, which are capable of depositing or paying the user with a medium such as paper money, coins, etc., according to transaction contents with the user.
The medium storage device and the medium transmission channel are important component parts of the self-service financial equipment, and the main functions of the medium storage device and the medium transmission channel can be used for storing and separating the medium, so that whether the medium storage device is accurate in counting can directly influence the accounting settlement, and therefore, the accuracy of the counting of the medium storage device is very important. In the prior art, the final separation count of the medium storage device can be adopted for determination, however, the condition that the next medium positioned at the last medium of the medium storage device port possibly leaks to a medium transmission channel due to the fact that the medium is pulled out after being re-tensioned or the medium storage device is stopped can occur in the medium transmission process, and the adopted final separation count mode cannot guarantee the accuracy of the medium storage device count.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention have been made to provide a medium processing method and a medium processing apparatus that overcome or at least partially solve the foregoing problems.
In order to solve the above problems, an embodiment of the present invention discloses a medium processing method, which is applied to a financial self-service device, the financial self-service device including: a media storage device and a media transport path; the media storage device includes a junction node sensor and a split node sensor, the method comprising:
Detecting triggering a temporary shutdown mechanism for the medium storage device, and determining a critical medium;
acquiring an operation queue and a recovery queue of the medium; the operation queue is used for storing media objects generated when media in the media conveying process trigger the separation node sensor, and the recovery queue is used for recovering the media objects in the operation queue;
and processing the operation queue and the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
Optionally, the processing the run queue and the recycle queue according to the triggering relationship between the critical medium and the handover node sensor includes:
storing the medium objects positioned behind the medium object corresponding to the critical medium in the operation queue to the recovery queue;
and processing the medium objects in the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
Optionally, the processing the media object in the recovery queue according to the triggering relationship between the critical media and the handover node sensor includes:
And under the condition that the critical medium passes through the handover node and the handover node sensor is triggered in a leaving way, if the medium object corresponding to the critical medium exists in the operation queue, storing the medium object corresponding to the critical medium in the operation queue from the recovery queue.
Optionally, the processing the media object in the recovery queue according to the triggering relationship between the critical media and the handover node sensor includes:
and under the condition that the critical medium passes through the handover node and the handover node sensor is triggered in a leaving way, if no medium object corresponding to the critical medium exists in the operation queue, adding a medium object in the operation queue.
Optionally, the medium transmission channel has a channel node; the processing the media object in the recovery queue according to the triggering relationship between the critical media and the handover node sensor includes:
and under the condition that the critical medium passes through the handover node and the departure trigger of the critical medium to the handover node sensor is not detected, if the critical medium passes through the channel node, acquiring a first medium object positioned in the recovery queue, and storing the first medium object into the operation queue.
Optionally, the method further comprises:
counting the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor;
the counting operation of the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor comprises the following steps:
acquiring the triggering times of the medium and the handover node sensor before the triggering operation of a temporary shutdown mechanism of the medium storage device is detected, and taking the triggering times as a first count of the medium in the medium conveying process;
obtaining a second count of the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor;
and determining the total count of the medium in the medium conveying process by adopting the first count and the second count.
Optionally, the medium transmission channel has a channel node; and obtaining a second count of the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor, wherein the second count comprises the following steps:
and if the critical medium slides out of the handover node and the leaving trigger of the critical medium to the handover node sensor is not detected, adding an operation to a preset extra count if the critical medium passes through the channel node, and taking the extra count as a second count of the medium in the medium conveying process.
The embodiment of the invention also discloses a medium processing device, which is applied to the self-service financial equipment, and the self-service financial equipment comprises: a media storage device and a media transport path; the media storage device includes a junction node sensor and a split node sensor, the device comprising:
the critical medium determining module is used for detecting triggering a temporary shutdown mechanism aiming at the medium storage device and determining a critical medium;
the operation queue acquisition module is used for acquiring the operation queue of the medium; the operation queue is used for storing a medium object generated when a medium in the medium transmission process triggers the separation node sensor;
the recovery queue establishing module is used for establishing a recovery queue of the medium; the recovery queue is used for recovering the medium objects in the operation queue;
and the queue processing module is used for processing the operation queue and the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
Optionally, the queue processing module includes:
a media object recycling sub-module, configured to store a media object located after a media object corresponding to the critical media in the operation queue to the recycling queue;
And the medium object processing sub-module is used for processing the medium objects in the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
Optionally, the medium transmission channel has a channel node; the media object handling submodule includes:
the first media object processing unit is used for storing the media object corresponding to the critical media from the recovery queue to the operation queue if the media object corresponding to the critical media exists in the operation queue under the condition that the critical media is detected to pass through the handover node and the handover node sensor is triggered to leave;
a second media object processing unit, configured to, when detecting that the critical media passes through the handover node and performing a departure trigger on the handover node sensor, add a media object in the operation queue if there is no media object corresponding to the critical media in the operation queue;
and the third medium object processing unit is used for acquiring a first medium object positioned in the recovery queue and storing the first medium object into the operation queue if the critical medium passes through the channel node under the condition that the critical medium passes through the handover node and the departure trigger of the critical medium to the handover node sensor is not detected.
Optionally, the apparatus further comprises:
and the medium counting module is used for counting the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor.
Optionally, the medium counting module includes:
a first count determination sub-module for acquiring a trigger number of times of media and the handover node sensor before detecting a trigger operation for a temporary stop mechanism of the media storage device, and taking the trigger number of times as a first count of media in the media transfer process;
a second count determining sub-module, configured to obtain a second count of media in the media conveying process according to a trigger relationship between the critical media and the handover node sensor;
and the total count determining submodule is used for determining the total count of the medium in the medium conveying process by adopting the first count and the second count.
Optionally, the medium transmission channel has a channel node; the second count determination submodule includes:
and the second count determining unit is used for adding one operation to a preset extra count and taking the extra count as a second count of paper money in the medium conveying process if the critical medium passes through the channel node under the condition that the critical medium slides out of the handover node and the leaving trigger of the critical medium to the handover node sensor is not detected.
The embodiment of the invention also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the steps of any of the media processing methods.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of any medium processing method when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the medium processing method can be applied to the financial self-service equipment, the financial self-service equipment can comprise a medium storage device and a medium transmission channel, the critical medium is determined when the temporary shutdown mechanism triggering the medium storage device is detected, and the operation queue and the recovery queue can be processed according to the triggering relationship between the critical medium and the handover node sensor. By adopting different processing modes for the medium objects in the operation queue and the recovery queue according to different triggering relations between the critical medium and the handover node sensor, the missing medium is detected and processed when the financial self-service equipment is temporarily stopped, and the accuracy of the final medium counting of the financial self-service equipment is ensured.
Drawings
FIG. 1 is a conceptual diagram of a movement of a financial self-service device in the practice of the present invention;
FIG. 2 is a flow chart of steps of an embodiment of a media processing method of the present invention;
FIG. 3 is a flow chart of steps of another embodiment of a media processing method of the present invention;
fig. 4 is a block diagram of an embodiment of a media processing device of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
In the process of counting the medium storage device of the self-service financial equipment, in the aspect of firmware control, the prior art counts directly according to the triggering of a separating node sensor or a connecting node sensor of the medium storage device, namely, the final counting of the medium storage device is determined according to the final separating counting of the medium storage device, however, due to the structural characteristics of the medium storage device, when the medium is re-tensioned or the medium storage device stops in the process of separating the medium, the condition that a piece of medium positioned behind the last medium of a medium storage device port possibly leaks into a channel can be caused, for example, due to the fact that a period of deceleration exists in the process of stopping the medium storage device or due to the inertia of the medium in the process of conveying the medium, the condition that the medium slides out of the medium storage device to reach the channel can be caused, and in this case, if the firmware control layer of the medium storage device needs to control the medium storage device to stop normally and ensure the final counting of the medium storage device, the condition that the foregoing occurring medium missing phenomenon needs to be correspondingly processed.
One of the core ideas of the embodiment of the invention is to provide a medium storage device detection mechanism to ensure the accuracy of medium counting of the medium storage device, mainly by establishing a recovery queue, then recovering the medium objects which do not reach the channel in the operation queue through the recovery queue, and processing the operation queue and the recovery queue according to the triggering relationship between the critical medium and the handover node sensor, so as to ensure that the medium storage device which has triggered the temporary shutdown mechanism can be controlled to normally shutdown.
Referring to fig. 1, there is shown a conceptual diagram of a movement of a self-service financial device in the embodiment of the present invention, which may be configured of modules such as a temporary storage section, a bill deposit port, a bill checking section, a conveyance/conveyance path, a bill switcher, and a bill box. These modules can be functionally divided into the following parts: the medium storage device is used for separating medium and collecting medium and is used for medium transmission channel for transmitting medium.
As shown in fig. 1, the medium transmission channel for the transmission medium may have a B channel, wherein the node 10 and the node 5 are channel nodes; the media storage device for collecting media may be a banknote cassette, i.e. there may be a plurality of different banknote cassettes, such as CRBA (CashRecycling Box, cash recycling cassette), CRBB, CRBC, CRBD, CRBE, etc. for storing media, the banknote cassette (i.e. the media storage device) may comprise a junction node sensor with junction nodes (e.g. nodes 11, 13, 15, 17, 19) and a separate node sensor with separate nodes.
In practice, the position of the split node sensor with the split node is located before the handover node sensor with the handover node with respect to the direction of the medium output during the medium transport.
As an example, assuming that the medium processed is a banknote, when the banknote taking operation is performed by using the financial self-service apparatus as shown in fig. 1, assuming that the banknote is taken out through the banknote box CRBA, the node sequence of the banknote path may be that the banknote passes through the separating node of the CRBA and the separating node sensor is triggered to leave, then slides out from the handover node 11 and the handover node sensor is triggered to leave, and then the banknote is transmitted to the banknote checking part module through the channel node 10 of the channel, and the banknote is transmitted to the banknote taking port after the banknote passes through the banknote checking, so that the banknote transmission in the banknote taking process is completed.
Referring to fig. 2, which is a flowchart illustrating steps of an embodiment of a media processing method of the present invention, the media processing method may be applied to the self-service financial device as shown in fig. 1, and the self-service financial device may include a media storage device and a media transmission channel, and the media storage device may include a handover node sensor and a disconnection node sensor, and may specifically include the steps of:
Step 201, detecting triggering a temporary shutdown mechanism for the medium storage device, and determining critical medium;
in one embodiment of the present invention, in the case that the media storage device is stopped normally, the media objects stored in the operation queue will be emptied, which may be counted by taking the interface node sensor as a boundary, at this time, the final count when the media is transported may be determined based on the count of the interface node (such as nodes 11, 13, 15, 17, 19 shown in fig. 1) of the media storage device and the current state of the interface node sensor, and the situation that the media slides out of the media storage device to reach the channel may occur due to a period of deceleration when the media storage device is stopped or due to inertia of the media during transportation, so in order to ensure the accuracy of counting based on the interface node sensor as a boundary, it needs to be determined whether the situation that a piece of media located behind the last piece of media at the interface of the media storage device is leaked to the channel occurs.
Specifically, in order to determine whether a medium omission phenomenon due to a shutdown of the medium storage device occurs, first, a critical medium may be determined so as to determine according to a trigger relationship between the critical medium and the handover node sensor; the critical medium may be a last medium that is determined to pass through the handover node when the triggering operation of the temporary shutdown mechanism is detected.
It should be noted that, as shown in fig. 1, there are a plurality of media storage devices and a plurality of handover nodes in the self-service financial device, however, when a plurality of media storage devices are used to output media, the media separated from the plurality of media storage devices will be confused during transportation in a channel, and when the media storage devices output the media, the media storage devices will operate in a manner of one media storage device, and a situation that a plurality of critical media exist will not occur. The embodiments of the present invention are not limited in this regard.
Step 202, acquiring an operation queue of the medium and establishing a recovery queue;
in the embodiment of the invention, at the firmware control level, the medium storage device may have a queue mechanism for normally managing the medium, where the queue mechanism may be an operation queue, specifically, during the medium transmission, a corresponding medium object may be generated when the medium triggers the split node sensor, and stored in the operation queue, that is, the operation queue may be used to store the medium object generated when the medium during the transmission triggers the split node sensor.
According to the triggering times of the medium and the separating node sensor, the corresponding medium objects are taken for corresponding processing once, namely the medium objects corresponding to the medium triggering the separating node sensor are stored in an operation queue, when the medium reaches the end point of the medium transmission channel, the corresponding medium objects in the operation queue are cleared, and when the medium objects stored in the operation queue are empty, the machine complete stop condition is triggered, and at the moment, the medium storage device and the medium transmission channel stop working.
The media storage device may have a temporary shutdown mechanism and is limited by the structural characteristics of the media storage device, which may be complicated by poor, re-tensioned, cross-over, etc. conditions when separating media, where corresponding detection may occur. When the temporary stop mechanism is triggered, the separation operation of the medium by the medium storage device must be stopped first, so as to avoid unnecessary errors, and at the same time, to improve the success rate of the transaction, the medium already in the channel will be processed normally and finished, however, when the conditions of bad detection, double-tension, crossover and the like are met, the separation operation of the medium must be stopped first, which may cause the medium storage device to miss the medium.
In practical applications, since the separating operation for the media is stopped, the media corresponding to the media objects stored in the operation queue are only the media passing through the separating node and triggering the separating node sensor, and it cannot be determined whether the corresponding media reach the channel through the handover node, and then it may happen that the media corresponding to some media objects in the operation queue do not reach the channel, at this time, a recovery queue may be established for recovering the media objects in the operation queue, and specifically, the recovery queue may be used for recovering the media objects corresponding to the media that do not reach the channel (i.e. do not leave the banknote box and may also be referred to as not passing through the handover node) when the temporary shutdown mechanism for the media storage device is detected.
In one embodiment of the present invention, in the event of a temporary shutdown mechanism involving a triggered media storage device, a run queue of media may be acquired and a recycle queue established for recycling media items stored in the run queue for subsequent processing of the run queue and recycle queue.
And 203, processing the operation queue and the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
After determining the critical medium, in order to determine whether the critical medium leaks to the channel, firstly, a triggering relationship between the critical medium and the handover node sensor, for example, whether the critical medium passes through the handover node, the current state of the handover node sensor when the critical medium passes through the handover node, and the like, namely, the detection and the processing of the medium omission phenomenon are realized by judging the critical medium; after the triggering relation between the critical medium and the handover node sensor is obtained, different treatments can be performed on the medium objects in the operation queue and the recovery queue according to different conditions, and specifically, the medium objects corresponding to the critical medium can be treated, so that the medium storage device triggered by the temporary shutdown mechanism is controlled to normally shutdown through the emptying operation performed on the operation queue.
In the embodiment of the invention, the medium processing method can be applied to the financial self-service equipment, the financial self-service equipment can comprise a medium storage device and a medium transmission channel, the critical medium is determined when the temporary shutdown mechanism triggering the medium storage device is detected, and the operation queue and the recovery queue can be processed according to the triggering relationship between the critical medium and the handover node sensor. By adopting different processing modes for the medium objects in the operation queue and the recovery queue according to different triggering relations between the critical medium and the handover node sensor, the missing medium is detected and processed when the financial self-service equipment is temporarily stopped, and the accuracy of the final medium counting of the financial self-service equipment is ensured.
In the embodiment of the invention, the medium processed by the financial self-service equipment can be referred to as paper money, the mentioned critical medium can be referred to as critical paper money, and the medium objects stored in the queue for paper money can be paper money objects corresponding to the paper money.
In order to correctly process the medium missing phenomenon (which may refer to a banknote missing condition) generated by the temporary stop mechanism, so as to ensure the correctness and reliability of transaction counting, it may be determined whether a critical medium (i.e. a critical banknote) is missing into the channel.
Referring to fig. 3, a flowchart illustrating steps of another embodiment of a media processing method of the present invention may specifically include the steps of:
step 301, storing the media objects located behind the media objects corresponding to the critical media in the operation queue to the recovery queue;
in the embodiment of the invention, the operation queue and the recovery queue are processed, and the medium objects stored in the operation queue and the recovery queue can be processed essentially, namely, the paper money objects are processed.
Specifically, when the banknote box stops separating banknotes, some banknotes passing through the separating node and triggering the separating node sensor, that is, some banknotes which have generated corresponding banknote objects and stored the generated banknote objects in the operation queue may not reach the channel yet, and the corresponding banknote objects of the banknotes which do not reach the channel (i.e. do not leave the banknote box and may also be called as not passing through the handover node) in the operation queue need to be recovered through the recovery queue.
Under the condition that the cash box is normally stopped, the cash box can be counted by taking the joint sensor as a limit, and in order to ensure the accuracy and the reliability of the cash box transaction counting, a recovery queue for recovering the medium objects in the operation queue can be established by taking the joint sensor as a limit.
In practical application, whether the banknote leakage phenomenon exists or not needs to be judged by judging the triggering of the critical banknote and the handover node sensor, and at the moment, the critical banknote can be defaulted to be the banknote which does not reach the channel, namely, the banknote object (including the banknote object corresponding to the critical banknote) positioned behind the banknote object corresponding to the critical banknote in the operation queue can be stored in the recovery queue.
As an example, assuming that the number of banknotes triggering the separating node sensor is N during the banknote sorting process, corresponding N banknote objects may be generated and stored in the operation queue, when a temporary stop is detected on the N-1 th banknote, the N-1 th banknote may be determined to be a critical banknote, and assuming that the N-1 th banknote has not been triggered by the leaving of the handover node (such as nodes 11, 13, 15, 17, 19 shown in fig. 1), the N-1 th and subsequent banknote objects may be recovered from the operation queue in which the N banknote objects have been stored in the recovery queue, i.e., the N-1 th and N-th banknote objects are recovered.
And step 302, processing the medium objects in the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
In the embodiment of the invention, the triggering relation between the critical paper money and the handover node sensor can be judged to carry out different treatments on the paper money objects in the running queue and the recovery queue according to the unused condition, so that the paper money box which triggers the temporary shutdown mechanism can be controlled to normally shutdown.
In practical application, when the banknote box is stopped, a section of deceleration process exists or due to inertia of the banknote in the banknote feeding process, the banknote can slide out of the banknote box to reach a channel, and at the moment, critical banknote is judged, and the following conditions can occur: when detecting triggering operation for a temporary stop mechanism, the critical paper money successfully reaches the channel, and a) the paper money leakage phenomenon does not occur; b) Incomplete bill leakage phenomenon caused by bill separation and double-tension occurs; c) The phenomenon of complete money leakage occurs.
Specifically, one way of determining whether the critical banknote reaches the pathway may be by determining whether the critical banknote slides out of the handover node normally and whether the critical banknote triggers the handover node sensor normally, if the critical banknote successfully slides out of the handover node and it is able to detect that the critical banknote triggers the handover node sensor to leave, then it indicates that the critical banknote has reached the pathway successfully; under the condition that the critical paper money successfully arrives at the channel, whether the critical paper money which carries out the leaving triggering has a corresponding paper money object identity or not can be judged, namely whether the critical paper money normally carries out the leaving triggering on the separation node or not is judged, and the critical paper money which arrives at the channel is judged to have a corresponding paper money object in the operation queue or not according to the judging result, so that whether the critical paper money which arrives at the channel has the paper money leakage phenomenon or not is judged.
In the first case, if there is a banknote object corresponding to the critical banknote in the run queue, it means that the critical banknote that has not reached the channel by default has actually completely left the banknote box and reached the channel, at this time, the banknote object corresponding to the critical banknote may be returned from the recovery queue to the run queue, i.e. the N-1 th banknote object that has been recovered may be returned to the run queue for normal processing.
In the second case, if there is no banknote object corresponding to the critical banknote in the running queue, since the banknote object is generated when the banknote is triggered to leave the separation node, there may be a banknote that is re-expanded at the separation node at this time, and the second banknote in the re-expanded banknote does not have the corresponding banknote object generated, which indicates that the banknote separation and re-expansion phenomenon occurs, and belongs to incomplete banknote leakage, and a new banknote object needs to be added in the running queue. Wherein incomplete note missing may refer to note missing that can be detected by the split node sensor in the second case.
As an example, assuming that the corresponding N-1 th banknote object cannot be acquired in the run queue, the N-1 th banknote object needs to be automatically and directly fed into the run queue, and the fed N-1 th banknote object is essentially the second banknote in the N-1 th and subsequent N-th heavy banknotes, that is, the heavy phenomenon herein refers to the heavy phenomenon occurring in the N-1 th and subsequent N-th banknotes.
Specifically, assuming there are currently two notes, the N-2 note object corresponding to the first note, where the handling of the first note is normal and now the second note is problematic, then the second note may overlap with the third note that follows when the stack is detected as being out of service, where the third note obstructs the split node sensor, but does not obstruct the cross node sensor, and the second note has opened the stack to the channel via the cross node, where the N-1 th note has been recycled by the recycle queue, theoretically the N-1 th note is to be replaced in the run queue, and the N-1 th note in the recycle queue is actually the third note that overlaps later (i.e., the second note in the N-th note) that does not leave the stack.
In the third case, when the critical banknote is detected to pass through the delivery node, but the trigger of the critical banknote to leave the delivery node sensor is not detected, whether the critical banknote arrives successfully cannot be determined, at this time, since the determination is not temporarily performed, another alternative way of determining whether the critical banknote arrives at the channel may be adopted, and in particular, whether the critical banknote slides out of the channel node normally may be determined. Wherein if the critical banknote passes through the channel node, it indicates that the critical banknote has reached the channel at this time.
In the implementation of the invention, assuming that the critical banknote does not trigger the separation node sensor and the handover node sensor, the operation queue must not have banknote object identities corresponding to the critical banknote, which indicates that a complete banknote leakage phenomenon occurs, at this time, the first banknote object in the recovery queue can be acquired, and the first banknote object is stored in the operation queue; at the same time, an additional count needs to be added by 1, and the additional count is used for correcting when the number of the paper money is counted later, namely, the additional count can be used for being overlapped in the counting of the paper money box. The complete bill missing phenomenon may refer to bill missing which cannot be detected by the separating node sensor.
Note that, when the trigger is again made, the above operation will be performed again, and in this case, the situation of the note missing phenomenon is relatively specific, and note missing is not just one note but a plurality of notes missing, but the probability of the note missing phenomenon is relatively small.
In a specific implementation, two situations may occur in the node of the normal sliding-out channel of the critical banknote, and in an embodiment of the present invention, the critical banknote passing through the sliding-out channel may be determined according to different transaction types, specifically, the critical banknote is transported by the channel to the first channel node (such as nodes 5 and 10 shown in fig. 1) nearest to the critical banknote to be distinguished.
The transaction type aimed at by the node 5 may be an clearing service, and the transaction type aimed at by the node 10 may be a withdrawal service. When clearing business is carried out, the clearing business refers to clearing paper money stored in a certain paper money box to obtain an empty paper money box, namely, when the paper money in the certain paper money box is led into another paper money box, if the paper money in the paper money box CRBE is led into the paper money box CRBA, the node sequence of the paper money path can be a separation node and a handover node of the paper money box CRBE-a channel node 5-a money detecting part module-a channel node 10-the paper money box CRBA; when the money withdrawing service is performed, the node sequence of the paper money path can be a certain paper money box, a channel node 10, a paper money checking part module and a paper money taking port.
It should be noted that, the medium processed by the self-service financial device may be, besides paper money, other mediums capable of performing storage and acquisition operations through the self-service financial device, such as plastic coins, and the like, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, by adopting different processing modes for banknote objects in the operation queue and the recovery queue according to different triggering relations between critical banknote and the handover node sensor, detection and processing of leaked banknote when the banknote box encounters temporary shutdown are realized, and the accuracy of final counting of banknote box banknote output is ensured.
In order to facilitate a person skilled in the art to further understand the counting manner of the banknote during the banknote feeding process in the embodiment of the present invention, the following description is given to the counting manner adopted in the embodiment of the present invention:
in a preferred embodiment, the counting operation can be performed on the paper money in the paper money box paper money moving process according to the triggering relation between the critical paper money and the joint sensor, and the counting operation can be specifically realized according to the triggering times and the additional counting of the paper money and the joint sensor of the paper money box.
Under the condition that the banknote box is normally stopped, the banknote in the channel is collected by a collection end point in the process of carrying/moving the banknote, and the banknote objects stored in the operation queue can be emptied, and can be counted by taking the handover node sensor as a limit; under the condition that the banknote box is involved in triggering a temporary stop mechanism, corresponding detection and treatment of the leaked banknote caused by the duplicate banknote separation or stop are required, and at the moment, additional counting for the treatment of the leaked banknote is also required to be accumulated on the basis of counting by taking the joint sensor as a boundary line to be used as the final counting of the banknote box.
The specific steps can include the following steps: firstly, the triggering times of paper money and a handover node sensor before the triggering operation of a temporary shutdown mechanism for the paper money box is detected can be obtained, and the triggering times are used as the first count of the paper money in the paper money box in the paper money moving process; then, according to the triggering relation between the critical paper money and the joint node sensor, the second counting of the paper money in the paper money box in the paper money moving process can be obtained; and finally, determining the total count of the paper money in the paper money box in the paper money moving process by adopting the first count and the second count, namely accumulating the second count by the first count as the final count of the paper money box.
The second count may be determined by determining, in the third case, that is, when the critical banknote slides out of the handover node, but the handover node sensor is not triggered by detecting the separation of the critical banknote, and the additional count obtained when the critical banknote passes through the channel node is used as the second count of the banknote during the banknote feeding process.
In the first or second case, if the trigger relationship between the critical banknote and the handover node sensor is the first or second case, the banknote object in the collection queue is processed, and after the processed banknote object is stored in the operation queue, the banknote object is counted with the handover node sensor as a limit, and correction by additional counting is not required.
In the embodiment of the invention, a bill leakage detection mechanism is provided to detect and process the bill leakage when the bill box encounters temporary stop so as to ensure the accuracy of bill box bill outlet counting; the banknote box which has triggered the temporary stop mechanism can be controlled to stop normally, unnecessary errors are avoided, the failure rate is reduced, and the quality of products is improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, there is shown a block diagram of an embodiment of a banknote cassette processing apparatus of the present invention, the media processing apparatus being applied to a financial self-service device including: a media storage device and a media transport path; the medium storage device comprises a handover node sensor and a disconnection node sensor, and specifically can comprise the following modules:
a critical medium determining module 401, configured to determine a critical medium by detecting triggering a temporary shutdown mechanism for the medium storage device;
a run queue obtaining module 402, configured to obtain a run queue of the medium; the operation queue is used for storing a medium object generated when a medium in the medium transmission process triggers the separation node sensor;
a recycle queue establishing module 403, configured to establish a recycle queue of the medium; the recovery queue is used for recovering the medium objects in the operation queue;
and a queue processing module 404, configured to process the run queue and the recycle queue according to a trigger relationship between the critical medium and the handover node sensor.
In one embodiment of the invention, the queue processing module 404 may include the following sub-modules:
A media object recycling sub-module, configured to store a media object located after a media object corresponding to the critical media in the operation queue to the recycling queue;
and the medium object processing sub-module is used for processing the medium objects in the recovery queue according to the triggering relation between the critical medium and the handover node sensor.
In one embodiment of the invention, the media transport channel has a channel node; the media object handling submodule may include the following elements:
the first media object processing unit is used for storing the media object corresponding to the critical media from the recovery queue to the operation queue if the media object corresponding to the critical media exists in the operation queue under the condition that the critical media is detected to pass through the handover node and the handover node sensor is triggered to leave;
a second media object processing unit, configured to, when detecting that the critical media passes through the handover node and performing a departure trigger on the handover node sensor, add a media object in the operation queue if there is no media object corresponding to the critical media in the operation queue;
And the third medium object processing unit is used for acquiring a first medium object positioned in the recovery queue and storing the first medium object into the operation queue if the critical medium passes through the channel node under the condition that the critical medium passes through the handover node and the departure trigger of the critical medium to the handover node sensor is not detected.
In one embodiment of the present invention, the apparatus may further include the following modules:
and the medium counting module is used for counting the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor.
In one embodiment of the invention, the media count module may include the following sub-modules:
a first count determination sub-module for acquiring the number of triggers of the banknote and the interface node sensor before detecting a trigger operation for a temporary stop mechanism of the medium storage apparatus, and taking the number of triggers as a first count of medium in the medium conveyance process;
a second count determining sub-module, configured to obtain a second count of media in the media conveying process according to a trigger relationship between the critical media and the handover node sensor;
And the total count determining submodule is used for determining the total count of the medium in the medium conveying process by adopting the first count and the second count.
In one embodiment of the invention, the media transport channel has a channel node; the second count determination submodule may include the following units:
and the second count determining unit is used for adding one operation to a preset extra count and taking the extra count as a second count of the medium in the medium conveying process if the critical medium passes through the channel node under the condition that the critical medium slides out of the handover node and the leaving trigger of the critical medium to the handover node sensor is not detected.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
the medium processing method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the computer program realizes the processes of the medium processing method embodiment when being executed by the processor, can achieve the same technical effects, and is not repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the above medium processing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has outlined a detailed description of a media processing method and a media processing device according to the present invention, wherein specific examples are provided herein to illustrate the principles and embodiments of the present invention, and the above examples are provided to assist in understanding the method and core concepts of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A media processing method, wherein the media processing method is applied to a financial self-service device, the financial self-service device comprising: a media storage device and a media transport path; the media storage device includes a junction node sensor and a split node sensor, the method comprising:
detecting triggering a temporary shutdown mechanism for the medium storage device, and determining a critical medium; the critical medium is the last medium passing through the handover node when the triggering operation of the temporary shutdown mechanism is detected;
acquiring an operation queue and a recovery queue of the medium; the operation queue is used for storing media objects generated when media in the media conveying process trigger the separation node sensor, and the recovery queue is used for recovering media objects positioned behind the media objects corresponding to the critical media in the operation queue;
processing the medium objects in the recovery queue according to the triggering relation between the critical medium and the handover node sensor; the processing operation for the medium objects in the recovery queue comprises the steps of storing the medium objects and/or the first medium object corresponding to the critical medium in the recovery queue into the operation queue;
Wherein the processing the media object in the recovery queue according to the triggering relationship between the critical media and the handover node sensor includes:
when the critical medium is detected to pass through the handover node and the handover node sensor is triggered in a leaving way, if a medium object corresponding to the critical medium exists in the operation queue, storing the medium object corresponding to the critical medium in the operation queue from a recovery queue;
and/or under the condition that the critical medium passes through the handover node and the leaving trigger of the critical medium to the handover node sensor is not detected, if the critical medium passes through the channel node of the medium transmission channel, acquiring a first medium object positioned in the recovery queue, and storing the first medium object in the operation queue.
2. The method of claim 1, wherein the processing the media objects in the recycle queue according to the triggering relationship of the critical media and the handoff node sensor further comprises:
and under the condition that the critical medium passes through the handover node and the handover node sensor is triggered in a leaving way, if no medium object corresponding to the critical medium exists in the operation queue, adding a medium object in the operation queue.
3. The method as recited in claim 1, further comprising:
counting the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor;
the counting operation of the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor comprises the following steps:
acquiring the triggering times of the medium and the handover node sensor before the triggering operation of a temporary shutdown mechanism of the medium storage device is detected, and taking the triggering times as a first count of the medium in the medium conveying process;
obtaining a second count of the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor;
and determining the total count of the medium in the medium conveying process by adopting the first count and the second count.
4. A method according to claim 3, wherein the medium transmission channel has a channel node; and obtaining a second count of the medium in the medium conveying process according to the triggering relation between the critical medium and the handover node sensor, wherein the second count comprises the following steps:
And if the critical medium slides out of the handover node and the leaving trigger of the critical medium to the handover node sensor is not detected, adding an operation to a preset extra count if the critical medium passes through the channel node, and taking the extra count as a second count of the medium in the medium conveying process.
5. A media processing device, wherein the media processing device is applied to a financial self-service apparatus, the financial self-service apparatus comprising: a media storage device and a media transport path; the media storage device includes a junction node sensor and a split node sensor, the device comprising:
the critical medium determining module is used for detecting triggering a temporary shutdown mechanism aiming at the medium storage device and determining a critical medium; the critical medium is the last medium passing through the handover node when the triggering operation of the temporary shutdown mechanism is detected;
the operation queue acquisition module is used for acquiring the operation queue of the medium; the operation queue is used for storing a medium object generated when a medium in the medium transmission process triggers the separation node sensor;
The recovery queue establishing module is used for establishing a recovery queue of the medium; the recovery queue is used for recovering the medium objects positioned behind the medium objects corresponding to the critical medium in the running queue;
the queue processing module is used for processing the medium objects in the recovery queue according to the triggering relation between the critical medium and the handover node sensor; the processing operation for the medium objects in the recovery queue comprises the steps of storing the medium objects and/or the first medium object corresponding to the critical medium in the recovery queue into the operation queue, wherein when the critical medium is detected to pass through the handover node and the handover node sensor is subjected to the leaving trigger, if the medium objects corresponding to the critical medium exist in the operation queue, the medium objects corresponding to the critical medium are stored into the operation queue from the recovery queue; and/or under the condition that the critical medium passes through the handover node and the leaving trigger of the critical medium to the handover node sensor is not detected, if the critical medium passes through the channel node of the medium transmission channel, acquiring a first medium object positioned in the recovery queue, and storing the first medium object in the operation queue.
6. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor performs the steps of the medium processing method according to any one of claims 1-4.
7. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the medium processing method according to any of claims 1 to 4.
CN202110287978.0A 2021-03-17 2021-03-17 Medium processing method and device Active CN113256879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110287978.0A CN113256879B (en) 2021-03-17 2021-03-17 Medium processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110287978.0A CN113256879B (en) 2021-03-17 2021-03-17 Medium processing method and device

Publications (2)

Publication Number Publication Date
CN113256879A CN113256879A (en) 2021-08-13
CN113256879B true CN113256879B (en) 2023-05-30

Family

ID=77181443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110287978.0A Active CN113256879B (en) 2021-03-17 2021-03-17 Medium processing method and device

Country Status (1)

Country Link
CN (1) CN113256879B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005036304A1 (en) * 2005-08-02 2007-02-08 Giesecke & Devrient Gmbh Sheet type article e.g. bank note, processing device, has temporary storage unit provided in conveyance channel, where unit has barrel with variable diameter for storing conveyed articles on ring-shaped circumference
KR20130016537A (en) * 2011-08-08 2013-02-18 노틸러스효성 주식회사 Automatic teller machine and method to control gate according to alignment of media

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023422B (en) * 2016-05-24 2020-04-07 新达通科技股份有限公司 Structure of banknote conveying channel of circulating machine core and banknote conveying method
CN106157466B (en) * 2016-07-25 2018-10-19 深圳怡化电脑股份有限公司 Bank note method for detecting residue and device
CN106875561B (en) * 2017-03-01 2020-04-28 深圳怡化电脑股份有限公司 Method and device for determining paper money recycling information in self-service equipment
CN107123192B (en) * 2017-06-30 2023-07-11 深圳怡化电脑股份有限公司 Method for judging banknote position, device for receiving and accessing banknote opening and depositing and withdrawing equipment
CN107452129A (en) * 2017-08-03 2017-12-08 恒银金融科技股份有限公司 Banknote queue abnormity correction processing method for automatic teller machine
CN110619705B (en) * 2019-09-29 2021-10-26 广州国瀚计算机通讯科技有限公司 Machine core hidden money detection method and system, storage medium and intelligent equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005036304A1 (en) * 2005-08-02 2007-02-08 Giesecke & Devrient Gmbh Sheet type article e.g. bank note, processing device, has temporary storage unit provided in conveyance channel, where unit has barrel with variable diameter for storing conveyed articles on ring-shaped circumference
KR20130016537A (en) * 2011-08-08 2013-02-18 노틸러스효성 주식회사 Automatic teller machine and method to control gate according to alignment of media

Also Published As

Publication number Publication date
CN113256879A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
KR102206055B1 (en) Banknote processing apparatus
US9342942B2 (en) Bill-recycling ATM for teller with supplementary collection box and banknote transfer method applied thereto
WO2010067421A1 (en) Paper currency receiving-treating apparatus, and paper currency receiving-treating method
WO2013080656A1 (en) Banknote processing device
CN106875549B (en) clear quick-witted money system that adds
CN108475454B (en) Paper money processing device and method
CN112614283B (en) Sheet medium data processing method, sheet medium data processing device, electronic device and storage medium
CN113256879B (en) Medium processing method and device
JP5174451B2 (en) Banknote handling device with monitoring sensor
JP2007087219A (en) Paper sheet treating device and soundness discrimination level setting method
JP2016133935A (en) Paper sheet processing system and paper sheet processing method
CN106875561B (en) Method and device for determining paper money recycling information in self-service equipment
JP2008304991A (en) Bill receiving and dispensing device
CN105229708A (en) Cash treatment
JP6401005B2 (en) Banknote handling equipment
JP6732018B2 (en) Banknote processor
WO2014174632A1 (en) Paper sheet processing system and paper sheet processing method
CN112447003B (en) Banknote handling system and banknote handling method
CN110288763B (en) Paper money error-removing method and cash recycling processing equipment
CN107146322B (en) Control method, device and equipment for paper money feeding and storage medium
CN113284301B (en) Sheet medium data processing method and device, electronic device and storage medium
CN107170145B (en) Self-service deposit and withdrawal system
JP2016162156A (en) Coin processor
CN107633624B (en) Automatic transaction system and automatic error checking response method
JP3590834B2 (en) Banknote transaction device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant