CN105205019A - Qualcomm platform mobile phone-based NV (Nonvolatile Random Access Memory) parameter reading and writing system and method - Google Patents

Qualcomm platform mobile phone-based NV (Nonvolatile Random Access Memory) parameter reading and writing system and method Download PDF

Info

Publication number
CN105205019A
CN105205019A CN201510724886.9A CN201510724886A CN105205019A CN 105205019 A CN105205019 A CN 105205019A CN 201510724886 A CN201510724886 A CN 201510724886A CN 105205019 A CN105205019 A CN 105205019A
Authority
CN
China
Prior art keywords
item
reading
mobile phone
parameter
write
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
CN201510724886.9A
Other languages
Chinese (zh)
Other versions
CN105205019B (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510724886.9A priority Critical patent/CN105205019B/en
Publication of CN105205019A publication Critical patent/CN105205019A/en
Application granted granted Critical
Publication of CN105205019B publication Critical patent/CN105205019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a Qualcomm platform mobile phone-based NV (Nonvolatile Random Access Memory) parameter reading and writing system and method. The system comprises an NV storage area, an NV reading and writing module, an NV interface module and an NV parameter display module; the NV storage area is used for storing NV item data of a mobile phone; the NV interface module is used for connecting with the NV storage area and realizing reading and writing access to the NV storage area; the NV reading and writing module is connected with the NV interface module and is used for reading and writing the NV item data in the NV storage area; the NV parameter display module is connected with the NV reading and writing module and is used for displaying a value of a read NV item and a value of a written NV item. The Qualcomm platform mobile phone-based NV parameter reading and writing system and method can be used for directly reading and writing NV parameters on a mobile phone interface, without the help of a computer and a Qualcomm software tool, the reading and writing of the NV parameters are simplified, and the system and the method are particularly suitable for outdoor conditions.

Description

Based on the NV parameter reading and writing system and method for high-pass platform mobile phone
Technical field
The present invention relates to a kind of NV parameter reading and writing system and method, particularly relate to a kind of NV parameter reading and writing system and method based on high-pass platform mobile phone.
Background technology
NV is the abbreviation of NVRAM, and English name NonvolatileRandomAccessMemory, is nonvolatile random access memory.Data are once write NV, even if power down also can not be lost, next time restarts, and still can retain original setting.Usual NV is the proprietary file system that mobile phone preserves basic configuration and radio frequency parameter.When mobile phone shutdown, the data be kept in NV can not be lost.All high-pass platforms all adopt NV to preserve the important parameter of mobile phone.
In prior art, if high-pass platform mobile phone needs amendment NV parameter, need by computer, high pass Software tool is installed.As application number be 201210591320.X, denomination of invention is that the Chinese invention patent of " a kind of NV backup and recovery method based on high-pass platform " discloses a kind of NV backup and recovery method based on high-pass platform, said method comprising the steps of: (1) starting hand-set, in mobile phone, install mobile phone terminal system initial software, this software creates independently NV hidden partition in mobile phone; (2) with NV parameter for benchmark, be every platform mobile phone debugging calibration, generate the NV parameter configuration corresponding to each production line mobile phone terminal concrete, and by its input handset terminal; (3) use DIAG instruction, send the signal starting to back up; (4), after NV backup TASK receives the signal of DIAG instruction, all NV data are backuped to NV hidden partition; (5), after backup, in mobile phone file system, set up backup successfully mark, terminate backup; (6) whether utilize the testing mechanism of NV restore task, by losing the NV data in mobile phone detect, if do not lose, mobile phone normally uses; If after losing, then start to carry out mobile phone NV date restoring, described date restoring comprises manual reset mode and automatic reset mode; (7) Backup Data of hidden partition is reverted to the user data subregion of cell phone system; And after (8) recovery, establishment date restoring successfully marks, and just normally can use mobile phone.For another example, the Chinese invention patent that application number is 200610112061.2, denomination of invention is " terminal NV parameter backup recovering method " discloses a kind of terminal NV parameter backup recovering method, comprise the steps: steps A, the packet with No. NV_ITEM is passed to underlying device; Step B, reply data bag underlying device returned is saved in file; Step C, reads out the packet with No. NV_ITEM, described packet is passed to underlying device from described file; Step D, underlying device recovers NV parameter.
But the realization of aforesaid operations mode by computer, must install high pass Software tool.This not only have impact on work efficiency, and very inconvenient, causes Consumer's Experience poor.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of NV parameter reading and writing system and method based on high-pass platform mobile phone, directly read-write operation can be carried out to NV parameter on mobile phone interface, do not need to relend and help computer and high pass Software tool, thus simplify the reading write work of NV parameter, improve work efficiency.
For achieving the above object and other relevant objects, the invention provides a kind of NV parameter reading and writing system based on high-pass platform mobile phone, comprise NV memory block, NV module for reading and writing, NV interface module and NV parameter display module; Described NV memory block is used for the NV item number certificate of memory mobile phone; Described NV interface module is used for being connected with described NV memory block, realizes the read and write access to NV memory block; Described NV module for reading and writing is connected with described NV interface module, for reading and write operation the NV item number certificate in NV memory block; Described NV parameter display module is connected with described NV module for reading and writing, for the value of the NV item of the value and write that show the NV item of reading.
In one embodiment of the invention, described NV interface module is intrinsic in mobile phone.
In one embodiment of the invention, described NV module for reading and writing and described NV parameter display module integration on an operation interface, to realize reading to the NV parameter in NV memory block, write and display operation.
In one embodiment of the invention, described operation interface comprises NV item and reads frame, NV item write frame and NV item display box; Described NV item reads frame for inputting the NV item needing to read; Described NV item write frame is for inputting the NV item needing write; Described NV item display box is for showing the value of the NV item read or write.
In one embodiment of the invention, the described NV parameter reading and writing system based on high-pass platform mobile phone is arranged on mobile phone as mobile phone application.
Meanwhile, the present invention also provides a kind of NV parameter reading and writing method based on high-pass platform mobile phone, comprises following content:
1) by the NV item number certificate of NV memory block memory mobile phone;
2) read and write access to NV memory block is realized by NV interface module;
3) by NV module for reading and writing, the NV item number certificate in NV memory block is read and write operation;
4) by the value of NV item of NV parameter display module display reading and the value of the NV item of write.
In one embodiment of the invention, described NV interface module is intrinsic in mobile phone.
In one embodiment of the invention, described NV module for reading and writing and described NV parameter display module integration on an operation interface, to realize reading to the NV parameter in NV memory block, write and display operation.
In one embodiment of the invention, described operation interface comprises NV item and reads frame, NV item write frame and NV item display box; Described NV item reads frame for inputting the NV item needing to read; Described NV item write frame is for inputting the NV item needing write; Described NV item display box is for showing the value of the NV item read or write.
As mentioned above, the NV parameter reading and writing system and method based on high-pass platform mobile phone of the present invention, has following beneficial effect:
(1) on mobile phone interface, directly can carry out read-write operation to NV parameter, not need to relend and help computer and high pass Software tool, simplify the reading write work of NV parameter, improve work efficiency;
(2) no longer need carrying notebook computer, be particularly useful for outdoor situations.
Accompanying drawing explanation
Fig. 1 is shown as the process flow diagram of NV parameter reading and writing system in an embodiment based on high-pass platform mobile phone of the present invention;
Fig. 2 is shown as the structural representation of NV parameter reading and writing method in an embodiment based on high-pass platform mobile phone of the present invention.
Element numbers explanation
1NV memory block
2NV interface module
3NV module for reading and writing
4NV parameter display module
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
NV parameter reading and writing system and method based on high-pass platform mobile phone of the present invention is by the NV item number certificate of NV memory block memory mobile phone; The read and write access to NV memory block is realized by NV interface module; By NV module for reading and writing, the NV item number certificate in NV memory block is read and write operation; The value of NV item read by the display of NV parameter display module and the value of the NV item of write.
With reference to Fig. 1, the NV parameter reading and writing system based on high-pass platform mobile phone of the present invention comprises NV memory block 1, NV interface module 2, NV module for reading and writing 3 and NV parameter display module 4.
NV memory block 1 is for the NV item number certificate of memory mobile phone.
Particularly, NV memory block 1 is the partition holding of all NV item number certificate of memory mobile phone.
NV interface module 2, for being connected with NV memory block 1, realizes the read and write access to NV memory block.
Wherein, NV interface module 2 is intrinsic in mobile phone.
NV module for reading and writing 3 is connected with NV interface module 2, for reading and write operation the NV item number certificate in NV memory block.
NV parameter display module 4 is connected with NV module for reading and writing 3, for the value of the NV item of the value and write that show the NV item of reading.
Preferably, NV module for reading and writing 3 and NV parameter display module 4 can be integrated on an operation interface, to realize reading to the NV parameter in NV memory block, write and display operation.Particularly, operation interface comprises NV item reading frame, NV item write frame and NV item display box.NV item reads frame for inputting the NV item needing to read.NV item write frame is for inputting the NV item needing write.NV item display box is for showing the value of the NV item read or write.
When user reads the NV item of input needs reading on frame at NV item, NV display box is by the value of NV item corresponding for display; When user's input on NV item write frame needs the NV item of write, NV display box is by the value of the current correspondence of this NV item of display, and user preserves after the value of the current correspondence of this NV item being revised as and needing the value of write, can realize the write of the value of NV item.It should be noted that, the value of the NV item re-write only is restarted and just to be come into force afterwards.Therefore whether come into force to the value of the NV item of checking write, must mobile phone be restarted, then read the currency that frame reads this NV item, to verify whether the value of NV item writes successfully by NV.
Preferably, NV parameter reading and writing system based on high-pass platform mobile phone of the present invention can be designed as the application of mobile phone, is arranged on mobile phone, thus does not need to relend and help computer and high pass Software tool, simplify the reading write work of NV parameter, improve work efficiency.
With reference to Fig. 2, the NV parameter reading and writing method based on high-pass platform mobile phone of the present invention comprises following content:
1) by the NV item number certificate of NV memory block memory mobile phone.
Particularly, NV memory block is the partition holding of all NV item number certificate of memory mobile phone.
2) read and write access to NV memory block is realized by NV interface module.
Wherein, NV interface module is intrinsic in mobile phone.
3) by NV module for reading and writing, the NV item number certificate in NV memory block is read and write operation.
4) by the value of NV item of NV parameter display module display reading and the value of the NV item of write.
Preferably, NV module for reading and writing and NV parameter display module can be integrated on an operation interface, to realize reading to the NV parameter in NV memory block, write and display operation.Particularly, operation interface comprises NV item reading frame, NV item write frame and NV item display box.NV item reads frame for inputting the NV item needing to read.NV item write frame is for inputting the NV item needing write.NV item display box is for showing the value of the NV item read or write.
When user reads the NV item of input needs reading on frame at NV item, NV display box is by the value of NV item corresponding for display; When user's input on NV item write frame needs the NV item of write, NV display box is by the value of the current correspondence of this NV item of display, and user preserves after the value of the current correspondence of this NV item being revised as and needing the value of write, can realize the write of the value of NV item.It should be noted that, the value of the NV item re-write only is restarted and just to be come into force afterwards.Therefore whether come into force to the value of the NV item of checking write, must mobile phone be restarted, then read the currency that frame reads this NV item, to verify whether the value of NV item writes successfully by NV.
Preferably, NV parameter reading and writing method based on high-pass platform mobile phone of the present invention can be designed as the application of mobile phone, is arranged on mobile phone, thus does not need to relend and help computer and high pass Software tool, simplify the reading write work of NV parameter, improve work efficiency.
In sum, NV parameter reading and writing system and method based on high-pass platform mobile phone of the present invention directly can carry out read-write operation to NV parameter on mobile phone interface, do not need to relend and help computer and high pass Software tool, simplify the reading write work of NV parameter, improve work efficiency; No longer need carrying notebook computer, be particularly useful for outdoor situations.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (9)

