CN103178907A - Method for improving success rate of conflict detection - Google Patents

Method for improving success rate of conflict detection Download PDF

Info

Publication number
CN103178907A
CN103178907A CN2011104322053A CN201110432205A CN103178907A CN 103178907 A CN103178907 A CN 103178907A CN 2011104322053 A CN2011104322053 A CN 2011104322053A CN 201110432205 A CN201110432205 A CN 201110432205A CN 103178907 A CN103178907 A CN 103178907A
Authority
CN
China
Prior art keywords
radio
magnetic
frequency unit
magnetic radio
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104322053A
Other languages
Chinese (zh)
Other versions
CN103178907B (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201110432205.3A priority Critical patent/CN103178907B/en
Publication of CN103178907A publication Critical patent/CN103178907A/en
Application granted granted Critical
Publication of CN103178907B publication Critical patent/CN103178907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for improving the success rate of conflict detection. The method is applied to a close range communication system which comprises at least one first magnetic radio frequency device and at least one second magnetic radio frequency device. The method comprises that when the second magnetic radio frequency device receives a conflict detection request sent by the first magnetic radio frequency device, the request is ignored if the second magnetic radio frequency device and the first magnetic radio frequency device are in access, and if not, the second magnetic radio frequency device responds to conflict response at a random time point or monitors channels for responding to the conflict response for some time before responding to the conflict response and responds to the conflict response when no other second magnetic radio frequency device responds to the conflict response. According to the method, the occurrence that a plurality of second magnetic radio frequency devices response to the conflict response simultaneously can be effectively avoided, the continuous co-channel interference cannot occur, the probability of the co-channel interference can be reduced, and the success rate of the conflict detection of the first magnetic radio frequency device is improved.

Description

Improve the method for collision detection success rate
Technical field
The present invention relates to wireless communication field, relate in particular to a kind of method that improves the collision detection success rate.
Background technology
In recent years, by integrated wireless radio-frequency module on mobile phone or SIM cards of mobile phones, TF card, utilize the radio communication between mobile phone and POS machine to realize that the mobile phone on-site payment is day by day prevailing.Have at present a kind of scheme by be arranged in mobile phone, the SIM card of integrated 2.4G radio-frequency communication module and magnetic signal magnetic induction module or SD card detect and be coupled to magnetic signal intensity and the magnetic information that card reader sends, confirm that mobile phone is in the certain scope of distance card reader, the radio-frequency module and the card reader that activate on card carry out radio communication, realizes the mobile phone on-site payment.
Be in the radio-frequency (RF) communication system of one-way communication at this magnetic flux letter, card reader as the first magnetic radio-frequency unit sends magnetic information, be arranged on SIM cards of mobile phones or SD cartoon as the second magnetic radio-frequency unit are crossed and are detected the magnetic signal intensity that is coupled to and receive magnetic information, activate the radio-frequency communication module on SIM card or SD card, in order to carry out radio frequency access and transaction.
When the simultaneously close first magnetic radio-frequency unit of a plurality of the second magnetic radio-frequency units, the user can't judge which the second magnetic radio-frequency unit is by the first access of magnetic radio-frequency unit and transaction, so the first magnetic radio-frequency unit need to have collision detection mechanism, avoid concluding the business with any one second magnetic radio-frequency unit in this case.
Whether reach trading time period after access, the first magnetic radio-frequency unit sends the collision detection request on the magnetic channel, and whether inquire-receive has conflict response in the radio-frequency channel of replying conflict response, have a plurality of the second magnetic radio-frequency units to conflict mutually to detect.
Supposing has three the second magnetic radio-frequency unit A, B, C to conflict mutually this moment, and wherein the second magnetic radio-frequency unit A completes access with the first magnetic radio-frequency unit, when therefore the second magnetic radio-frequency unit A receives this collision detection request, ignores this collision detection request; And the second magnetic radio-frequency unit B and the second magnetic radio-frequency unit C and the first radio-frequency unit do not connect, and when therefore the second magnetic radio-frequency unit B and the second magnetic radio-frequency unit C receive this collision detection request, think conflict has occured, and reply conflict response in radio-frequency channel.If the second magnetic radio-frequency unit B and the second magnetic radio-frequency unit C reply conflict response simultaneously, form the radio frequency co-channel interference, cause the first magnetic radio-frequency unit can not receive reliably conflict response, greatly affect the success rate of the first magnetic radio-frequency unit collision detection.
Summary of the invention
Technical problem to be solved by this invention is how to avoid a plurality of the second magnetic radio-frequency units to reply simultaneously conflict response, to improve the success rate of the first magnetic radio-frequency unit collision detection.
The present invention proposes a kind of method that improves the collision detection success rate, be applied to comprise in the Near Field Communication system of at least one first magnetic radio-frequency unit and at least one the second magnetic radio-frequency unit, described the first magnetic radio-frequency unit utilizes the magnetic signal sending module to send the collision detection request, and receives conflict response in radio-frequency channel; Described the second magnetic radio-frequency unit uses the magnetic signal receiver module to receive the collision detection request; Described method comprises the steps: to receive the collision detection request when described the second magnetic radio-frequency unit, if described the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, ignores this request; If described the second magnetic radio-frequency unit does not access with described the first magnetic radio-frequency unit, described the second magnetic radio-frequency unit is replied conflict response on random time point.
Further, when judging described the second magnetic radio-frequency unit not with described the first magnetic radio-frequency unit access, the time-out time section is set, and replys conflict response on random time point in the time-out time section that arranges, if overtime, directly withdraw from flow process.
Further, in the time-out time section that arranges, described the second magnetic radio-frequency unit repeatedly selects random time to reply conflict response.
The invention allows for the another kind of method that improves the collision detection success rate, be applied to comprise in the Near Field Communication system of at least one first magnetic radio-frequency unit and at least one the second magnetic radio-frequency unit, described the first magnetic radio-frequency unit utilizes the magnetic signal sending module to send the collision detection request, and receives conflict response in radio-frequency channel; Described the second magnetic radio-frequency unit uses the magnetic signal receiver module to receive the collision detection request; Described method comprises the steps: to receive the collision detection request when described the second magnetic radio-frequency unit, if described the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, ignores this request; If described the second magnetic radio-frequency unit does not access with described the first magnetic radio-frequency unit, described the second magnetic radio-frequency unit is before replying conflict response, first intercept and reply channel a period of time that conflict response is used, when there is no other the second magnetic radio-frequency units when replying conflict response, described the second magnetic radio-frequency unit is replied conflict response.
Further, it is random intercepting the time period of replying the channel that conflict response uses.
Further, when judging described the second magnetic radio-frequency unit not with described the first magnetic radio-frequency unit access, the time-out time section first was set before intercepting, and intercepts whether other the second magnetic radio-frequency units are arranged in the reply conflict response in the time-out time section that arranges, if overtime, directly withdraw from flow process.
Described the second magnetic radio-frequency unit uses radio-frequency module to send conflict response, and described the first magnetic radio-frequency unit uses radio-frequency module to receive conflict response.
The first magnetic radio-frequency unit is radio-frequency card reader, the second magnetic radio-frequency unit be radio-frequency SIM card or radio frequency SD the TF card.
The method of above-mentioned raising collision detection success rate, effectively avoided a plurality of described the second magnetic radio-frequency units to put at one time the reply conflict response, reduce the probability of co-channel interference, can not cause lasting co-channel interference, thereby improve the first magnetic radio-frequency unit collision detection success rate.
Description of drawings
Fig. 1 is the structural representation of the communication system implementing this method and relate to;
Fig. 2 is the flow chart of the present invention's the first magnetic radio-frequency unit;
Fig. 3 is the flow chart of the second magnetic radio-frequency unit in first embodiment of the invention;
Fig. 4 is the flow chart of the second magnetic radio-frequency unit in second embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example only is used for explaining the present invention, is not be used to limiting scope of the present invention.
As shown in Figure 1, the first magnetic radio-frequency unit 100 comprises at least one microcontroller 103, at least one radio-frequency (RF) receiving and transmission module 101, at least one radio-frequency antenna 102 and at least one group of magnetic signal sending module 104.The first magnetic radio-frequency unit 100 can be magnetic flux letter radio-frequency SIM card card reader.
Described microcontroller 103 is processed the information of radio-frequency (RF) receiving and transmission module 101 transmitting-receivings, produces magnetic channel data information.Described radio-frequency (RF) receiving and transmission module 101 at least with a microcontroller 103 with is connected a radio-frequency antenna 102 and is connected, be used for transmitting and receiving radiofrequency signal.Described radio-frequency antenna 102 for detection of with the radiated radio frequency (RF) signal, described magnetic signal sending module 104 is connected with microcontroller 103, sends the magnetic channel data information that microcontroller 103 produces.
Described magnetic signal sending module 104 is for generation of the alternating magnetic field signal, and it comprises at least one coding module, at least one driver module, and at least one magnetic signal transmitting coil can also comprise modulation module.
The second magnetic radio-frequency unit 200, for example can be magnetic flux letter radio-frequency SIM card, comprise at least one radio-frequency (RF) receiving and transmission module 201, at least one radio-frequency antenna 202, at least one microcontroller 203, at least one magnetic signal receiver module 204, can also comprise at least one SIM card or SD/TF card module 205.
Described radio-frequency (RF) receiving and transmission module 201 respectively with at least one radio-frequency antenna 202 with is connected a microcontroller 203 and is connected, be used for transmitting and receiving radiofrequency signal.The radio-frequency information that described microcontroller 203 is used for transmitting-receiving, the magnetic channel information is processed.Described radio-frequency antenna 202 for detection of with the radiated radio frequency (RF) signal.The SIM card of described SIM card module 205 handle mobile terminals is used.Described magnetic signal receiver module 204 is used for the magnetic signal intensity that induced magnetism signal transmitting module 104 sends, and receives the magnetic flux channel information, to confirm that the second magnetic radio-frequency unit 200 is whether in the certain scope of distance the first magnetic radio-frequency unit 100.
Described magnetic signal receiver module 204 is used for receiving the alternating magnetic field signal, it comprises at least one magnetic signal receiving coil, at least one magnetic signal signal amplification module, at least one demodulation module, wherein demodulation module can also comprise the thresholding decision circuitry, for detection of field signal intensity.
Below by the implementing procedure of two embodiment process in detail on said system.
Embodiment 1
Described the second magnetic radio-frequency unit is directly replied conflict response on random time point.Concrete, when described the second magnetic radio-frequency unit receives this collision detection request, think conflict has occured, described the second magnetic radio-frequency unit arranges the time-out time section, random delay a period of time, then sends conflict response, if do not arrive the time-out time section, the conflict response of random delay a period of time, and then transmission again ... so repeatedly, until overtime.Must send constantly the collision detection request simultaneously within the time that described the first magnetic radio-frequency unit receives, receive the time of conflict response greater than the maximum duration of described the second magnetic radio-frequency unit random delay.
The flow chart of the relevant treatment of the first magnetic radio-frequency unit and the second magnetic radio-frequency unit as described in showing respectively as Fig. 2 and Fig. 3.Wherein the first magnetic radio-frequency unit sends the collision detection request on the magnetic channel, and described the second magnetic radio-frequency unit receives this collision detection request and according to circumstances makes corresponding processing on the magnetic channel.
The flow process of the first magnetic radio-frequency unit as shown in Figure 2.
Step S1, described the first magnetic radio-frequency unit uses the magnetic signal sending module, sends constantly the collision detection request.
Step S2, described the first magnetic radio-frequency unit receives conflict response T duration at least in radio-frequency channel.
Step S3 judges whether to receive conflict response, if receive conflict response, and execution in step S4; If do not receive conflict response, return to step S2.
Step S4 disconnects.
The flow process of the second magnetic radio-frequency unit as shown in Figure 3.
Step 301, described the second magnetic radio-frequency unit uses the magnetic signal receiver module to receive magnetic signal information.
Step 302, described the second magnetic radio-frequency unit receives the collision detection request.
Step 303 judges that whether this second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, if described the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, changes step 304 over to; If described the second magnetic radio-frequency unit with described the first magnetic radio-frequency unit access, detect conflict occured, change step 305 over to.
Step 304 is ignored this collision detection request.
Step 305, described the second magnetic radio-frequency unit arrange the time-out time section of replying conflict response, prepare to reply conflict response.
Step 306, described the second magnetic radio-frequency unit random delay N duration, N<T (T is the minimum duration that described the first magnetic radio-frequency unit receives conflict response).
Step 307, the radio-frequency module of described the second magnetic radio-frequency unit is replied conflict response.
Step 308 if described the second magnetic radio-frequency unit is received new collision detection request, forwards step 305 to; Otherwise, forward step 309 to.
Step 309 judges whether the time point of described the second magnetic radio-frequency unit reply conflict response is overtime, if overtime, changes step 310 over to; If not overtime, forward step 306 to, can select for more than enough time random time point to reply conflict response.
Step 310 stops and withdrawing from.
Suppose to have three the second magnetic radio-frequency unit A, B, C to conflict mutually, wherein the second magnetic radio-frequency unit A completes access with the first magnetic radio-frequency unit, and the first magnetic radio-frequency unit sends the collision detection request constantly on the magnetic channel.When the second magnetic radio-frequency unit A receives this collision detection request, ignore this collision detection request; And the second magnetic radio-frequency unit B and the second magnetic radio-frequency unit C do not connect with the first radio-frequency unit, when therefore the second magnetic radio-frequency unit B and the second magnetic radio-frequency unit C receive this collision detection request, think conflict has occured, the second magnetic radio-frequency unit B and the second magnetic radio-frequency unit C reply conflict response on random time point.Reply simultaneously thereby effectively reduce the second magnetic radio-frequency unit B and C the probability that conflict response causes co-channel interference, thereby improved the success rate of the first magnetic radio-frequency unit collision detection.
Embodiment 2
Whether described the second magnetic radio-frequency unit is first intercepted radio-frequency channel has other devices replying conflict response, then determines whether to reply conflict response.Concrete, when described the second magnetic radio-frequency unit receives this collision detection request, think conflict has occured, described second magnetic radio-frequency unit random delay a period of time also receives conflict response, is replying conflict response to be confirmed whether the second other magnetic radio-frequency unit.In random time of intercept, if do not find the second other magnetic radio-frequency unit reply conflict response, reply conflict response in radio-frequency channel; If listen to the second other magnetic radio-frequency unit replying conflict response, do not reply conflict response.Described the first magnetic radio-frequency unit must send the collision detection request constantly within the time period that receives simultaneously, the maximum duration that the duration of reception conflict response is intercepted at random greater than described the second magnetic radio-frequency unit.
The flow chart of the relevant treatment of the first magnetic radio-frequency unit and the second magnetic radio-frequency unit as described in showing respectively as Fig. 2 and Fig. 4.Wherein the first magnetic radio-frequency unit sends the collision detection request on the magnetic channel, and described the second magnetic radio-frequency unit receives this collision detection request and according to circumstances makes corresponding processing on the magnetic channel.
The flow process of the second magnetic radio-frequency unit as shown in Figure 4.
Step 401, described the second magnetic radio-frequency unit uses the magnetic signal receiver module to receive magnetic signal information.
Step 402, described the second magnetic radio-frequency unit receives the collision detection request.
Step 403 judges that whether the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, if described the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, changes step 404 over to; If described the second magnetic radio-frequency unit with described the first magnetic radio-frequency unit access, detect conflict occured, change step 405 over to.
Step 404 is ignored this collision detection request.
Step 405, described the second magnetic radio-frequency unit arrange the time-out time section of replying conflict response, prepare to reply conflict response.
Step 406, described the second magnetic radio-frequency unit use radio-frequency (RF) receiving and transmission module to receive conflict response R duration, R<T, and wherein R can arrange at random.
Step 407 judges whether described the second magnetic radio-frequency unit receives conflict response at R in the time period, if receive conflict response at R in the time period, proof has other the second magnetic radio-frequency units replying conflict response, changes step 411 over to; If do not receive conflict response, change step 408 over to.
Step 408, radio-frequency module is replied conflict response.
Step 409 judges that whether described the second magnetic radio-frequency unit receives new collision detection request, if receive, changes step 405 over to; Otherwise, change step 410 over to.
Step 410 judges whether the time point of described the second magnetic radio-frequency unit reply conflict response is overtime, if overtime, changes step 411 over to; If not overtime, change step 408 over to.
Step 411 withdraws from this flow process.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (8)

1. method that improves the collision detection success rate, be applied to comprise in the Near Field Communication system of at least one first magnetic radio-frequency unit and at least one the second magnetic radio-frequency unit, described the first magnetic radio-frequency unit utilizes the magnetic signal sending module to send the collision detection request, and receives conflict response in radio-frequency channel; Described the second magnetic radio-frequency unit uses the magnetic signal receiver module to receive the collision detection request; Described method comprises the steps:
When described the second magnetic radio-frequency unit receives the collision detection request, if described the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, ignore this collision detection request; If described the second magnetic radio-frequency unit does not access with described the first magnetic radio-frequency unit, described the second magnetic radio-frequency unit is replied conflict response on random time point.
2. the method for raising collision detection success rate according to claim 1, when judging described the second magnetic radio-frequency unit not with described the first magnetic radio-frequency unit access, the time-out time section is set, and reply conflict response on random time point in the time-out time section that arranges, if overtime, directly withdraw from flow process.
3. the method for raising collision detection success rate according to claim 2, in the time-out time section that arranges, described the second magnetic radio-frequency unit is repeatedly selected random time point reply conflict response.
4. the method for according to claim 1-3 described raising collision detection of any one success rates, described the first magnetic radio-frequency unit is radio-frequency card reader, described the second magnetic radio-frequency unit is magnetic flux letter radio-frequency SIM card or radio frequency SD/TF card.
5. method that improves the collision detection success rate, be applied to comprise in the Near Field Communication system of at least one first magnetic radio-frequency unit and at least one the second magnetic radio-frequency unit, described the first magnetic radio-frequency unit utilizes the magnetic signal sending module to send the collision detection request, and receives conflict response in radio-frequency channel; Described the second magnetic radio-frequency unit uses the magnetic signal receiver module to receive the collision detection request; Described method comprises the steps:
When described the second magnetic radio-frequency unit receives the collision detection request, if described the second magnetic radio-frequency unit accesses with described the first magnetic radio-frequency unit, ignore this request; If described the second magnetic radio-frequency unit does not access with described the first magnetic radio-frequency unit, described the second magnetic radio-frequency unit is before replying conflict response, first intercept and reply channel a period of time that conflict response is used, when there is no other the second magnetic radio-frequency units when replying conflict response, described the second magnetic radio-frequency unit is replied conflict response.
6. the method for raising collision detection success rate according to claim 5 is characterized in that: it is random intercepting the time period of replying the channel that conflict response uses.
7. the method for raising collision detection success rate according to claim 5, it is characterized in that: when judging described the second magnetic radio-frequency unit not with described the first magnetic radio-frequency unit access, the time-out time section first was set before intercepting, and intercept whether other the second magnetic radio-frequency units are arranged in the reply conflict response in the time-out time section that arranges, if overtime, directly withdraw from flow process.
8. the method for according to claim 5-7 described raising collision detection of any one success rates, described the first magnetic radio-frequency unit is radio-frequency card reader, described the second magnetic radio-frequency unit is magnetic flux letter radio-frequency SIM card or radio frequency SD/TF card.
CN201110432205.3A 2011-12-21 2011-12-21 Improve the method for collision detection success rate Active CN103178907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110432205.3A CN103178907B (en) 2011-12-21 2011-12-21 Improve the method for collision detection success rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110432205.3A CN103178907B (en) 2011-12-21 2011-12-21 Improve the method for collision detection success rate

Publications (2)

Publication Number Publication Date
CN103178907A true CN103178907A (en) 2013-06-26
CN103178907B CN103178907B (en) 2016-03-30

Family

ID=48638547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110432205.3A Active CN103178907B (en) 2011-12-21 2011-12-21 Improve the method for collision detection success rate

Country Status (1)

Country Link
CN (1) CN103178907B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1223415A (en) * 1998-01-16 1999-07-21 三菱电机株式会社 Recognition system and recognition method for non-contact IC cards
US20110062233A1 (en) * 2005-01-03 2011-03-17 Kim Yong-Wook Anti-collision coupling for contactless cards
CN102142868A (en) * 2010-01-29 2011-08-03 国民技术股份有限公司 Near field communication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1223415A (en) * 1998-01-16 1999-07-21 三菱电机株式会社 Recognition system and recognition method for non-contact IC cards
US20110062233A1 (en) * 2005-01-03 2011-03-17 Kim Yong-Wook Anti-collision coupling for contactless cards
CN102142868A (en) * 2010-01-29 2011-08-03 国民技术股份有限公司 Near field communication method and system

Also Published As

Publication number Publication date
CN103178907B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN101827434B (en) Radio communication apparatus, radio communication method and program
CN102215050B (en) Detection method for radio-frequency SIM (Subscriber Identity Module) card collision with low-frequency magnetic communication
EP3139667B1 (en) Hybrid rf polling loop for nfc device and retry mechanism
US20100197224A1 (en) Near field connection establishment
EP2701314B1 (en) Detection of load-modulated NFC signals
CN102768725B (en) A kind of radio-frequency unit and communication means
US11049347B2 (en) Gate apparatus and method in gate apparatus
US20170154327A1 (en) Mobile Payment Method and Apparatus and Near Field Communication Device
US20130185213A1 (en) Near-field communication (nfc) system and method for private near-field communication
CN103347105A (en) Mobile phone radio-frequency SIM card with SWP function in compatible mode
JP2017511635A (en) Security mechanisms for short-range radio frequency communications
EP1877952B1 (en) Circuit for a communication device and method of controlling a transmission
Jameel et al. Multi-tone carrier backscatter communications for massive IoT networks
CN102412870A (en) Fast-access near field wireless communication module used for controlling communication range
CN102073887B (en) Radio frequency SIM card communication system and method for controlling effective distance thereof
CN103178907B (en) Improve the method for collision detection success rate
CN103187993B (en) A kind of communication means and terminal
CN102810219A (en) Label transaction method and system based on radio frequency identification
CN102890764B (en) A kind of method and device that prevents from repeating rf data exchange
CN106506416B (en) Method and apparatus for pulse shaping of radio frequency transmitters
CN107659341B (en) Near field communication-type B device
US20220376798A1 (en) Method for validating a transaction during a radio communication
CN102955923B (en) A kind of method and device preventing communication contention aware
CN102957454A (en) Method and system for utilizing magnetic bidirectional communication
CN102904664A (en) Anti-interference communication system and anti-interference method

Legal Events

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