1. based on a NV parameter reading and writing system for high-pass platform mobile phone, it is characterized in that: comprise NV memory block, NV module for reading and writing, NV interface module and NV parameter display module;
Described NV memory block is used for the NV item number certificate of memory mobile phone;
Described NV interface module is used for being connected with described NV memory block, realizes the read and write access to NV memory block;
Described NV module for reading and writing is connected with described NV interface module, for reading and write operation the NV item number certificate in NV memory block;
Described NV parameter display module is connected with described NV module for reading and writing, for the value of the NV item of the value and write that show the NV item of reading.
2. the NV parameter reading and writing system based on high-pass platform mobile phone according to claim 1, is characterized in that: described NV interface module is intrinsic in mobile phone.
3. the NV parameter reading and writing system based on high-pass platform mobile phone according to claim 1, it is characterized in that: described NV module for reading and writing and described NV parameter display module integration on an operation interface, to realize reading to the NV parameter in NV memory block, write and display operation.
4. the NV parameter reading and writing system based on high-pass platform mobile phone according to claim 3, is characterized in that: described operation interface comprises NV item and reads frame, NV item write frame and NV item display box; Described NV item reads frame for inputting the NV item needing to read; Described NV item write frame is for inputting the NV item needing write; Described NV item display box is for showing the value of the NV item read or write.
5. the NV parameter reading and writing system based on high-pass platform mobile phone according to claim 1, is characterized in that: the described NV parameter reading and writing system based on high-pass platform mobile phone is arranged on mobile phone as mobile phone application.
6., based on a NV parameter reading and writing method for high-pass platform mobile phone, it is characterized in that: comprise following content:
1) by the NV item number certificate of NV memory block memory mobile phone;
2) read and write access to NV memory block is realized by NV interface module;
3) by NV module for reading and writing, the NV item number certificate in NV memory block is read and write operation;
4) by the value of NV item of NV parameter display module display reading and the value of the NV item of write.
7. the NV parameter reading and writing method based on high-pass platform mobile phone according to claim 6, is characterized in that: described NV interface module is intrinsic in mobile phone.
8. the NV parameter reading and writing method based on high-pass platform mobile phone according to claim 6, it is characterized in that: described NV module for reading and writing and described NV parameter display module integration on an operation interface, to realize reading to the NV parameter in NV memory block, write and display operation.
9. the NV parameter reading and writing method based on high-pass platform mobile phone according to claim 8, is characterized in that: described operation interface comprises NV item and reads frame, NV item write frame and NV item display box; Described NV item reads frame for inputting the NV item needing to read; Described NV item write frame is for inputting the NV item needing write; Described NV item display box is for showing the value of the NV item read or write.
CN201510724886.9A 2015-10-30 2015-10-30 NV parameter reading and writing system and methods based on high-pass platform mobile phone Active CN105205019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510724886.9A CN105205019B (en) 2015-10-30 2015-10-30 NV parameter reading and writing system and methods based on high-pass platform mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510724886.9A CN105205019B (en) 2015-10-30 2015-10-30 NV parameter reading and writing system and methods based on high-pass platform mobile phone

Publications (2)

Publication Number Publication Date
CN105205019A true CN105205019A (en) 2015-12-30
CN105205019B CN105205019B (en) 2018-01-02

Family

ID=54952713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510724886.9A Active CN105205019B (en) 2015-10-30 2015-10-30 NV parameter reading and writing system and methods based on high-pass platform mobile phone

Country Status (1)

Country Link
CN (1) CN105205019B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743698A (en) * 2016-01-27 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Parameter processing method and terminal
CN106028382A (en) * 2016-05-27 2016-10-12 努比亚技术有限公司 NV (Nonvolatile Random Access Memory) parameter reading-writing device and method
CN112306416A (en) * 2020-11-04 2021-02-02 福州汇思博信息技术有限公司 Method and terminal for automatically reading and writing NV (network video) parameters
CN112540777A (en) * 2020-10-29 2021-03-23 福建联迪商用设备有限公司 Method and terminal for supporting dynamic read-write of NV (network video) parameters
CN112835742A (en) * 2021-01-14 2021-05-25 上海汉枫电子科技有限公司 Data parameter backup recovery method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070043900A1 (en) * 2005-08-20 2007-02-22 Samsung Electronics Co., Ltd. Flash memory management method and flash memory system
CN102135623A (en) * 2011-03-23 2011-07-27 中兴通讯股份有限公司 Mobile terminal and calibration method of global positioning system
CN102945192A (en) * 2012-10-19 2013-02-27 广东欧珀移动通信有限公司 Data backup and recovery method and intelligent mobile terminal
CN104281502A (en) * 2014-09-22 2015-01-14 宇龙计算机通信科技(深圳)有限公司 Nonvolatile-parameter recovery and/or update method and system based on communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070043900A1 (en) * 2005-08-20 2007-02-22 Samsung Electronics Co., Ltd. Flash memory management method and flash memory system
CN102135623A (en) * 2011-03-23 2011-07-27 中兴通讯股份有限公司 Mobile terminal and calibration method of global positioning system
CN102945192A (en) * 2012-10-19 2013-02-27 广东欧珀移动通信有限公司 Data backup and recovery method and intelligent mobile terminal
CN104281502A (en) * 2014-09-22 2015-01-14 宇龙计算机通信科技(深圳)有限公司 Nonvolatile-parameter recovery and/or update method and system based on communication terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105743698A (en) * 2016-01-27 2016-07-06 宇龙计算机通信科技(深圳)有限公司 Parameter processing method and terminal
CN106028382A (en) * 2016-05-27 2016-10-12 努比亚技术有限公司 NV (Nonvolatile Random Access Memory) parameter reading-writing device and method
CN112540777A (en) * 2020-10-29 2021-03-23 福建联迪商用设备有限公司 Method and terminal for supporting dynamic read-write of NV (network video) parameters
CN112306416A (en) * 2020-11-04 2021-02-02 福州汇思博信息技术有限公司 Method and terminal for automatically reading and writing NV (network video) parameters
CN112306416B (en) * 2020-11-04 2022-09-27 福州汇思博信息技术有限公司 Method and terminal for automatically reading and writing NV (network video) parameters
CN112835742A (en) * 2021-01-14 2021-05-25 上海汉枫电子科技有限公司 Data parameter backup recovery method
CN112835742B (en) * 2021-01-14 2024-02-20 上海汉枫电子科技有限公司 Data parameter backup and recovery method

Also Published As

Publication number Publication date
CN105205019B (en) 2018-01-02

Similar Documents

Publication Publication Date Title
CN105205019A (en) Qualcomm platform mobile phone-based NV (Nonvolatile Random Access Memory) parameter reading and writing system and method
CN101938566B (en) Visual terminal debugging method and device
CN103049375B (en) A kind of camera on-line debugging method
CN105373326B (en) Data processing system and method
CN109446832B (en) Screen capturing method and device
CN101719095A (en) Method and device for managing regression testing
CN100578674C (en) Register testing method and system
CN103338290A (en) A method for automatically testing performance of an Android handset
CN105138456A (en) Testing method and system
CN103984626A (en) Method and device for generating test-case script
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN103928038A (en) Electronic equipment test recording and playing back method
CN105574416A (en) Detection method and device of browser bug
CN107608609A (en) A kind of event object sending method and device
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN106155833A (en) A kind of method and apparatus of asynchronous remote copy
CN104461859A (en) Emulator and method for supporting NVM soft breakpoint debugging
CN103713822A (en) Information processing method and first electronic equipment
CN103019944A (en) Device and method for testing based on code injection mode
CN106503065A (en) The method and system of data transfer
WO2015003493A1 (en) Data recovery method and electronic device
CN117435483A (en) Form tool-based simulation verification excitation generation method, device, medium and terminal
CN115470125B (en) Log file-based debugging method, device and storage medium
CN101206613A (en) High speed basic input/output system debug card
EP4354293A1 (en) Detection method and apparatus, and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201127

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201221

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210311

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.

TR01 Transfer of patent right